add Vcs entries to control file
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 enable_option_checking=no
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 with_LIBDIRPATH
748 with_SWIGDIRPATH
749 with_PYDIRPATH
750 with_SWIG_INCLUDES
751 with_INCLUDES
752 abs_top_builddir
753 abs_top_srcdir
754 with_dirs
755 skipped_dirs
756 build_dirs
757 docs_LDFLAG
758 docs_LIBDIRPATH
759 docs_INCLUDEDIR
760 docs_LA
761 docs_INCLUDES
762 grc_LDFLAG
763 grc_LIBDIRPATH
764 grc_INCLUDEDIR
765 grc_LA
766 grc_INCLUDES
767 PYTHONW
768 XDG_UTILS_FALSE
769 XDG_UTILS_TRUE
770 XDG_UTILS
771 gnuradio_examples_LDFLAG
772 gnuradio_examples_LIBDIRPATH
773 gnuradio_examples_INCLUDEDIR
774 gnuradio_examples_LA
775 gnuradio_examples_INCLUDES
776 gr_utils_LDFLAG
777 gr_utils_LIBDIRPATH
778 gr_utils_INCLUDEDIR
779 gr_utils_LA
780 gr_utils_INCLUDES
781 gr_sounder_LDFLAG
782 gr_sounder_LIBDIRPATH
783 gr_sounder_INCLUDEDIR
784 gr_sounder_LA
785 gr_sounder_INCLUDES
786 gr_qtgui_LDFLAG
787 gr_qtgui_LIBDIRPATH
788 gr_qtgui_INCLUDEDIR
789 gr_qtgui_LA
790 gr_qtgui_INCLUDES
791 BUILD_QT_FALSE
792 BUILD_QT_TRUE
793 QT_UIC_EXEC
794 QT_MOC_EXEC
795 QT_LIBS
796 QT_INCLUDES
797 QMAKE_INCLUDES
798 QWTPLOT3D_LIBS
799 QWTPLOT3D_CFLAGS
800 QWT_LIBS
801 QWT_CFLAGS
802 QTOPENGL_CPPFLAGS
803 QTOPENGL_INCLUDEDIR
804 QTOPENGL_LIBS
805 QTOPENGL_CFLAGS
806 QTGUI_CPPFLAGS
807 QTGUI_INCLUDEDIR
808 QTGUI_LIBS
809 QTGUI_CFLAGS
810 QTCORE_CPPFLAGS
811 QTCORE_INCLUDEDIR
812 QTCORE_LIBS
813 QTCORE_CFLAGS
814 gr_wxgui_LDFLAG
815 gr_wxgui_LIBDIRPATH
816 gr_wxgui_INCLUDEDIR
817 gr_wxgui_LA
818 gr_wxgui_INCLUDES
819 gr_video_sdl_LDFLAG
820 gr_video_sdl_LIBDIRPATH
821 gr_video_sdl_INCLUDEDIR
822 gr_video_sdl_LA
823 gr_video_sdl_INCLUDES
824 SDL_CPPFLAGS
825 SDL_CONFIG
826 SDL_INCLUDEDIR
827 SDL_LIBS
828 SDL_CFLAGS
829 gr_trellis_LDFLAG
830 gr_trellis_LIBDIRPATH
831 gr_trellis_INCLUDEDIR
832 gr_trellis_LA
833 gr_trellis_INCLUDES
834 gr_radio_astronomy_LDFLAG
835 gr_radio_astronomy_LIBDIRPATH
836 gr_radio_astronomy_INCLUDEDIR
837 gr_radio_astronomy_LA
838 gr_radio_astronomy_INCLUDES
839 gr_radar_mono_LDFLAG
840 gr_radar_mono_LIBDIRPATH
841 gr_radar_mono_INCLUDEDIR
842 gr_radar_mono_LA
843 gr_radar_mono_INCLUDES
844 gr_pager_LDFLAG
845 gr_pager_LIBDIRPATH
846 gr_pager_INCLUDEDIR
847 gr_pager_LA
848 gr_pager_INCLUDES
849 gr_gsm_fr_vocoder_LDFLAG
850 gr_gsm_fr_vocoder_LIBDIRPATH
851 gr_gsm_fr_vocoder_INCLUDEDIR
852 gr_gsm_fr_vocoder_LA
853 gr_gsm_fr_vocoder_INCLUDES
854 gr_gpio_LDFLAG
855 gr_gpio_LIBDIRPATH
856 gr_gpio_INCLUDEDIR
857 gr_gpio_LA
858 gr_gpio_INCLUDES
859 gr_cvsd_vocoder_LDFLAG
860 gr_cvsd_vocoder_LIBDIRPATH
861 gr_cvsd_vocoder_INCLUDEDIR
862 gr_cvsd_vocoder_LA
863 gr_cvsd_vocoder_INCLUDES
864 gr_audio_windows_LDFLAG
865 gr_audio_windows_LIBDIRPATH
866 gr_audio_windows_INCLUDEDIR
867 gr_audio_windows_LA
868 gr_audio_windows_INCLUDES
869 WINAUDIO_LIBS
870 gr_audio_portaudio_LDFLAG
871 gr_audio_portaudio_LIBDIRPATH
872 gr_audio_portaudio_INCLUDEDIR
873 gr_audio_portaudio_LA
874 gr_audio_portaudio_INCLUDES
875 PORTAUDIO_CPPFLAGS
876 PORTAUDIO_INCLUDEDIR
877 PORTAUDIO_LIBS
878 PORTAUDIO_CFLAGS
879 gr_audio_osx_LDFLAG
880 gr_audio_osx_LIBDIRPATH
881 gr_audio_osx_INCLUDEDIR
882 gr_audio_osx_LA
883 gr_audio_osx_INCLUDES
884 gr_audio_oss_LDFLAG
885 gr_audio_oss_LIBDIRPATH
886 gr_audio_oss_INCLUDEDIR
887 gr_audio_oss_LA
888 gr_audio_oss_INCLUDES
889 OSS_LIBS
890 gr_audio_jack_LDFLAG
891 gr_audio_jack_LIBDIRPATH
892 gr_audio_jack_INCLUDEDIR
893 gr_audio_jack_LA
894 gr_audio_jack_INCLUDES
895 JACK_CPPFLAGS
896 JACK_INCLUDEDIR
897 JACK_LIBS
898 JACK_CFLAGS
899 gr_audio_alsa_LDFLAG
900 gr_audio_alsa_LIBDIRPATH
901 gr_audio_alsa_INCLUDEDIR
902 gr_audio_alsa_LA
903 gr_audio_alsa_INCLUDES
904 ALSA_CPPFLAGS
905 ALSA_INCLUDEDIR
906 ALSA_LIBS
907 ALSA_CFLAGS
908 gr_gcell_LDFLAG
909 gr_gcell_LIBDIRPATH
910 gr_gcell_INCLUDEDIR
911 gr_gcell_LA
912 gr_gcell_INCLUDES
913 gr_usrp2_LDFLAG
914 gr_usrp2_LIBDIRPATH
915 gr_usrp2_INCLUDEDIR
916 gr_usrp2_LA
917 gr_usrp2_INCLUDES
918 gr_usrp_LDFLAG
919 gr_usrp_LIBDIRPATH
920 gr_usrp_INCLUDEDIR
921 gr_usrp_LA
922 gr_usrp_INCLUDES
923 usrp2_LDFLAG
924 usrp2_LIBDIRPATH
925 usrp2_INCLUDEDIR
926 usrp2_LA
927 usrp2_INCLUDES
928 USRP2_LA
929 USRP2_INCLUDES
930 subdirs
931 usrp_LDFLAG
932 usrp_LIBDIRPATH
933 usrp_INCLUDEDIR
934 usrp_LA
935 usrp_INCLUDES
936 usrp_darwin_omnithread_pc_requires
937 XAS
938 XCC
939 USB_CPPFLAGS
940 USB_INCLUDEDIR
941 USB_LIBS
942 USB_CFLAGS
943 FUSB_TECH_ra_wb_FALSE
944 FUSB_TECH_ra_wb_TRUE
945 FUSB_TECH_linux_FALSE
946 FUSB_TECH_linux_TRUE
947 FUSB_TECH_generic_FALSE
948 FUSB_TECH_generic_TRUE
949 FUSB_TECH_win32_FALSE
950 FUSB_TECH_win32_TRUE
951 FUSB_TECH_darwin_FALSE
952 FUSB_TECH_darwin_TRUE
953 FUSB_TECH
954 mblock_LDFLAG
955 mblock_LIBDIRPATH
956 mblock_INCLUDEDIR
957 mblock_LA
958 mblock_INCLUDES
959 pmt_LDFLAG
960 pmt_LIBDIRPATH
961 pmt_INCLUDEDIR
962 pmt_LA
963 pmt_INCLUDES
964 gnuradio_core_LDFLAG
965 gnuradio_core_LIBDIRPATH
966 gnuradio_core_INCLUDEDIR
967 gnuradio_core_LA
968 gnuradio_core_INCLUDES
969 gnuradio_core_PYDIRPATH
970 gnuradio_core_SWIGDIRPATH
971 gnuradio_core_I
972 GSL_CPPFLAGS
973 GSL_INCLUDEDIR
974 GSL_LIBS
975 GSL_CFLAGS
976 CBLAS_LIBS
977 gcell_LDFLAG
978 gcell_LIBDIRPATH
979 gcell_INCLUDEDIR
980 gcell_LA
981 gcell_INCLUDES
982 gcell_spu_LA
983 gcell_spu_INCLUDES
984 SPU_GCC_PROG
985 omnithread_LDFLAG
986 omnithread_LIBDIRPATH
987 omnithread_INCLUDEDIR
988 omnithread_LA
989 omnithread_INCLUDES
990 gruel_LDFLAG
991 gruel_LIBDIRPATH
992 gruel_INCLUDEDIR
993 gruel_LA
994 gruel_INCLUDES
995 GR_HAVE_BYTESWAP
996 GR_HAVE_NETINET_IN
997 GR_HAVE_ARPA_INET
998 SVNDATE
999 SVNVERSION
1000 SVN
1001 BOOST_PROGRAM_OPTIONS_LIB
1002 BOOST_DATE_TIME_LIB
1003 BOOST_THREAD_LIB
1004 BOOST_CXXFLAGS
1005 BOOST_LDFLAGS
1006 BOOST_CPPFLAGS
1007 GUILE
1008 CPPUNIT_INCLUDES
1009 CPPUNIT_CONFIG
1010 CPPUNIT_CPPFLAGS
1011 CPPUNIT_INCLUDEDIR
1012 CPPUNIT_LIBS
1013 CPPUNIT_CFLAGS
1014 MD_CPU_generic_FALSE
1015 MD_CPU_generic_TRUE
1016 MD_CPU_powerpc_FALSE
1017 MD_CPU_powerpc_TRUE
1018 MD_SUBCPU_x86_64_FALSE
1019 MD_SUBCPU_x86_64_TRUE
1020 MD_CPU_x86_FALSE
1021 MD_CPU_x86_TRUE
1022 MD_SUBCPU
1023 MD_CPU
1024 generate_docs
1025 enable_latex_docs
1026 enable_html_docs
1027 enable_xml_docs
1028 enable_dot
1029 DOC_FALSE
1030 DOC_TRUE
1031 DOT
1032 DOXYGEN
1033 FFTW3F_CPPFLAGS
1034 FFTW3F_INCLUDEDIR
1035 FFTW3F_LIBS
1036 FFTW3F_CFLAGS
1037 PKG_CONFIG
1038 HAVE_DOT
1039 LIBOBJS
1040 HAVE_CREATEFILEMAPPING_FALSE
1041 HAVE_CREATEFILEMAPPING_TRUE
1042 LIBGNURADIO_CORE_EXTRA_LDFLAGS
1043 SHM_OPEN_LIBS
1044 ALLOCA
1045 GR_ARCH_BIGENDIAN
1046 IPC_LIBS
1047 CXX_FOR_BUILD
1048 OMNITHREAD_NT_FALSE
1049 OMNITHREAD_NT_TRUE
1050 OMNITHREAD_POSIX_FALSE
1051 OMNITHREAD_POSIX_TRUE
1052 PTHREAD_CFLAGS
1053 PTHREAD_LIBS
1054 PTHREAD_CC
1055 acx_pthread_config
1056 HAS_XMLTO_FALSE
1057 HAS_XMLTO_TRUE
1058 XMLTO
1059 SWIG_PYTHON_CPPFLAGS
1060 SWIG_PYTHON_OPT
1061 SWIG_PYTHON_LIB
1062 PYTHON_LDFLAGS
1063 PYTHON_CPPFLAGS
1064 pkgpyexecdir
1065 pyexecdir
1066 pkgpythondir
1067 pythondir
1068 PYTHON_PLATFORM
1069 PYTHON_EXEC_PREFIX
1070 PYTHON_PREFIX
1071 PYTHON_VERSION
1072 PYTHON
1073 SWIG
1074 NO_UNDEFINED
1075 FLIBS
1076 ac_ct_F77
1077 FFLAGS
1078 F77
1079 ENABLE_FORTRAN_FALSE
1080 ENABLE_FORTRAN_TRUE
1081 OTOOL64
1082 OTOOL
1083 LIPO
1084 NMEDIT
1085 DSYMUTIL
1086 lt_ECHO
1087 RANLIB
1088 AR
1089 NM
1090 ac_ct_DUMPBIN
1091 DUMPBIN
1092 LD
1093 FGREP
1094 SED
1095 LIBTOOL
1096 OBJDUMP
1097 DLLTOOL
1098 AS
1099 RM_PROG
1100 LN_S
1101 am__fastdepCCAS_FALSE
1102 am__fastdepCCAS_TRUE
1103 CCASDEPMODE
1104 CCASFLAGS
1105 CCAS
1106 lf_CXXFLAGS
1107 lf_CFLAGS
1108 swig_CXXFLAGS
1109 autoconf_default_CXXFLAGS
1110 autoconf_default_CFLAGS
1111 gr_libdir_suffix
1112 CXXCPP
1113 am__fastdepCXX_FALSE
1114 am__fastdepCXX_TRUE
1115 CXXDEPMODE
1116 ac_ct_CXX
1117 CXXFLAGS
1118 CXX
1119 EGREP
1120 GREP
1121 CPP
1122 am__fastdepCC_FALSE
1123 am__fastdepCC_TRUE
1124 CCDEPMODE
1125 AMDEPBACKSLASH
1126 AMDEP_FALSE
1127 AMDEP_TRUE
1128 am__quote
1129 am__include
1130 DEPDIR
1131 OBJEXT
1132 EXEEXT
1133 ac_ct_CC
1134 CPPFLAGS
1135 LDFLAGS
1136 CFLAGS
1137 CC
1138 DEFINES
1139 am__untar
1140 am__tar
1141 AMTAR
1142 am__leading_dot
1143 SET_MAKE
1144 AWK
1145 mkdir_p
1146 MKDIR_P
1147 INSTALL_STRIP_PROGRAM
1148 STRIP
1149 install_sh
1150 MAKEINFO
1151 AUTOHEADER
1152 AUTOMAKE
1153 AUTOCONF
1154 ACLOCAL
1155 VERSION
1156 PACKAGE
1157 CYGPATH_W
1158 am__isrc
1159 INSTALL_DATA
1160 INSTALL_SCRIPT
1161 INSTALL_PROGRAM
1162 target_os
1163 target_vendor
1164 target_cpu
1165 target
1166 host_os
1167 host_vendor
1168 host_cpu
1169 host
1170 build_os
1171 build_vendor
1172 build_cpu
1173 build
1174 target_alias
1175 host_alias
1176 build_alias
1177 LIBS
1178 ECHO_T
1179 ECHO_N
1180 ECHO_C
1181 DEFS
1182 mandir
1183 localedir
1184 libdir
1185 psdir
1186 pdfdir
1187 dvidir
1188 htmldir
1189 infodir
1190 docdir
1191 oldincludedir
1192 includedir
1193 localstatedir
1194 sharedstatedir
1195 sysconfdir
1196 datadir
1197 datarootdir
1198 libexecdir
1199 sbindir
1200 bindir
1201 program_transform_name
1202 prefix
1203 exec_prefix
1204 PACKAGE_URL
1205 PACKAGE_BUGREPORT
1206 PACKAGE_STRING
1207 PACKAGE_VERSION
1208 PACKAGE_TARNAME
1209 PACKAGE_NAME
1210 PATH_SEPARATOR
1211 SHELL'
1212 ac_subst_files=''
1213 ac_user_opts='
1214 enable_option_checking
1215 enable_dependency_tracking
1216 with_gprof
1217 with_prof
1218 enable_shared
1219 enable_static
1220 with_pic
1221 enable_fast_install
1222 with_gnu_ld
1223 enable_libtool_lock
1224 enable_fortran
1225 with_pythondir
1226 enable_doxygen
1227 enable_dot
1228 with_md_cpu
1229 enable_altivec
1230 with_cppunit_prefix
1231 with_cppunit_exec_prefix
1232 with_boost
1233 with_boost_libdir
1234 with_boost_thread
1235 with_boost_date_time
1236 with_boost_program_options
1237 enable_all_components
1238 enable_gruel
1239 with_gruel
1240 enable_omnithread
1241 with_omnithread
1242 enable_gcell
1243 enable_gnuradio_core
1244 with_gnuradio_core
1245 with_cblas
1246 enable_pmt
1247 with_pmt
1248 enable_mblock
1249 with_mblock
1250 enable_usrp
1251 with_usrp
1252 with_fusb_tech
1253 enable_usrp2
1254 enable_gr_usrp
1255 enable_gr_usrp2
1256 enable_gr_gcell
1257 enable_gr_audio_alsa
1258 enable_gr_audio_jack
1259 enable_gr_audio_oss
1260 enable_gr_audio_osx
1261 enable_gr_audio_portaudio
1262 enable_gr_audio_windows
1263 enable_gr_cvsd_vocoder
1264 enable_gr_gpio
1265 enable_gr_gsm_fr_vocoder
1266 enable_gr_pager
1267 enable_gr_radar_mono
1268 enable_gr_radio_astronomy
1269 enable_gr_trellis
1270 enable_gr_video_sdl
1271 with_sdl_prefix
1272 with_sdl_exec_prefix
1273 enable_sdltest
1274 enable_gr_wxgui
1275 with_gr_wxgui
1276 enable_gr_qtgui
1277 with_qwt_libdir
1278 with_qwt_incdir
1279 with_qwt_lib
1280 with_qwtplot3d_libdir
1281 with_qwtplot3d_incdir
1282 with_qwtplot3d_lib
1283 enable_gr_sounder
1284 enable_gr_utils
1285 enable_gnuradio_examples
1286 enable_grc
1287 enable_docs
1288 '
1289       ac_precious_vars='build_alias
1290 host_alias
1291 target_alias
1292 CC
1293 CFLAGS
1294 LDFLAGS
1295 LIBS
1296 CPPFLAGS
1297 CPP
1298 CXX
1299 CXXFLAGS
1300 CCC
1301 CXXCPP
1302 CCAS
1303 CCASFLAGS
1304 F77
1305 FFLAGS
1306 PKG_CONFIG
1307 FFTW3F_CFLAGS
1308 FFTW3F_LIBS
1309 FFTW3F_INCLUDEDIR
1310 CPPUNIT_CFLAGS
1311 CPPUNIT_LIBS
1312 CPPUNIT_INCLUDEDIR
1313 GSL_CFLAGS
1314 GSL_LIBS
1315 GSL_INCLUDEDIR
1316 USB_CFLAGS
1317 USB_LIBS
1318 USB_INCLUDEDIR
1319 ALSA_CFLAGS
1320 ALSA_LIBS
1321 ALSA_INCLUDEDIR
1322 JACK_CFLAGS
1323 JACK_LIBS
1324 JACK_INCLUDEDIR
1325 PORTAUDIO_CFLAGS
1326 PORTAUDIO_LIBS
1327 PORTAUDIO_INCLUDEDIR
1328 SDL_CFLAGS
1329 SDL_LIBS
1330 SDL_INCLUDEDIR
1331 QTCORE_CFLAGS
1332 QTCORE_LIBS
1333 QTCORE_INCLUDEDIR
1334 QTGUI_CFLAGS
1335 QTGUI_LIBS
1336 QTGUI_INCLUDEDIR
1337 QTOPENGL_CFLAGS
1338 QTOPENGL_LIBS
1339 QTOPENGL_INCLUDEDIR'
1340 ac_subdirs_all='usrp2/firmware'
1341
1342 # Initialize some variables set by options.
1343 ac_init_help=
1344 ac_init_version=false
1345 ac_unrecognized_opts=
1346 ac_unrecognized_sep=
1347 # The variables have the same names as the options, with
1348 # dashes changed to underlines.
1349 cache_file=/dev/null
1350 exec_prefix=NONE
1351 no_create=
1352 no_recursion=
1353 prefix=NONE
1354 program_prefix=NONE
1355 program_suffix=NONE
1356 program_transform_name=s,x,x,
1357 silent=
1358 site=
1359 srcdir=
1360 verbose=
1361 x_includes=NONE
1362 x_libraries=NONE
1363
1364 # Installation directory options.
1365 # These are left unexpanded so users can "make install exec_prefix=/foo"
1366 # and all the variables that are supposed to be based on exec_prefix
1367 # by default will actually change.
1368 # Use braces instead of parens because sh, perl, etc. also accept them.
1369 # (The list follows the same order as the GNU Coding Standards.)
1370 bindir='${exec_prefix}/bin'
1371 sbindir='${exec_prefix}/sbin'
1372 libexecdir='${exec_prefix}/libexec'
1373 datarootdir='${prefix}/share'
1374 datadir='${datarootdir}'
1375 sysconfdir='${prefix}/etc'
1376 sharedstatedir='${prefix}/com'
1377 localstatedir='${prefix}/var'
1378 includedir='${prefix}/include'
1379 oldincludedir='/usr/include'
1380 docdir='${datarootdir}/doc/${PACKAGE}'
1381 infodir='${datarootdir}/info'
1382 htmldir='${docdir}'
1383 dvidir='${docdir}'
1384 pdfdir='${docdir}'
1385 psdir='${docdir}'
1386 libdir='${exec_prefix}/lib'
1387 localedir='${datarootdir}/locale'
1388 mandir='${datarootdir}/man'
1389
1390 ac_prev=
1391 ac_dashdash=
1392 for ac_option
1393 do
1394   # If the previous option needs an argument, assign it.
1395   if test -n "$ac_prev"; then
1396     eval $ac_prev=\$ac_option
1397     ac_prev=
1398     continue
1399   fi
1400
1401   case $ac_option in
1402   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1403   *)    ac_optarg=yes ;;
1404   esac
1405
1406   # Accept the important Cygnus configure options, so we can diagnose typos.
1407
1408   case $ac_dashdash$ac_option in
1409   --)
1410     ac_dashdash=yes ;;
1411
1412   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1413     ac_prev=bindir ;;
1414   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1415     bindir=$ac_optarg ;;
1416
1417   -build | --build | --buil | --bui | --bu)
1418     ac_prev=build_alias ;;
1419   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1420     build_alias=$ac_optarg ;;
1421
1422   -cache-file | --cache-file | --cache-fil | --cache-fi \
1423   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1424     ac_prev=cache_file ;;
1425   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1426   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1427     cache_file=$ac_optarg ;;
1428
1429   --config-cache | -C)
1430     cache_file=config.cache ;;
1431
1432   -datadir | --datadir | --datadi | --datad)
1433     ac_prev=datadir ;;
1434   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1435     datadir=$ac_optarg ;;
1436
1437   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1438   | --dataroo | --dataro | --datar)
1439     ac_prev=datarootdir ;;
1440   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1441   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1442     datarootdir=$ac_optarg ;;
1443
1444   -disable-* | --disable-*)
1445     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1446     # Reject names that are not valid shell variable names.
1447     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1448       as_fn_error "invalid feature name: $ac_useropt"
1449     ac_useropt_orig=$ac_useropt
1450     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451     case $ac_user_opts in
1452       *"
1453 "enable_$ac_useropt"
1454 "*) ;;
1455       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1456          ac_unrecognized_sep=', ';;
1457     esac
1458     eval enable_$ac_useropt=no ;;
1459
1460   -docdir | --docdir | --docdi | --doc | --do)
1461     ac_prev=docdir ;;
1462   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1463     docdir=$ac_optarg ;;
1464
1465   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1466     ac_prev=dvidir ;;
1467   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1468     dvidir=$ac_optarg ;;
1469
1470   -enable-* | --enable-*)
1471     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1472     # Reject names that are not valid shell variable names.
1473     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1474       as_fn_error "invalid feature name: $ac_useropt"
1475     ac_useropt_orig=$ac_useropt
1476     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477     case $ac_user_opts in
1478       *"
1479 "enable_$ac_useropt"
1480 "*) ;;
1481       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1482          ac_unrecognized_sep=', ';;
1483     esac
1484     eval enable_$ac_useropt=\$ac_optarg ;;
1485
1486   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1487   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1488   | --exec | --exe | --ex)
1489     ac_prev=exec_prefix ;;
1490   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1491   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1492   | --exec=* | --exe=* | --ex=*)
1493     exec_prefix=$ac_optarg ;;
1494
1495   -gas | --gas | --ga | --g)
1496     # Obsolete; use --with-gas.
1497     with_gas=yes ;;
1498
1499   -help | --help | --hel | --he | -h)
1500     ac_init_help=long ;;
1501   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1502     ac_init_help=recursive ;;
1503   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1504     ac_init_help=short ;;
1505
1506   -host | --host | --hos | --ho)
1507     ac_prev=host_alias ;;
1508   -host=* | --host=* | --hos=* | --ho=*)
1509     host_alias=$ac_optarg ;;
1510
1511   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1512     ac_prev=htmldir ;;
1513   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1514   | --ht=*)
1515     htmldir=$ac_optarg ;;
1516
1517   -includedir | --includedir | --includedi | --included | --include \
1518   | --includ | --inclu | --incl | --inc)
1519     ac_prev=includedir ;;
1520   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1521   | --includ=* | --inclu=* | --incl=* | --inc=*)
1522     includedir=$ac_optarg ;;
1523
1524   -infodir | --infodir | --infodi | --infod | --info | --inf)
1525     ac_prev=infodir ;;
1526   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1527     infodir=$ac_optarg ;;
1528
1529   -libdir | --libdir | --libdi | --libd)
1530     ac_prev=libdir ;;
1531   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1532     libdir=$ac_optarg ;;
1533
1534   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1535   | --libexe | --libex | --libe)
1536     ac_prev=libexecdir ;;
1537   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1538   | --libexe=* | --libex=* | --libe=*)
1539     libexecdir=$ac_optarg ;;
1540
1541   -localedir | --localedir | --localedi | --localed | --locale)
1542     ac_prev=localedir ;;
1543   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1544     localedir=$ac_optarg ;;
1545
1546   -localstatedir | --localstatedir | --localstatedi | --localstated \
1547   | --localstate | --localstat | --localsta | --localst | --locals)
1548     ac_prev=localstatedir ;;
1549   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1550   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1551     localstatedir=$ac_optarg ;;
1552
1553   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1554     ac_prev=mandir ;;
1555   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1556     mandir=$ac_optarg ;;
1557
1558   -nfp | --nfp | --nf)
1559     # Obsolete; use --without-fp.
1560     with_fp=no ;;
1561
1562   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1563   | --no-cr | --no-c | -n)
1564     no_create=yes ;;
1565
1566   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1567   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1568     no_recursion=yes ;;
1569
1570   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1571   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1572   | --oldin | --oldi | --old | --ol | --o)
1573     ac_prev=oldincludedir ;;
1574   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1575   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1576   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1577     oldincludedir=$ac_optarg ;;
1578
1579   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1580     ac_prev=prefix ;;
1581   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1582     prefix=$ac_optarg ;;
1583
1584   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1585   | --program-pre | --program-pr | --program-p)
1586     ac_prev=program_prefix ;;
1587   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1588   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1589     program_prefix=$ac_optarg ;;
1590
1591   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1592   | --program-suf | --program-su | --program-s)
1593     ac_prev=program_suffix ;;
1594   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1595   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1596     program_suffix=$ac_optarg ;;
1597
1598   -program-transform-name | --program-transform-name \
1599   | --program-transform-nam | --program-transform-na \
1600   | --program-transform-n | --program-transform- \
1601   | --program-transform | --program-transfor \
1602   | --program-transfo | --program-transf \
1603   | --program-trans | --program-tran \
1604   | --progr-tra | --program-tr | --program-t)
1605     ac_prev=program_transform_name ;;
1606   -program-transform-name=* | --program-transform-name=* \
1607   | --program-transform-nam=* | --program-transform-na=* \
1608   | --program-transform-n=* | --program-transform-=* \
1609   | --program-transform=* | --program-transfor=* \
1610   | --program-transfo=* | --program-transf=* \
1611   | --program-trans=* | --program-tran=* \
1612   | --progr-tra=* | --program-tr=* | --program-t=*)
1613     program_transform_name=$ac_optarg ;;
1614
1615   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1616     ac_prev=pdfdir ;;
1617   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1618     pdfdir=$ac_optarg ;;
1619
1620   -psdir | --psdir | --psdi | --psd | --ps)
1621     ac_prev=psdir ;;
1622   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1623     psdir=$ac_optarg ;;
1624
1625   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626   | -silent | --silent | --silen | --sile | --sil)
1627     silent=yes ;;
1628
1629   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1630     ac_prev=sbindir ;;
1631   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1632   | --sbi=* | --sb=*)
1633     sbindir=$ac_optarg ;;
1634
1635   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1636   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1637   | --sharedst | --shareds | --shared | --share | --shar \
1638   | --sha | --sh)
1639     ac_prev=sharedstatedir ;;
1640   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1641   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1642   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1643   | --sha=* | --sh=*)
1644     sharedstatedir=$ac_optarg ;;
1645
1646   -site | --site | --sit)
1647     ac_prev=site ;;
1648   -site=* | --site=* | --sit=*)
1649     site=$ac_optarg ;;
1650
1651   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1652     ac_prev=srcdir ;;
1653   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1654     srcdir=$ac_optarg ;;
1655
1656   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1657   | --syscon | --sysco | --sysc | --sys | --sy)
1658     ac_prev=sysconfdir ;;
1659   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1660   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1661     sysconfdir=$ac_optarg ;;
1662
1663   -target | --target | --targe | --targ | --tar | --ta | --t)
1664     ac_prev=target_alias ;;
1665   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1666     target_alias=$ac_optarg ;;
1667
1668   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1669     verbose=yes ;;
1670
1671   -version | --version | --versio | --versi | --vers | -V)
1672     ac_init_version=: ;;
1673
1674   -with-* | --with-*)
1675     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1676     # Reject names that are not valid shell variable names.
1677     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678       as_fn_error "invalid package name: $ac_useropt"
1679     ac_useropt_orig=$ac_useropt
1680     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681     case $ac_user_opts in
1682       *"
1683 "with_$ac_useropt"
1684 "*) ;;
1685       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1686          ac_unrecognized_sep=', ';;
1687     esac
1688     eval with_$ac_useropt=\$ac_optarg ;;
1689
1690   -without-* | --without-*)
1691     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1692     # Reject names that are not valid shell variable names.
1693     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1694       as_fn_error "invalid package name: $ac_useropt"
1695     ac_useropt_orig=$ac_useropt
1696     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1697     case $ac_user_opts in
1698       *"
1699 "with_$ac_useropt"
1700 "*) ;;
1701       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1702          ac_unrecognized_sep=', ';;
1703     esac
1704     eval with_$ac_useropt=no ;;
1705
1706   --x)
1707     # Obsolete; use --with-x.
1708     with_x=yes ;;
1709
1710   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1711   | --x-incl | --x-inc | --x-in | --x-i)
1712     ac_prev=x_includes ;;
1713   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1714   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1715     x_includes=$ac_optarg ;;
1716
1717   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1718   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1719     ac_prev=x_libraries ;;
1720   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1721   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1722     x_libraries=$ac_optarg ;;
1723
1724   -*) as_fn_error "unrecognized option: \`$ac_option'
1725 Try \`$0 --help' for more information."
1726     ;;
1727
1728   *=*)
1729     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1730     # Reject names that are not valid shell variable names.
1731     case $ac_envvar in #(
1732       '' | [0-9]* | *[!_$as_cr_alnum]* )
1733       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1734     esac
1735     eval $ac_envvar=\$ac_optarg
1736     export $ac_envvar ;;
1737
1738   *)
1739     # FIXME: should be removed in autoconf 3.0.
1740     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1741     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1742       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1743     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1744     ;;
1745
1746   esac
1747 done
1748
1749 if test -n "$ac_prev"; then
1750   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1751   as_fn_error "missing argument to $ac_option"
1752 fi
1753
1754 if test -n "$ac_unrecognized_opts"; then
1755   case $enable_option_checking in
1756     no) ;;
1757     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1758     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1759   esac
1760 fi
1761
1762 # Check all directory arguments for consistency.
1763 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1764                 datadir sysconfdir sharedstatedir localstatedir includedir \
1765                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1766                 libdir localedir mandir
1767 do
1768   eval ac_val=\$$ac_var
1769   # Remove trailing slashes.
1770   case $ac_val in
1771     */ )
1772       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1773       eval $ac_var=\$ac_val;;
1774   esac
1775   # Be sure to have absolute directory names.
1776   case $ac_val in
1777     [\\/$]* | ?:[\\/]* )  continue;;
1778     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1779   esac
1780   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1781 done
1782
1783 # There might be people who depend on the old broken behavior: `$host'
1784 # used to hold the argument of --host etc.
1785 # FIXME: To remove some day.
1786 build=$build_alias
1787 host=$host_alias
1788 target=$target_alias
1789
1790 # FIXME: To remove some day.
1791 if test "x$host_alias" != x; then
1792   if test "x$build_alias" = x; then
1793     cross_compiling=maybe
1794     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1795     If a cross compiler is detected then cross compile mode will be used." >&2
1796   elif test "x$build_alias" != "x$host_alias"; then
1797     cross_compiling=yes
1798   fi
1799 fi
1800
1801 ac_tool_prefix=
1802 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1803
1804 test "$silent" = yes && exec 6>/dev/null
1805
1806
1807 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1808 ac_ls_di=`ls -di .` &&
1809 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1810   as_fn_error "working directory cannot be determined"
1811 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1812   as_fn_error "pwd does not report name of working directory"
1813
1814
1815 # Find the source files, if location was not specified.
1816 if test -z "$srcdir"; then
1817   ac_srcdir_defaulted=yes
1818   # Try the directory containing this script, then the parent directory.
1819   ac_confdir=`$as_dirname -- "$as_myself" ||
1820 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1821          X"$as_myself" : 'X\(//\)[^/]' \| \
1822          X"$as_myself" : 'X\(//\)$' \| \
1823          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1824 $as_echo X"$as_myself" |
1825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1826             s//\1/
1827             q
1828           }
1829           /^X\(\/\/\)[^/].*/{
1830             s//\1/
1831             q
1832           }
1833           /^X\(\/\/\)$/{
1834             s//\1/
1835             q
1836           }
1837           /^X\(\/\).*/{
1838             s//\1/
1839             q
1840           }
1841           s/.*/./; q'`
1842   srcdir=$ac_confdir
1843   if test ! -r "$srcdir/$ac_unique_file"; then
1844     srcdir=..
1845   fi
1846 else
1847   ac_srcdir_defaulted=no
1848 fi
1849 if test ! -r "$srcdir/$ac_unique_file"; then
1850   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1851   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1852 fi
1853 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1854 ac_abs_confdir=`(
1855         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1856         pwd)`
1857 # When building in place, set srcdir=.
1858 if test "$ac_abs_confdir" = "$ac_pwd"; then
1859   srcdir=.
1860 fi
1861 # Remove unnecessary trailing slashes from srcdir.
1862 # Double slashes in file names in object file debugging info
1863 # mess up M-x gdb in Emacs.
1864 case $srcdir in
1865 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1866 esac
1867 for ac_var in $ac_precious_vars; do
1868   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1869   eval ac_env_${ac_var}_value=\$${ac_var}
1870   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1871   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1872 done
1873
1874 #
1875 # Report the --help message.
1876 #
1877 if test "$ac_init_help" = "long"; then
1878   # Omit some internal or obsolete options to make the list less imposing.
1879   # This message is too long to be a string in the A/UX 3.1 sh.
1880   cat <<_ACEOF
1881 \`configure' configures this package to adapt to many kinds of systems.
1882
1883 Usage: $0 [OPTION]... [VAR=VALUE]...
1884
1885 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1886 VAR=VALUE.  See below for descriptions of some of the useful variables.
1887
1888 Defaults for the options are specified in brackets.
1889
1890 Configuration:
1891   -h, --help              display this help and exit
1892       --help=short        display options specific to this package
1893       --help=recursive    display the short help of all the included packages
1894   -V, --version           display version information and exit
1895   -q, --quiet, --silent   do not print \`checking...' messages
1896       --cache-file=FILE   cache test results in FILE [disabled]
1897   -C, --config-cache      alias for \`--cache-file=config.cache'
1898   -n, --no-create         do not create output files
1899       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1900
1901 Installation directories:
1902   --prefix=PREFIX         install architecture-independent files in PREFIX
1903                           [$ac_default_prefix]
1904   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1905                           [PREFIX]
1906
1907 By default, \`make install' will install all the files in
1908 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1909 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1910 for instance \`--prefix=\$HOME'.
1911
1912 For better control, use the options below.
1913
1914 Fine tuning of the installation directories:
1915   --bindir=DIR            user executables [EPREFIX/bin]
1916   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1917   --libexecdir=DIR        program executables [EPREFIX/libexec]
1918   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1919   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1920   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1921   --libdir=DIR            object code libraries [EPREFIX/lib]
1922   --includedir=DIR        C header files [PREFIX/include]
1923   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1924   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1925   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1926   --infodir=DIR           info documentation [DATAROOTDIR/info]
1927   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1928   --mandir=DIR            man documentation [DATAROOTDIR/man]
1929   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1930   --htmldir=DIR           html documentation [DOCDIR]
1931   --dvidir=DIR            dvi documentation [DOCDIR]
1932   --pdfdir=DIR            pdf documentation [DOCDIR]
1933   --psdir=DIR             ps documentation [DOCDIR]
1934 _ACEOF
1935
1936   cat <<\_ACEOF
1937
1938 Program names:
1939   --program-prefix=PREFIX            prepend PREFIX to installed program names
1940   --program-suffix=SUFFIX            append SUFFIX to installed program names
1941   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1942
1943 System types:
1944   --build=BUILD     configure for building on BUILD [guessed]
1945   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1946   --target=TARGET   configure for building compilers for TARGET [HOST]
1947 _ACEOF
1948 fi
1949
1950 if test -n "$ac_init_help"; then
1951
1952   cat <<\_ACEOF
1953
1954 Optional Features:
1955   --disable-option-checking  ignore unrecognized --enable/--with options
1956   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1957   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1958   --disable-dependency-tracking  speeds up one-time build
1959   --enable-dependency-tracking   do not reject slow dependency extractors
1960   --enable-shared[=PKGS]  build shared libraries [default=yes]
1961   --enable-static[=PKGS]  build static libraries [default=no]
1962   --enable-fast-install[=PKGS]
1963                           optimize for fast installation [default=yes]
1964   --disable-libtool-lock  avoid locking (might break parallel builds)
1965   --enable-fortran        enable fortran (no)
1966   --enable-doxygen        enable documentation generation with doxygen (auto)
1967   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1968   --enable-altivec        enable altivec on PowerPC (yes)
1969   --enable-all-components Build all configurable components (default), or stop on failed dependencies
1970
1971   --enable-gruel          Stop if gruel fails configuration
1972   --enable-omnithread     Stop if omnithread fails configuration
1973   --enable-gcell          Stop if gcell fails configuration
1974   --enable-gnuradio-core  Stop if gnuradio-core fails configuration
1975   --enable-pmt            Stop if pmt fails configuration
1976   --enable-mblock         Stop if mblock fails configuration
1977   --enable-usrp           Stop if usrp fails configuration
1978   --enable-usrp2          Stop if usrp2 fails configuration
1979   --enable-gr-usrp        Stop if gr-usrp fails configuration
1980   --enable-gr-usrp2       Stop if gr-usrp2 fails configuration
1981   --enable-gr-gcell       Stop if gr-gcell fails configuration
1982   --enable-gr-audio-alsa  Stop if gr-audio-alsa fails configuration
1983   --enable-gr-audio-jack  Stop if gr-audio-jack fails configuration
1984   --enable-gr-audio-oss   Stop if gr-audio-oss fails configuration
1985   --enable-gr-audio-osx   Stop if gr-audio-osx fails configuration
1986   --enable-gr-audio-portaudio
1987                           Stop if gr-audio-portaudio fails configuration
1988   --enable-gr-audio-windows
1989                           Stop if gr-audio-windows fails configuration
1990   --enable-gr-cvsd-vocoder
1991                           Stop if gr-cvsd-vocoder fails configuration
1992   --enable-gr-gpio        Stop if gr-gpio fails configuration
1993   --enable-gr-gsm-fr-vocoder
1994                           Stop if gr-gsm-fr-vocoder fails configuration
1995   --enable-gr-pager       Stop if gr-pager fails configuration
1996   --enable-gr-radar-mono  Stop if gr-radar-mono fails configuration
1997   --enable-gr-radio-astronomy
1998                           Stop if gr-radio-astronomy fails configuration
1999   --enable-gr-trellis     Stop if gr-trellis fails configuration
2000   --enable-gr-video-sdl   Stop if gr-video-sdl fails configuration
2001   --disable-sdltest       Do not try to compile and run a test SDL program
2002   --enable-gr-wxgui       Stop if gr-wxgui fails configuration
2003   --enable-gr-qtgui       Stop if gr-qtgui fails configuration
2004   --enable-gr-sounder     Stop if gr-sounder fails configuration
2005   --enable-gr-utils       Stop if gr-utils fails configuration
2006   --enable-gnuradio-examples
2007                           Stop if gnuradio-examples fails configuration
2008   --enable-grc            Stop if grc fails configuration
2009   --enable-docs           Stop if docs fails configuration
2010
2011 Optional Packages:
2012   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2013   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2014   --with-gprof            Turn on gprof profiling
2015   --with-prof             Turn on prof profiling
2016   --with-pic              try to use only PIC/non-PIC objects [default=use
2017                           both]
2018   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2019   --with-pythondir=DIR    python installation directory (cross-compiling)
2020                           [[default=$prefix/lib/python2.5/site-packages]]
2021   --with-md-cpu=ARCH      set machine dependent speedups (auto)
2022   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
2023   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
2024   --with-boost[=DIR]      use boost (default is yes) - it is possible to
2025                           specify the root directory for boost (optional)
2026   --with-boost-libdir=LIB_DIR
2027                           Force given directory for boost libraries. Note that
2028                           this will overwrite library path detection, so use
2029                           this parameter only if default library detection
2030                           fails and you know exactly where your boost
2031                           libraries are located.
2032   --with-boost-thread[=special-lib]
2033                           Use the thread library from
2034                           boost. It is possible to specify a certain library
2035                           to the linker. E.g.,
2036                           --with-boost-thread=boost_thread-gcc41-mt-1_35
2037   --with-boost-date-time[=special-lib]
2038                           Use the date_time library from
2039                           boost. It is possible to specify a certain library
2040                           to the linker. E.g.,
2041                           --with-boost-date-time=boost_date_time-gcc41-mt-1_35
2042   --with-boost-program-options[=special-lib]
2043                           Use the program_options library
2044                           from boost. It is possible to specify a certain
2045                           library to the linker. E.g.,
2046                           --with-boost-program-options=boost_program_options-gcc41-mt-1_35
2047   --with-gruel[=PATH]     Use package gruel if installed in PATH (if
2048                           specified) or PKG_CONFIG_PATH (if PATH not
2049                           specified); stop if gruel not found
2050   --with-omnithread[=PATH]
2051                           Use package omnithread if installed in PATH (if
2052                           specified) or PKG_CONFIG_PATH (if PATH not
2053                           specified); stop if omnithread not found
2054   --with-gnuradio-core[=PATH]
2055                           Use package gnuradio-core if installed in PATH (if
2056                           specified) or PKG_CONFIG_PATH (if PATH not
2057                           specified); stop if gnuradio-core not found
2058   --with-cblas=<lib>      use CBLAS library <lib>
2059   --with-pmt[=PATH]       Use package pmt if installed in PATH (if specified)
2060                           or PKG_CONFIG_PATH (if PATH not specified); stop if
2061                           pmt not found
2062   --with-mblock[=PATH]    Use package mblock if installed in PATH (if
2063                           specified) or PKG_CONFIG_PATH (if PATH not
2064                           specified); stop if mblock not found
2065   --with-usrp[=PATH]      Use package usrp if installed in PATH (if specified)
2066                           or PKG_CONFIG_PATH (if PATH not specified); stop if
2067                           usrp not found
2068   --with-fusb-tech=OS     Set fast USB technique (default=auto)
2069   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
2070   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
2071   --with-gr-wxgui[=PATH]  Use package gr-wxgui if installed in PATH (if
2072                           specified) or PKG_CONFIG_PATH (if PATH not
2073                           specified); stop if gr-wxgui not found
2074   --with-qwt-libdir=path  Prefix where QWT library is installed (optional)
2075   --with-qwt-incdir=path  Prefix where QWT include files are (optional)
2076   --with-qwt-lib=library  QWT library name (optional)
2077   --with-qwtplot3d-libdir=path  Prefix where QWTPLOT3D library is installed (optional)
2078   --with-qwtplot3d-incdir=path  Prefix where QWTPLOT3D include files are (optional)
2079   --with-qwtplot3d-lib=library  QWT Plot3D library name (optional)
2080
2081 Some influential environment variables:
2082   CC          C compiler command
2083   CFLAGS      C compiler flags
2084   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2085               nonstandard directory <lib dir>
2086   LIBS        libraries to pass to the linker, e.g. -l<library>
2087   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2088               you have headers in a nonstandard directory <include dir>
2089   CPP         C preprocessor
2090   CXX         C++ compiler command
2091   CXXFLAGS    C++ compiler flags
2092   CXXCPP      C++ preprocessor
2093   CCAS        assembler compiler command (defaults to CC)
2094   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2095   F77         Fortran 77 compiler command
2096   FFLAGS      Fortran 77 compiler flags
2097   PKG_CONFIG  path to pkg-config utility
2098   FFTW3F_CFLAGS
2099               C compiler flags for FFTW3F, overriding pkg-config
2100   FFTW3F_LIBS linker flags for FFTW3F, overriding pkg-config
2101   FFTW3F_INCLUDEDIR
2102               includedir for FFTW3F, overriding pkg-config
2103   CPPUNIT_CFLAGS
2104               C compiler flags for CPPUNIT, overriding pkg-config
2105   CPPUNIT_LIBS
2106               linker flags for CPPUNIT, overriding pkg-config
2107   CPPUNIT_INCLUDEDIR
2108               includedir for CPPUNIT, overriding pkg-config
2109   GSL_CFLAGS  C compiler flags for GSL, overriding pkg-config
2110   GSL_LIBS    linker flags for GSL, overriding pkg-config
2111   GSL_INCLUDEDIR
2112               includedir for GSL, overriding pkg-config
2113   USB_CFLAGS  C compiler flags for USB, overriding pkg-config
2114   USB_LIBS    linker flags for USB, overriding pkg-config
2115   USB_INCLUDEDIR
2116               includedir for USB, overriding pkg-config
2117   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2118   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2119   ALSA_INCLUDEDIR
2120               includedir for ALSA, overriding pkg-config
2121   JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
2122   JACK_LIBS   linker flags for JACK, overriding pkg-config
2123   JACK_INCLUDEDIR
2124               includedir for JACK, overriding pkg-config
2125   PORTAUDIO_CFLAGS
2126               C compiler flags for PORTAUDIO, overriding pkg-config
2127   PORTAUDIO_LIBS
2128               linker flags for PORTAUDIO, overriding pkg-config
2129   PORTAUDIO_INCLUDEDIR
2130               includedir for PORTAUDIO, overriding pkg-config
2131   SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
2132   SDL_LIBS    linker flags for SDL, overriding pkg-config
2133   SDL_INCLUDEDIR
2134               includedir for SDL, overriding pkg-config
2135   QTCORE_CFLAGS
2136               C compiler flags for QTCORE, overriding pkg-config
2137   QTCORE_LIBS linker flags for QTCORE, overriding pkg-config
2138   QTCORE_INCLUDEDIR
2139               includedir for QTCORE, overriding pkg-config
2140   QTGUI_CFLAGS
2141               C compiler flags for QTGUI, overriding pkg-config
2142   QTGUI_LIBS  linker flags for QTGUI, overriding pkg-config
2143   QTGUI_INCLUDEDIR
2144               includedir for QTGUI, overriding pkg-config
2145   QTOPENGL_CFLAGS
2146               C compiler flags for QTOPENGL, overriding pkg-config
2147   QTOPENGL_LIBS
2148               linker flags for QTOPENGL, overriding pkg-config
2149   QTOPENGL_INCLUDEDIR
2150               includedir for QTOPENGL, overriding pkg-config
2151
2152 Use these variables to override the choices made by `configure' or to help
2153 it to find libraries and programs with nonstandard names/locations.
2154
2155 Report bugs to the package provider.
2156 _ACEOF
2157 ac_status=$?
2158 fi
2159
2160 if test "$ac_init_help" = "recursive"; then
2161   # If there are subdirs, report their specific --help.
2162   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2163     test -d "$ac_dir" ||
2164       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2165       continue
2166     ac_builddir=.
2167
2168 case "$ac_dir" in
2169 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2170 *)
2171   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2172   # A ".." for each directory in $ac_dir_suffix.
2173   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2174   case $ac_top_builddir_sub in
2175   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2176   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2177   esac ;;
2178 esac
2179 ac_abs_top_builddir=$ac_pwd
2180 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2181 # for backward compatibility:
2182 ac_top_builddir=$ac_top_build_prefix
2183
2184 case $srcdir in
2185   .)  # We are building in place.
2186     ac_srcdir=.
2187     ac_top_srcdir=$ac_top_builddir_sub
2188     ac_abs_top_srcdir=$ac_pwd ;;
2189   [\\/]* | ?:[\\/]* )  # Absolute name.
2190     ac_srcdir=$srcdir$ac_dir_suffix;
2191     ac_top_srcdir=$srcdir
2192     ac_abs_top_srcdir=$srcdir ;;
2193   *) # Relative name.
2194     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2195     ac_top_srcdir=$ac_top_build_prefix$srcdir
2196     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2197 esac
2198 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2199
2200     cd "$ac_dir" || { ac_status=$?; continue; }
2201     # Check for guested configure.
2202     if test -f "$ac_srcdir/configure.gnu"; then
2203       echo &&
2204       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2205     elif test -f "$ac_srcdir/configure"; then
2206       echo &&
2207       $SHELL "$ac_srcdir/configure" --help=recursive
2208     else
2209       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2210     fi || ac_status=$?
2211     cd "$ac_pwd" || { ac_status=$?; break; }
2212   done
2213 fi
2214
2215 test -n "$ac_init_help" && exit $ac_status
2216 if $ac_init_version; then
2217   cat <<\_ACEOF
2218 configure
2219 generated by GNU Autoconf 2.65
2220
2221 Copyright (C) 2009 Free Software Foundation, Inc.
2222 This configure script is free software; the Free Software Foundation
2223 gives unlimited permission to copy, distribute and modify it.
2224 _ACEOF
2225   exit
2226 fi
2227
2228 ## ------------------------ ##
2229 ## Autoconf initialization. ##
2230 ## ------------------------ ##
2231
2232 # ac_fn_c_try_compile LINENO
2233 # --------------------------
2234 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2235 ac_fn_c_try_compile ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   rm -f conftest.$ac_objext
2239   if { { ac_try="$ac_compile"
2240 case "(($ac_try" in
2241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242   *) ac_try_echo=$ac_try;;
2243 esac
2244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 $as_echo "$ac_try_echo"; } >&5
2246   (eval "$ac_compile") 2>conftest.err
2247   ac_status=$?
2248   if test -s conftest.err; then
2249     grep -v '^ *+' conftest.err >conftest.er1
2250     cat conftest.er1 >&5
2251     mv -f conftest.er1 conftest.err
2252   fi
2253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254   test $ac_status = 0; } && {
2255          test -z "$ac_c_werror_flag" ||
2256          test ! -s conftest.err
2257        } && test -s conftest.$ac_objext; then :
2258   ac_retval=0
2259 else
2260   $as_echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2262
2263         ac_retval=1
2264 fi
2265   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266   as_fn_set_status $ac_retval
2267
2268 } # ac_fn_c_try_compile
2269
2270 # ac_fn_c_try_cpp LINENO
2271 # ----------------------
2272 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2273 ac_fn_c_try_cpp ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   if { { ac_try="$ac_cpp conftest.$ac_ext"
2277 case "(($ac_try" in
2278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279   *) ac_try_echo=$ac_try;;
2280 esac
2281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282 $as_echo "$ac_try_echo"; } >&5
2283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2284   ac_status=$?
2285   if test -s conftest.err; then
2286     grep -v '^ *+' conftest.err >conftest.er1
2287     cat conftest.er1 >&5
2288     mv -f conftest.er1 conftest.err
2289   fi
2290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291   test $ac_status = 0; } >/dev/null && {
2292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2293          test ! -s conftest.err
2294        }; then :
2295   ac_retval=0
2296 else
2297   $as_echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300     ac_retval=1
2301 fi
2302   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2303   as_fn_set_status $ac_retval
2304
2305 } # ac_fn_c_try_cpp
2306
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2311 # accordingly.
2312 ac_fn_c_check_header_mongrel ()
2313 {
2314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319   $as_echo_n "(cached) " >&6
2320 fi
2321 eval ac_res=\$$3
2322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324 else
2325   # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h.  */
2330 $4
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_header_compiler=yes
2335 else
2336   ac_header_compiler=no
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2341
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 #include <$2>
2348 _ACEOF
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350   ac_header_preproc=yes
2351 else
2352   ac_header_preproc=no
2353 fi
2354 rm -f conftest.err conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2357
2358 # So?  What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2360   yes:no: )
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365     ;;
2366   no:yes:* )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2377     ;;
2378 esac
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   eval "$3=\$ac_header_compiler"
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 fi
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391
2392 } # ac_fn_c_check_header_mongrel
2393
2394 # ac_fn_c_try_run LINENO
2395 # ----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2397 # that executables *can* be run.
2398 ac_fn_c_try_run ()
2399 {
2400   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401   if { { ac_try="$ac_link"
2402 case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408   (eval "$ac_link") 2>&5
2409   ac_status=$?
2410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2412   { { case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421   test $ac_status = 0; }; }; then :
2422   ac_retval=0
2423 else
2424   $as_echo "$as_me: program exited with status $ac_status" >&5
2425        $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428        ac_retval=$ac_status
2429 fi
2430   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432   as_fn_set_status $ac_retval
2433
2434 } # ac_fn_c_try_run
2435
2436 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2437 # -------------------------------------------------------
2438 # Tests whether HEADER exists and can be compiled using the include files in
2439 # INCLUDES, setting the cache variable VAR accordingly.
2440 ac_fn_c_check_header_compile ()
2441 {
2442   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2446   $as_echo_n "(cached) " >&6
2447 else
2448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h.  */
2450 $4
2451 #include <$2>
2452 _ACEOF
2453 if ac_fn_c_try_compile "$LINENO"; then :
2454   eval "$3=yes"
2455 else
2456   eval "$3=no"
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 eval ac_res=\$$3
2461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464
2465 } # ac_fn_c_check_header_compile
2466
2467 # ac_fn_c_try_link LINENO
2468 # -----------------------
2469 # Try to link conftest.$ac_ext, and return whether this succeeded.
2470 ac_fn_c_try_link ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   rm -f conftest.$ac_objext conftest$ac_exeext
2474   if { { ac_try="$ac_link"
2475 case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 $as_echo "$ac_try_echo"; } >&5
2481   (eval "$ac_link") 2>conftest.err
2482   ac_status=$?
2483   if test -s conftest.err; then
2484     grep -v '^ *+' conftest.err >conftest.er1
2485     cat conftest.er1 >&5
2486     mv -f conftest.er1 conftest.err
2487   fi
2488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489   test $ac_status = 0; } && {
2490          test -z "$ac_c_werror_flag" ||
2491          test ! -s conftest.err
2492        } && test -s conftest$ac_exeext && {
2493          test "$cross_compiling" = yes ||
2494          $as_test_x conftest$ac_exeext
2495        }; then :
2496   ac_retval=0
2497 else
2498   $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501         ac_retval=1
2502 fi
2503   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2504   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2505   # interfere with the next link command; also delete a directory that is
2506   # left behind by Apple's compiler.  We do this before executing the actions.
2507   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509   as_fn_set_status $ac_retval
2510
2511 } # ac_fn_c_try_link
2512
2513 # ac_fn_cxx_try_compile LINENO
2514 # ----------------------------
2515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2516 ac_fn_cxx_try_compile ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   rm -f conftest.$ac_objext
2520   if { { ac_try="$ac_compile"
2521 case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527   (eval "$ac_compile") 2>conftest.err
2528   ac_status=$?
2529   if test -s conftest.err; then
2530     grep -v '^ *+' conftest.err >conftest.er1
2531     cat conftest.er1 >&5
2532     mv -f conftest.er1 conftest.err
2533   fi
2534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535   test $ac_status = 0; } && {
2536          test -z "$ac_cxx_werror_flag" ||
2537          test ! -s conftest.err
2538        } && test -s conftest.$ac_objext; then :
2539   ac_retval=0
2540 else
2541   $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544         ac_retval=1
2545 fi
2546   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547   as_fn_set_status $ac_retval
2548
2549 } # ac_fn_cxx_try_compile
2550
2551 # ac_fn_cxx_try_cpp LINENO
2552 # ------------------------
2553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2554 ac_fn_cxx_try_cpp ()
2555 {
2556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557   if { { ac_try="$ac_cpp conftest.$ac_ext"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2565   ac_status=$?
2566   if test -s conftest.err; then
2567     grep -v '^ *+' conftest.err >conftest.er1
2568     cat conftest.er1 >&5
2569     mv -f conftest.er1 conftest.err
2570   fi
2571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572   test $ac_status = 0; } >/dev/null && {
2573          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2574          test ! -s conftest.err
2575        }; then :
2576   ac_retval=0
2577 else
2578   $as_echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581     ac_retval=1
2582 fi
2583   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584   as_fn_set_status $ac_retval
2585
2586 } # ac_fn_cxx_try_cpp
2587
2588 # ac_fn_c_check_func LINENO FUNC VAR
2589 # ----------------------------------
2590 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2591 ac_fn_c_check_func ()
2592 {
2593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h.  */
2601 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2603 #define $2 innocuous_$2
2604
2605 /* System header to define __stub macros and hopefully few prototypes,
2606     which can conflict with char $2 (); below.
2607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2608     <limits.h> exists even on freestanding compilers.  */
2609
2610 #ifdef __STDC__
2611 # include <limits.h>
2612 #else
2613 # include <assert.h>
2614 #endif
2615
2616 #undef $2
2617
2618 /* Override any GCC internal prototype to avoid an error.
2619    Use char because int might match the return type of a GCC
2620    builtin and then its argument prototype would still apply.  */
2621 #ifdef __cplusplus
2622 extern "C"
2623 #endif
2624 char $2 ();
2625 /* The GNU C library defines this for functions which it implements
2626     to always fail with ENOSYS.  Some functions are actually named
2627     something starting with __ and the normal name is an alias.  */
2628 #if defined __stub_$2 || defined __stub___$2
2629 choke me
2630 #endif
2631
2632 int
2633 main ()
2634 {
2635 return $2 ();
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 if ac_fn_c_try_link "$LINENO"; then :
2641   eval "$3=yes"
2642 else
2643   eval "$3=no"
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext \
2646     conftest$ac_exeext conftest.$ac_ext
2647 fi
2648 eval ac_res=\$$3
2649                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652
2653 } # ac_fn_c_check_func
2654
2655 # ac_fn_cxx_try_link LINENO
2656 # -------------------------
2657 # Try to link conftest.$ac_ext, and return whether this succeeded.
2658 ac_fn_cxx_try_link ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   rm -f conftest.$ac_objext conftest$ac_exeext
2662   if { { ac_try="$ac_link"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669   (eval "$ac_link") 2>conftest.err
2670   ac_status=$?
2671   if test -s conftest.err; then
2672     grep -v '^ *+' conftest.err >conftest.er1
2673     cat conftest.er1 >&5
2674     mv -f conftest.er1 conftest.err
2675   fi
2676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677   test $ac_status = 0; } && {
2678          test -z "$ac_cxx_werror_flag" ||
2679          test ! -s conftest.err
2680        } && test -s conftest$ac_exeext && {
2681          test "$cross_compiling" = yes ||
2682          $as_test_x conftest$ac_exeext
2683        }; then :
2684   ac_retval=0
2685 else
2686   $as_echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689         ac_retval=1
2690 fi
2691   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2692   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2693   # interfere with the next link command; also delete a directory that is
2694   # left behind by Apple's compiler.  We do this before executing the actions.
2695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2696   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2697   as_fn_set_status $ac_retval
2698
2699 } # ac_fn_cxx_try_link
2700
2701 # ac_fn_f77_try_compile LINENO
2702 # ----------------------------
2703 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2704 ac_fn_f77_try_compile ()
2705 {
2706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707   rm -f conftest.$ac_objext
2708   if { { ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715   (eval "$ac_compile") 2>conftest.err
2716   ac_status=$?
2717   if test -s conftest.err; then
2718     grep -v '^ *+' conftest.err >conftest.er1
2719     cat conftest.er1 >&5
2720     mv -f conftest.er1 conftest.err
2721   fi
2722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723   test $ac_status = 0; } && {
2724          test -z "$ac_f77_werror_flag" ||
2725          test ! -s conftest.err
2726        } && test -s conftest.$ac_objext; then :
2727   ac_retval=0
2728 else
2729   $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732         ac_retval=1
2733 fi
2734   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2735   as_fn_set_status $ac_retval
2736
2737 } # ac_fn_f77_try_compile
2738
2739 # ac_fn_f77_try_link LINENO
2740 # -------------------------
2741 # Try to link conftest.$ac_ext, and return whether this succeeded.
2742 ac_fn_f77_try_link ()
2743 {
2744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745   rm -f conftest.$ac_objext conftest$ac_exeext
2746   if { { ac_try="$ac_link"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752 $as_echo "$ac_try_echo"; } >&5
2753   (eval "$ac_link") 2>conftest.err
2754   ac_status=$?
2755   if test -s conftest.err; then
2756     grep -v '^ *+' conftest.err >conftest.er1
2757     cat conftest.er1 >&5
2758     mv -f conftest.er1 conftest.err
2759   fi
2760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761   test $ac_status = 0; } && {
2762          test -z "$ac_f77_werror_flag" ||
2763          test ! -s conftest.err
2764        } && test -s conftest$ac_exeext && {
2765          test "$cross_compiling" = yes ||
2766          $as_test_x conftest$ac_exeext
2767        }; then :
2768   ac_retval=0
2769 else
2770   $as_echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773         ac_retval=1
2774 fi
2775   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2776   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2777   # interfere with the next link command; also delete a directory that is
2778   # left behind by Apple's compiler.  We do this before executing the actions.
2779   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2780   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2781   as_fn_set_status $ac_retval
2782
2783 } # ac_fn_f77_try_link
2784
2785 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2786 # -------------------------------------------
2787 # Tests whether TYPE exists after having included INCLUDES, setting cache
2788 # variable VAR accordingly.
2789 ac_fn_c_check_type ()
2790 {
2791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2793 $as_echo_n "checking for $2... " >&6; }
2794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   eval "$3=no"
2798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h.  */
2800 $4
2801 int
2802 main ()
2803 {
2804 if (sizeof ($2))
2805          return 0;
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 if ac_fn_c_try_compile "$LINENO"; then :
2811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h.  */
2813 $4
2814 int
2815 main ()
2816 {
2817 if (sizeof (($2)))
2818             return 0;
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 if ac_fn_c_try_compile "$LINENO"; then :
2824
2825 else
2826   eval "$3=yes"
2827 fi
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 fi
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 fi
2832 eval ac_res=\$$3
2833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2836
2837 } # ac_fn_c_check_type
2838
2839 # ac_fn_c_check_decl LINENO SYMBOL VAR
2840 # ------------------------------------
2841 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2842 ac_fn_c_check_decl ()
2843 {
2844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2846 $as_echo_n "checking whether $2 is declared... " >&6; }
2847 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2848   $as_echo_n "(cached) " >&6
2849 else
2850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h.  */
2852 $4
2853 int
2854 main ()
2855 {
2856 #ifndef $2
2857   (void) $2;
2858 #endif
2859
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865   eval "$3=yes"
2866 else
2867   eval "$3=no"
2868 fi
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 fi
2871 eval ac_res=\$$3
2872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2875
2876 } # ac_fn_c_check_decl
2877
2878 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2879 # ----------------------------------------------------
2880 # Tries to find if the field MEMBER exists in type AGGR, after including
2881 # INCLUDES, setting cache variable VAR accordingly.
2882 ac_fn_c_check_member ()
2883 {
2884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2886 $as_echo_n "checking for $2.$3... " >&6; }
2887 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h.  */
2892 $5
2893 int
2894 main ()
2895 {
2896 static $2 ac_aggr;
2897 if (ac_aggr.$3)
2898 return 0;
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 if ac_fn_c_try_compile "$LINENO"; then :
2904   eval "$4=yes"
2905 else
2906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907 /* end confdefs.h.  */
2908 $5
2909 int
2910 main ()
2911 {
2912 static $2 ac_aggr;
2913 if (sizeof ac_aggr.$3)
2914 return 0;
2915   ;
2916   return 0;
2917 }
2918 _ACEOF
2919 if ac_fn_c_try_compile "$LINENO"; then :
2920   eval "$4=yes"
2921 else
2922   eval "$4=no"
2923 fi
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 fi
2926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 fi
2928 eval ac_res=\$$4
2929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2932
2933 } # ac_fn_c_check_member
2934
2935 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2936 # ---------------------------------------------------------
2937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2938 # the include files in INCLUDES and setting the cache variable VAR
2939 # accordingly.
2940 ac_fn_cxx_check_header_mongrel ()
2941 {
2942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2945 $as_echo_n "checking for $2... " >&6; }
2946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2947   $as_echo_n "(cached) " >&6
2948 fi
2949 eval ac_res=\$$3
2950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2951 $as_echo "$ac_res" >&6; }
2952 else
2953   # Is the header compilable?
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2955 $as_echo_n "checking $2 usability... " >&6; }
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h.  */
2958 $4
2959 #include <$2>
2960 _ACEOF
2961 if ac_fn_cxx_try_compile "$LINENO"; then :
2962   ac_header_compiler=yes
2963 else
2964   ac_header_compiler=no
2965 fi
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2968 $as_echo "$ac_header_compiler" >&6; }
2969
2970 # Is the header present?
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2972 $as_echo_n "checking $2 presence... " >&6; }
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h.  */
2975 #include <$2>
2976 _ACEOF
2977 if ac_fn_cxx_try_cpp "$LINENO"; then :
2978   ac_header_preproc=yes
2979 else
2980   ac_header_preproc=no
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2984 $as_echo "$ac_header_preproc" >&6; }
2985
2986 # So?  What about this header?
2987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2988   yes:no: )
2989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2993     ;;
2994   no:yes:* )
2995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2998 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3002 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3005     ;;
3006 esac
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3008 $as_echo_n "checking for $2... " >&6; }
3009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   eval "$3=\$ac_header_compiler"
3013 fi
3014 eval ac_res=\$$3
3015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3016 $as_echo "$ac_res" >&6; }
3017 fi
3018   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3019
3020 } # ac_fn_cxx_check_header_mongrel
3021 cat >config.log <<_ACEOF
3022 This file contains any messages produced by compilers while
3023 running configure, to aid debugging if configure makes a mistake.
3024
3025 It was created by $as_me, which was
3026 generated by GNU Autoconf 2.65.  Invocation command line was
3027
3028   $ $0 $@
3029
3030 _ACEOF
3031 exec 5>>config.log
3032 {
3033 cat <<_ASUNAME
3034 ## --------- ##
3035 ## Platform. ##
3036 ## --------- ##
3037
3038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043
3044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3045 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3046
3047 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3048 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3050 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3051 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3052 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3053 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3054
3055 _ASUNAME
3056
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     $as_echo "PATH: $as_dir"
3063   done
3064 IFS=$as_save_IFS
3065
3066 } >&5
3067
3068 cat >&5 <<_ACEOF
3069
3070
3071 ## ----------- ##
3072 ## Core tests. ##
3073 ## ----------- ##
3074
3075 _ACEOF
3076
3077
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3083 ac_configure_args=
3084 ac_configure_args0=
3085 ac_configure_args1=
3086 ac_must_keep_next=false
3087 for ac_pass in 1 2
3088 do
3089   for ac_arg
3090   do
3091     case $ac_arg in
3092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3094     | -silent | --silent | --silen | --sile | --sil)
3095       continue ;;
3096     *\'*)
3097       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3098     esac
3099     case $ac_pass in
3100     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3101     2)
3102       as_fn_append ac_configure_args1 " '$ac_arg'"
3103       if test $ac_must_keep_next = true; then
3104         ac_must_keep_next=false # Got value, back to normal.
3105       else
3106         case $ac_arg in
3107           *=* | --config-cache | -C | -disable-* | --disable-* \
3108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3110           | -with-* | --with-* | -without-* | --without-* | --x)
3111             case "$ac_configure_args0 " in
3112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3113             esac
3114             ;;
3115           -* ) ac_must_keep_next=true ;;
3116         esac
3117       fi
3118       as_fn_append ac_configure_args " '$ac_arg'"
3119       ;;
3120     esac
3121   done
3122 done
3123 { ac_configure_args0=; unset ac_configure_args0;}
3124 { ac_configure_args1=; unset ac_configure_args1;}
3125
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log.  We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3132   # Save into config.log some information that might help in debugging.
3133   {
3134     echo
3135
3136     cat <<\_ASBOX
3137 ## ---------------- ##
3138 ## Cache variables. ##
3139 ## ---------------- ##
3140 _ASBOX
3141     echo
3142     # The following way of writing the cache mishandles newlines in values,
3143 (
3144   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145     eval ac_val=\$$ac_var
3146     case $ac_val in #(
3147     *${as_nl}*)
3148       case $ac_var in #(
3149       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3151       esac
3152       case $ac_var in #(
3153       _ | IFS | as_nl) ;; #(
3154       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155       *) { eval $ac_var=; unset $ac_var;} ;;
3156       esac ;;
3157     esac
3158   done
3159   (set) 2>&1 |
3160     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161     *${as_nl}ac_space=\ *)
3162       sed -n \
3163         "s/'\''/'\''\\\\'\'''\''/g;
3164           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3165       ;; #(
3166     *)
3167       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168       ;;
3169     esac |
3170     sort
3171 )
3172     echo
3173
3174     cat <<\_ASBOX
3175 ## ----------------- ##
3176 ## Output variables. ##
3177 ## ----------------- ##
3178 _ASBOX
3179     echo
3180     for ac_var in $ac_subst_vars
3181     do
3182       eval ac_val=\$$ac_var
3183       case $ac_val in
3184       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3185       esac
3186       $as_echo "$ac_var='\''$ac_val'\''"
3187     done | sort
3188     echo
3189
3190     if test -n "$ac_subst_files"; then
3191       cat <<\_ASBOX
3192 ## ------------------- ##
3193 ## File substitutions. ##
3194 ## ------------------- ##
3195 _ASBOX
3196       echo
3197       for ac_var in $ac_subst_files
3198       do
3199         eval ac_val=\$$ac_var
3200         case $ac_val in
3201         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202         esac
3203         $as_echo "$ac_var='\''$ac_val'\''"
3204       done | sort
3205       echo
3206     fi
3207
3208     if test -s confdefs.h; then
3209       cat <<\_ASBOX
3210 ## ----------- ##
3211 ## confdefs.h. ##
3212 ## ----------- ##
3213 _ASBOX
3214       echo
3215       cat confdefs.h
3216       echo
3217     fi
3218     test "$ac_signal" != 0 &&
3219       $as_echo "$as_me: caught signal $ac_signal"
3220     $as_echo "$as_me: exit $exit_status"
3221   } >&5
3222   rm -f core *.core core.conftest.* &&
3223     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3224     exit $exit_status
3225 ' 0
3226 for ac_signal in 1 2 13 15; do
3227   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3228 done
3229 ac_signal=0
3230
3231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3232 rm -f -r conftest* confdefs.h
3233
3234 $as_echo "/* confdefs.h */" > confdefs.h
3235
3236 # Predefined preprocessor variables.
3237
3238 cat >>confdefs.h <<_ACEOF
3239 #define PACKAGE_NAME "$PACKAGE_NAME"
3240 _ACEOF
3241
3242 cat >>confdefs.h <<_ACEOF
3243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3244 _ACEOF
3245
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3248 _ACEOF
3249
3250 cat >>confdefs.h <<_ACEOF
3251 #define PACKAGE_STRING "$PACKAGE_STRING"
3252 _ACEOF
3253
3254 cat >>confdefs.h <<_ACEOF
3255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3256 _ACEOF
3257
3258 cat >>confdefs.h <<_ACEOF
3259 #define PACKAGE_URL "$PACKAGE_URL"
3260 _ACEOF
3261
3262
3263 # Let the site file select an alternate cache file if it wants to.
3264 # Prefer an explicitly selected file to automatically selected ones.
3265 ac_site_file1=NONE
3266 ac_site_file2=NONE
3267 if test -n "$CONFIG_SITE"; then
3268   ac_site_file1=$CONFIG_SITE
3269 elif test "x$prefix" != xNONE; then
3270   ac_site_file1=$prefix/share/config.site
3271   ac_site_file2=$prefix/etc/config.site
3272 else
3273   ac_site_file1=$ac_default_prefix/share/config.site
3274   ac_site_file2=$ac_default_prefix/etc/config.site
3275 fi
3276 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3277 do
3278   test "x$ac_site_file" = xNONE && continue
3279   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3280     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3282     sed 's/^/| /' "$ac_site_file" >&5
3283     . "$ac_site_file"
3284   fi
3285 done
3286
3287 if test -r "$cache_file"; then
3288   # Some versions of bash will fail to source /dev/null (special files
3289   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3290   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3293     case $cache_file in
3294       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3295       *)                      . "./$cache_file";;
3296     esac
3297   fi
3298 else
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3301   >$cache_file
3302 fi
3303
3304 # Check that the precious variables saved in the cache have kept the same
3305 # value.
3306 ac_cache_corrupted=false
3307 for ac_var in $ac_precious_vars; do
3308   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3309   eval ac_new_set=\$ac_env_${ac_var}_set
3310   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3311   eval ac_new_val=\$ac_env_${ac_var}_value
3312   case $ac_old_set,$ac_new_set in
3313     set,)
3314       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3316       ac_cache_corrupted=: ;;
3317     ,set)
3318       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3320       ac_cache_corrupted=: ;;
3321     ,);;
3322     *)
3323       if test "x$ac_old_val" != "x$ac_new_val"; then
3324         # differences in whitespace do not lead to failure.
3325         ac_old_val_w=`echo x $ac_old_val`
3326         ac_new_val_w=`echo x $ac_new_val`
3327         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3328           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3330           ac_cache_corrupted=:
3331         else
3332           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3334           eval $ac_var=\$ac_old_val
3335         fi
3336         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3337 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3338         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3339 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3340       fi;;
3341   esac
3342   # Pass precious variables to config.status.
3343   if test "$ac_new_set" = set; then
3344     case $ac_new_val in
3345     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3346     *) ac_arg=$ac_var=$ac_new_val ;;
3347     esac
3348     case " $ac_configure_args " in
3349       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3350       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3351     esac
3352   fi
3353 done
3354 if $ac_cache_corrupted; then
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3359   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3360 fi
3361 ## -------------------- ##
3362 ## Main body of script. ##
3363 ## -------------------- ##
3364
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372
3373 ac_config_headers="$ac_config_headers config.h"
3374
3375
3376
3377 ac_aux_dir=
3378 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3379   for ac_t in install-sh install.sh shtool; do
3380     if test -f "$ac_dir/$ac_t"; then
3381       ac_aux_dir=$ac_dir
3382       ac_install_sh="$ac_aux_dir/$ac_t -c"
3383       break 2
3384     fi
3385   done
3386 done
3387 if test -z "$ac_aux_dir"; then
3388   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3389 fi
3390
3391 # These three variables are undocumented and unsupported,
3392 # and are intended to be withdrawn in a future Autoconf release.
3393 # They can cause serious problems if a builder's source tree is in a directory
3394 # whose full name contains unusual characters.
3395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3397 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3398
3399
3400 # Make sure we can run config.sub.
3401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3402   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3405 $as_echo_n "checking build system type... " >&6; }
3406 if test "${ac_cv_build+set}" = set; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   ac_build_alias=$build_alias
3410 test "x$ac_build_alias" = x &&
3411   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3412 test "x$ac_build_alias" = x &&
3413   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3414 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3415   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3416
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3419 $as_echo "$ac_cv_build" >&6; }
3420 case $ac_cv_build in
3421 *-*-*) ;;
3422 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3423 esac
3424 build=$ac_cv_build
3425 ac_save_IFS=$IFS; IFS='-'
3426 set x $ac_cv_build
3427 shift
3428 build_cpu=$1
3429 build_vendor=$2
3430 shift; shift
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3433 build_os=$*
3434 IFS=$ac_save_IFS
3435 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3436
3437
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3439 $as_echo_n "checking host system type... " >&6; }
3440 if test "${ac_cv_host+set}" = set; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   if test "x$host_alias" = x; then
3444   ac_cv_host=$ac_cv_build
3445 else
3446   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3447     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 fi
3449
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3452 $as_echo "$ac_cv_host" >&6; }
3453 case $ac_cv_host in
3454 *-*-*) ;;
3455 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3456 esac
3457 host=$ac_cv_host
3458 ac_save_IFS=$IFS; IFS='-'
3459 set x $ac_cv_host
3460 shift
3461 host_cpu=$1
3462 host_vendor=$2
3463 shift; shift
3464 # Remember, the first character of IFS is used to create $*,
3465 # except with old shells:
3466 host_os=$*
3467 IFS=$ac_save_IFS
3468 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3469
3470
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3472 $as_echo_n "checking target system type... " >&6; }
3473 if test "${ac_cv_target+set}" = set; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   if test "x$target_alias" = x; then
3477   ac_cv_target=$ac_cv_host
3478 else
3479   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3480     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3481 fi
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3485 $as_echo "$ac_cv_target" >&6; }
3486 case $ac_cv_target in
3487 *-*-*) ;;
3488 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3489 esac
3490 target=$ac_cv_target
3491 ac_save_IFS=$IFS; IFS='-'
3492 set x $ac_cv_target
3493 shift
3494 target_cpu=$1
3495 target_vendor=$2
3496 shift; shift
3497 # Remember, the first character of IFS is used to create $*,
3498 # except with old shells:
3499 target_os=$*
3500 IFS=$ac_save_IFS
3501 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3502
3503
3504 # The aliases save the names the user supplied, while $host etc.
3505 # will get canonicalized.
3506 test -n "$target_alias" &&
3507   test "$program_prefix$program_suffix$program_transform_name" = \
3508     NONENONEs,x,x, &&
3509   program_prefix=${target_alias}-
3510
3511 am__api_version='1.11'
3512
3513 # Find a good install program.  We prefer a C program (faster),
3514 # so one script is as good as another.  But avoid the broken or
3515 # incompatible versions:
3516 # SysV /etc/install, /usr/sbin/install
3517 # SunOS /usr/etc/install
3518 # IRIX /sbin/install
3519 # AIX /bin/install
3520 # AmigaOS /C/install, which installs bootblocks on floppy discs
3521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3524 # OS/2's system install, which has a completely different semantic
3525 # ./install, which can be erroneously created by make from ./install.sh.
3526 # Reject install programs that cannot install multiple files.
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3528 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3529 if test -z "$INSTALL"; then
3530 if test "${ac_cv_path_install+set}" = set; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     # Account for people who put trailing slashes in PATH elements.
3539 case $as_dir/ in #((
3540   ./ | .// | /[cC]/* | \
3541   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3542   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3543   /usr/ucb/* ) ;;
3544   *)
3545     # OSF1 and SCO ODT 3.0 have their own names for install.
3546     # Don't use installbsd from OSF since it installs stuff as root
3547     # by default.
3548     for ac_prog in ginstall scoinst install; do
3549       for ac_exec_ext in '' $ac_executable_extensions; do
3550         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3551           if test $ac_prog = install &&
3552             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3553             # AIX install.  It has an incompatible calling convention.
3554             :
3555           elif test $ac_prog = install &&
3556             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3557             # program-specific install script used by HP pwplus--don't use.
3558             :
3559           else
3560             rm -rf conftest.one conftest.two conftest.dir
3561             echo one > conftest.one
3562             echo two > conftest.two
3563             mkdir conftest.dir
3564             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3565               test -s conftest.one && test -s conftest.two &&
3566               test -s conftest.dir/conftest.one &&
3567               test -s conftest.dir/conftest.two
3568             then
3569               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3570               break 3
3571             fi
3572           fi
3573         fi
3574       done
3575     done
3576     ;;
3577 esac
3578
3579   done
3580 IFS=$as_save_IFS
3581
3582 rm -rf conftest.one conftest.two conftest.dir
3583
3584 fi
3585   if test "${ac_cv_path_install+set}" = set; then
3586     INSTALL=$ac_cv_path_install
3587   else
3588     # As a last resort, use the slow shell script.  Don't cache a
3589     # value for INSTALL within a source directory, because that will
3590     # break other packages using the cache if that directory is
3591     # removed, or if the value is a relative name.
3592     INSTALL=$ac_install_sh
3593   fi
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3596 $as_echo "$INSTALL" >&6; }
3597
3598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3599 # It thinks the first close brace ends the variable substitution.
3600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3601
3602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3603
3604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3607 $as_echo_n "checking whether build environment is sane... " >&6; }
3608 # Just in case
3609 sleep 1
3610 echo timestamp > conftest.file
3611 # Reject unsafe characters in $srcdir or the absolute working directory
3612 # name.  Accept space and tab only in the latter.
3613 am_lf='
3614 '
3615 case `pwd` in
3616   *[\\\"\#\$\&\'\`$am_lf]*)
3617     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3618 esac
3619 case $srcdir in
3620   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3621     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3622 esac
3623
3624 # Do `set' in a subshell so we don't clobber the current shell's
3625 # arguments.  Must try -L first in case configure is actually a
3626 # symlink; some systems play weird games with the mod time of symlinks
3627 # (eg FreeBSD returns the mod time of the symlink's containing
3628 # directory).
3629 if (
3630    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3631    if test "$*" = "X"; then
3632       # -L didn't work.
3633       set X `ls -t "$srcdir/configure" conftest.file`
3634    fi
3635    rm -f conftest.file
3636    if test "$*" != "X $srcdir/configure conftest.file" \
3637       && test "$*" != "X conftest.file $srcdir/configure"; then
3638
3639       # If neither matched, then we have a broken ls.  This can happen
3640       # if, for instance, CONFIG_SHELL is bash and it inherits a
3641       # broken ls alias from the environment.  This has actually
3642       # happened.  Such a system could not be considered "sane".
3643       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3644 alias in your environment" "$LINENO" 5
3645    fi
3646
3647    test "$2" = conftest.file
3648    )
3649 then
3650    # Ok.
3651    :
3652 else
3653    as_fn_error "newly created file is older than distributed files!
3654 Check your system clock" "$LINENO" 5
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 $as_echo "yes" >&6; }
3658 test "$program_prefix" != NONE &&
3659   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3660 # Use a double $ so make ignores it.
3661 test "$program_suffix" != NONE &&
3662   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3663 # Double any \ or $.
3664 # By default was `s,x,x', remove it if useless.
3665 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3666 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3667
3668 # expand $ac_aux_dir to an absolute path
3669 am_aux_dir=`cd $ac_aux_dir && pwd`
3670
3671 if test x"${MISSING+set}" != xset; then
3672   case $am_aux_dir in
3673   *\ * | *\     *)
3674     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3675   *)
3676     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3677   esac
3678 fi
3679 # Use eval to expand $SHELL
3680 if eval "$MISSING --run true"; then
3681   am_missing_run="$MISSING --run "
3682 else
3683   am_missing_run=
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3685 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3686 fi
3687
3688 if test x"${install_sh}" != xset; then
3689   case $am_aux_dir in
3690   *\ * | *\     *)
3691     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3692   *)
3693     install_sh="\${SHELL} $am_aux_dir/install-sh"
3694   esac
3695 fi
3696
3697 # Installed binaries are usually stripped using `strip' when the user
3698 # run `make install-strip'.  However `strip' might not be the right
3699 # tool to use in cross-compilation environments, therefore Automake
3700 # will honor the `STRIP' environment variable to overrule this program.
3701 if test "$cross_compiling" != no; then
3702   if test -n "$ac_tool_prefix"; then
3703   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}strip; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_STRIP+set}" = set; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -n "$STRIP"; then
3711   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_exec_ext in '' $ac_executable_extensions; do
3719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722     break 2
3723   fi
3724 done
3725   done
3726 IFS=$as_save_IFS
3727
3728 fi
3729 fi
3730 STRIP=$ac_cv_prog_STRIP
3731 if test -n "$STRIP"; then
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3733 $as_echo "$STRIP" >&6; }
3734 else
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 fi
3738
3739
3740 fi
3741 if test -z "$ac_cv_prog_STRIP"; then
3742   ac_ct_STRIP=$STRIP
3743   # Extract the first word of "strip", so it can be a program name with args.
3744 set dummy strip; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$ac_ct_STRIP"; then
3751   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760     ac_cv_prog_ac_ct_STRIP="strip"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3771 if test -n "$ac_ct_STRIP"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3773 $as_echo "$ac_ct_STRIP" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779   if test "x$ac_ct_STRIP" = x; then
3780     STRIP=":"
3781   else
3782     case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788     STRIP=$ac_ct_STRIP
3789   fi
3790 else
3791   STRIP="$ac_cv_prog_STRIP"
3792 fi
3793
3794 fi
3795 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3798 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3799 if test -z "$MKDIR_P"; then
3800   if test "${ac_cv_path_mkdir+set}" = set; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808     for ac_prog in mkdir gmkdir; do
3809          for ac_exec_ext in '' $ac_executable_extensions; do
3810            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3811            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3812              'mkdir (GNU coreutils) '* | \
3813              'mkdir (coreutils) '* | \
3814              'mkdir (fileutils) '4.1*)
3815                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3816                break 3;;
3817            esac
3818          done
3819        done
3820   done
3821 IFS=$as_save_IFS
3822
3823 fi
3824
3825   test -d ./--version && rmdir ./--version
3826   if test "${ac_cv_path_mkdir+set}" = set; then
3827     MKDIR_P="$ac_cv_path_mkdir -p"
3828   else
3829     # As a last resort, use the slow shell script.  Don't cache a
3830     # value for MKDIR_P within a source directory, because that will
3831     # break other packages using the cache if that directory is
3832     # removed, or if the value is a relative name.
3833     MKDIR_P="$ac_install_sh -d"
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3837 $as_echo "$MKDIR_P" >&6; }
3838
3839 mkdir_p="$MKDIR_P"
3840 case $mkdir_p in
3841   [\\/$]* | ?:[\\/]*) ;;
3842   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3843 esac
3844
3845 for ac_prog in gawk mawk nawk awk
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_AWK+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -n "$AWK"; then
3855   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864     ac_cv_prog_AWK="$ac_prog"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 AWK=$ac_cv_prog_AWK
3875 if test -n "$AWK"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3877 $as_echo "$AWK" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884   test -n "$AWK" && break
3885 done
3886
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3888 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3889 set x ${MAKE-make}
3890 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3891 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   cat >conftest.make <<\_ACEOF
3895 SHELL = /bin/sh
3896 all:
3897         @echo '@@@%%%=$(MAKE)=@@@%%%'
3898 _ACEOF
3899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3901   *@@@%%%=?*=@@@%%%*)
3902     eval ac_cv_prog_make_${ac_make}_set=yes;;
3903   *)
3904     eval ac_cv_prog_make_${ac_make}_set=no;;
3905 esac
3906 rm -f conftest.make
3907 fi
3908 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911   SET_MAKE=
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915   SET_MAKE="MAKE=${MAKE-make}"
3916 fi
3917
3918 rm -rf .tst 2>/dev/null
3919 mkdir .tst 2>/dev/null
3920 if test -d .tst; then
3921   am__leading_dot=.
3922 else
3923   am__leading_dot=_
3924 fi
3925 rmdir .tst 2>/dev/null
3926
3927 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3928   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3929   # is not polluted with repeated "-I."
3930   am__isrc=' -I$(srcdir)'
3931   # test to see if srcdir already configured
3932   if test -f $srcdir/config.status; then
3933     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3934   fi
3935 fi
3936
3937 # test whether we have cygpath
3938 if test -z "$CYGPATH_W"; then
3939   if (cygpath --version) >/dev/null 2>/dev/null; then
3940     CYGPATH_W='cygpath -w'
3941   else
3942     CYGPATH_W=echo
3943   fi
3944 fi
3945
3946
3947 # Define the identity of the package.
3948  PACKAGE=gnuradio
3949  VERSION=3.2.2
3950
3951
3952 cat >>confdefs.h <<_ACEOF
3953 #define PACKAGE "$PACKAGE"
3954 _ACEOF
3955
3956
3957 cat >>confdefs.h <<_ACEOF
3958 #define VERSION "$VERSION"
3959 _ACEOF
3960
3961 # Some tools Automake needs.
3962
3963 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3964
3965
3966 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3967
3968
3969 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3970
3971
3972 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3973
3974
3975 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3976
3977 # We need awk for the "check" target.  The system "awk" is bad on
3978 # some platforms.
3979 # Always define AMTAR for backward compatibility.
3980
3981 AMTAR=${AMTAR-"${am_missing_run}tar"}
3982
3983 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3984
3985
3986
3987
3988
3989
3990 DEFINES=""
3991
3992
3993 if test -n "${CFLAGS}"; then
3994   user_set_cflags=yes
3995 fi
3996 if test -n "${CXXFLAGS}"; then
3997   user_set_cxxflags=yes
3998 fi
3999
4000
4001 DEPDIR="${am__leading_dot}deps"
4002
4003 ac_config_commands="$ac_config_commands depfiles"
4004
4005
4006 am_make=${MAKE-make}
4007 cat > confinc << 'END'
4008 am__doit:
4009         @echo this is the am__doit target
4010 .PHONY: am__doit
4011 END
4012 # If we don't find an include directive, just comment out the code.
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4014 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4015 am__include="#"
4016 am__quote=
4017 _am_result=none
4018 # First try GNU make style include.
4019 echo "include confinc" > confmf
4020 # Ignore all kinds of additional output from `make'.
4021 case `$am_make -s -f confmf 2> /dev/null` in #(
4022 *the\ am__doit\ target*)
4023   am__include=include
4024   am__quote=
4025   _am_result=GNU
4026   ;;
4027 esac
4028 # Now try BSD make style include.
4029 if test "$am__include" = "#"; then
4030    echo '.include "confinc"' > confmf
4031    case `$am_make -s -f confmf 2> /dev/null` in #(
4032    *the\ am__doit\ target*)
4033      am__include=.include
4034      am__quote="\""
4035      _am_result=BSD
4036      ;;
4037    esac
4038 fi
4039
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4042 $as_echo "$_am_result" >&6; }
4043 rm -f confinc confmf
4044
4045 # Check whether --enable-dependency-tracking was given.
4046 if test "${enable_dependency_tracking+set}" = set; then :
4047   enableval=$enable_dependency_tracking;
4048 fi
4049
4050 if test "x$enable_dependency_tracking" != xno; then
4051   am_depcomp="$ac_aux_dir/depcomp"
4052   AMDEPBACKSLASH='\'
4053 fi
4054  if test "x$enable_dependency_tracking" != xno; then
4055   AMDEP_TRUE=
4056   AMDEP_FALSE='#'
4057 else
4058   AMDEP_TRUE='#'
4059   AMDEP_FALSE=
4060 fi
4061
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 if test -n "$ac_tool_prefix"; then
4069   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if test "${ac_cv_prog_CC+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   if test -n "$CC"; then
4077   ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091   done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$ac_cv_prog_CC"; then
4108   ac_ct_CC=$CC
4109   # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test -n "$ac_ct_CC"; then
4117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     ac_cv_prog_ac_ct_CC="gcc"
4127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131   done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4139 $as_echo "$ac_ct_CC" >&6; }
4140 else
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4143 fi
4144
4145   if test "x$ac_ct_CC" = x; then
4146     CC=""
4147   else
4148     case $cross_compiling:$ac_tool_warned in
4149 yes:)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4152 ac_tool_warned=yes ;;
4153 esac
4154     CC=$ac_ct_CC
4155   fi
4156 else
4157   CC="$ac_cv_prog_CC"
4158 fi
4159
4160 if test -z "$CC"; then
4161           if test -n "$ac_tool_prefix"; then
4162     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_CC+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   if test -n "$CC"; then
4170   ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177     for ac_exec_ext in '' $ac_executable_extensions; do
4178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179     ac_cv_prog_CC="${ac_tool_prefix}cc"
4180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184   done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 $as_echo "$CC" >&6; }
4193 else
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198
4199   fi
4200 fi
4201 if test -z "$CC"; then
4202   # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_CC+set}" = set; then :
4207   $as_echo_n "(cached) " >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212   ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221        ac_prog_rejected=yes
4222        continue
4223      fi
4224     ac_cv_prog_CC="cc"
4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229   done
4230 IFS=$as_save_IFS
4231
4232 if test $ac_prog_rejected = yes; then
4233   # We found a bogon in the path, so make sure we never use it.
4234   set dummy $ac_cv_prog_CC
4235   shift
4236   if test $# != 0; then
4237     # We chose a different compiler from the bogus one.
4238     # However, it has the same basename, so the bogon will be chosen
4239     # first if we set CC to just the basename; use the full file name.
4240     shift
4241     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4242   fi
4243 fi
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256 fi
4257 if test -z "$CC"; then
4258   if test -n "$ac_tool_prefix"; then
4259   for ac_prog in cl.exe
4260   do
4261     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if test "${ac_cv_prog_CC+set}" = set; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268   if test -n "$CC"; then
4269   ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276     for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283   done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4292 else
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296
4297
4298     test -n "$CC" && break
4299   done
4300 fi
4301 if test -z "$CC"; then
4302   ac_ct_CC=$CC
4303   for ac_prog in cl.exe
4304 do
4305   # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test -n "$ac_ct_CC"; then
4313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     ac_cv_prog_ac_ct_CC="$ac_prog"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4333 if test -n "$ac_ct_CC"; then
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4335 $as_echo "$ac_ct_CC" >&6; }
4336 else
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342   test -n "$ac_ct_CC" && break
4343 done
4344
4345   if test "x$ac_ct_CC" = x; then
4346     CC=""
4347   else
4348     case $cross_compiling:$ac_tool_warned in
4349 yes:)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4353 esac
4354     CC=$ac_ct_CC
4355   fi
4356 fi
4357
4358 fi
4359
4360
4361 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error "no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details." "$LINENO" 5; }
4365
4366 # Provide some information about the compiler.
4367 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4368 set X $ac_compile
4369 ac_compiler=$2
4370 for ac_option in --version -v -V -qversion; do
4371   { { ac_try="$ac_compiler $ac_option >&5"
4372 case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4379   ac_status=$?
4380   if test -s conftest.err; then
4381     sed '10a\
4382 ... rest of stderr output deleted ...
4383          10q' conftest.err >conftest.er1
4384     cat conftest.er1 >&5
4385   fi
4386   rm -f conftest.er1 conftest.err
4387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388   test $ac_status = 0; }
4389 done
4390
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h.  */
4393
4394 int
4395 main ()
4396 {
4397
4398   ;
4399   return 0;
4400 }
4401 _ACEOF
4402 ac_clean_files_save=$ac_clean_files
4403 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4404 # Try to create an executable without -o first, disregard a.out.
4405 # It will help us diagnose broken compilers, and finding out an intuition
4406 # of exeext.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408 $as_echo_n "checking whether the C compiler works... " >&6; }
4409 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4410
4411 # The possible output files:
4412 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4413
4414 ac_rmfiles=
4415 for ac_file in $ac_files
4416 do
4417   case $ac_file in
4418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4419     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4420   esac
4421 done
4422 rm -f $ac_rmfiles
4423
4424 if { { ac_try="$ac_link_default"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431   (eval "$ac_link_default") 2>&5
4432   ac_status=$?
4433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434   test $ac_status = 0; }; then :
4435   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4437 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4438 # so that the user can short-circuit this test for compilers unknown to
4439 # Autoconf.
4440 for ac_file in $ac_files ''
4441 do
4442   test -f "$ac_file" || continue
4443   case $ac_file in
4444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4445         ;;
4446     [ab].out )
4447         # We found the default executable, but exeext='' is most
4448         # certainly right.
4449         break;;
4450     *.* )
4451         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4452         then :; else
4453            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454         fi
4455         # We set ac_cv_exeext here because the later test for it is not
4456         # safe: cross compilers may not add the suffix if given an `-o'
4457         # argument, so we may need to know it at that point already.
4458         # Even if this section looks crufty: it has the advantage of
4459         # actually working.
4460         break;;
4461     * )
4462         break;;
4463   esac
4464 done
4465 test "$ac_cv_exeext" = no && ac_cv_exeext=
4466
4467 else
4468   ac_file=''
4469 fi
4470 if test -z "$ac_file"; then :
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 $as_echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 { as_fn_set_status 77
4479 as_fn_error "C compiler cannot create executables
4480 See \`config.log' for more details." "$LINENO" 5; }; }
4481 else
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4486 $as_echo_n "checking for C compiler default output file name... " >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4488 $as_echo "$ac_file" >&6; }
4489 ac_exeext=$ac_cv_exeext
4490
4491 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4492 ac_clean_files=$ac_clean_files_save
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4494 $as_echo_n "checking for suffix of executables... " >&6; }
4495 if { { ac_try="$ac_link"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502   (eval "$ac_link") 2>&5
4503   ac_status=$?
4504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505   test $ac_status = 0; }; then :
4506   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4507 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4508 # work properly (i.e., refer to `conftest.exe'), while it won't with
4509 # `rm'.
4510 for ac_file in conftest.exe conftest conftest.*; do
4511   test -f "$ac_file" || continue
4512   case $ac_file in
4513     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4514     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515           break;;
4516     * ) break;;
4517   esac
4518 done
4519 else
4520   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error "cannot compute suffix of executables: cannot compile and link
4523 See \`config.log' for more details." "$LINENO" 5; }
4524 fi
4525 rm -f conftest conftest$ac_cv_exeext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4527 $as_echo "$ac_cv_exeext" >&6; }
4528
4529 rm -f conftest.$ac_ext
4530 EXEEXT=$ac_cv_exeext
4531 ac_exeext=$EXEEXT
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h.  */
4534 #include <stdio.h>
4535 int
4536 main ()
4537 {
4538 FILE *f = fopen ("conftest.out", "w");
4539  return ferror (f) || fclose (f) != 0;
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 ac_clean_files="$ac_clean_files conftest.out"
4546 # Check that the compiler produces executables we can run.  If not, either
4547 # the compiler is broken, or we cross compile.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4549 $as_echo_n "checking whether we are cross compiling... " >&6; }
4550 if test "$cross_compiling" != yes; then
4551   { { ac_try="$ac_link"
4552 case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558   (eval "$ac_link") 2>&5
4559   ac_status=$?
4560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561   test $ac_status = 0; }
4562   if { ac_try='./conftest$ac_cv_exeext'
4563   { { case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572   test $ac_status = 0; }; }; then
4573     cross_compiling=no
4574   else
4575     if test "$cross_compiling" = maybe; then
4576         cross_compiling=yes
4577     else
4578         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error "cannot run C compiled programs.
4581 If you meant to cross compile, use \`--host'.
4582 See \`config.log' for more details." "$LINENO" 5; }
4583     fi
4584   fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4587 $as_echo "$cross_compiling" >&6; }
4588
4589 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4590 ac_clean_files=$ac_clean_files_save
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4592 $as_echo_n "checking for suffix of object files... " >&6; }
4593 if test "${ac_cv_objext+set}" = set; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.o conftest.obj
4608 if { { ac_try="$ac_compile"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615   (eval "$ac_compile") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618   test $ac_status = 0; }; then :
4619   for ac_file in conftest.o conftest.obj conftest.*; do
4620   test -f "$ac_file" || continue;
4621   case $ac_file in
4622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4623     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4624        break;;
4625   esac
4626 done
4627 else
4628   $as_echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error "cannot compute suffix of object files: cannot compile
4634 See \`config.log' for more details." "$LINENO" 5; }
4635 fi
4636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4639 $as_echo "$ac_cv_objext" >&6; }
4640 OBJEXT=$ac_cv_objext
4641 ac_objext=$OBJEXT
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4644 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h.  */
4649
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654        choke me
4655 #endif
4656
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_compile "$LINENO"; then :
4662   ac_compiler_gnu=yes
4663 else
4664   ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673   GCC=yes
4674 else
4675   GCC=
4676 fi
4677 ac_test_CFLAGS=${CFLAGS+set}
4678 ac_save_CFLAGS=$CFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cc_g+set}" = set; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   ac_save_c_werror_flag=$ac_c_werror_flag
4685    ac_c_werror_flag=yes
4686    ac_cv_prog_cc_g=no
4687    CFLAGS="-g"
4688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h.  */
4690
4691 int
4692 main ()
4693 {
4694
4695   ;
4696   return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700   ac_cv_prog_cc_g=yes
4701 else
4702   CFLAGS=""
4703       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h.  */
4705
4706 int
4707 main ()
4708 {
4709
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715
4716 else
4717   ac_c_werror_flag=$ac_save_c_werror_flag
4718          CFLAGS="-g"
4719          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731   ac_cv_prog_cc_g=yes
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738    ac_c_werror_flag=$ac_save_c_werror_flag
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4741 $as_echo "$ac_cv_prog_cc_g" >&6; }
4742 if test "$ac_test_CFLAGS" = set; then
4743   CFLAGS=$ac_save_CFLAGS
4744 elif test $ac_cv_prog_cc_g = yes; then
4745   if test "$GCC" = yes; then
4746     CFLAGS="-g -O2"
4747   else
4748     CFLAGS="-g"
4749   fi
4750 else
4751   if test "$GCC" = yes; then
4752     CFLAGS="-O2"
4753   else
4754     CFLAGS=
4755   fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4759 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   ac_cv_prog_cc_c89=no
4763 ac_save_CC=$CC
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766 #include <stdarg.h>
4767 #include <stdio.h>
4768 #include <sys/types.h>
4769 #include <sys/stat.h>
4770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4771 struct buf { int x; };
4772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773 static char *e (p, i)
4774      char **p;
4775      int i;
4776 {
4777   return p[i];
4778 }
4779 static char *f (char * (*g) (char **, int), char **p, ...)
4780 {
4781   char *s;
4782   va_list v;
4783   va_start (v,p);
4784   s = g (p, va_arg (v,int));
4785   va_end (v);
4786   return s;
4787 }
4788
4789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4790    function prototypes and stuff, but not '\xHH' hex character constants.
4791    These don't provoke an error unfortunately, instead are silently treated
4792    as 'x'.  The following induces an error, until -std is added to get
4793    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4794    array size at least.  It's necessary to write '\x00'==0 to get something
4795    that's true only with -std.  */
4796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4797
4798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799    inside strings and character constants.  */
4800 #define FOO(x) 'x'
4801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4802
4803 int test (int i, double x);
4804 struct s1 {int (*f) (int a);};
4805 struct s2 {int (*f) (double a);};
4806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4807 int argc;
4808 char **argv;
4809 int
4810 main ()
4811 {
4812 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4819 do
4820   CC="$ac_save_CC $ac_arg"
4821   if ac_fn_c_try_compile "$LINENO"; then :
4822   ac_cv_prog_cc_c89=$ac_arg
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext
4825   test "x$ac_cv_prog_cc_c89" != "xno" && break
4826 done
4827 rm -f conftest.$ac_ext
4828 CC=$ac_save_CC
4829
4830 fi
4831 # AC_CACHE_VAL
4832 case "x$ac_cv_prog_cc_c89" in
4833   x)
4834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835 $as_echo "none needed" >&6; } ;;
4836   xno)
4837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838 $as_echo "unsupported" >&6; } ;;
4839   *)
4840     CC="$CC $ac_cv_prog_cc_c89"
4841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4843 esac
4844 if test "x$ac_cv_prog_cc_c89" != xno; then :
4845
4846 fi
4847
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854 depcc="$CC"   am_compiler_list=
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4857 $as_echo_n "checking dependency style of $depcc... " >&6; }
4858 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4862   # We make a subdir and do the tests there.  Otherwise we can end up
4863   # making bogus files that we don't know about and never remove.  For
4864   # instance it was reported that on HP-UX the gcc test will end up
4865   # making a dummy file named `D' -- because `-MD' means `put the output
4866   # in D'.
4867   mkdir conftest.dir
4868   # Copy depcomp to subdir because otherwise we won't find it if we're
4869   # using a relative directory.
4870   cp "$am_depcomp" conftest.dir
4871   cd conftest.dir
4872   # We will build objects and dependencies in a subdirectory because
4873   # it helps to detect inapplicable dependency modes.  For instance
4874   # both Tru64's cc and ICC support -MD to output dependencies as a
4875   # side effect of compilation, but ICC will put the dependencies in
4876   # the current directory while Tru64 will put them in the object
4877   # directory.
4878   mkdir sub
4879
4880   am_cv_CC_dependencies_compiler_type=none
4881   if test "$am_compiler_list" = ""; then
4882      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883   fi
4884   am__universal=false
4885   case " $depcc " in #(
4886      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4887      esac
4888
4889   for depmode in $am_compiler_list; do
4890     # Setup a source with many dependencies, because some compilers
4891     # like to wrap large dependency lists on column 80 (with \), and
4892     # we should not choose a depcomp mode which is confused by this.
4893     #
4894     # We need to recreate these files for each test, as the compiler may
4895     # overwrite some of them when testing with obscure command lines.
4896     # This happens at least with the AIX C compiler.
4897     : > sub/conftest.c
4898     for i in 1 2 3 4 5 6; do
4899       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4901       # Solaris 8's {/usr,}/bin/sh.
4902       touch sub/conftst$i.h
4903     done
4904     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4905
4906     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4907     # mode.  It turns out that the SunPro C++ compiler does not properly
4908     # handle `-M -o', and we need to detect this.  Also, some Intel
4909     # versions had trouble with output in subdirs
4910     am__obj=sub/conftest.${OBJEXT-o}
4911     am__minus_obj="-o $am__obj"
4912     case $depmode in
4913     gcc)
4914       # This depmode causes a compiler race in universal mode.
4915       test "$am__universal" = false || continue
4916       ;;
4917     nosideeffect)
4918       # after this tag, mechanisms are not by side-effect, so they'll
4919       # only be used when explicitly requested
4920       if test "x$enable_dependency_tracking" = xyes; then
4921         continue
4922       else
4923         break
4924       fi
4925       ;;
4926     msvisualcpp | msvcmsys)
4927       # This compiler won't grok `-c -o', but also, the minuso test has
4928       # not run yet.  These depmodes are late enough in the game, and
4929       # so weak that their functioning should not be impacted.
4930       am__obj=conftest.${OBJEXT-o}
4931       am__minus_obj=
4932       ;;
4933     none) break ;;
4934     esac
4935     if depmode=$depmode \
4936        source=sub/conftest.c object=$am__obj \
4937        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4938        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4939          >/dev/null 2>conftest.err &&
4940        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944       # icc doesn't choke on unknown options, it will just issue warnings
4945       # or remarks (even with -Werror).  So we grep stderr for any message
4946       # that says an option was ignored or not supported.
4947       # When given -MP, icc 7.0 and 7.1 complain thusly:
4948       #   icc: Command line warning: ignoring option '-M'; no argument required
4949       # The diagnosis changed in icc 8.0:
4950       #   icc: Command line remark: option '-MP' not supported
4951       if (grep 'ignoring option' conftest.err ||
4952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953         am_cv_CC_dependencies_compiler_type=$depmode
4954         break
4955       fi
4956     fi
4957   done
4958
4959   cd ..
4960   rm -rf conftest.dir
4961 else
4962   am_cv_CC_dependencies_compiler_type=none
4963 fi
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4969
4970  if
4971   test "x$enable_dependency_tracking" != xno \
4972   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4973   am__fastdepCC_TRUE=
4974   am__fastdepCC_FALSE='#'
4975 else
4976   am__fastdepCC_TRUE='#'
4977   am__fastdepCC_FALSE=
4978 fi
4979
4980
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4988 # On Suns, sometimes $CPP names a directory.
4989 if test -n "$CPP" && test -d "$CPP"; then
4990   CPP=
4991 fi
4992 if test -z "$CPP"; then
4993   if test "${ac_cv_prog_CPP+set}" = set; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996       # Double quotes because CPP needs to be expanded
4997     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4998     do
4999       ac_preproc_ok=false
5000 for ac_c_preproc_warn_flag in '' yes
5001 do
5002   # Use a header file that comes with gcc, so configuring glibc
5003   # with a fresh cross-compiler works.
5004   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005   # <limits.h> exists even on freestanding compilers.
5006   # On the NeXT, cc -E runs the code through the compiler's parser,
5007   # not just through cpp. "Syntax error" is here to catch this case.
5008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h.  */
5010 #ifdef __STDC__
5011 # include <limits.h>
5012 #else
5013 # include <assert.h>
5014 #endif
5015                      Syntax error
5016 _ACEOF
5017 if ac_fn_c_try_cpp "$LINENO"; then :
5018
5019 else
5020   # Broken: fails on valid input.
5021 continue
5022 fi
5023 rm -f conftest.err conftest.$ac_ext
5024
5025   # OK, works on sane cases.  Now check whether nonexistent headers
5026   # can be detected and how.
5027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5032   # Broken: success on invalid input.
5033 continue
5034 else
5035   # Passes both tests.
5036 ac_preproc_ok=:
5037 break
5038 fi
5039 rm -f conftest.err conftest.$ac_ext
5040
5041 done
5042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5043 rm -f conftest.err conftest.$ac_ext
5044 if $ac_preproc_ok; then :
5045   break
5046 fi
5047
5048     done
5049     ac_cv_prog_CPP=$CPP
5050
5051 fi
5052   CPP=$ac_cv_prog_CPP
5053 else
5054   ac_cv_prog_CPP=$CPP
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5057 $as_echo "$CPP" >&6; }
5058 ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5060 do
5061   # Use a header file that comes with gcc, so configuring glibc
5062   # with a fresh cross-compiler works.
5063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064   # <limits.h> exists even on freestanding compilers.
5065   # On the NeXT, cc -E runs the code through the compiler's parser,
5066   # not just through cpp. "Syntax error" is here to catch this case.
5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074                      Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5077
5078 else
5079   # Broken: fails on valid input.
5080 continue
5081 fi
5082 rm -f conftest.err conftest.$ac_ext
5083
5084   # OK, works on sane cases.  Now check whether nonexistent headers
5085   # can be detected and how.
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091   # Broken: success on invalid input.
5092 continue
5093 else
5094   # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5097 fi
5098 rm -f conftest.err conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104
5105 else
5106   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5108 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." "$LINENO" 5; }
5110 fi
5111
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if test "${ac_cv_path_GREP+set}" = set; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   if test -z "$GREP"; then
5126   ac_path_GREP_found=false
5127   # Loop through the user's path and test for each of PROGNAME-LIST
5128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133     for ac_prog in grep ggrep; do
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138   # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 *)
5143   ac_count=0
5144   $as_echo_n 0123456789 >"conftest.in"
5145   while :
5146   do
5147     cat "conftest.in" "conftest.in" >"conftest.tmp"
5148     mv "conftest.tmp" "conftest.in"
5149     cp "conftest.in" "conftest.nl"
5150     $as_echo 'GREP' >> "conftest.nl"
5151     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153     as_fn_arith $ac_count + 1 && ac_count=$as_val
5154     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155       # Best one so far, save it but keep looking for a better one
5156       ac_cv_path_GREP="$ac_path_GREP"
5157       ac_path_GREP_max=$ac_count
5158     fi
5159     # 10*(2^10) chars as input seems more than enough
5160     test $ac_count -gt 10 && break
5161   done
5162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165       $ac_path_GREP_found && break 3
5166     done
5167   done
5168   done
5169 IFS=$as_save_IFS
5170   if test -z "$ac_cv_path_GREP"; then
5171     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172   fi
5173 else
5174   ac_cv_path_GREP=$GREP
5175 fi
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180  GREP="$ac_cv_path_GREP"
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if test "${ac_cv_path_EGREP+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189    then ac_cv_path_EGREP="$GREP -E"
5190    else
5191      if test -z "$EGREP"; then
5192   ac_path_EGREP_found=false
5193   # Loop through the user's path and test for each of PROGNAME-LIST
5194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197   IFS=$as_save_IFS
5198   test -z "$as_dir" && as_dir=.
5199     for ac_prog in egrep; do
5200     for ac_exec_ext in '' $ac_executable_extensions; do
5201       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204   # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5206 *GNU*)
5207   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208 *)
5209   ac_count=0
5210   $as_echo_n 0123456789 >"conftest.in"
5211   while :
5212   do
5213     cat "conftest.in" "conftest.in" >"conftest.tmp"
5214     mv "conftest.tmp" "conftest.in"
5215     cp "conftest.in" "conftest.nl"
5216     $as_echo 'EGREP' >> "conftest.nl"
5217     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219     as_fn_arith $ac_count + 1 && ac_count=$as_val
5220     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221       # Best one so far, save it but keep looking for a better one
5222       ac_cv_path_EGREP="$ac_path_EGREP"
5223       ac_path_EGREP_max=$ac_count
5224     fi
5225     # 10*(2^10) chars as input seems more than enough
5226     test $ac_count -gt 10 && break
5227   done
5228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231       $ac_path_EGREP_found && break 3
5232     done
5233   done
5234   done
5235 IFS=$as_save_IFS
5236   if test -z "$ac_cv_path_EGREP"; then
5237     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238   fi
5239 else
5240   ac_cv_path_EGREP=$EGREP
5241 fi
5242
5243    fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247  EGREP="$ac_cv_path_EGREP"
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if test "${ac_cv_header_stdc+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h.  */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5261
5262 int
5263 main ()
5264 {
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271   ac_cv_header_stdc=yes
5272 else
5273   ac_cv_header_stdc=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
5277 if test $ac_cv_header_stdc = yes; then
5278   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h.  */
5281 #include <string.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285   $EGREP "memchr" >/dev/null 2>&1; then :
5286
5287 else
5288   ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #include <stdlib.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302   $EGREP "free" >/dev/null 2>&1; then :
5303
5304 else
5305   ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313   if test "$cross_compiling" = yes; then :
5314   :
5315 else
5316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h.  */
5318 #include <ctype.h>
5319 #include <stdlib.h>
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 #else
5324 # define ISLOWER(c) \
5325                    (('a' <= (c) && (c) <= 'i') \
5326                      || ('j' <= (c) && (c) <= 'r') \
5327                      || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5329 #endif
5330
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5332 int
5333 main ()
5334 {
5335   int i;
5336   for (i = 0; i < 256; i++)
5337     if (XOR (islower (i), ISLOWER (i))
5338         || toupper (i) != TOUPPER (i))
5339       return 2;
5340   return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5344
5345 else
5346   ac_cv_header_stdc=no
5347 fi
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349   conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351
5352 fi
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5357
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5359
5360 fi
5361
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5364                   inttypes.h stdint.h unistd.h
5365 do :
5366   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5368 "
5369 eval as_val=\$$as_ac_Header
5370    if test "x$as_val" = x""yes; then :
5371   cat >>confdefs.h <<_ACEOF
5372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5374
5375 fi
5376
5377 done
5378
5379
5380
5381   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5382 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5383   MINIX=yes
5384 else
5385   MINIX=
5386 fi
5387
5388
5389   if test "$MINIX" = yes; then
5390
5391 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5392
5393
5394 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5395
5396
5397 $as_echo "#define _MINIX 1" >>confdefs.h
5398
5399   fi
5400
5401
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5403 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5404 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409
5410 #         define __EXTENSIONS__ 1
5411           $ac_includes_default
5412 int
5413 main ()
5414 {
5415
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421   ac_cv_safe_to_define___extensions__=yes
5422 else
5423   ac_cv_safe_to_define___extensions__=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5428 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5429   test $ac_cv_safe_to_define___extensions__ = yes &&
5430     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5431
5432   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5433
5434   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5435
5436   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5437
5438   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5443 $as_echo_n "checking for library containing strerror... " >&6; }
5444 if test "${ac_cv_search_strerror+set}" = set; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   ac_func_search_save_LIBS=$LIBS
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h.  */
5450
5451 /* Override any GCC internal prototype to avoid an error.
5452    Use char because int might match the return type of a GCC
5453    builtin and then its argument prototype would still apply.  */
5454 #ifdef __cplusplus
5455 extern "C"
5456 #endif
5457 char strerror ();
5458 int
5459 main ()
5460 {
5461 return strerror ();
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 for ac_lib in '' cposix; do
5467   if test -z "$ac_lib"; then
5468     ac_res="none required"
5469   else
5470     ac_res=-l$ac_lib
5471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5472   fi
5473   if ac_fn_c_try_link "$LINENO"; then :
5474   ac_cv_search_strerror=$ac_res
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext \
5477     conftest$ac_exeext
5478   if test "${ac_cv_search_strerror+set}" = set; then :
5479   break
5480 fi
5481 done
5482 if test "${ac_cv_search_strerror+set}" = set; then :
5483
5484 else
5485   ac_cv_search_strerror=no
5486 fi
5487 rm conftest.$ac_ext
5488 LIBS=$ac_func_search_save_LIBS
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5491 $as_echo "$ac_cv_search_strerror" >&6; }
5492 ac_res=$ac_cv_search_strerror
5493 if test "$ac_res" != no; then :
5494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5495
5496 fi
5497
5498
5499
5500 ac_ext=cpp
5501 ac_cpp='$CXXCPP $CPPFLAGS'
5502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5505 if test -z "$CXX"; then
5506   if test -n "$CCC"; then
5507     CXX=$CCC
5508   else
5509     if test -n "$ac_tool_prefix"; then
5510   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5511   do
5512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_prog_CXX+set}" = set; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$CXX"; then
5520   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 CXX=$ac_cv_prog_CXX
5540 if test -n "$CXX"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5542 $as_echo "$CXX" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549     test -n "$CXX" && break
5550   done
5551 fi
5552 if test -z "$CXX"; then
5553   ac_ct_CXX=$CXX
5554   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5555 do
5556   # Extract the first word of "$ac_prog", so it can be a program name with args.
5557 set dummy $ac_prog; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$ac_ct_CXX"; then
5564   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573     ac_cv_prog_ac_ct_CXX="$ac_prog"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5584 if test -n "$ac_ct_CXX"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5586 $as_echo "$ac_ct_CXX" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593   test -n "$ac_ct_CXX" && break
5594 done
5595
5596   if test "x$ac_ct_CXX" = x; then
5597     CXX="g++"
5598   else
5599     case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605     CXX=$ac_ct_CXX
5606   fi
5607 fi
5608
5609   fi
5610 fi
5611 # Provide some information about the compiler.
5612 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5613 set X $ac_compile
5614 ac_compiler=$2
5615 for ac_option in --version -v -V -qversion; do
5616   { { ac_try="$ac_compiler $ac_option >&5"
5617 case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5624   ac_status=$?
5625   if test -s conftest.err; then
5626     sed '10a\
5627 ... rest of stderr output deleted ...
5628          10q' conftest.err >conftest.er1
5629     cat conftest.er1 >&5
5630   fi
5631   rm -f conftest.er1 conftest.err
5632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633   test $ac_status = 0; }
5634 done
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5637 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5638 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647 #ifndef __GNUC__
5648        choke me
5649 #endif
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_cxx_try_compile "$LINENO"; then :
5656   ac_compiler_gnu=yes
5657 else
5658   ac_compiler_gnu=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5662
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5665 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5666 if test $ac_compiler_gnu = yes; then
5667   GXX=yes
5668 else
5669   GXX=
5670 fi
5671 ac_test_CXXFLAGS=${CXXFLAGS+set}
5672 ac_save_CXXFLAGS=$CXXFLAGS
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5674 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5675 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5679    ac_cxx_werror_flag=yes
5680    ac_cv_prog_cxx_g=no
5681    CXXFLAGS="-g"
5682    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h.  */
5684
5685 int
5686 main ()
5687 {
5688
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_cxx_try_compile "$LINENO"; then :
5694   ac_cv_prog_cxx_g=yes
5695 else
5696   CXXFLAGS=""
5697       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h.  */
5699
5700 int
5701 main ()
5702 {
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_cxx_try_compile "$LINENO"; then :
5709
5710 else
5711   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5712          CXXFLAGS="-g"
5713          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h.  */
5715
5716 int
5717 main ()
5718 {
5719
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 if ac_fn_cxx_try_compile "$LINENO"; then :
5725   ac_cv_prog_cxx_g=yes
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 fi
5731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5733 fi
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5735 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5736 if test "$ac_test_CXXFLAGS" = set; then
5737   CXXFLAGS=$ac_save_CXXFLAGS
5738 elif test $ac_cv_prog_cxx_g = yes; then
5739   if test "$GXX" = yes; then
5740     CXXFLAGS="-g -O2"
5741   else
5742     CXXFLAGS="-g"
5743   fi
5744 else
5745   if test "$GXX" = yes; then
5746     CXXFLAGS="-O2"
5747   else
5748     CXXFLAGS=
5749   fi
5750 fi
5751 ac_ext=c
5752 ac_cpp='$CPP $CPPFLAGS'
5753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756
5757 depcc="$CXX"  am_compiler_list=
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5760 $as_echo_n "checking dependency style of $depcc... " >&6; }
5761 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5765   # We make a subdir and do the tests there.  Otherwise we can end up
5766   # making bogus files that we don't know about and never remove.  For
5767   # instance it was reported that on HP-UX the gcc test will end up
5768   # making a dummy file named `D' -- because `-MD' means `put the output
5769   # in D'.
5770   mkdir conftest.dir
5771   # Copy depcomp to subdir because otherwise we won't find it if we're
5772   # using a relative directory.
5773   cp "$am_depcomp" conftest.dir
5774   cd conftest.dir
5775   # We will build objects and dependencies in a subdirectory because
5776   # it helps to detect inapplicable dependency modes.  For instance
5777   # both Tru64's cc and ICC support -MD to output dependencies as a
5778   # side effect of compilation, but ICC will put the dependencies in
5779   # the current directory while Tru64 will put them in the object
5780   # directory.
5781   mkdir sub
5782
5783   am_cv_CXX_dependencies_compiler_type=none
5784   if test "$am_compiler_list" = ""; then
5785      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5786   fi
5787   am__universal=false
5788   case " $depcc " in #(
5789      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5790      esac
5791
5792   for depmode in $am_compiler_list; do
5793     # Setup a source with many dependencies, because some compilers
5794     # like to wrap large dependency lists on column 80 (with \), and
5795     # we should not choose a depcomp mode which is confused by this.
5796     #
5797     # We need to recreate these files for each test, as the compiler may
5798     # overwrite some of them when testing with obscure command lines.
5799     # This happens at least with the AIX C compiler.
5800     : > sub/conftest.c
5801     for i in 1 2 3 4 5 6; do
5802       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5803       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5804       # Solaris 8's {/usr,}/bin/sh.
5805       touch sub/conftst$i.h
5806     done
5807     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5808
5809     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5810     # mode.  It turns out that the SunPro C++ compiler does not properly
5811     # handle `-M -o', and we need to detect this.  Also, some Intel
5812     # versions had trouble with output in subdirs
5813     am__obj=sub/conftest.${OBJEXT-o}
5814     am__minus_obj="-o $am__obj"
5815     case $depmode in
5816     gcc)
5817       # This depmode causes a compiler race in universal mode.
5818       test "$am__universal" = false || continue
5819       ;;
5820     nosideeffect)
5821       # after this tag, mechanisms are not by side-effect, so they'll
5822       # only be used when explicitly requested
5823       if test "x$enable_dependency_tracking" = xyes; then
5824         continue
5825       else
5826         break
5827       fi
5828       ;;
5829     msvisualcpp | msvcmsys)
5830       # This compiler won't grok `-c -o', but also, the minuso test has
5831       # not run yet.  These depmodes are late enough in the game, and
5832       # so weak that their functioning should not be impacted.
5833       am__obj=conftest.${OBJEXT-o}
5834       am__minus_obj=
5835       ;;
5836     none) break ;;
5837     esac
5838     if depmode=$depmode \
5839        source=sub/conftest.c object=$am__obj \
5840        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5841        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5842          >/dev/null 2>conftest.err &&
5843        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5844        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5845        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5846        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5847       # icc doesn't choke on unknown options, it will just issue warnings
5848       # or remarks (even with -Werror).  So we grep stderr for any message
5849       # that says an option was ignored or not supported.
5850       # When given -MP, icc 7.0 and 7.1 complain thusly:
5851       #   icc: Command line warning: ignoring option '-M'; no argument required
5852       # The diagnosis changed in icc 8.0:
5853       #   icc: Command line remark: option '-MP' not supported
5854       if (grep 'ignoring option' conftest.err ||
5855           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5856         am_cv_CXX_dependencies_compiler_type=$depmode
5857         break
5858       fi
5859     fi
5860   done
5861
5862   cd ..
5863   rm -rf conftest.dir
5864 else
5865   am_cv_CXX_dependencies_compiler_type=none
5866 fi
5867
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5870 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5871 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5872
5873  if
5874   test "x$enable_dependency_tracking" != xno \
5875   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5876   am__fastdepCXX_TRUE=
5877   am__fastdepCXX_FALSE='#'
5878 else
5879   am__fastdepCXX_TRUE='#'
5880   am__fastdepCXX_FALSE=
5881 fi
5882
5883
5884 ac_ext=cpp
5885 ac_cpp='$CXXCPP $CPPFLAGS'
5886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5890 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5891 if test -z "$CXXCPP"; then
5892   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895       # Double quotes because CXXCPP needs to be expanded
5896     for CXXCPP in "$CXX -E" "/lib/cpp"
5897     do
5898       ac_preproc_ok=false
5899 for ac_cxx_preproc_warn_flag in '' yes
5900 do
5901   # Use a header file that comes with gcc, so configuring glibc
5902   # with a fresh cross-compiler works.
5903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5904   # <limits.h> exists even on freestanding compilers.
5905   # On the NeXT, cc -E runs the code through the compiler's parser,
5906   # not just through cpp. "Syntax error" is here to catch this case.
5907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h.  */
5909 #ifdef __STDC__
5910 # include <limits.h>
5911 #else
5912 # include <assert.h>
5913 #endif
5914                      Syntax error
5915 _ACEOF
5916 if ac_fn_cxx_try_cpp "$LINENO"; then :
5917
5918 else
5919   # Broken: fails on valid input.
5920 continue
5921 fi
5922 rm -f conftest.err conftest.$ac_ext
5923
5924   # OK, works on sane cases.  Now check whether nonexistent headers
5925   # can be detected and how.
5926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h.  */
5928 #include <ac_nonexistent.h>
5929 _ACEOF
5930 if ac_fn_cxx_try_cpp "$LINENO"; then :
5931   # Broken: success on invalid input.
5932 continue
5933 else
5934   # Passes both tests.
5935 ac_preproc_ok=:
5936 break
5937 fi
5938 rm -f conftest.err conftest.$ac_ext
5939
5940 done
5941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5942 rm -f conftest.err conftest.$ac_ext
5943 if $ac_preproc_ok; then :
5944   break
5945 fi
5946
5947     done
5948     ac_cv_prog_CXXCPP=$CXXCPP
5949
5950 fi
5951   CXXCPP=$ac_cv_prog_CXXCPP
5952 else
5953   ac_cv_prog_CXXCPP=$CXXCPP
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5956 $as_echo "$CXXCPP" >&6; }
5957 ac_preproc_ok=false
5958 for ac_cxx_preproc_warn_flag in '' yes
5959 do
5960   # Use a header file that comes with gcc, so configuring glibc
5961   # with a fresh cross-compiler works.
5962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963   # <limits.h> exists even on freestanding compilers.
5964   # On the NeXT, cc -E runs the code through the compiler's parser,
5965   # not just through cpp. "Syntax error" is here to catch this case.
5966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h.  */
5968 #ifdef __STDC__
5969 # include <limits.h>
5970 #else
5971 # include <assert.h>
5972 #endif
5973                      Syntax error
5974 _ACEOF
5975 if ac_fn_cxx_try_cpp "$LINENO"; then :
5976
5977 else
5978   # Broken: fails on valid input.
5979 continue
5980 fi
5981 rm -f conftest.err conftest.$ac_ext
5982
5983   # OK, works on sane cases.  Now check whether nonexistent headers
5984   # can be detected and how.
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987 #include <ac_nonexistent.h>
5988 _ACEOF
5989 if ac_fn_cxx_try_cpp "$LINENO"; then :
5990   # Broken: success on invalid input.
5991 continue
5992 else
5993   # Passes both tests.
5994 ac_preproc_ok=:
5995 break
5996 fi
5997 rm -f conftest.err conftest.$ac_ext
5998
5999 done
6000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6001 rm -f conftest.err conftest.$ac_ext
6002 if $ac_preproc_ok; then :
6003
6004 else
6005   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6007 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
6008 See \`config.log' for more details." "$LINENO" 5; }
6009 fi
6010
6011 ac_ext=c
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017
6018
6019
6020
6021
6022
6023   ac_ext=cpp
6024 ac_cpp='$CXXCPP $CPPFLAGS'
6025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6028
6029
6030
6031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ has std::isnan" >&5
6032 $as_echo_n "checking whether C++ has std::isnan... " >&6; }
6033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h.  */
6035 #include <cmath>
6036 int
6037 main ()
6038 {
6039
6040    std::isnan(0);
6041
6042   ;
6043   return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_cxx_try_compile "$LINENO"; then :
6047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6048 $as_echo "yes" >&6; }
6049
6050 $as_echo "#define CXX_HAS_STD_ISNAN /**/" >>confdefs.h
6051
6052 else
6053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057
6058       ac_ext=c
6059 ac_cpp='$CPP $CPPFLAGS'
6060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063
6064
6065
6066
6067
6068
6069
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking gr_libdir_suffix" >&5
6071 $as_echo_n "checking gr_libdir_suffix... " >&6; }
6072   gr_libdir_suffix=""
6073
6074
6075   case "$host_os" in
6076     linux*) is_linux=yes ;;
6077     *)      is_linux=no  ;;
6078   esac
6079
6080   if test "$is_linux" = no || test "$host_cpu" != "x86_64" && test "$host_cpu" != "powerpc64"; then
6081     gr_libdir_suffix=""
6082   elif test "$cross_compiling" = yes; then
6083
6084   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6085   then
6086     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6087   fi
6088
6089   elif test "$host_cpu" = "x86_64"; then
6090     if test -d /lib64 && test ! -L /lib64; then
6091       gr_libdir_suffix=64
6092     fi
6093   else
6094
6095   if test "$ac_cv_cxx_compiler_gnu" = "yes";
6096   then
6097     gr_libdir_suffix=`$CXX -Wl,--verbose 2>/dev/null | sed -n -e '/SEARCH_DIR/{s/;.*$//; s,^.*/,,; s/".*$//; s/^lib//; p}'`
6098   fi
6099
6100   fi
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gr_libdir_suffix" >&5
6102 $as_echo "$gr_libdir_suffix" >&6; }
6103
6104
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to append 64 to libdir" >&5
6106 $as_echo_n "checking whether to append 64 to libdir... " >&6; }
6107   t=${libdir##*/lib}
6108   if test "$t" != 64 && test "$gr_libdir_suffix" = "64"; then
6109     libdir=${libdir}64
6110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Setting libdir to $libdir" >&5
6111 $as_echo "yes. Setting libdir to $libdir" >&6; }
6112   else
6113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115   fi
6116
6117
6118 if test "$user_set_cflags" != yes; then
6119   autoconf_default_CFLAGS="$CFLAGS"
6120   CFLAGS=""
6121 fi
6122
6123
6124
6125 if test "$user_set_cxxflags" != yes; then
6126   autoconf_default_CXXFLAGS="$CXXFLAGS"
6127   CXXFLAGS=""
6128   if test "$GXX" = yes; then
6129     case "$host_cpu" in
6130         powerpc*)
6131                            swig_CXXFLAGS="-g1 -O2 -Wno-strict-aliasing -Wno-parentheses"
6132         ;;
6133         *)
6134         swig_CXXFLAGS="-g -O1 -Wno-strict-aliasing -Wno-parentheses"
6135         ;;
6136     esac
6137   fi
6138 fi
6139
6140
6141
6142 if test x${PKG_CONFIG_PATH} = x; then
6143     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig
6144 else
6145     PKG_CONFIG_PATH=${prefix}/lib${gr_libdir_suffix}/pkgconfig:${PKG_CONFIG_PATH}
6146 fi
6147 export PKG_CONFIG_PATH
6148
6149
6150       cc_warning_flags="-Wall -Werror-implicit-function-declaration"
6151   cxx_warning_flags="-Wall -Woverloaded-virtual"
6152   if test -n "${CC}"
6153   then
6154
6155   echo 'void f(){}' > conftest.c
6156   for i in $cc_warning_flags
6157   do
6158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6159 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6160     if test -z "`${CC} $i -c conftest.c 2>&1`"
6161     then
6162       lf_CFLAGS="${lf_CFLAGS} $i"
6163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6164 $as_echo "yes" >&6; }
6165     else
6166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168     fi
6169   done
6170   rm -f conftest.c conftest.o
6171
6172
6173   fi
6174   if test -n "${CXX}"
6175   then
6176
6177   echo 'void f(){}' > conftest.cc
6178   for i in $cxx_warning_flags
6179   do
6180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6181 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6182     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6183     then
6184       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6186 $as_echo "yes" >&6; }
6187     else
6188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190     fi
6191   done
6192   rm -f conftest.cc conftest.o
6193
6194
6195   fi
6196
6197
6198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants gprof" >&5
6199 $as_echo_n "checking whether user wants gprof... " >&6; }
6200
6201 # Check whether --with-gprof was given.
6202 if test "${with_gprof+set}" = set; then :
6203   withval=$with_gprof;
6204 else
6205    with_gprof=no
6206 fi
6207
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gprof" >&5
6209 $as_echo "$with_gprof" >&6; }
6210
6211     cc_profiling_flags="-pg"
6212   cxx_profiling_flags="-pg"
6213   ld_profiling_flags="-pg"
6214   if test $with_gprof = yes
6215   then
6216     if test -n "${CC}"
6217     then
6218
6219   echo 'void f(){}' > conftest.c
6220   for i in $cc_profiling_flags
6221   do
6222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6223 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6224     if test -z "`${CC} $i -c conftest.c 2>&1`"
6225     then
6226       lf_CFLAGS="${lf_CFLAGS} $i"
6227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6228 $as_echo "yes" >&6; }
6229     else
6230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232     fi
6233   done
6234   rm -f conftest.c conftest.o
6235
6236
6237     fi
6238     if test -n "${CXX}"
6239     then
6240
6241   echo 'void f(){}' > conftest.cc
6242   for i in $cxx_profiling_flags
6243   do
6244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6245 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6246     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6247     then
6248       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250 $as_echo "yes" >&6; }
6251     else
6252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6254     fi
6255   done
6256   rm -f conftest.cc conftest.o
6257
6258
6259     fi
6260   fi
6261
6262
6263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user wants prof" >&5
6264 $as_echo_n "checking whether user wants prof... " >&6; }
6265
6266 # Check whether --with-prof was given.
6267 if test "${with_prof+set}" = set; then :
6268   withval=$with_prof;
6269 else
6270    with_prof=no
6271 fi
6272
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_prof" >&5
6274 $as_echo "$with_prof" >&6; }
6275
6276     cc_profiling_flags="-p"
6277   cxx_profiling_flags="-p"
6278   ld_profiling_flags="-p"
6279   if test $with_prof = yes
6280   then
6281     if test -n "${CC}"
6282     then
6283
6284   echo 'void f(){}' > conftest.c
6285   for i in $cc_profiling_flags
6286   do
6287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
6288 $as_echo_n "checking whether $CC accepts $i... " >&6; }
6289     if test -z "`${CC} $i -c conftest.c 2>&1`"
6290     then
6291       lf_CFLAGS="${lf_CFLAGS} $i"
6292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6293 $as_echo "yes" >&6; }
6294     else
6295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297     fi
6298   done
6299   rm -f conftest.c conftest.o
6300
6301
6302     fi
6303     if test -n "${CXX}"
6304     then
6305
6306   echo 'void f(){}' > conftest.cc
6307   for i in $cxx_profiling_flags
6308   do
6309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
6310 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
6311     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6312     then
6313       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
6314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 $as_echo "yes" >&6; }
6316     else
6317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319     fi
6320   done
6321   rm -f conftest.cc conftest.o
6322
6323
6324     fi
6325   fi
6326
6327 # By default we simply use the C compiler to build assembly code.
6328
6329 test "${CCAS+set}" = set || CCAS=$CC
6330 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6331
6332
6333
6334 depcc="$CCAS"   am_compiler_list=
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6337 $as_echo_n "checking dependency style of $depcc... " >&6; }
6338 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342   # We make a subdir and do the tests there.  Otherwise we can end up
6343   # making bogus files that we don't know about and never remove.  For
6344   # instance it was reported that on HP-UX the gcc test will end up
6345   # making a dummy file named `D' -- because `-MD' means `put the output
6346   # in D'.
6347   mkdir conftest.dir
6348   # Copy depcomp to subdir because otherwise we won't find it if we're
6349   # using a relative directory.
6350   cp "$am_depcomp" conftest.dir
6351   cd conftest.dir
6352   # We will build objects and dependencies in a subdirectory because
6353   # it helps to detect inapplicable dependency modes.  For instance
6354   # both Tru64's cc and ICC support -MD to output dependencies as a
6355   # side effect of compilation, but ICC will put the dependencies in
6356   # the current directory while Tru64 will put them in the object
6357   # directory.
6358   mkdir sub
6359
6360   am_cv_CCAS_dependencies_compiler_type=none
6361   if test "$am_compiler_list" = ""; then
6362      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6363   fi
6364   am__universal=false
6365
6366
6367   for depmode in $am_compiler_list; do
6368     # Setup a source with many dependencies, because some compilers
6369     # like to wrap large dependency lists on column 80 (with \), and
6370     # we should not choose a depcomp mode which is confused by this.
6371     #
6372     # We need to recreate these files for each test, as the compiler may
6373     # overwrite some of them when testing with obscure command lines.
6374     # This happens at least with the AIX C compiler.
6375     : > sub/conftest.c
6376     for i in 1 2 3 4 5 6; do
6377       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6378       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6379       # Solaris 8's {/usr,}/bin/sh.
6380       touch sub/conftst$i.h
6381     done
6382     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6383
6384     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6385     # mode.  It turns out that the SunPro C++ compiler does not properly
6386     # handle `-M -o', and we need to detect this.  Also, some Intel
6387     # versions had trouble with output in subdirs
6388     am__obj=sub/conftest.${OBJEXT-o}
6389     am__minus_obj="-o $am__obj"
6390     case $depmode in
6391     gcc)
6392       # This depmode causes a compiler race in universal mode.
6393       test "$am__universal" = false || continue
6394       ;;
6395     nosideeffect)
6396       # after this tag, mechanisms are not by side-effect, so they'll
6397       # only be used when explicitly requested
6398       if test "x$enable_dependency_tracking" = xyes; then
6399         continue
6400       else
6401         break
6402       fi
6403       ;;
6404     msvisualcpp | msvcmsys)
6405       # This compiler won't grok `-c -o', but also, the minuso test has
6406       # not run yet.  These depmodes are late enough in the game, and
6407       # so weak that their functioning should not be impacted.
6408       am__obj=conftest.${OBJEXT-o}
6409       am__minus_obj=
6410       ;;
6411     none) break ;;
6412     esac
6413     if depmode=$depmode \
6414        source=sub/conftest.c object=$am__obj \
6415        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6416        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6417          >/dev/null 2>conftest.err &&
6418        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6419        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6420        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6421        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6422       # icc doesn't choke on unknown options, it will just issue warnings
6423       # or remarks (even with -Werror).  So we grep stderr for any message
6424       # that says an option was ignored or not supported.
6425       # When given -MP, icc 7.0 and 7.1 complain thusly:
6426       #   icc: Command line warning: ignoring option '-M'; no argument required
6427       # The diagnosis changed in icc 8.0:
6428       #   icc: Command line remark: option '-MP' not supported
6429       if (grep 'ignoring option' conftest.err ||
6430           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6431         am_cv_CCAS_dependencies_compiler_type=$depmode
6432         break
6433       fi
6434     fi
6435   done
6436
6437   cd ..
6438   rm -rf conftest.dir
6439 else
6440   am_cv_CCAS_dependencies_compiler_type=none
6441 fi
6442
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6445 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6446 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6447
6448  if
6449   test "x$enable_dependency_tracking" != xno \
6450   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6451   am__fastdepCCAS_TRUE=
6452   am__fastdepCCAS_FALSE='#'
6453 else
6454   am__fastdepCCAS_TRUE='#'
6455   am__fastdepCCAS_FALSE=
6456 fi
6457
6458
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6460 $as_echo_n "checking whether ln -s works... " >&6; }
6461 LN_S=$as_ln_s
6462 if test "$LN_S" = "ln -s"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 $as_echo "yes" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6467 $as_echo "no, using $LN_S" >&6; }
6468 fi
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6471 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6472 set x ${MAKE-make}
6473 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6474 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   cat >conftest.make <<\_ACEOF
6478 SHELL = /bin/sh
6479 all:
6480         @echo '@@@%%%=$(MAKE)=@@@%%%'
6481 _ACEOF
6482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6483 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6484   *@@@%%%=?*=@@@%%%*)
6485     eval ac_cv_prog_make_${ac_make}_set=yes;;
6486   *)
6487     eval ac_cv_prog_make_${ac_make}_set=no;;
6488 esac
6489 rm -f conftest.make
6490 fi
6491 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6493 $as_echo "yes" >&6; }
6494   SET_MAKE=
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498   SET_MAKE="MAKE=${MAKE-make}"
6499 fi
6500
6501
6502
6503 # AC_PROG_MKDIR_P
6504 # is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
6505 # Remove this macro when we can assume autoconf >= 2.60.
6506
6507
6508
6509 # Extract the first word of "rm", so it can be a program name with args.
6510 set dummy rm; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_path_RM_PROG+set}" = set; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   case $RM_PROG in
6517   [\\/]* | ?:[\\/]*)
6518   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6519   ;;
6520   *)
6521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536   ;;
6537 esac
6538 fi
6539 RM_PROG=$ac_cv_path_RM_PROG
6540 if test -n "$RM_PROG"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM_PROG" >&5
6542 $as_echo "$RM_PROG" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 fi
6547
6548
6549
6550 enable_win32_dll=yes
6551
6552 case $host in
6553 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6554   if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}as; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_AS+set}" = set; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$AS"; then
6563   ac_cv_prog_AS="$AS" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_AS="${ac_tool_prefix}as"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 AS=$ac_cv_prog_AS
6583 if test -n "$AS"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6585 $as_echo "$AS" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_AS"; then
6594   ac_ct_AS=$AS
6595   # Extract the first word of "as", so it can be a program name with args.
6596 set dummy as; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$ac_ct_AS"; then
6603   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_ac_ct_AS="as"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6623 if test -n "$ac_ct_AS"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6625 $as_echo "$ac_ct_AS" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_AS" = x; then
6632     AS="false"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640     AS=$ac_ct_AS
6641   fi
6642 else
6643   AS="$ac_cv_prog_AS"
6644 fi
6645
6646   if test -n "$ac_tool_prefix"; then
6647   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -n "$DLLTOOL"; then
6655   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 DLLTOOL=$ac_cv_prog_DLLTOOL
6675 if test -n "$DLLTOOL"; then
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6677 $as_echo "$DLLTOOL" >&6; }
6678 else
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683
6684 fi
6685 if test -z "$ac_cv_prog_DLLTOOL"; then
6686   ac_ct_DLLTOOL=$DLLTOOL
6687   # Extract the first word of "dlltool", so it can be a program name with args.
6688 set dummy dlltool; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6692   $as_echo_n "(cached) " >&6
6693 else
6694   if test -n "$ac_ct_DLLTOOL"; then
6695   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702     for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709   done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6715 if test -n "$ac_ct_DLLTOOL"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6717 $as_echo "$ac_ct_DLLTOOL" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723   if test "x$ac_ct_DLLTOOL" = x; then
6724     DLLTOOL="false"
6725   else
6726     case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732     DLLTOOL=$ac_ct_DLLTOOL
6733   fi
6734 else
6735   DLLTOOL="$ac_cv_prog_DLLTOOL"
6736 fi
6737
6738   if test -n "$ac_tool_prefix"; then
6739   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$OBJDUMP"; then
6747   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 OBJDUMP=$ac_cv_prog_OBJDUMP
6767 if test -n "$OBJDUMP"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6769 $as_echo "$OBJDUMP" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_prog_OBJDUMP"; then
6778   ac_ct_OBJDUMP=$OBJDUMP
6779   # Extract the first word of "objdump", so it can be a program name with args.
6780 set dummy objdump; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test -n "$ac_ct_OBJDUMP"; then
6787   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6807 if test -n "$ac_ct_OBJDUMP"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6809 $as_echo "$ac_ct_OBJDUMP" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815   if test "x$ac_ct_OBJDUMP" = x; then
6816     OBJDUMP="false"
6817   else
6818     case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     OBJDUMP=$ac_ct_OBJDUMP
6825   fi
6826 else
6827   OBJDUMP="$ac_cv_prog_OBJDUMP"
6828 fi
6829
6830   ;;
6831 esac
6832
6833 test -z "$AS" && AS=as
6834
6835
6836
6837
6838
6839 test -z "$DLLTOOL" && DLLTOOL=dlltool
6840
6841
6842
6843
6844
6845 test -z "$OBJDUMP" && OBJDUMP=objdump
6846
6847
6848
6849
6850
6851
6852
6853 # Check whether --enable-shared was given.
6854 if test "${enable_shared+set}" = set; then :
6855   enableval=$enable_shared; p=${PACKAGE-default}
6856     case $enableval in
6857     yes) enable_shared=yes ;;
6858     no) enable_shared=no ;;
6859     *)
6860       enable_shared=no
6861       # Look at the argument we got.  We use all the common list separators.
6862       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6863       for pkg in $enableval; do
6864         IFS="$lt_save_ifs"
6865         if test "X$pkg" = "X$p"; then
6866           enable_shared=yes
6867         fi
6868       done
6869       IFS="$lt_save_ifs"
6870       ;;
6871     esac
6872 else
6873   enable_shared=yes
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883         # Check whether --enable-static was given.
6884 if test "${enable_static+set}" = set; then :
6885   enableval=$enable_static; p=${PACKAGE-default}
6886     case $enableval in
6887     yes) enable_static=yes ;;
6888     no) enable_static=no ;;
6889     *)
6890      enable_static=no
6891       # Look at the argument we got.  We use all the common list separators.
6892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6893       for pkg in $enableval; do
6894         IFS="$lt_save_ifs"
6895         if test "X$pkg" = "X$p"; then
6896           enable_static=yes
6897         fi
6898       done
6899       IFS="$lt_save_ifs"
6900       ;;
6901     esac
6902 else
6903   enable_static=no
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912
6913         case `pwd` in
6914   *\ * | *\     *)
6915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6916 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6917 esac
6918
6919
6920
6921 macro_version='2.2.6'
6922 macro_revision='1.3012'
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 ltmain="$ac_aux_dir/ltmain.sh"
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6939 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6940 if test "${ac_cv_path_SED+set}" = set; then :
6941   $as_echo_n "(cached) " >&6
6942 else
6943             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6944      for ac_i in 1 2 3 4 5 6 7; do
6945        ac_script="$ac_script$as_nl$ac_script"
6946      done
6947      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6948      { ac_script=; unset ac_script;}
6949      if test -z "$SED"; then
6950   ac_path_SED_found=false
6951   # Loop through the user's path and test for each of PROGNAME-LIST
6952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957     for ac_prog in sed gsed; do
6958     for ac_exec_ext in '' $ac_executable_extensions; do
6959       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6960       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6961 # Check for GNU ac_path_SED and select it if it is found.
6962   # Check for GNU $ac_path_SED
6963 case `"$ac_path_SED" --version 2>&1` in
6964 *GNU*)
6965   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6966 *)
6967   ac_count=0
6968   $as_echo_n 0123456789 >"conftest.in"
6969   while :
6970   do
6971     cat "conftest.in" "conftest.in" >"conftest.tmp"
6972     mv "conftest.tmp" "conftest.in"
6973     cp "conftest.in" "conftest.nl"
6974     $as_echo '' >> "conftest.nl"
6975     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6976     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6977     as_fn_arith $ac_count + 1 && ac_count=$as_val
6978     if test $ac_count -gt ${ac_path_SED_max-0}; then
6979       # Best one so far, save it but keep looking for a better one
6980       ac_cv_path_SED="$ac_path_SED"
6981       ac_path_SED_max=$ac_count
6982     fi
6983     # 10*(2^10) chars as input seems more than enough
6984     test $ac_count -gt 10 && break
6985   done
6986   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6987 esac
6988
6989       $ac_path_SED_found && break 3
6990     done
6991   done
6992   done
6993 IFS=$as_save_IFS
6994   if test -z "$ac_cv_path_SED"; then
6995     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6996   fi
6997 else
6998   ac_cv_path_SED=$SED
6999 fi
7000
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7003 $as_echo "$ac_cv_path_SED" >&6; }
7004  SED="$ac_cv_path_SED"
7005   rm -f conftest.sed
7006
7007 test -z "$SED" && SED=sed
7008 Xsed="$SED -e 1s/^X//"
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7021 $as_echo_n "checking for fgrep... " >&6; }
7022 if test "${ac_cv_path_FGREP+set}" = set; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7026    then ac_cv_path_FGREP="$GREP -F"
7027    else
7028      if test -z "$FGREP"; then
7029   ac_path_FGREP_found=false
7030   # Loop through the user's path and test for each of PROGNAME-LIST
7031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036     for ac_prog in fgrep; do
7037     for ac_exec_ext in '' $ac_executable_extensions; do
7038       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7039       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7040 # Check for GNU ac_path_FGREP and select it if it is found.
7041   # Check for GNU $ac_path_FGREP
7042 case `"$ac_path_FGREP" --version 2>&1` in
7043 *GNU*)
7044   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7045 *)
7046   ac_count=0
7047   $as_echo_n 0123456789 >"conftest.in"
7048   while :
7049   do
7050     cat "conftest.in" "conftest.in" >"conftest.tmp"
7051     mv "conftest.tmp" "conftest.in"
7052     cp "conftest.in" "conftest.nl"
7053     $as_echo 'FGREP' >> "conftest.nl"
7054     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7055     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7056     as_fn_arith $ac_count + 1 && ac_count=$as_val
7057     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7058       # Best one so far, save it but keep looking for a better one
7059       ac_cv_path_FGREP="$ac_path_FGREP"
7060       ac_path_FGREP_max=$ac_count
7061     fi
7062     # 10*(2^10) chars as input seems more than enough
7063     test $ac_count -gt 10 && break
7064   done
7065   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7066 esac
7067
7068       $ac_path_FGREP_found && break 3
7069     done
7070   done
7071   done
7072 IFS=$as_save_IFS
7073   if test -z "$ac_cv_path_FGREP"; then
7074     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7075   fi
7076 else
7077   ac_cv_path_FGREP=$FGREP
7078 fi
7079
7080    fi
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7083 $as_echo "$ac_cv_path_FGREP" >&6; }
7084  FGREP="$ac_cv_path_FGREP"
7085
7086
7087 test -z "$GREP" && GREP=grep
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107 # Check whether --with-gnu-ld was given.
7108 if test "${with_gnu_ld+set}" = set; then :
7109   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7110 else
7111   with_gnu_ld=no
7112 fi
7113
7114 ac_prog=ld
7115 if test "$GCC" = yes; then
7116   # Check if gcc -print-prog-name=ld gives a path.
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7118 $as_echo_n "checking for ld used by $CC... " >&6; }
7119   case $host in
7120   *-*-mingw*)
7121     # gcc leaves a trailing carriage return which upsets mingw
7122     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7123   *)
7124     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7125   esac
7126   case $ac_prog in
7127     # Accept absolute paths.
7128     [\\/]* | ?:[\\/]*)
7129       re_direlt='/[^/][^/]*/\.\./'
7130       # Canonicalize the pathname of ld
7131       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7132       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7133         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7134       done
7135       test -z "$LD" && LD="$ac_prog"
7136       ;;
7137   "")
7138     # If it fails, then pretend we aren't using GCC.
7139     ac_prog=ld
7140     ;;
7141   *)
7142     # If it is relative, then search for the first ld in PATH.
7143     with_gnu_ld=unknown
7144     ;;
7145   esac
7146 elif test "$with_gnu_ld" = yes; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7148 $as_echo_n "checking for GNU ld... " >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7151 $as_echo_n "checking for non-GNU ld... " >&6; }
7152 fi
7153 if test "${lt_cv_path_LD+set}" = set; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   if test -z "$LD"; then
7157   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7158   for ac_dir in $PATH; do
7159     IFS="$lt_save_ifs"
7160     test -z "$ac_dir" && ac_dir=.
7161     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7162       lt_cv_path_LD="$ac_dir/$ac_prog"
7163       # Check to see if the program is GNU ld.  I'd rather use --version,
7164       # but apparently some variants of GNU ld only accept -v.
7165       # Break only if it was the GNU/non-GNU ld that we prefer.
7166       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7167       *GNU* | *'with BFD'*)
7168         test "$with_gnu_ld" != no && break
7169         ;;
7170       *)
7171         test "$with_gnu_ld" != yes && break
7172         ;;
7173       esac
7174     fi
7175   done
7176   IFS="$lt_save_ifs"
7177 else
7178   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7179 fi
7180 fi
7181
7182 LD="$lt_cv_path_LD"
7183 if test -n "$LD"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7185 $as_echo "$LD" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7192 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7193 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7197 case `$LD -v 2>&1 </dev/null` in
7198 *GNU* | *'with BFD'*)
7199   lt_cv_prog_gnu_ld=yes
7200   ;;
7201 *)
7202   lt_cv_prog_gnu_ld=no
7203   ;;
7204 esac
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7207 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7208 with_gnu_ld=$lt_cv_prog_gnu_ld
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7219 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7220 if test "${lt_cv_path_NM+set}" = set; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   if test -n "$NM"; then
7224   # Let the user override the test.
7225   lt_cv_path_NM="$NM"
7226 else
7227   lt_nm_to_check="${ac_tool_prefix}nm"
7228   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7229     lt_nm_to_check="$lt_nm_to_check nm"
7230   fi
7231   for lt_tmp_nm in $lt_nm_to_check; do
7232     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7234       IFS="$lt_save_ifs"
7235       test -z "$ac_dir" && ac_dir=.
7236       tmp_nm="$ac_dir/$lt_tmp_nm"
7237       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7238         # Check to see if the nm accepts a BSD-compat flag.
7239         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7240         #   nm: unknown option "B" ignored
7241         # Tru64's nm complains that /dev/null is an invalid object file
7242         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7243         */dev/null* | *'Invalid file or object type'*)
7244           lt_cv_path_NM="$tmp_nm -B"
7245           break
7246           ;;
7247         *)
7248           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7249           */dev/null*)
7250             lt_cv_path_NM="$tmp_nm -p"
7251             break
7252             ;;
7253           *)
7254             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7255             continue # so that we can try to find one that supports BSD flags
7256             ;;
7257           esac
7258           ;;
7259         esac
7260       fi
7261     done
7262     IFS="$lt_save_ifs"
7263   done
7264   : ${lt_cv_path_NM=no}
7265 fi
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7268 $as_echo "$lt_cv_path_NM" >&6; }
7269 if test "$lt_cv_path_NM" != "no"; then
7270   NM="$lt_cv_path_NM"
7271 else
7272   # Didn't find any BSD compatible name lister, look for dumpbin.
7273   if test -n "$ac_tool_prefix"; then
7274   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7275   do
7276     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   if test -n "$DUMPBIN"; then
7284   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291     for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298   done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 DUMPBIN=$ac_cv_prog_DUMPBIN
7304 if test -n "$DUMPBIN"; then
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7306 $as_echo "$DUMPBIN" >&6; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312
7313     test -n "$DUMPBIN" && break
7314   done
7315 fi
7316 if test -z "$DUMPBIN"; then
7317   ac_ct_DUMPBIN=$DUMPBIN
7318   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7319 do
7320   # Extract the first word of "$ac_prog", so it can be a program name with args.
7321 set dummy $ac_prog; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$ac_ct_DUMPBIN"; then
7328   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335     for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342   done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7348 if test -n "$ac_ct_DUMPBIN"; then
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7350 $as_echo "$ac_ct_DUMPBIN" >&6; }
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357   test -n "$ac_ct_DUMPBIN" && break
7358 done
7359
7360   if test "x$ac_ct_DUMPBIN" = x; then
7361     DUMPBIN=":"
7362   else
7363     case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369     DUMPBIN=$ac_ct_DUMPBIN
7370   fi
7371 fi
7372
7373
7374   if test "$DUMPBIN" != ":"; then
7375     NM="$DUMPBIN"
7376   fi
7377 fi
7378 test -z "$NM" && NM=nm
7379
7380
7381
7382
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7386 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7387 if test "${lt_cv_nm_interface+set}" = set; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   lt_cv_nm_interface="BSD nm"
7391   echo "int some_variable = 0;" > conftest.$ac_ext
7392   (eval echo "\"\$as_me:7392: $ac_compile\"" >&5)
7393   (eval "$ac_compile" 2>conftest.err)
7394   cat conftest.err >&5
7395   (eval echo "\"\$as_me:7395: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7396   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7397   cat conftest.err >&5
7398   (eval echo "\"\$as_me:7398: output\"" >&5)
7399   cat conftest.out >&5
7400   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7401     lt_cv_nm_interface="MS dumpbin"
7402   fi
7403   rm -f conftest*
7404 fi
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7406 $as_echo "$lt_cv_nm_interface" >&6; }
7407
7408 # find the maximum length of command line arguments
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7410 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7411 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414     i=0
7415   teststring="ABCD"
7416
7417   case $build_os in
7418   msdosdjgpp*)
7419     # On DJGPP, this test can blow up pretty badly due to problems in libc
7420     # (any single argument exceeding 2000 bytes causes a buffer overrun
7421     # during glob expansion).  Even if it were fixed, the result of this
7422     # check would be larger than it should be.
7423     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7424     ;;
7425
7426   gnu*)
7427     # Under GNU Hurd, this test is not required because there is
7428     # no limit to the length of command line arguments.
7429     # Libtool will interpret -1 as no limit whatsoever
7430     lt_cv_sys_max_cmd_len=-1;
7431     ;;
7432
7433   cygwin* | mingw* | cegcc*)
7434     # On Win9x/ME, this test blows up -- it succeeds, but takes
7435     # about 5 minutes as the teststring grows exponentially.
7436     # Worse, since 9x/ME are not pre-emptively multitasking,
7437     # you end up with a "frozen" computer, even though with patience
7438     # the test eventually succeeds (with a max line length of 256k).
7439     # Instead, let's just punt: use the minimum linelength reported by
7440     # all of the supported platforms: 8192 (on NT/2K/XP).
7441     lt_cv_sys_max_cmd_len=8192;
7442     ;;
7443
7444   amigaos*)
7445     # On AmigaOS with pdksh, this test takes hours, literally.
7446     # So we just punt and use a minimum line length of 8192.
7447     lt_cv_sys_max_cmd_len=8192;
7448     ;;
7449
7450   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7451     # This has been around since 386BSD, at least.  Likely further.
7452     if test -x /sbin/sysctl; then
7453       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7454     elif test -x /usr/sbin/sysctl; then
7455       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7456     else
7457       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7458     fi
7459     # And add a safety zone
7460     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7461     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7462     ;;
7463
7464   interix*)
7465     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7466     lt_cv_sys_max_cmd_len=196608
7467     ;;
7468
7469   osf*)
7470     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7471     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7472     # nice to cause kernel panics so lets avoid the loop below.
7473     # First set a reasonable default.
7474     lt_cv_sys_max_cmd_len=16384
7475     #
7476     if test -x /sbin/sysconfig; then
7477       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7478         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7479       esac
7480     fi
7481     ;;
7482   sco3.2v5*)
7483     lt_cv_sys_max_cmd_len=102400
7484     ;;
7485   sysv5* | sco5v6* | sysv4.2uw2*)
7486     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7487     if test -n "$kargmax"; then
7488       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7489     else
7490       lt_cv_sys_max_cmd_len=32768
7491     fi
7492     ;;
7493   *)
7494     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7495     if test -n "$lt_cv_sys_max_cmd_len"; then
7496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7497       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7498     else
7499       # Make teststring a little bigger before we do anything with it.
7500       # a 1K string should be a reasonable start.
7501       for i in 1 2 3 4 5 6 7 8 ; do
7502         teststring=$teststring$teststring
7503       done
7504       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7505       # If test is not a shell built-in, we'll probably end up computing a
7506       # maximum length that is only half of the actual maximum length, but
7507       # we can't tell.
7508       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7509                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7510               test $i != 17 # 1/2 MB should be enough
7511       do
7512         i=`expr $i + 1`
7513         teststring=$teststring$teststring
7514       done
7515       # Only check the string length outside the loop.
7516       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7517       teststring=
7518       # Add a significant safety factor because C++ compilers can tack on
7519       # massive amounts of additional arguments before passing them to the
7520       # linker.  It appears as though 1/2 is a usable value.
7521       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7522     fi
7523     ;;
7524   esac
7525
7526 fi
7527
7528 if test -n $lt_cv_sys_max_cmd_len ; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7530 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7533 $as_echo "none" >&6; }
7534 fi
7535 max_cmd_len=$lt_cv_sys_max_cmd_len
7536
7537
7538
7539
7540
7541
7542 : ${CP="cp -f"}
7543 : ${MV="mv -f"}
7544 : ${RM="rm -f"}
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7547 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7548 # Try some XSI features
7549 xsi_shell=no
7550 ( _lt_dummy="a/b/c"
7551   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7552       = c,a/b,, \
7553     && eval 'test $(( 1 + 1 )) -eq 2 \
7554     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7555   && xsi_shell=yes
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7557 $as_echo "$xsi_shell" >&6; }
7558
7559
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7561 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7562 lt_shell_append=no
7563 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7564     >/dev/null 2>&1 \
7565   && lt_shell_append=yes
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7567 $as_echo "$lt_shell_append" >&6; }
7568
7569
7570 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7571   lt_unset=unset
7572 else
7573   lt_unset=false
7574 fi
7575
7576
7577
7578
7579
7580 # test EBCDIC or ASCII
7581 case `echo X|tr X '\101'` in
7582  A) # ASCII based system
7583     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7584   lt_SP2NL='tr \040 \012'
7585   lt_NL2SP='tr \015\012 \040\040'
7586   ;;
7587  *) # EBCDIC based system
7588   lt_SP2NL='tr \100 \n'
7589   lt_NL2SP='tr \r\n \100\100'
7590   ;;
7591 esac
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7603 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   lt_cv_ld_reload_flag='-r'
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7610 reload_flag=$lt_cv_ld_reload_flag
7611 case $reload_flag in
7612 "" | " "*) ;;
7613 *) reload_flag=" $reload_flag" ;;
7614 esac
7615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7616 case $host_os in
7617   darwin*)
7618     if test "$GCC" = yes; then
7619       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7620     else
7621       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7622     fi
7623     ;;
7624 esac
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 if test -n "$ac_tool_prefix"; then
7635   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$OBJDUMP"; then
7643   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 OBJDUMP=$ac_cv_prog_OBJDUMP
7663 if test -n "$OBJDUMP"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7665 $as_echo "$OBJDUMP" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672 fi
7673 if test -z "$ac_cv_prog_OBJDUMP"; then
7674   ac_ct_OBJDUMP=$OBJDUMP
7675   # Extract the first word of "objdump", so it can be a program name with args.
7676 set dummy objdump; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$ac_ct_OBJDUMP"; then
7683   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7703 if test -n "$ac_ct_OBJDUMP"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7705 $as_echo "$ac_ct_OBJDUMP" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711   if test "x$ac_ct_OBJDUMP" = x; then
7712     OBJDUMP="false"
7713   else
7714     case $cross_compiling:$ac_tool_warned in
7715 yes:)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7718 ac_tool_warned=yes ;;
7719 esac
7720     OBJDUMP=$ac_ct_OBJDUMP
7721   fi
7722 else
7723   OBJDUMP="$ac_cv_prog_OBJDUMP"
7724 fi
7725
7726 test -z "$OBJDUMP" && OBJDUMP=objdump
7727
7728
7729
7730
7731
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7734 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7735 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7736   $as_echo_n "(cached) " >&6
7737 else
7738   lt_cv_file_magic_cmd='$MAGIC_CMD'
7739 lt_cv_file_magic_test_file=
7740 lt_cv_deplibs_check_method='unknown'
7741 # Need to set the preceding variable on all platforms that support
7742 # interlibrary dependencies.
7743 # 'none' -- dependencies not supported.
7744 # `unknown' -- same as none, but documents that we really don't know.
7745 # 'pass_all' -- all dependencies passed with no checks.
7746 # 'test_compile' -- check by making test program.
7747 # 'file_magic [[regex]]' -- check by looking for files in library path
7748 # which responds to the $file_magic_cmd with a given extended regex.
7749 # If you have `file' or equivalent on your system and you're not sure
7750 # whether `pass_all' will *always* work, you probably want this one.
7751
7752 case $host_os in
7753 aix[4-9]*)
7754   lt_cv_deplibs_check_method=pass_all
7755   ;;
7756
7757 beos*)
7758   lt_cv_deplibs_check_method=pass_all
7759   ;;
7760
7761 bsdi[45]*)
7762   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7763   lt_cv_file_magic_cmd='/usr/bin/file -L'
7764   lt_cv_file_magic_test_file=/shlib/libc.so
7765   ;;
7766
7767 cygwin*)
7768   # func_win32_libid is a shell function defined in ltmain.sh
7769   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7770   lt_cv_file_magic_cmd='func_win32_libid'
7771   ;;
7772
7773 mingw* | pw32*)
7774   # Base MSYS/MinGW do not provide the 'file' command needed by
7775   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7776   # unless we find 'file', for example because we are cross-compiling.
7777   if ( file / ) >/dev/null 2>&1; then
7778     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7779     lt_cv_file_magic_cmd='func_win32_libid'
7780   else
7781     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7782     lt_cv_file_magic_cmd='$OBJDUMP -f'
7783   fi
7784   ;;
7785
7786 cegcc)
7787   # use the weaker test based on 'objdump'. See mingw*.
7788   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7789   lt_cv_file_magic_cmd='$OBJDUMP -f'
7790   ;;
7791
7792 darwin* | rhapsody*)
7793   lt_cv_deplibs_check_method=pass_all
7794   ;;
7795
7796 freebsd* | dragonfly*)
7797   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7798     case $host_cpu in
7799     i*86 )
7800       # Not sure whether the presence of OpenBSD here was a mistake.
7801       # Let's accept both of them until this is cleared up.
7802       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7803       lt_cv_file_magic_cmd=/usr/bin/file
7804       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7805       ;;
7806     esac
7807   else
7808     lt_cv_deplibs_check_method=pass_all
7809   fi
7810   ;;
7811
7812 gnu*)
7813   lt_cv_deplibs_check_method=pass_all
7814   ;;
7815
7816 hpux10.20* | hpux11*)
7817   lt_cv_file_magic_cmd=/usr/bin/file
7818   case $host_cpu in
7819   ia64*)
7820     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7821     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7822     ;;
7823   hppa*64*)
7824     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]'
7825     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7826     ;;
7827   *)
7828     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7829     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7830     ;;
7831   esac
7832   ;;
7833
7834 interix[3-9]*)
7835   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7836   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7837   ;;
7838
7839 irix5* | irix6* | nonstopux*)
7840   case $LD in
7841   *-32|*"-32 ") libmagic=32-bit;;
7842   *-n32|*"-n32 ") libmagic=N32;;
7843   *-64|*"-64 ") libmagic=64-bit;;
7844   *) libmagic=never-match;;
7845   esac
7846   lt_cv_deplibs_check_method=pass_all
7847   ;;
7848
7849 # This must be Linux ELF.
7850 linux* | k*bsd*-gnu)
7851   lt_cv_deplibs_check_method=pass_all
7852   ;;
7853
7854 netbsd* | netbsdelf*-gnu)
7855   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7856     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7857   else
7858     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7859   fi
7860   ;;
7861
7862 newos6*)
7863   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7864   lt_cv_file_magic_cmd=/usr/bin/file
7865   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7866   ;;
7867
7868 *nto* | *qnx*)
7869   lt_cv_deplibs_check_method=pass_all
7870   ;;
7871
7872 openbsd*)
7873   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7874     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7875   else
7876     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7877   fi
7878   ;;
7879
7880 osf3* | osf4* | osf5*)
7881   lt_cv_deplibs_check_method=pass_all
7882   ;;
7883
7884 rdos*)
7885   lt_cv_deplibs_check_method=pass_all
7886   ;;
7887
7888 solaris*)
7889   lt_cv_deplibs_check_method=pass_all
7890   ;;
7891
7892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7893   lt_cv_deplibs_check_method=pass_all
7894   ;;
7895
7896 sysv4 | sysv4.3*)
7897   case $host_vendor in
7898   motorola)
7899     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]'
7900     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7901     ;;
7902   ncr)
7903     lt_cv_deplibs_check_method=pass_all
7904     ;;
7905   sequent)
7906     lt_cv_file_magic_cmd='/bin/file'
7907     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7908     ;;
7909   sni)
7910     lt_cv_file_magic_cmd='/bin/file'
7911     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7912     lt_cv_file_magic_test_file=/lib/libc.so
7913     ;;
7914   siemens)
7915     lt_cv_deplibs_check_method=pass_all
7916     ;;
7917   pc)
7918     lt_cv_deplibs_check_method=pass_all
7919     ;;
7920   esac
7921   ;;
7922
7923 tpf*)
7924   lt_cv_deplibs_check_method=pass_all
7925   ;;
7926 esac
7927
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7930 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7931 file_magic_cmd=$lt_cv_file_magic_cmd
7932 deplibs_check_method=$lt_cv_deplibs_check_method
7933 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946 if test -n "$ac_tool_prefix"; then
7947   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7948 set dummy ${ac_tool_prefix}ar; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_AR+set}" = set; then :
7952   $as_echo_n "(cached) " >&6
7953 else
7954   if test -n "$AR"; then
7955   ac_cv_prog_AR="$AR" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962     for ac_exec_ext in '' $ac_executable_extensions; do
7963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964     ac_cv_prog_AR="${ac_tool_prefix}ar"
7965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966     break 2
7967   fi
7968 done
7969   done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 AR=$ac_cv_prog_AR
7975 if test -n "$AR"; then
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7977 $as_echo "$AR" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 fi
7985 if test -z "$ac_cv_prog_AR"; then
7986   ac_ct_AR=$AR
7987   # Extract the first word of "ar", so it can be a program name with args.
7988 set dummy ar; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   if test -n "$ac_ct_AR"; then
7995   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002     for ac_exec_ext in '' $ac_executable_extensions; do
8003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004     ac_cv_prog_ac_ct_AR="ar"
8005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009   done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8015 if test -n "$ac_ct_AR"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8017 $as_echo "$ac_ct_AR" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023   if test "x$ac_ct_AR" = x; then
8024     AR="false"
8025   else
8026     case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032     AR=$ac_ct_AR
8033   fi
8034 else
8035   AR="$ac_cv_prog_AR"
8036 fi
8037
8038 test -z "$AR" && AR=ar
8039 test -z "$AR_FLAGS" && AR_FLAGS=cru
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 if test -n "$ac_tool_prefix"; then
8052   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}strip; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_prog_STRIP+set}" = set; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   if test -n "$STRIP"; then
8060   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065   IFS=$as_save_IFS
8066   test -z "$as_dir" && as_dir=.
8067     for ac_exec_ext in '' $ac_executable_extensions; do
8068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071     break 2
8072   fi
8073 done
8074   done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 STRIP=$ac_cv_prog_STRIP
8080 if test -n "$STRIP"; then
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8082 $as_echo "$STRIP" >&6; }
8083 else
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 fi
8090 if test -z "$ac_cv_prog_STRIP"; then
8091   ac_ct_STRIP=$STRIP
8092   # Extract the first word of "strip", so it can be a program name with args.
8093 set dummy strip; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8097   $as_echo_n "(cached) " >&6
8098 else
8099   if test -n "$ac_ct_STRIP"; then
8100   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105   IFS=$as_save_IFS
8106   test -z "$as_dir" && as_dir=.
8107     for ac_exec_ext in '' $ac_executable_extensions; do
8108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8109     ac_cv_prog_ac_ct_STRIP="strip"
8110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111     break 2
8112   fi
8113 done
8114   done
8115 IFS=$as_save_IFS
8116
8117 fi
8118 fi
8119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8120 if test -n "$ac_ct_STRIP"; then
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8122 $as_echo "$ac_ct_STRIP" >&6; }
8123 else
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 fi
8127
8128   if test "x$ac_ct_STRIP" = x; then
8129     STRIP=":"
8130   else
8131     case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137     STRIP=$ac_ct_STRIP
8138   fi
8139 else
8140   STRIP="$ac_cv_prog_STRIP"
8141 fi
8142
8143 test -z "$STRIP" && STRIP=:
8144
8145
8146
8147
8148
8149
8150 if test -n "$ac_tool_prefix"; then
8151   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   if test -n "$RANLIB"; then
8159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 RANLIB=$ac_cv_prog_RANLIB
8179 if test -n "$RANLIB"; then
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8181 $as_echo "$RANLIB" >&6; }
8182 else
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187
8188 fi
8189 if test -z "$ac_cv_prog_RANLIB"; then
8190   ac_ct_RANLIB=$RANLIB
8191   # Extract the first word of "ranlib", so it can be a program name with args.
8192 set dummy ranlib; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8196   $as_echo_n "(cached) " >&6
8197 else
8198   if test -n "$ac_ct_RANLIB"; then
8199   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206     for ac_exec_ext in '' $ac_executable_extensions; do
8207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208     ac_cv_prog_ac_ct_RANLIB="ranlib"
8209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213   done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8219 if test -n "$ac_ct_RANLIB"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8221 $as_echo "$ac_ct_RANLIB" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227   if test "x$ac_ct_RANLIB" = x; then
8228     RANLIB=":"
8229   else
8230     case $cross_compiling:$ac_tool_warned in
8231 yes:)
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234 ac_tool_warned=yes ;;
8235 esac
8236     RANLIB=$ac_ct_RANLIB
8237   fi
8238 else
8239   RANLIB="$ac_cv_prog_RANLIB"
8240 fi
8241
8242 test -z "$RANLIB" && RANLIB=:
8243
8244
8245
8246
8247
8248
8249 # Determine commands to create old-style static archives.
8250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8251 old_postinstall_cmds='chmod 644 $oldlib'
8252 old_postuninstall_cmds=
8253
8254 if test -n "$RANLIB"; then
8255   case $host_os in
8256   openbsd*)
8257     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8258     ;;
8259   *)
8260     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8261     ;;
8262   esac
8263   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8264 fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 # If no C compiler was specified, use CC.
8300 LTCC=${LTCC-"$CC"}
8301
8302 # If no C compiler flags were specified, use CFLAGS.
8303 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8304
8305 # Allow CC to be a program name with arguments.
8306 compiler=$CC
8307
8308
8309 # Check for command to grab the raw symbol name followed by C symbol from nm.
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8311 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8312 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315
8316 # These are sane defaults that work on at least a few old systems.
8317 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8318
8319 # Character class describing NM global symbol codes.
8320 symcode='[BCDEGRST]'
8321
8322 # Regexp to match symbols that can be accessed directly from C.
8323 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8324
8325 # Define system-specific variables.
8326 case $host_os in
8327 aix*)
8328   symcode='[BCDT]'
8329   ;;
8330 cygwin* | mingw* | pw32* | cegcc*)
8331   symcode='[ABCDGISTW]'
8332   ;;
8333 hpux*)
8334   if test "$host_cpu" = ia64; then
8335     symcode='[ABCDEGRST]'
8336   fi
8337   ;;
8338 irix* | nonstopux*)
8339   symcode='[BCDEGRST]'
8340   ;;
8341 osf*)
8342   symcode='[BCDEGQRST]'
8343   ;;
8344 solaris*)
8345   symcode='[BDRT]'
8346   ;;
8347 sco3.2v5*)
8348   symcode='[DT]'
8349   ;;
8350 sysv4.2uw2*)
8351   symcode='[DT]'
8352   ;;
8353 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354   symcode='[ABDT]'
8355   ;;
8356 sysv4)
8357   symcode='[DFNSTU]'
8358   ;;
8359 esac
8360
8361 # If we're using GNU nm, then use its standard symbol codes.
8362 case `$NM -V 2>&1` in
8363 *GNU* | *'with BFD'*)
8364   symcode='[ABCDGIRSTW]' ;;
8365 esac
8366
8367 # Transform an extracted symbol line into a proper C declaration.
8368 # Some systems (esp. on ia64) link data and code symbols differently,
8369 # so use this general approach.
8370 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8371
8372 # Transform an extracted symbol line into symbol name and symbol address
8373 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8374 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'"
8375
8376 # Handle CRLF in mingw tool chain
8377 opt_cr=
8378 case $build_os in
8379 mingw*)
8380   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8381   ;;
8382 esac
8383
8384 # Try without a prefix underscore, then with it.
8385 for ac_symprfx in "" "_"; do
8386
8387   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8388   symxfrm="\\1 $ac_symprfx\\2 \\2"
8389
8390   # Write the raw and C identifiers.
8391   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8392     # Fake it for dumpbin and say T for any non-static function
8393     # and D for any global variable.
8394     # Also find C++ and __fastcall symbols from MSVC++,
8395     # which start with @ or ?.
8396     lt_cv_sys_global_symbol_pipe="$AWK '"\
8397 "     {last_section=section; section=\$ 3};"\
8398 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8399 "     \$ 0!~/External *\|/{next};"\
8400 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8401 "     {if(hide[section]) next};"\
8402 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8403 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8404 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8405 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8406 "     ' prfx=^$ac_symprfx"
8407   else
8408     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8409   fi
8410
8411   # Check to see that the pipe works correctly.
8412   pipe_works=no
8413
8414   rm -f conftest*
8415   cat > conftest.$ac_ext <<_LT_EOF
8416 #ifdef __cplusplus
8417 extern "C" {
8418 #endif
8419 char nm_test_var;
8420 void nm_test_func(void);
8421 void nm_test_func(void){}
8422 #ifdef __cplusplus
8423 }
8424 #endif
8425 int main(){nm_test_var='a';nm_test_func();return(0);}
8426 _LT_EOF
8427
8428   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8429   (eval $ac_compile) 2>&5
8430   ac_status=$?
8431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8432   test $ac_status = 0; }; then
8433     # Now try to grab the symbols.
8434     nlist=conftest.nm
8435     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8436   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8437   ac_status=$?
8438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8439   test $ac_status = 0; } && test -s "$nlist"; then
8440       # Try sorting and uniquifying the output.
8441       if sort "$nlist" | uniq > "$nlist"T; then
8442         mv -f "$nlist"T "$nlist"
8443       else
8444         rm -f "$nlist"T
8445       fi
8446
8447       # Make sure that we snagged all the symbols we need.
8448       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8449         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8450           cat <<_LT_EOF > conftest.$ac_ext
8451 #ifdef __cplusplus
8452 extern "C" {
8453 #endif
8454
8455 _LT_EOF
8456           # Now generate the symbol file.
8457           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8458
8459           cat <<_LT_EOF >> conftest.$ac_ext
8460
8461 /* The mapping between symbol names and symbols.  */
8462 const struct {
8463   const char *name;
8464   void       *address;
8465 }
8466 lt__PROGRAM__LTX_preloaded_symbols[] =
8467 {
8468   { "@PROGRAM@", (void *) 0 },
8469 _LT_EOF
8470           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8471           cat <<\_LT_EOF >> conftest.$ac_ext
8472   {0, (void *) 0}
8473 };
8474
8475 /* This works around a problem in FreeBSD linker */
8476 #ifdef FREEBSD_WORKAROUND
8477 static const void *lt_preloaded_setup() {
8478   return lt__PROGRAM__LTX_preloaded_symbols;
8479 }
8480 #endif
8481
8482 #ifdef __cplusplus
8483 }
8484 #endif
8485 _LT_EOF
8486           # Now try linking the two files.
8487           mv conftest.$ac_objext conftstm.$ac_objext
8488           lt_save_LIBS="$LIBS"
8489           lt_save_CFLAGS="$CFLAGS"
8490           LIBS="conftstm.$ac_objext"
8491           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8492           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8493   (eval $ac_link) 2>&5
8494   ac_status=$?
8495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8496   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8497             pipe_works=yes
8498           fi
8499           LIBS="$lt_save_LIBS"
8500           CFLAGS="$lt_save_CFLAGS"
8501         else
8502           echo "cannot find nm_test_func in $nlist" >&5
8503         fi
8504       else
8505         echo "cannot find nm_test_var in $nlist" >&5
8506       fi
8507     else
8508       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8509     fi
8510   else
8511     echo "$progname: failed program was:" >&5
8512     cat conftest.$ac_ext >&5
8513   fi
8514   rm -rf conftest* conftst*
8515
8516   # Do not use the global_symbol_pipe unless it works.
8517   if test "$pipe_works" = yes; then
8518     break
8519   else
8520     lt_cv_sys_global_symbol_pipe=
8521   fi
8522 done
8523
8524 fi
8525
8526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8527   lt_cv_sys_global_symbol_to_cdecl=
8528 fi
8529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8531 $as_echo "failed" >&6; }
8532 else
8533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8534 $as_echo "ok" >&6; }
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 # Check whether --enable-libtool-lock was given.
8559 if test "${enable_libtool_lock+set}" = set; then :
8560   enableval=$enable_libtool_lock;
8561 fi
8562
8563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8564
8565 # Some flags need to be propagated to the compiler or linker for good
8566 # libtool support.
8567 case $host in
8568 ia64-*-hpux*)
8569   # Find out which ABI we are using.
8570   echo 'int i;' > conftest.$ac_ext
8571   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8572   (eval $ac_compile) 2>&5
8573   ac_status=$?
8574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8575   test $ac_status = 0; }; then
8576     case `/usr/bin/file conftest.$ac_objext` in
8577       *ELF-32*)
8578         HPUX_IA64_MODE="32"
8579         ;;
8580       *ELF-64*)
8581         HPUX_IA64_MODE="64"
8582         ;;
8583     esac
8584   fi
8585   rm -rf conftest*
8586   ;;
8587 *-*-irix6*)
8588   # Find out which ABI we are using.
8589   echo '#line 8589 "configure"' > conftest.$ac_ext
8590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8591   (eval $ac_compile) 2>&5
8592   ac_status=$?
8593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8594   test $ac_status = 0; }; then
8595     if test "$lt_cv_prog_gnu_ld" = yes; then
8596       case `/usr/bin/file conftest.$ac_objext` in
8597         *32-bit*)
8598           LD="${LD-ld} -melf32bsmip"
8599           ;;
8600         *N32*)
8601           LD="${LD-ld} -melf32bmipn32"
8602           ;;
8603         *64-bit*)
8604           LD="${LD-ld} -melf64bmip"
8605         ;;
8606       esac
8607     else
8608       case `/usr/bin/file conftest.$ac_objext` in
8609         *32-bit*)
8610           LD="${LD-ld} -32"
8611           ;;
8612         *N32*)
8613           LD="${LD-ld} -n32"
8614           ;;
8615         *64-bit*)
8616           LD="${LD-ld} -64"
8617           ;;
8618       esac
8619     fi
8620   fi
8621   rm -rf conftest*
8622   ;;
8623
8624 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8625 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8626   # Find out which ABI we are using.
8627   echo 'int i;' > conftest.$ac_ext
8628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8629   (eval $ac_compile) 2>&5
8630   ac_status=$?
8631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8632   test $ac_status = 0; }; then
8633     case `/usr/bin/file conftest.o` in
8634       *32-bit*)
8635         case $host in
8636           x86_64-*kfreebsd*-gnu)
8637             LD="${LD-ld} -m elf_i386_fbsd"
8638             ;;
8639           x86_64-*linux*)
8640             LD="${LD-ld} -m elf_i386"
8641             ;;
8642           ppc64-*linux*|powerpc64-*linux*)
8643             LD="${LD-ld} -m elf32ppclinux"
8644             ;;
8645           s390x-*linux*)
8646             LD="${LD-ld} -m elf_s390"
8647             ;;
8648           sparc64-*linux*)
8649             LD="${LD-ld} -m elf32_sparc"
8650             ;;
8651         esac
8652         ;;
8653       *64-bit*)
8654         case $host in
8655           x86_64-*kfreebsd*-gnu)
8656             LD="${LD-ld} -m elf_x86_64_fbsd"
8657             ;;
8658           x86_64-*linux*)
8659             LD="${LD-ld} -m elf_x86_64"
8660             ;;
8661           ppc*-*linux*|powerpc*-*linux*)
8662             LD="${LD-ld} -m elf64ppc"
8663             ;;
8664           s390*-*linux*|s390*-*tpf*)
8665             LD="${LD-ld} -m elf64_s390"
8666             ;;
8667           sparc*-*linux*)
8668             LD="${LD-ld} -m elf64_sparc"
8669             ;;
8670         esac
8671         ;;
8672     esac
8673   fi
8674   rm -rf conftest*
8675   ;;
8676
8677 *-*-sco3.2v5*)
8678   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8679   SAVE_CFLAGS="$CFLAGS"
8680   CFLAGS="$CFLAGS -belf"
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8682 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8683 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   ac_ext=c
8687 ac_cpp='$CPP $CPPFLAGS'
8688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h.  */
8694
8695 int
8696 main ()
8697 {
8698
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_link "$LINENO"; then :
8704   lt_cv_cc_needs_belf=yes
8705 else
8706   lt_cv_cc_needs_belf=no
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext conftest.$ac_ext
8710      ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8718 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8719   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8720     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8721     CFLAGS="$SAVE_CFLAGS"
8722   fi
8723   ;;
8724 sparc*-*solaris*)
8725   # Find out which ABI we are using.
8726   echo 'int i;' > conftest.$ac_ext
8727   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8728   (eval $ac_compile) 2>&5
8729   ac_status=$?
8730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8731   test $ac_status = 0; }; then
8732     case `/usr/bin/file conftest.o` in
8733     *64-bit*)
8734       case $lt_cv_prog_gnu_ld in
8735       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8736       *)
8737         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8738           LD="${LD-ld} -64"
8739         fi
8740         ;;
8741       esac
8742       ;;
8743     esac
8744   fi
8745   rm -rf conftest*
8746   ;;
8747 esac
8748
8749 need_locks="$enable_libtool_lock"
8750
8751
8752   case $host_os in
8753     rhapsody* | darwin*)
8754     if test -n "$ac_tool_prefix"; then
8755   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8756 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8760   $as_echo_n "(cached) " >&6
8761 else
8762   if test -n "$DSYMUTIL"; then
8763   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770     for ac_exec_ext in '' $ac_executable_extensions; do
8771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777   done
8778 IFS=$as_save_IFS
8779
8780 fi
8781 fi
8782 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8783 if test -n "$DSYMUTIL"; then
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8785 $as_echo "$DSYMUTIL" >&6; }
8786 else
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790
8791
8792 fi
8793 if test -z "$ac_cv_prog_DSYMUTIL"; then
8794   ac_ct_DSYMUTIL=$DSYMUTIL
8795   # Extract the first word of "dsymutil", so it can be a program name with args.
8796 set dummy dsymutil; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   if test -n "$ac_ct_DSYMUTIL"; then
8803   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808   IFS=$as_save_IFS
8809   test -z "$as_dir" && as_dir=.
8810     for ac_exec_ext in '' $ac_executable_extensions; do
8811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814     break 2
8815   fi
8816 done
8817   done
8818 IFS=$as_save_IFS
8819
8820 fi
8821 fi
8822 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8823 if test -n "$ac_ct_DSYMUTIL"; then
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8825 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8826 else
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 fi
8830
8831   if test "x$ac_ct_DSYMUTIL" = x; then
8832     DSYMUTIL=":"
8833   else
8834     case $cross_compiling:$ac_tool_warned in
8835 yes:)
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8839 esac
8840     DSYMUTIL=$ac_ct_DSYMUTIL
8841   fi
8842 else
8843   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8844 fi
8845
8846     if test -n "$ac_tool_prefix"; then
8847   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8852   $as_echo_n "(cached) " >&6
8853 else
8854   if test -n "$NMEDIT"; then
8855   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8856 else
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860   IFS=$as_save_IFS
8861   test -z "$as_dir" && as_dir=.
8862     for ac_exec_ext in '' $ac_executable_extensions; do
8863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866     break 2
8867   fi
8868 done
8869   done
8870 IFS=$as_save_IFS
8871
8872 fi
8873 fi
8874 NMEDIT=$ac_cv_prog_NMEDIT
8875 if test -n "$NMEDIT"; then
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8877 $as_echo "$NMEDIT" >&6; }
8878 else
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881 fi
8882
8883
8884 fi
8885 if test -z "$ac_cv_prog_NMEDIT"; then
8886   ac_ct_NMEDIT=$NMEDIT
8887   # Extract the first word of "nmedit", so it can be a program name with args.
8888 set dummy nmedit; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8892   $as_echo_n "(cached) " >&6
8893 else
8894   if test -n "$ac_ct_NMEDIT"; then
8895   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900   IFS=$as_save_IFS
8901   test -z "$as_dir" && as_dir=.
8902     for ac_exec_ext in '' $ac_executable_extensions; do
8903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8904     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906     break 2
8907   fi
8908 done
8909   done
8910 IFS=$as_save_IFS
8911
8912 fi
8913 fi
8914 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8915 if test -n "$ac_ct_NMEDIT"; then
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8917 $as_echo "$ac_ct_NMEDIT" >&6; }
8918 else
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 fi
8922
8923   if test "x$ac_ct_NMEDIT" = x; then
8924     NMEDIT=":"
8925   else
8926     case $cross_compiling:$ac_tool_warned in
8927 yes:)
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8930 ac_tool_warned=yes ;;
8931 esac
8932     NMEDIT=$ac_ct_NMEDIT
8933   fi
8934 else
8935   NMEDIT="$ac_cv_prog_NMEDIT"
8936 fi
8937
8938     if test -n "$ac_tool_prefix"; then
8939   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8940 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_prog_LIPO+set}" = set; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   if test -n "$LIPO"; then
8947   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   test -z "$as_dir" && as_dir=.
8954     for ac_exec_ext in '' $ac_executable_extensions; do
8955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958     break 2
8959   fi
8960 done
8961   done
8962 IFS=$as_save_IFS
8963
8964 fi
8965 fi
8966 LIPO=$ac_cv_prog_LIPO
8967 if test -n "$LIPO"; then
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8969 $as_echo "$LIPO" >&6; }
8970 else
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8973 fi
8974
8975
8976 fi
8977 if test -z "$ac_cv_prog_LIPO"; then
8978   ac_ct_LIPO=$LIPO
8979   # Extract the first word of "lipo", so it can be a program name with args.
8980 set dummy lipo; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8984   $as_echo_n "(cached) " >&6
8985 else
8986   if test -n "$ac_ct_LIPO"; then
8987   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992   IFS=$as_save_IFS
8993   test -z "$as_dir" && as_dir=.
8994     for ac_exec_ext in '' $ac_executable_extensions; do
8995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996     ac_cv_prog_ac_ct_LIPO="lipo"
8997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998     break 2
8999   fi
9000 done
9001   done
9002 IFS=$as_save_IFS
9003
9004 fi
9005 fi
9006 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9007 if test -n "$ac_ct_LIPO"; then
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9009 $as_echo "$ac_ct_LIPO" >&6; }
9010 else
9011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 fi
9014
9015   if test "x$ac_ct_LIPO" = x; then
9016     LIPO=":"
9017   else
9018     case $cross_compiling:$ac_tool_warned in
9019 yes:)
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9022 ac_tool_warned=yes ;;
9023 esac
9024     LIPO=$ac_ct_LIPO
9025   fi
9026 else
9027   LIPO="$ac_cv_prog_LIPO"
9028 fi
9029
9030     if test -n "$ac_tool_prefix"; then
9031   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9032 set dummy ${ac_tool_prefix}otool; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   if test -n "$OTOOL"; then
9039   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9040 else
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 OTOOL=$ac_cv_prog_OTOOL
9059 if test -n "$OTOOL"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9061 $as_echo "$OTOOL" >&6; }
9062 else
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066
9067
9068 fi
9069 if test -z "$ac_cv_prog_OTOOL"; then
9070   ac_ct_OTOOL=$OTOOL
9071   # Extract the first word of "otool", so it can be a program name with args.
9072 set dummy otool; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   if test -n "$ac_ct_OTOOL"; then
9079   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084   IFS=$as_save_IFS
9085   test -z "$as_dir" && as_dir=.
9086     for ac_exec_ext in '' $ac_executable_extensions; do
9087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088     ac_cv_prog_ac_ct_OTOOL="otool"
9089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090     break 2
9091   fi
9092 done
9093   done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9099 if test -n "$ac_ct_OTOOL"; then
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9101 $as_echo "$ac_ct_OTOOL" >&6; }
9102 else
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107   if test "x$ac_ct_OTOOL" = x; then
9108     OTOOL=":"
9109   else
9110     case $cross_compiling:$ac_tool_warned in
9111 yes:)
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9114 ac_tool_warned=yes ;;
9115 esac
9116     OTOOL=$ac_ct_OTOOL
9117   fi
9118 else
9119   OTOOL="$ac_cv_prog_OTOOL"
9120 fi
9121
9122     if test -n "$ac_tool_prefix"; then
9123   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9124 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   if test -n "$OTOOL64"; then
9131   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9132 else
9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 for as_dir in $PATH
9135 do
9136   IFS=$as_save_IFS
9137   test -z "$as_dir" && as_dir=.
9138     for ac_exec_ext in '' $ac_executable_extensions; do
9139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142     break 2
9143   fi
9144 done
9145   done
9146 IFS=$as_save_IFS
9147
9148 fi
9149 fi
9150 OTOOL64=$ac_cv_prog_OTOOL64
9151 if test -n "$OTOOL64"; then
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9153 $as_echo "$OTOOL64" >&6; }
9154 else
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9157 fi
9158
9159
9160 fi
9161 if test -z "$ac_cv_prog_OTOOL64"; then
9162   ac_ct_OTOOL64=$OTOOL64
9163   # Extract the first word of "otool64", so it can be a program name with args.
9164 set dummy otool64; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$ac_ct_OTOOL64"; then
9171   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9180     ac_cv_prog_ac_ct_OTOOL64="otool64"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9191 if test -n "$ac_ct_OTOOL64"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9193 $as_echo "$ac_ct_OTOOL64" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199   if test "x$ac_ct_OTOOL64" = x; then
9200     OTOOL64=":"
9201   else
9202     case $cross_compiling:$ac_tool_warned in
9203 yes:)
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9206 ac_tool_warned=yes ;;
9207 esac
9208     OTOOL64=$ac_ct_OTOOL64
9209   fi
9210 else
9211   OTOOL64="$ac_cv_prog_OTOOL64"
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9241 $as_echo_n "checking for -single_module linker flag... " >&6; }
9242 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   lt_cv_apple_cc_single_mod=no
9246       if test -z "${LT_MULTI_MODULE}"; then
9247         # By default we will add the -single_module flag. You can override
9248         # by either setting the environment variable LT_MULTI_MODULE
9249         # non-empty at configure time, or by adding -multi_module to the
9250         # link flags.
9251         rm -rf libconftest.dylib*
9252         echo "int foo(void){return 1;}" > conftest.c
9253         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9254 -dynamiclib -Wl,-single_module conftest.c" >&5
9255         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9256           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9257         _lt_result=$?
9258         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9259           lt_cv_apple_cc_single_mod=yes
9260         else
9261           cat conftest.err >&5
9262         fi
9263         rm -rf libconftest.dylib*
9264         rm -f conftest.*
9265       fi
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9268 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9270 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9271 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   lt_cv_ld_exported_symbols_list=no
9275       save_LDFLAGS=$LDFLAGS
9276       echo "_main" > conftest.sym
9277       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h.  */
9280
9281 int
9282 main ()
9283 {
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290   lt_cv_ld_exported_symbols_list=yes
9291 else
9292   lt_cv_ld_exported_symbols_list=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext \
9295     conftest$ac_exeext conftest.$ac_ext
9296         LDFLAGS="$save_LDFLAGS"
9297
9298 fi
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9300 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9301     case $host_os in
9302     rhapsody* | darwin1.[012])
9303       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9304     darwin1.*)
9305       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9306     darwin*) # darwin 5.x on
9307       # if running on 10.5 or later, the deployment target defaults
9308       # to the OS version, if on x86, and 10.4, the deployment
9309       # target defaults to 10.4. Don't you love it?
9310       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9311         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9312           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9313         10.[012]*)
9314           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9315         10.*)
9316           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9317       esac
9318     ;;
9319   esac
9320     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9321       _lt_dar_single_mod='$single_module'
9322     fi
9323     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9324       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9325     else
9326       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9327     fi
9328     if test "$DSYMUTIL" != ":"; then
9329       _lt_dsymutil='~$DSYMUTIL $lib || :'
9330     else
9331       _lt_dsymutil=
9332     fi
9333     ;;
9334   esac
9335
9336 for ac_header in dlfcn.h
9337 do :
9338   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9339 "
9340 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9341   cat >>confdefs.h <<_ACEOF
9342 #define HAVE_DLFCN_H 1
9343 _ACEOF
9344
9345 fi
9346
9347 done
9348
9349
9350
9351 ac_ext=cpp
9352 ac_cpp='$CXXCPP $CPPFLAGS'
9353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9356 if test -z "$CXX"; then
9357   if test -n "$CCC"; then
9358     CXX=$CCC
9359   else
9360     if test -n "$ac_tool_prefix"; then
9361   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9362   do
9363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 $as_echo_n "checking for $ac_word... " >&6; }
9367 if test "${ac_cv_prog_CXX+set}" = set; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   if test -n "$CXX"; then
9371   ac_cv_prog_CXX="$CXX" # Let the user override the test.
9372 else
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376   IFS=$as_save_IFS
9377   test -z "$as_dir" && as_dir=.
9378     for ac_exec_ext in '' $ac_executable_extensions; do
9379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382     break 2
9383   fi
9384 done
9385   done
9386 IFS=$as_save_IFS
9387
9388 fi
9389 fi
9390 CXX=$ac_cv_prog_CXX
9391 if test -n "$CXX"; then
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9393 $as_echo "$CXX" >&6; }
9394 else
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9397 fi
9398
9399
9400     test -n "$CXX" && break
9401   done
9402 fi
9403 if test -z "$CXX"; then
9404   ac_ct_CXX=$CXX
9405   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9406 do
9407   # Extract the first word of "$ac_prog", so it can be a program name with args.
9408 set dummy $ac_prog; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   if test -n "$ac_ct_CXX"; then
9415   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9416 else
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9419 do
9420   IFS=$as_save_IFS
9421   test -z "$as_dir" && as_dir=.
9422     for ac_exec_ext in '' $ac_executable_extensions; do
9423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424     ac_cv_prog_ac_ct_CXX="$ac_prog"
9425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426     break 2
9427   fi
9428 done
9429   done
9430 IFS=$as_save_IFS
9431
9432 fi
9433 fi
9434 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9435 if test -n "$ac_ct_CXX"; then
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9437 $as_echo "$ac_ct_CXX" >&6; }
9438 else
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443
9444   test -n "$ac_ct_CXX" && break
9445 done
9446
9447   if test "x$ac_ct_CXX" = x; then
9448     CXX="g++"
9449   else
9450     case $cross_compiling:$ac_tool_warned in
9451 yes:)
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9454 ac_tool_warned=yes ;;
9455 esac
9456     CXX=$ac_ct_CXX
9457   fi
9458 fi
9459
9460   fi
9461 fi
9462 # Provide some information about the compiler.
9463 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9464 set X $ac_compile
9465 ac_compiler=$2
9466 for ac_option in --version -v -V -qversion; do
9467   { { ac_try="$ac_compiler $ac_option >&5"
9468 case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9473 $as_echo "$ac_try_echo"; } >&5
9474   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9475   ac_status=$?
9476   if test -s conftest.err; then
9477     sed '10a\
9478 ... rest of stderr output deleted ...
9479          10q' conftest.err >conftest.er1
9480     cat conftest.er1 >&5
9481   fi
9482   rm -f conftest.er1 conftest.err
9483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484   test $ac_status = 0; }
9485 done
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9488 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9490   $as_echo_n "(cached) " >&6
9491 else
9492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h.  */
9494
9495 int
9496 main ()
9497 {
9498 #ifndef __GNUC__
9499        choke me
9500 #endif
9501
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 if ac_fn_cxx_try_compile "$LINENO"; then :
9507   ac_compiler_gnu=yes
9508 else
9509   ac_compiler_gnu=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9513
9514 fi
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9516 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9517 if test $ac_compiler_gnu = yes; then
9518   GXX=yes
9519 else
9520   GXX=
9521 fi
9522 ac_test_CXXFLAGS=${CXXFLAGS+set}
9523 ac_save_CXXFLAGS=$CXXFLAGS
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9525 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9526 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9527   $as_echo_n "(cached) " >&6
9528 else
9529   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9530    ac_cxx_werror_flag=yes
9531    ac_cv_prog_cxx_g=no
9532    CXXFLAGS="-g"
9533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h.  */
9535
9536 int
9537 main ()
9538 {
9539
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 if ac_fn_cxx_try_compile "$LINENO"; then :
9545   ac_cv_prog_cxx_g=yes
9546 else
9547   CXXFLAGS=""
9548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550
9551 int
9552 main ()
9553 {
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 if ac_fn_cxx_try_compile "$LINENO"; then :
9560
9561 else
9562   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9563          CXXFLAGS="-g"
9564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h.  */
9566
9567 int
9568 main ()
9569 {
9570
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 if ac_fn_cxx_try_compile "$LINENO"; then :
9576   ac_cv_prog_cxx_g=yes
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9586 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9587 if test "$ac_test_CXXFLAGS" = set; then
9588   CXXFLAGS=$ac_save_CXXFLAGS
9589 elif test $ac_cv_prog_cxx_g = yes; then
9590   if test "$GXX" = yes; then
9591     CXXFLAGS="-g -O2"
9592   else
9593     CXXFLAGS="-g"
9594   fi
9595 else
9596   if test "$GXX" = yes; then
9597     CXXFLAGS="-O2"
9598   else
9599     CXXFLAGS=
9600   fi
9601 fi
9602 ac_ext=c
9603 ac_cpp='$CPP $CPPFLAGS'
9604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9607
9608 depcc="$CXX"  am_compiler_list=
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9611 $as_echo_n "checking dependency style of $depcc... " >&6; }
9612 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9616   # We make a subdir and do the tests there.  Otherwise we can end up
9617   # making bogus files that we don't know about and never remove.  For
9618   # instance it was reported that on HP-UX the gcc test will end up
9619   # making a dummy file named `D' -- because `-MD' means `put the output
9620   # in D'.
9621   mkdir conftest.dir
9622   # Copy depcomp to subdir because otherwise we won't find it if we're
9623   # using a relative directory.
9624   cp "$am_depcomp" conftest.dir
9625   cd conftest.dir
9626   # We will build objects and dependencies in a subdirectory because
9627   # it helps to detect inapplicable dependency modes.  For instance
9628   # both Tru64's cc and ICC support -MD to output dependencies as a
9629   # side effect of compilation, but ICC will put the dependencies in
9630   # the current directory while Tru64 will put them in the object
9631   # directory.
9632   mkdir sub
9633
9634   am_cv_CXX_dependencies_compiler_type=none
9635   if test "$am_compiler_list" = ""; then
9636      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9637   fi
9638   am__universal=false
9639   case " $depcc " in #(
9640      *\ -arch\ *\ -arch\ *) am__universal=true ;;
9641      esac
9642
9643   for depmode in $am_compiler_list; do
9644     # Setup a source with many dependencies, because some compilers
9645     # like to wrap large dependency lists on column 80 (with \), and
9646     # we should not choose a depcomp mode which is confused by this.
9647     #
9648     # We need to recreate these files for each test, as the compiler may
9649     # overwrite some of them when testing with obscure command lines.
9650     # This happens at least with the AIX C compiler.
9651     : > sub/conftest.c
9652     for i in 1 2 3 4 5 6; do
9653       echo '#include "conftst'$i'.h"' >> sub/conftest.c
9654       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9655       # Solaris 8's {/usr,}/bin/sh.
9656       touch sub/conftst$i.h
9657     done
9658     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9659
9660     # We check with `-c' and `-o' for the sake of the "dashmstdout"
9661     # mode.  It turns out that the SunPro C++ compiler does not properly
9662     # handle `-M -o', and we need to detect this.  Also, some Intel
9663     # versions had trouble with output in subdirs
9664     am__obj=sub/conftest.${OBJEXT-o}
9665     am__minus_obj="-o $am__obj"
9666     case $depmode in
9667     gcc)
9668       # This depmode causes a compiler race in universal mode.
9669       test "$am__universal" = false || continue
9670       ;;
9671     nosideeffect)
9672       # after this tag, mechanisms are not by side-effect, so they'll
9673       # only be used when explicitly requested
9674       if test "x$enable_dependency_tracking" = xyes; then
9675         continue
9676       else
9677         break
9678       fi
9679       ;;
9680     msvisualcpp | msvcmsys)
9681       # This compiler won't grok `-c -o', but also, the minuso test has
9682       # not run yet.  These depmodes are late enough in the game, and
9683       # so weak that their functioning should not be impacted.
9684       am__obj=conftest.${OBJEXT-o}
9685       am__minus_obj=
9686       ;;
9687     none) break ;;
9688     esac
9689     if depmode=$depmode \
9690        source=sub/conftest.c object=$am__obj \
9691        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9692        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9693          >/dev/null 2>conftest.err &&
9694        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9695        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9696        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9697        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9698       # icc doesn't choke on unknown options, it will just issue warnings
9699       # or remarks (even with -Werror).  So we grep stderr for any message
9700       # that says an option was ignored or not supported.
9701       # When given -MP, icc 7.0 and 7.1 complain thusly:
9702       #   icc: Command line warning: ignoring option '-M'; no argument required
9703       # The diagnosis changed in icc 8.0:
9704       #   icc: Command line remark: option '-MP' not supported
9705       if (grep 'ignoring option' conftest.err ||
9706           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9707         am_cv_CXX_dependencies_compiler_type=$depmode
9708         break
9709       fi
9710     fi
9711   done
9712
9713   cd ..
9714   rm -rf conftest.dir
9715 else
9716   am_cv_CXX_dependencies_compiler_type=none
9717 fi
9718
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9721 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9722 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9723
9724  if
9725   test "x$enable_dependency_tracking" != xno \
9726   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9727   am__fastdepCXX_TRUE=
9728   am__fastdepCXX_FALSE='#'
9729 else
9730   am__fastdepCXX_TRUE='#'
9731   am__fastdepCXX_FALSE=
9732 fi
9733
9734
9735 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9736     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9737     (test "X$CXX" != "Xg++"))) ; then
9738   ac_ext=cpp
9739 ac_cpp='$CXXCPP $CPPFLAGS'
9740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9744 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9745 if test -z "$CXXCPP"; then
9746   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749       # Double quotes because CXXCPP needs to be expanded
9750     for CXXCPP in "$CXX -E" "/lib/cpp"
9751     do
9752       ac_preproc_ok=false
9753 for ac_cxx_preproc_warn_flag in '' yes
9754 do
9755   # Use a header file that comes with gcc, so configuring glibc
9756   # with a fresh cross-compiler works.
9757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758   # <limits.h> exists even on freestanding compilers.
9759   # On the NeXT, cc -E runs the code through the compiler's parser,
9760   # not just through cpp. "Syntax error" is here to catch this case.
9761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h.  */
9763 #ifdef __STDC__
9764 # include <limits.h>
9765 #else
9766 # include <assert.h>
9767 #endif
9768                      Syntax error
9769 _ACEOF
9770 if ac_fn_cxx_try_cpp "$LINENO"; then :
9771
9772 else
9773   # Broken: fails on valid input.
9774 continue
9775 fi
9776 rm -f conftest.err conftest.$ac_ext
9777
9778   # OK, works on sane cases.  Now check whether nonexistent headers
9779   # can be detected and how.
9780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782 #include <ac_nonexistent.h>
9783 _ACEOF
9784 if ac_fn_cxx_try_cpp "$LINENO"; then :
9785   # Broken: success on invalid input.
9786 continue
9787 else
9788   # Passes both tests.
9789 ac_preproc_ok=:
9790 break
9791 fi
9792 rm -f conftest.err conftest.$ac_ext
9793
9794 done
9795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9796 rm -f conftest.err conftest.$ac_ext
9797 if $ac_preproc_ok; then :
9798   break
9799 fi
9800
9801     done
9802     ac_cv_prog_CXXCPP=$CXXCPP
9803
9804 fi
9805   CXXCPP=$ac_cv_prog_CXXCPP
9806 else
9807   ac_cv_prog_CXXCPP=$CXXCPP
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9810 $as_echo "$CXXCPP" >&6; }
9811 ac_preproc_ok=false
9812 for ac_cxx_preproc_warn_flag in '' yes
9813 do
9814   # Use a header file that comes with gcc, so configuring glibc
9815   # with a fresh cross-compiler works.
9816   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817   # <limits.h> exists even on freestanding compilers.
9818   # On the NeXT, cc -E runs the code through the compiler's parser,
9819   # not just through cpp. "Syntax error" is here to catch this case.
9820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h.  */
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827                      Syntax error
9828 _ACEOF
9829 if ac_fn_cxx_try_cpp "$LINENO"; then :
9830
9831 else
9832   # Broken: fails on valid input.
9833 continue
9834 fi
9835 rm -f conftest.err conftest.$ac_ext
9836
9837   # OK, works on sane cases.  Now check whether nonexistent headers
9838   # can be detected and how.
9839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h.  */
9841 #include <ac_nonexistent.h>
9842 _ACEOF
9843 if ac_fn_cxx_try_cpp "$LINENO"; then :
9844   # Broken: success on invalid input.
9845 continue
9846 else
9847   # Passes both tests.
9848 ac_preproc_ok=:
9849 break
9850 fi
9851 rm -f conftest.err conftest.$ac_ext
9852
9853 done
9854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9855 rm -f conftest.err conftest.$ac_ext
9856 if $ac_preproc_ok; then :
9857
9858 else
9859   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9861 _lt_caught_CXX_error=yes; }
9862 fi
9863
9864 ac_ext=c
9865 ac_cpp='$CPP $CPPFLAGS'
9866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869
9870 else
9871   _lt_caught_CXX_error=yes
9872 fi
9873
9874
9875
9876
9877 # Set options
9878
9879
9880
9881         enable_dlopen=no
9882
9883
9884
9885
9886
9887
9888 # Check whether --with-pic was given.
9889 if test "${with_pic+set}" = set; then :
9890   withval=$with_pic; pic_mode="$withval"
9891 else
9892   pic_mode=default
9893 fi
9894
9895
9896 test -z "$pic_mode" && pic_mode=default
9897
9898
9899
9900
9901
9902
9903
9904   # Check whether --enable-fast-install was given.
9905 if test "${enable_fast_install+set}" = set; then :
9906   enableval=$enable_fast_install; p=${PACKAGE-default}
9907     case $enableval in
9908     yes) enable_fast_install=yes ;;
9909     no) enable_fast_install=no ;;
9910     *)
9911       enable_fast_install=no
9912       # Look at the argument we got.  We use all the common list separators.
9913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9914       for pkg in $enableval; do
9915         IFS="$lt_save_ifs"
9916         if test "X$pkg" = "X$p"; then
9917           enable_fast_install=yes
9918         fi
9919       done
9920       IFS="$lt_save_ifs"
9921       ;;
9922     esac
9923 else
9924   enable_fast_install=yes
9925 fi
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937 # This can be used to rebuild libtool when needed
9938 LIBTOOL_DEPS="$ltmain"
9939
9940 # Always use our own libtool.
9941 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967 test -z "$LN_S" && LN_S="ln -s"
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 if test -n "${ZSH_VERSION+set}" ; then
9983    setopt NO_GLOB_SUBST
9984 fi
9985
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9987 $as_echo_n "checking for objdir... " >&6; }
9988 if test "${lt_cv_objdir+set}" = set; then :
9989   $as_echo_n "(cached) " >&6
9990 else
9991   rm -f .libs 2>/dev/null
9992 mkdir .libs 2>/dev/null
9993 if test -d .libs; then
9994   lt_cv_objdir=.libs
9995 else
9996   # MS-DOS does not allow filenames that begin with a dot.
9997   lt_cv_objdir=_libs
9998 fi
9999 rmdir .libs 2>/dev/null
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10002 $as_echo "$lt_cv_objdir" >&6; }
10003 objdir=$lt_cv_objdir
10004
10005
10006
10007
10008
10009 cat >>confdefs.h <<_ACEOF
10010 #define LT_OBJDIR "$lt_cv_objdir/"
10011 _ACEOF
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029 case $host_os in
10030 aix3*)
10031   # AIX sometimes has problems with the GCC collect2 program.  For some
10032   # reason, if we set the COLLECT_NAMES environment variable, the problems
10033   # vanish in a puff of smoke.
10034   if test "X${COLLECT_NAMES+set}" != Xset; then
10035     COLLECT_NAMES=
10036     export COLLECT_NAMES
10037   fi
10038   ;;
10039 esac
10040
10041 # Sed substitution that helps us do robust quoting.  It backslashifies
10042 # metacharacters that are still active within double-quoted strings.
10043 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10044
10045 # Same as above, but do not quote variable references.
10046 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10047
10048 # Sed substitution to delay expansion of an escaped shell variable in a
10049 # double_quote_subst'ed string.
10050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10051
10052 # Sed substitution to delay expansion of an escaped single quote.
10053 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10054
10055 # Sed substitution to avoid accidental globbing in evaled expressions
10056 no_glob_subst='s/\*/\\\*/g'
10057
10058 # Global variables:
10059 ofile=libtool
10060 can_build_shared=yes
10061
10062 # All known linkers require a `.a' archive for static linking (except MSVC,
10063 # which needs '.lib').
10064 libext=a
10065
10066 with_gnu_ld="$lt_cv_prog_gnu_ld"
10067
10068 old_CC="$CC"
10069 old_CFLAGS="$CFLAGS"
10070
10071 # Set sane defaults for various variables
10072 test -z "$CC" && CC=cc
10073 test -z "$LTCC" && LTCC=$CC
10074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10075 test -z "$LD" && LD=ld
10076 test -z "$ac_objext" && ac_objext=o
10077
10078 for cc_temp in $compiler""; do
10079   case $cc_temp in
10080     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10081     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10082     \-*) ;;
10083     *) break;;
10084   esac
10085 done
10086 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10087
10088
10089 # Only perform the check for file, if the check method requires it
10090 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10091 case $deplibs_check_method in
10092 file_magic*)
10093   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10095 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10096 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   case $MAGIC_CMD in
10100 [\\/*] |  ?:[\\/]*)
10101   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10102   ;;
10103 *)
10104   lt_save_MAGIC_CMD="$MAGIC_CMD"
10105   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10106   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10107   for ac_dir in $ac_dummy; do
10108     IFS="$lt_save_ifs"
10109     test -z "$ac_dir" && ac_dir=.
10110     if test -f $ac_dir/${ac_tool_prefix}file; then
10111       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10112       if test -n "$file_magic_test_file"; then
10113         case $deplibs_check_method in
10114         "file_magic "*)
10115           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10116           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10117           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10118             $EGREP "$file_magic_regex" > /dev/null; then
10119             :
10120           else
10121             cat <<_LT_EOF 1>&2
10122
10123 *** Warning: the command libtool uses to detect shared libraries,
10124 *** $file_magic_cmd, produces output that libtool cannot recognize.
10125 *** The result is that libtool may fail to recognize shared libraries
10126 *** as such.  This will affect the creation of libtool libraries that
10127 *** depend on shared libraries, but programs linked with such libtool
10128 *** libraries will work regardless of this problem.  Nevertheless, you
10129 *** may want to report the problem to your system manager and/or to
10130 *** bug-libtool@gnu.org
10131
10132 _LT_EOF
10133           fi ;;
10134         esac
10135       fi
10136       break
10137     fi
10138   done
10139   IFS="$lt_save_ifs"
10140   MAGIC_CMD="$lt_save_MAGIC_CMD"
10141   ;;
10142 esac
10143 fi
10144
10145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10146 if test -n "$MAGIC_CMD"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10148 $as_echo "$MAGIC_CMD" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154
10155
10156
10157
10158 if test -z "$lt_cv_path_MAGIC_CMD"; then
10159   if test -n "$ac_tool_prefix"; then
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10161 $as_echo_n "checking for file... " >&6; }
10162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   case $MAGIC_CMD in
10166 [\\/*] |  ?:[\\/]*)
10167   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10168   ;;
10169 *)
10170   lt_save_MAGIC_CMD="$MAGIC_CMD"
10171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10172   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10173   for ac_dir in $ac_dummy; do
10174     IFS="$lt_save_ifs"
10175     test -z "$ac_dir" && ac_dir=.
10176     if test -f $ac_dir/file; then
10177       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10178       if test -n "$file_magic_test_file"; then
10179         case $deplibs_check_method in
10180         "file_magic "*)
10181           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10184             $EGREP "$file_magic_regex" > /dev/null; then
10185             :
10186           else
10187             cat <<_LT_EOF 1>&2
10188
10189 *** Warning: the command libtool uses to detect shared libraries,
10190 *** $file_magic_cmd, produces output that libtool cannot recognize.
10191 *** The result is that libtool may fail to recognize shared libraries
10192 *** as such.  This will affect the creation of libtool libraries that
10193 *** depend on shared libraries, but programs linked with such libtool
10194 *** libraries will work regardless of this problem.  Nevertheless, you
10195 *** may want to report the problem to your system manager and/or to
10196 *** bug-libtool@gnu.org
10197
10198 _LT_EOF
10199           fi ;;
10200         esac
10201       fi
10202       break
10203     fi
10204   done
10205   IFS="$lt_save_ifs"
10206   MAGIC_CMD="$lt_save_MAGIC_CMD"
10207   ;;
10208 esac
10209 fi
10210
10211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10212 if test -n "$MAGIC_CMD"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10214 $as_echo "$MAGIC_CMD" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221   else
10222     MAGIC_CMD=:
10223   fi
10224 fi
10225
10226   fi
10227   ;;
10228 esac
10229
10230 # Use C for the default configuration in the libtool script
10231
10232 lt_save_CC="$CC"
10233 ac_ext=c
10234 ac_cpp='$CPP $CPPFLAGS'
10235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10238
10239
10240 # Source file extension for C test sources.
10241 ac_ext=c
10242
10243 # Object file extension for compiled C test sources.
10244 objext=o
10245 objext=$objext
10246
10247 # Code to be used in simple compile tests
10248 lt_simple_compile_test_code="int some_variable = 0;"
10249
10250 # Code to be used in simple link tests
10251 lt_simple_link_test_code='int main(){return(0);}'
10252
10253
10254
10255
10256
10257
10258
10259 # If no C compiler was specified, use CC.
10260 LTCC=${LTCC-"$CC"}
10261
10262 # If no C compiler flags were specified, use CFLAGS.
10263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10264
10265 # Allow CC to be a program name with arguments.
10266 compiler=$CC
10267
10268 # Save the default compiler, since it gets overwritten when the other
10269 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10270 compiler_DEFAULT=$CC
10271
10272 # save warnings/boilerplate of simple test code
10273 ac_outfile=conftest.$ac_objext
10274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10276 _lt_compiler_boilerplate=`cat conftest.err`
10277 $RM conftest*
10278
10279 ac_outfile=conftest.$ac_objext
10280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10282 _lt_linker_boilerplate=`cat conftest.err`
10283 $RM -r conftest*
10284
10285
10286 ## CAVEAT EMPTOR:
10287 ## There is no encapsulation within the following macros, do not change
10288 ## the running order or otherwise move them around unless you know exactly
10289 ## what you are doing...
10290 if test -n "$compiler"; then
10291
10292 lt_prog_compiler_no_builtin_flag=
10293
10294 if test "$GCC" = yes; then
10295   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10296
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10298 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   lt_cv_prog_compiler_rtti_exceptions=no
10303    ac_outfile=conftest.$ac_objext
10304    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305    lt_compiler_flag="-fno-rtti -fno-exceptions"
10306    # Insert the option either (1) after the last *FLAGS variable, or
10307    # (2) before a word containing "conftest.", or (3) at the end.
10308    # Note that $ac_compile itself does not contain backslashes and begins
10309    # with a dollar sign (not a hyphen), so the echo should work correctly.
10310    # The option is referenced via a variable to avoid confusing sed.
10311    lt_compile=`echo "$ac_compile" | $SED \
10312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314    -e 's:$: $lt_compiler_flag:'`
10315    (eval echo "\"\$as_me:10315: $lt_compile\"" >&5)
10316    (eval "$lt_compile" 2>conftest.err)
10317    ac_status=$?
10318    cat conftest.err >&5
10319    echo "$as_me:10319: \$? = $ac_status" >&5
10320    if (exit $ac_status) && test -s "$ac_outfile"; then
10321      # The compiler can only warn and ignore the option if not recognized
10322      # So say no if there are warnings other than the usual output.
10323      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10324      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10326        lt_cv_prog_compiler_rtti_exceptions=yes
10327      fi
10328    fi
10329    $RM conftest*
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10333 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10334
10335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10336     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10337 else
10338     :
10339 fi
10340
10341 fi
10342
10343
10344
10345
10346
10347
10348   lt_prog_compiler_wl=
10349 lt_prog_compiler_pic=
10350 lt_prog_compiler_static=
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10354
10355   if test "$GCC" = yes; then
10356     lt_prog_compiler_wl='-Wl,'
10357     lt_prog_compiler_static='-static'
10358
10359     case $host_os in
10360       aix*)
10361       # All AIX code is PIC.
10362       if test "$host_cpu" = ia64; then
10363         # AIX 5 now supports IA64 processor
10364         lt_prog_compiler_static='-Bstatic'
10365       fi
10366       ;;
10367
10368     amigaos*)
10369       case $host_cpu in
10370       powerpc)
10371             # see comment about AmigaOS4 .so support
10372             lt_prog_compiler_pic='-fPIC'
10373         ;;
10374       m68k)
10375             # FIXME: we need at least 68020 code to build shared libraries, but
10376             # adding the `-m68020' flag to GCC prevents building anything better,
10377             # like `-m68040'.
10378             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10379         ;;
10380       esac
10381       ;;
10382
10383     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10384       # PIC is the default for these OSes.
10385       ;;
10386
10387     mingw* | cygwin* | pw32* | os2* | cegcc*)
10388       # This hack is so that the source file can tell whether it is being
10389       # built for inclusion in a dll (and should export symbols for example).
10390       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10391       # (--disable-auto-import) libraries
10392       lt_prog_compiler_pic='-DDLL_EXPORT'
10393       ;;
10394
10395     darwin* | rhapsody*)
10396       # PIC is the default on this platform
10397       # Common symbols not allowed in MH_DYLIB files
10398       lt_prog_compiler_pic='-fno-common'
10399       ;;
10400
10401     hpux*)
10402       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10403       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10404       # sets the default TLS model and affects inlining.
10405       case $host_cpu in
10406       hppa*64*)
10407         # +Z the default
10408         ;;
10409       *)
10410         lt_prog_compiler_pic='-fPIC'
10411         ;;
10412       esac
10413       ;;
10414
10415     interix[3-9]*)
10416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10417       # Instead, we relocate shared libraries at runtime.
10418       ;;
10419
10420     msdosdjgpp*)
10421       # Just because we use GCC doesn't mean we suddenly get shared libraries
10422       # on systems that don't support them.
10423       lt_prog_compiler_can_build_shared=no
10424       enable_shared=no
10425       ;;
10426
10427     *nto* | *qnx*)
10428       # QNX uses GNU C++, but need to define -shared option too, otherwise
10429       # it will coredump.
10430       lt_prog_compiler_pic='-fPIC -shared'
10431       ;;
10432
10433     sysv4*MP*)
10434       if test -d /usr/nec; then
10435         lt_prog_compiler_pic=-Kconform_pic
10436       fi
10437       ;;
10438
10439     *)
10440       lt_prog_compiler_pic='-fPIC'
10441       ;;
10442     esac
10443   else
10444     # PORTME Check for flag to pass linker flags through the system compiler.
10445     case $host_os in
10446     aix*)
10447       lt_prog_compiler_wl='-Wl,'
10448       if test "$host_cpu" = ia64; then
10449         # AIX 5 now supports IA64 processor
10450         lt_prog_compiler_static='-Bstatic'
10451       else
10452         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10453       fi
10454       ;;
10455
10456     mingw* | cygwin* | pw32* | os2* | cegcc*)
10457       # This hack is so that the source file can tell whether it is being
10458       # built for inclusion in a dll (and should export symbols for example).
10459       lt_prog_compiler_pic='-DDLL_EXPORT'
10460       ;;
10461
10462     hpux9* | hpux10* | hpux11*)
10463       lt_prog_compiler_wl='-Wl,'
10464       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10465       # not for PA HP-UX.
10466       case $host_cpu in
10467       hppa*64*|ia64*)
10468         # +Z the default
10469         ;;
10470       *)
10471         lt_prog_compiler_pic='+Z'
10472         ;;
10473       esac
10474       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10475       lt_prog_compiler_static='${wl}-a ${wl}archive'
10476       ;;
10477
10478     irix5* | irix6* | nonstopux*)
10479       lt_prog_compiler_wl='-Wl,'
10480       # PIC (with -KPIC) is the default.
10481       lt_prog_compiler_static='-non_shared'
10482       ;;
10483
10484     linux* | k*bsd*-gnu)
10485       case $cc_basename in
10486       # old Intel for x86_64 which still supported -KPIC.
10487       ecc*)
10488         lt_prog_compiler_wl='-Wl,'
10489         lt_prog_compiler_pic='-KPIC'
10490         lt_prog_compiler_static='-static'
10491         ;;
10492       # icc used to be incompatible with GCC.
10493       # ICC 10 doesn't accept -KPIC any more.
10494       icc* | ifort*)
10495         lt_prog_compiler_wl='-Wl,'
10496         lt_prog_compiler_pic='-fPIC'
10497         lt_prog_compiler_static='-static'
10498         ;;
10499       # Lahey Fortran 8.1.
10500       lf95*)
10501         lt_prog_compiler_wl='-Wl,'
10502         lt_prog_compiler_pic='--shared'
10503         lt_prog_compiler_static='--static'
10504         ;;
10505       pgcc* | pgf77* | pgf90* | pgf95*)
10506         # Portland Group compilers (*not* the Pentium gcc compiler,
10507         # which looks to be a dead project)
10508         lt_prog_compiler_wl='-Wl,'
10509         lt_prog_compiler_pic='-fpic'
10510         lt_prog_compiler_static='-Bstatic'
10511         ;;
10512       ccc*)
10513         lt_prog_compiler_wl='-Wl,'
10514         # All Alpha code is PIC.
10515         lt_prog_compiler_static='-non_shared'
10516         ;;
10517       xl*)
10518         # IBM XL C 8.0/Fortran 10.1 on PPC
10519         lt_prog_compiler_wl='-Wl,'
10520         lt_prog_compiler_pic='-qpic'
10521         lt_prog_compiler_static='-qstaticlink'
10522         ;;
10523       *)
10524         case `$CC -V 2>&1 | sed 5q` in
10525         *Sun\ C*)
10526           # Sun C 5.9
10527           lt_prog_compiler_pic='-KPIC'
10528           lt_prog_compiler_static='-Bstatic'
10529           lt_prog_compiler_wl='-Wl,'
10530           ;;
10531         *Sun\ F*)
10532           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10533           lt_prog_compiler_pic='-KPIC'
10534           lt_prog_compiler_static='-Bstatic'
10535           lt_prog_compiler_wl=''
10536           ;;
10537         esac
10538         ;;
10539       esac
10540       ;;
10541
10542     newsos6)
10543       lt_prog_compiler_pic='-KPIC'
10544       lt_prog_compiler_static='-Bstatic'
10545       ;;
10546
10547     *nto* | *qnx*)
10548       # QNX uses GNU C++, but need to define -shared option too, otherwise
10549       # it will coredump.
10550       lt_prog_compiler_pic='-fPIC -shared'
10551       ;;
10552
10553     osf3* | osf4* | osf5*)
10554       lt_prog_compiler_wl='-Wl,'
10555       # All OSF/1 code is PIC.
10556       lt_prog_compiler_static='-non_shared'
10557       ;;
10558
10559     rdos*)
10560       lt_prog_compiler_static='-non_shared'
10561       ;;
10562
10563     solaris*)
10564       lt_prog_compiler_pic='-KPIC'
10565       lt_prog_compiler_static='-Bstatic'
10566       case $cc_basename in
10567       f77* | f90* | f95*)
10568         lt_prog_compiler_wl='-Qoption ld ';;
10569       *)
10570         lt_prog_compiler_wl='-Wl,';;
10571       esac
10572       ;;
10573
10574     sunos4*)
10575       lt_prog_compiler_wl='-Qoption ld '
10576       lt_prog_compiler_pic='-PIC'
10577       lt_prog_compiler_static='-Bstatic'
10578       ;;
10579
10580     sysv4 | sysv4.2uw2* | sysv4.3*)
10581       lt_prog_compiler_wl='-Wl,'
10582       lt_prog_compiler_pic='-KPIC'
10583       lt_prog_compiler_static='-Bstatic'
10584       ;;
10585
10586     sysv4*MP*)
10587       if test -d /usr/nec ;then
10588         lt_prog_compiler_pic='-Kconform_pic'
10589         lt_prog_compiler_static='-Bstatic'
10590       fi
10591       ;;
10592
10593     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10594       lt_prog_compiler_wl='-Wl,'
10595       lt_prog_compiler_pic='-KPIC'
10596       lt_prog_compiler_static='-Bstatic'
10597       ;;
10598
10599     unicos*)
10600       lt_prog_compiler_wl='-Wl,'
10601       lt_prog_compiler_can_build_shared=no
10602       ;;
10603
10604     uts4*)
10605       lt_prog_compiler_pic='-pic'
10606       lt_prog_compiler_static='-Bstatic'
10607       ;;
10608
10609     *)
10610       lt_prog_compiler_can_build_shared=no
10611       ;;
10612     esac
10613   fi
10614
10615 case $host_os in
10616   # For platforms which do not support PIC, -DPIC is meaningless:
10617   *djgpp*)
10618     lt_prog_compiler_pic=
10619     ;;
10620   *)
10621     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10622     ;;
10623 esac
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10625 $as_echo "$lt_prog_compiler_pic" >&6; }
10626
10627
10628
10629
10630
10631
10632 #
10633 # Check to make sure the PIC flag actually works.
10634 #
10635 if test -n "$lt_prog_compiler_pic"; then
10636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10637 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10638 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   lt_cv_prog_compiler_pic_works=no
10642    ac_outfile=conftest.$ac_objext
10643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10644    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10645    # Insert the option either (1) after the last *FLAGS variable, or
10646    # (2) before a word containing "conftest.", or (3) at the end.
10647    # Note that $ac_compile itself does not contain backslashes and begins
10648    # with a dollar sign (not a hyphen), so the echo should work correctly.
10649    # The option is referenced via a variable to avoid confusing sed.
10650    lt_compile=`echo "$ac_compile" | $SED \
10651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10653    -e 's:$: $lt_compiler_flag:'`
10654    (eval echo "\"\$as_me:10654: $lt_compile\"" >&5)
10655    (eval "$lt_compile" 2>conftest.err)
10656    ac_status=$?
10657    cat conftest.err >&5
10658    echo "$as_me:10658: \$? = $ac_status" >&5
10659    if (exit $ac_status) && test -s "$ac_outfile"; then
10660      # The compiler can only warn and ignore the option if not recognized
10661      # So say no if there are warnings other than the usual output.
10662      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10663      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10665        lt_cv_prog_compiler_pic_works=yes
10666      fi
10667    fi
10668    $RM conftest*
10669
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10672 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10673
10674 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10675     case $lt_prog_compiler_pic in
10676      "" | " "*) ;;
10677      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10678      esac
10679 else
10680     lt_prog_compiler_pic=
10681      lt_prog_compiler_can_build_shared=no
10682 fi
10683
10684 fi
10685
10686
10687
10688
10689
10690
10691 #
10692 # Check to make sure the static flag actually works.
10693 #
10694 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10697 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10698   $as_echo_n "(cached) " >&6
10699 else
10700   lt_cv_prog_compiler_static_works=no
10701    save_LDFLAGS="$LDFLAGS"
10702    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10703    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10704    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10705      # The linker can only warn and ignore the option if not recognized
10706      # So say no if there are warnings
10707      if test -s conftest.err; then
10708        # Append any errors to the config.log.
10709        cat conftest.err 1>&5
10710        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10711        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10712        if diff conftest.exp conftest.er2 >/dev/null; then
10713          lt_cv_prog_compiler_static_works=yes
10714        fi
10715      else
10716        lt_cv_prog_compiler_static_works=yes
10717      fi
10718    fi
10719    $RM -r conftest*
10720    LDFLAGS="$save_LDFLAGS"
10721
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10724 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10725
10726 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10727     :
10728 else
10729     lt_prog_compiler_static=
10730 fi
10731
10732
10733
10734
10735
10736
10737
10738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10740 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10741   $as_echo_n "(cached) " >&6
10742 else
10743   lt_cv_prog_compiler_c_o=no
10744    $RM -r conftest 2>/dev/null
10745    mkdir conftest
10746    cd conftest
10747    mkdir out
10748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10749
10750    lt_compiler_flag="-o out/conftest2.$ac_objext"
10751    # Insert the option either (1) after the last *FLAGS variable, or
10752    # (2) before a word containing "conftest.", or (3) at the end.
10753    # Note that $ac_compile itself does not contain backslashes and begins
10754    # with a dollar sign (not a hyphen), so the echo should work correctly.
10755    lt_compile=`echo "$ac_compile" | $SED \
10756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10758    -e 's:$: $lt_compiler_flag:'`
10759    (eval echo "\"\$as_me:10759: $lt_compile\"" >&5)
10760    (eval "$lt_compile" 2>out/conftest.err)
10761    ac_status=$?
10762    cat out/conftest.err >&5
10763    echo "$as_me:10763: \$? = $ac_status" >&5
10764    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10765    then
10766      # The compiler can only warn and ignore the option if not recognized
10767      # So say no if there are warnings
10768      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10769      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10770      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10771        lt_cv_prog_compiler_c_o=yes
10772      fi
10773    fi
10774    chmod u+w . 2>&5
10775    $RM conftest*
10776    # SGI C++ compiler will create directory out/ii_files/ for
10777    # template instantiation
10778    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10779    $RM out/* && rmdir out
10780    cd ..
10781    $RM -r conftest
10782    $RM conftest*
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10786 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10787
10788
10789
10790
10791
10792
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10796   $as_echo_n "(cached) " >&6
10797 else
10798   lt_cv_prog_compiler_c_o=no
10799    $RM -r conftest 2>/dev/null
10800    mkdir conftest
10801    cd conftest
10802    mkdir out
10803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804
10805    lt_compiler_flag="-o out/conftest2.$ac_objext"
10806    # Insert the option either (1) after the last *FLAGS variable, or
10807    # (2) before a word containing "conftest.", or (3) at the end.
10808    # Note that $ac_compile itself does not contain backslashes and begins
10809    # with a dollar sign (not a hyphen), so the echo should work correctly.
10810    lt_compile=`echo "$ac_compile" | $SED \
10811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10813    -e 's:$: $lt_compiler_flag:'`
10814    (eval echo "\"\$as_me:10814: $lt_compile\"" >&5)
10815    (eval "$lt_compile" 2>out/conftest.err)
10816    ac_status=$?
10817    cat out/conftest.err >&5
10818    echo "$as_me:10818: \$? = $ac_status" >&5
10819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10820    then
10821      # The compiler can only warn and ignore the option if not recognized
10822      # So say no if there are warnings
10823      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10826        lt_cv_prog_compiler_c_o=yes
10827      fi
10828    fi
10829    chmod u+w . 2>&5
10830    $RM conftest*
10831    # SGI C++ compiler will create directory out/ii_files/ for
10832    # template instantiation
10833    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10834    $RM out/* && rmdir out
10835    cd ..
10836    $RM -r conftest
10837    $RM conftest*
10838
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10841 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10842
10843
10844
10845
10846 hard_links="nottested"
10847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10848   # do not overwrite the value of need_locks provided by the user
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10850 $as_echo_n "checking if we can lock with hard links... " >&6; }
10851   hard_links=yes
10852   $RM conftest*
10853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10854   touch conftest.a
10855   ln conftest.a conftest.b 2>&5 || hard_links=no
10856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10858 $as_echo "$hard_links" >&6; }
10859   if test "$hard_links" = no; then
10860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10862     need_locks=warn
10863   fi
10864 else
10865   need_locks=no
10866 fi
10867
10868
10869
10870
10871
10872
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10875
10876   runpath_var=
10877   allow_undefined_flag=
10878   always_export_symbols=no
10879   archive_cmds=
10880   archive_expsym_cmds=
10881   compiler_needs_object=no
10882   enable_shared_with_static_runtimes=no
10883   export_dynamic_flag_spec=
10884   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10885   hardcode_automatic=no
10886   hardcode_direct=no
10887   hardcode_direct_absolute=no
10888   hardcode_libdir_flag_spec=
10889   hardcode_libdir_flag_spec_ld=
10890   hardcode_libdir_separator=
10891   hardcode_minus_L=no
10892   hardcode_shlibpath_var=unsupported
10893   inherit_rpath=no
10894   link_all_deplibs=unknown
10895   module_cmds=
10896   module_expsym_cmds=
10897   old_archive_from_new_cmds=
10898   old_archive_from_expsyms_cmds=
10899   thread_safe_flag_spec=
10900   whole_archive_flag_spec=
10901   # include_expsyms should be a list of space-separated symbols to be *always*
10902   # included in the symbol list
10903   include_expsyms=
10904   # exclude_expsyms can be an extended regexp of symbols to exclude
10905   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10906   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10907   # as well as any symbol that contains `d'.
10908   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10909   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10910   # platforms (ab)use it in PIC code, but their linkers get confused if
10911   # the symbol is explicitly referenced.  Since portable code cannot
10912   # rely on this symbol name, it's probably fine to never include it in
10913   # preloaded symbol tables.
10914   # Exclude shared library initialization/finalization symbols.
10915   extract_expsyms_cmds=
10916
10917   case $host_os in
10918   cygwin* | mingw* | pw32* | cegcc*)
10919     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10920     # When not using gcc, we currently assume that we are using
10921     # Microsoft Visual C++.
10922     if test "$GCC" != yes; then
10923       with_gnu_ld=no
10924     fi
10925     ;;
10926   interix*)
10927     # we just hope/assume this is gcc and not c89 (= MSVC++)
10928     with_gnu_ld=yes
10929     ;;
10930   openbsd*)
10931     with_gnu_ld=no
10932     ;;
10933   esac
10934
10935   ld_shlibs=yes
10936   if test "$with_gnu_ld" = yes; then
10937     # If archive_cmds runs LD, not CC, wlarc should be empty
10938     wlarc='${wl}'
10939
10940     # Set some defaults for GNU ld with shared library support. These
10941     # are reset later if shared libraries are not supported. Putting them
10942     # here allows them to be overridden if necessary.
10943     runpath_var=LD_RUN_PATH
10944     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10945     export_dynamic_flag_spec='${wl}--export-dynamic'
10946     # ancient GNU ld didn't support --whole-archive et. al.
10947     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10948       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10949     else
10950       whole_archive_flag_spec=
10951     fi
10952     supports_anon_versioning=no
10953     case `$LD -v 2>&1` in
10954       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10955       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10956       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10957       *\ 2.11.*) ;; # other 2.11 versions
10958       *) supports_anon_versioning=yes ;;
10959     esac
10960
10961     # See if GNU ld supports shared libraries.
10962     case $host_os in
10963     aix[3-9]*)
10964       # On AIX/PPC, the GNU linker is very broken
10965       if test "$host_cpu" != ia64; then
10966         ld_shlibs=no
10967         cat <<_LT_EOF 1>&2
10968
10969 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10970 *** to be unable to reliably create shared libraries on AIX.
10971 *** Therefore, libtool is disabling shared libraries support.  If you
10972 *** really care for shared libraries, you may want to modify your PATH
10973 *** so that a non-GNU linker is found, and then restart.
10974
10975 _LT_EOF
10976       fi
10977       ;;
10978
10979     amigaos*)
10980       case $host_cpu in
10981       powerpc)
10982             # see comment about AmigaOS4 .so support
10983             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984             archive_expsym_cmds=''
10985         ;;
10986       m68k)
10987             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)'
10988             hardcode_libdir_flag_spec='-L$libdir'
10989             hardcode_minus_L=yes
10990         ;;
10991       esac
10992       ;;
10993
10994     beos*)
10995       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10996         allow_undefined_flag=unsupported
10997         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10998         # support --undefined.  This deserves some investigation.  FIXME
10999         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11000       else
11001         ld_shlibs=no
11002       fi
11003       ;;
11004
11005     cygwin* | mingw* | pw32* | cegcc*)
11006       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11007       # as there is no search path for DLLs.
11008       hardcode_libdir_flag_spec='-L$libdir'
11009       allow_undefined_flag=unsupported
11010       always_export_symbols=no
11011       enable_shared_with_static_runtimes=yes
11012       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11013
11014       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11016         # If the export-symbols file already is a .def file (1st line
11017         # is EXPORTS), use it as is; otherwise, prepend...
11018         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11019           cp $export_symbols $output_objdir/$soname.def;
11020         else
11021           echo EXPORTS > $output_objdir/$soname.def;
11022           cat $export_symbols >> $output_objdir/$soname.def;
11023         fi~
11024         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11025       else
11026         ld_shlibs=no
11027       fi
11028       ;;
11029
11030     interix[3-9]*)
11031       hardcode_direct=no
11032       hardcode_shlibpath_var=no
11033       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11034       export_dynamic_flag_spec='${wl}-E'
11035       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11036       # Instead, shared libraries are loaded at an image base (0x10000000 by
11037       # default) and relocated if they conflict, which is a slow very memory
11038       # consuming and fragmenting process.  To avoid this, we pick a random,
11039       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11040       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11041       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11042       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'
11043       ;;
11044
11045     gnu* | linux* | tpf* | k*bsd*-gnu)
11046       tmp_diet=no
11047       if test "$host_os" = linux-dietlibc; then
11048         case $cc_basename in
11049           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11050         esac
11051       fi
11052       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11053          && test "$tmp_diet" = no
11054       then
11055         tmp_addflag=
11056         tmp_sharedflag='-shared'
11057         case $cc_basename,$host_cpu in
11058         pgcc*)                          # Portland Group C compiler
11059           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'
11060           tmp_addflag=' $pic_flag'
11061           ;;
11062         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
11063           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'
11064           tmp_addflag=' $pic_flag -Mnomain' ;;
11065         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11066           tmp_addflag=' -i_dynamic' ;;
11067         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11068           tmp_addflag=' -i_dynamic -nofor_main' ;;
11069         ifc* | ifort*)                  # Intel Fortran compiler
11070           tmp_addflag=' -nofor_main' ;;
11071         lf95*)                          # Lahey Fortran 8.1
11072           whole_archive_flag_spec=
11073           tmp_sharedflag='--shared' ;;
11074         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
11075           tmp_sharedflag='-qmkshrobj'
11076           tmp_addflag= ;;
11077         esac
11078         case `$CC -V 2>&1 | sed 5q` in
11079         *Sun\ C*)                       # Sun C 5.9
11080           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'
11081           compiler_needs_object=yes
11082           tmp_sharedflag='-G' ;;
11083         *Sun\ F*)                       # Sun Fortran 8.3
11084           tmp_sharedflag='-G' ;;
11085         esac
11086         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087
11088         if test "x$supports_anon_versioning" = xyes; then
11089           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11090             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11091             echo "local: *; };" >> $output_objdir/$libname.ver~
11092             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11093         fi
11094
11095         case $cc_basename in
11096         xlf*)
11097           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11098           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11099           hardcode_libdir_flag_spec=
11100           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11101           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11102           if test "x$supports_anon_versioning" = xyes; then
11103             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11104               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11105               echo "local: *; };" >> $output_objdir/$libname.ver~
11106               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11107           fi
11108           ;;
11109         esac
11110       else
11111         ld_shlibs=no
11112       fi
11113       ;;
11114
11115     netbsd* | netbsdelf*-gnu)
11116       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11117         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11118         wlarc=
11119       else
11120         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11121         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11122       fi
11123       ;;
11124
11125     solaris*)
11126       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11127         ld_shlibs=no
11128         cat <<_LT_EOF 1>&2
11129
11130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11131 *** create shared libraries on Solaris systems.  Therefore, libtool
11132 *** is disabling shared libraries support.  We urge you to upgrade GNU
11133 *** binutils to release 2.9.1 or newer.  Another option is to modify
11134 *** your PATH or compiler configuration so that the native linker is
11135 *** used, and then restart.
11136
11137 _LT_EOF
11138       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11141       else
11142         ld_shlibs=no
11143       fi
11144       ;;
11145
11146     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11147       case `$LD -v 2>&1` in
11148         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11149         ld_shlibs=no
11150         cat <<_LT_EOF 1>&2
11151
11152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11153 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11154 *** is disabling shared libraries support.  We urge you to upgrade GNU
11155 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11156 *** your PATH or compiler configuration so that the native linker is
11157 *** used, and then restart.
11158
11159 _LT_EOF
11160         ;;
11161         *)
11162           # For security reasons, it is highly recommended that you always
11163           # use absolute paths for naming shared libraries, and exclude the
11164           # DT_RUNPATH tag from executables and libraries.  But doing so
11165           # requires that you compile everything twice, which is a pain.
11166           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11167             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11168             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11169             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11170           else
11171             ld_shlibs=no
11172           fi
11173         ;;
11174       esac
11175       ;;
11176
11177     sunos4*)
11178       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11179       wlarc=
11180       hardcode_direct=yes
11181       hardcode_shlibpath_var=no
11182       ;;
11183
11184     *)
11185       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11186         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11187         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11188       else
11189         ld_shlibs=no
11190       fi
11191       ;;
11192     esac
11193
11194     if test "$ld_shlibs" = no; then
11195       runpath_var=
11196       hardcode_libdir_flag_spec=
11197       export_dynamic_flag_spec=
11198       whole_archive_flag_spec=
11199     fi
11200   else
11201     # PORTME fill in a description of your system's linker (not GNU ld)
11202     case $host_os in
11203     aix3*)
11204       allow_undefined_flag=unsupported
11205       always_export_symbols=yes
11206       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'
11207       # Note: this linker hardcodes the directories in LIBPATH if there
11208       # are no directories specified by -L.
11209       hardcode_minus_L=yes
11210       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11211         # Neither direct hardcoding nor static linking is supported with a
11212         # broken collect2.
11213         hardcode_direct=unsupported
11214       fi
11215       ;;
11216
11217     aix[4-9]*)
11218       if test "$host_cpu" = ia64; then
11219         # On IA64, the linker does run time linking by default, so we don't
11220         # have to do anything special.
11221         aix_use_runtimelinking=no
11222         exp_sym_flag='-Bexport'
11223         no_entry_flag=""
11224       else
11225         # If we're using GNU nm, then we don't want the "-C" option.
11226         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11227         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11228           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'
11229         else
11230           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'
11231         fi
11232         aix_use_runtimelinking=no
11233
11234         # Test if we are trying to use run time linking or normal
11235         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11236         # need to do runtime linking.
11237         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11238           for ld_flag in $LDFLAGS; do
11239           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11240             aix_use_runtimelinking=yes
11241             break
11242           fi
11243           done
11244           ;;
11245         esac
11246
11247         exp_sym_flag='-bexport'
11248         no_entry_flag='-bnoentry'
11249       fi
11250
11251       # When large executables or shared objects are built, AIX ld can
11252       # have problems creating the table of contents.  If linking a library
11253       # or program results in "error TOC overflow" add -mminimal-toc to
11254       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11255       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11256
11257       archive_cmds=''
11258       hardcode_direct=yes
11259       hardcode_direct_absolute=yes
11260       hardcode_libdir_separator=':'
11261       link_all_deplibs=yes
11262       file_list_spec='${wl}-f,'
11263
11264       if test "$GCC" = yes; then
11265         case $host_os in aix4.[012]|aix4.[012].*)
11266         # We only want to do this on AIX 4.2 and lower, the check
11267         # below for broken collect2 doesn't work under 4.3+
11268           collect2name=`${CC} -print-prog-name=collect2`
11269           if test -f "$collect2name" &&
11270            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11271           then
11272           # We have reworked collect2
11273           :
11274           else
11275           # We have old collect2
11276           hardcode_direct=unsupported
11277           # It fails to find uninstalled libraries when the uninstalled
11278           # path is not listed in the libpath.  Setting hardcode_minus_L
11279           # to unsupported forces relinking
11280           hardcode_minus_L=yes
11281           hardcode_libdir_flag_spec='-L$libdir'
11282           hardcode_libdir_separator=
11283           fi
11284           ;;
11285         esac
11286         shared_flag='-shared'
11287         if test "$aix_use_runtimelinking" = yes; then
11288           shared_flag="$shared_flag "'${wl}-G'
11289         fi
11290         link_all_deplibs=no
11291       else
11292         # not using gcc
11293         if test "$host_cpu" = ia64; then
11294         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11295         # chokes on -Wl,-G. The following line is correct:
11296           shared_flag='-G'
11297         else
11298           if test "$aix_use_runtimelinking" = yes; then
11299             shared_flag='${wl}-G'
11300           else
11301             shared_flag='${wl}-bM:SRE'
11302           fi
11303         fi
11304       fi
11305
11306       export_dynamic_flag_spec='${wl}-bexpall'
11307       # It seems that -bexpall does not export symbols beginning with
11308       # underscore (_), so it is better to generate a list of symbols to export.
11309       always_export_symbols=yes
11310       if test "$aix_use_runtimelinking" = yes; then
11311         # Warning - without using the other runtime loading flags (-brtl),
11312         # -berok will link without error, but may produce a broken library.
11313         allow_undefined_flag='-berok'
11314         # Determine the default libpath from the value encoded in an
11315         # empty executable.
11316         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h.  */
11318
11319 int
11320 main ()
11321 {
11322
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328
11329 lt_aix_libpath_sed='
11330     /Import File Strings/,/^$/ {
11331         /^0/ {
11332             s/^0  *\(.*\)$/\1/
11333             p
11334         }
11335     }'
11336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337 # Check for a 64-bit object if we didn't find anything.
11338 if test -z "$aix_libpath"; then
11339   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340 fi
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343     conftest$ac_exeext conftest.$ac_ext
11344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11345
11346         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11347         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"
11348       else
11349         if test "$host_cpu" = ia64; then
11350           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11351           allow_undefined_flag="-z nodefs"
11352           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"
11353         else
11354          # Determine the default libpath from the value encoded in an
11355          # empty executable.
11356          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h.  */
11358
11359 int
11360 main ()
11361 {
11362
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368
11369 lt_aix_libpath_sed='
11370     /Import File Strings/,/^$/ {
11371         /^0/ {
11372             s/^0  *\(.*\)$/\1/
11373             p
11374         }
11375     }'
11376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11377 # Check for a 64-bit object if we didn't find anything.
11378 if test -z "$aix_libpath"; then
11379   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11380 fi
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext \
11383     conftest$ac_exeext conftest.$ac_ext
11384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11385
11386          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11387           # Warning - without using the other run time loading flags,
11388           # -berok will link without error, but may produce a broken library.
11389           no_undefined_flag=' ${wl}-bernotok'
11390           allow_undefined_flag=' ${wl}-berok'
11391           # Exported symbols can be pulled into shared objects from archives
11392           whole_archive_flag_spec='$convenience'
11393           archive_cmds_need_lc=yes
11394           # This is similar to how AIX traditionally builds its shared libraries.
11395           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'
11396         fi
11397       fi
11398       ;;
11399
11400     amigaos*)
11401       case $host_cpu in
11402       powerpc)
11403             # see comment about AmigaOS4 .so support
11404             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405             archive_expsym_cmds=''
11406         ;;
11407       m68k)
11408             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)'
11409             hardcode_libdir_flag_spec='-L$libdir'
11410             hardcode_minus_L=yes
11411         ;;
11412       esac
11413       ;;
11414
11415     bsdi[45]*)
11416       export_dynamic_flag_spec=-rdynamic
11417       ;;
11418
11419     cygwin* | mingw* | pw32* | cegcc*)
11420       # When not using gcc, we currently assume that we are using
11421       # Microsoft Visual C++.
11422       # hardcode_libdir_flag_spec is actually meaningless, as there is
11423       # no search path for DLLs.
11424       hardcode_libdir_flag_spec=' '
11425       allow_undefined_flag=unsupported
11426       # Tell ltmain to make .lib files, not .a files.
11427       libext=lib
11428       # Tell ltmain to make .dll files, not .so files.
11429       shrext_cmds=".dll"
11430       # FIXME: Setting linknames here is a bad hack.
11431       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11432       # The linker will automatically build a .lib file if we build a DLL.
11433       old_archive_from_new_cmds='true'
11434       # FIXME: Should let the user specify the lib program.
11435       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11436       fix_srcfile_path='`cygpath -w "$srcfile"`'
11437       enable_shared_with_static_runtimes=yes
11438       ;;
11439
11440     darwin* | rhapsody*)
11441
11442
11443   archive_cmds_need_lc=no
11444   hardcode_direct=no
11445   hardcode_automatic=yes
11446   hardcode_shlibpath_var=unsupported
11447   whole_archive_flag_spec=''
11448   link_all_deplibs=yes
11449   allow_undefined_flag="$_lt_dar_allow_undefined"
11450   case $cc_basename in
11451      ifort*) _lt_dar_can_shared=yes ;;
11452      *) _lt_dar_can_shared=$GCC ;;
11453   esac
11454   if test "$_lt_dar_can_shared" = "yes"; then
11455     output_verbose_link_cmd=echo
11456     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11457     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11458     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}"
11459     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}"
11460
11461   else
11462   ld_shlibs=no
11463   fi
11464
11465       ;;
11466
11467     dgux*)
11468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469       hardcode_libdir_flag_spec='-L$libdir'
11470       hardcode_shlibpath_var=no
11471       ;;
11472
11473     freebsd1*)
11474       ld_shlibs=no
11475       ;;
11476
11477     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11478     # support.  Future versions do this automatically, but an explicit c++rt0.o
11479     # does not break anything, and helps significantly (at the cost of a little
11480     # extra space).
11481     freebsd2.2*)
11482       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11483       hardcode_libdir_flag_spec='-R$libdir'
11484       hardcode_direct=yes
11485       hardcode_shlibpath_var=no
11486       ;;
11487
11488     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11489     freebsd2*)
11490       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11491       hardcode_direct=yes
11492       hardcode_minus_L=yes
11493       hardcode_shlibpath_var=no
11494       ;;
11495
11496     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11497     freebsd* | dragonfly*)
11498       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11499       hardcode_libdir_flag_spec='-R$libdir'
11500       hardcode_direct=yes
11501       hardcode_shlibpath_var=no
11502       ;;
11503
11504     hpux9*)
11505       if test "$GCC" = yes; then
11506         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'
11507       else
11508         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'
11509       fi
11510       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11511       hardcode_libdir_separator=:
11512       hardcode_direct=yes
11513
11514       # hardcode_minus_L: Not really in the search PATH,
11515       # but as the default location of the library.
11516       hardcode_minus_L=yes
11517       export_dynamic_flag_spec='${wl}-E'
11518       ;;
11519
11520     hpux10*)
11521       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11522         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11523       else
11524         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11525       fi
11526       if test "$with_gnu_ld" = no; then
11527         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11528         hardcode_libdir_flag_spec_ld='+b $libdir'
11529         hardcode_libdir_separator=:
11530         hardcode_direct=yes
11531         hardcode_direct_absolute=yes
11532         export_dynamic_flag_spec='${wl}-E'
11533         # hardcode_minus_L: Not really in the search PATH,
11534         # but as the default location of the library.
11535         hardcode_minus_L=yes
11536       fi
11537       ;;
11538
11539     hpux11*)
11540       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11541         case $host_cpu in
11542         hppa*64*)
11543           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11544           ;;
11545         ia64*)
11546           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11547           ;;
11548         *)
11549           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11550           ;;
11551         esac
11552       else
11553         case $host_cpu in
11554         hppa*64*)
11555           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11556           ;;
11557         ia64*)
11558           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11559           ;;
11560         *)
11561           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11562           ;;
11563         esac
11564       fi
11565       if test "$with_gnu_ld" = no; then
11566         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11567         hardcode_libdir_separator=:
11568
11569         case $host_cpu in
11570         hppa*64*|ia64*)
11571           hardcode_direct=no
11572           hardcode_shlibpath_var=no
11573           ;;
11574         *)
11575           hardcode_direct=yes
11576           hardcode_direct_absolute=yes
11577           export_dynamic_flag_spec='${wl}-E'
11578
11579           # hardcode_minus_L: Not really in the search PATH,
11580           # but as the default location of the library.
11581           hardcode_minus_L=yes
11582           ;;
11583         esac
11584       fi
11585       ;;
11586
11587     irix5* | irix6* | nonstopux*)
11588       if test "$GCC" = yes; then
11589         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'
11590         # Try to use the -exported_symbol ld option, if it does not
11591         # work, assume that -exports_file does not work either and
11592         # implicitly export all symbols.
11593         save_LDFLAGS="$LDFLAGS"
11594         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11595         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h.  */
11597 int foo(void) {}
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600   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'
11601
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604     conftest$ac_exeext conftest.$ac_ext
11605         LDFLAGS="$save_LDFLAGS"
11606       else
11607         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'
11608         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'
11609       fi
11610       archive_cmds_need_lc='no'
11611       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11612       hardcode_libdir_separator=:
11613       inherit_rpath=yes
11614       link_all_deplibs=yes
11615       ;;
11616
11617     netbsd* | netbsdelf*-gnu)
11618       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11619         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11620       else
11621         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11622       fi
11623       hardcode_libdir_flag_spec='-R$libdir'
11624       hardcode_direct=yes
11625       hardcode_shlibpath_var=no
11626       ;;
11627
11628     newsos6)
11629       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11630       hardcode_direct=yes
11631       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11632       hardcode_libdir_separator=:
11633       hardcode_shlibpath_var=no
11634       ;;
11635
11636     *nto* | *qnx*)
11637       ;;
11638
11639     openbsd*)
11640       if test -f /usr/libexec/ld.so; then
11641         hardcode_direct=yes
11642         hardcode_shlibpath_var=no
11643         hardcode_direct_absolute=yes
11644         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11645           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11646           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11647           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11648           export_dynamic_flag_spec='${wl}-E'
11649         else
11650           case $host_os in
11651            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11652              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11653              hardcode_libdir_flag_spec='-R$libdir'
11654              ;;
11655            *)
11656              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11657              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11658              ;;
11659           esac
11660         fi
11661       else
11662         ld_shlibs=no
11663       fi
11664       ;;
11665
11666     os2*)
11667       hardcode_libdir_flag_spec='-L$libdir'
11668       hardcode_minus_L=yes
11669       allow_undefined_flag=unsupported
11670       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'
11671       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11672       ;;
11673
11674     osf3*)
11675       if test "$GCC" = yes; then
11676         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11677         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'
11678       else
11679         allow_undefined_flag=' -expect_unresolved \*'
11680         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'
11681       fi
11682       archive_cmds_need_lc='no'
11683       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11684       hardcode_libdir_separator=:
11685       ;;
11686
11687     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11688       if test "$GCC" = yes; then
11689         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11690         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'
11691         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11692       else
11693         allow_undefined_flag=' -expect_unresolved \*'
11694         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'
11695         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~
11696         $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'
11697
11698         # Both c and cxx compiler support -rpath directly
11699         hardcode_libdir_flag_spec='-rpath $libdir'
11700       fi
11701       archive_cmds_need_lc='no'
11702       hardcode_libdir_separator=:
11703       ;;
11704
11705     solaris*)
11706       no_undefined_flag=' -z defs'
11707       if test "$GCC" = yes; then
11708         wlarc='${wl}'
11709         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11710         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11711           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11712       else
11713         case `$CC -V 2>&1` in
11714         *"Compilers 5.0"*)
11715           wlarc=''
11716           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11718           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11719           ;;
11720         *)
11721           wlarc='${wl}'
11722           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11723           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11724           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11725           ;;
11726         esac
11727       fi
11728       hardcode_libdir_flag_spec='-R$libdir'
11729       hardcode_shlibpath_var=no
11730       case $host_os in
11731       solaris2.[0-5] | solaris2.[0-5].*) ;;
11732       *)
11733         # The compiler driver will combine and reorder linker options,
11734         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11735         # but is careful enough not to reorder.
11736         # Supported since Solaris 2.6 (maybe 2.5.1?)
11737         if test "$GCC" = yes; then
11738           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11739         else
11740           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11741         fi
11742         ;;
11743       esac
11744       link_all_deplibs=yes
11745       ;;
11746
11747     sunos4*)
11748       if test "x$host_vendor" = xsequent; then
11749         # Use $CC to link under sequent, because it throws in some extra .o
11750         # files that make .init and .fini sections work.
11751         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11752       else
11753         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11754       fi
11755       hardcode_libdir_flag_spec='-L$libdir'
11756       hardcode_direct=yes
11757       hardcode_minus_L=yes
11758       hardcode_shlibpath_var=no
11759       ;;
11760
11761     sysv4)
11762       case $host_vendor in
11763         sni)
11764           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11765           hardcode_direct=yes # is this really true???
11766         ;;
11767         siemens)
11768           ## LD is ld it makes a PLAMLIB
11769           ## CC just makes a GrossModule.
11770           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11771           reload_cmds='$CC -r -o $output$reload_objs'
11772           hardcode_direct=no
11773         ;;
11774         motorola)
11775           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11776           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11777         ;;
11778       esac
11779       runpath_var='LD_RUN_PATH'
11780       hardcode_shlibpath_var=no
11781       ;;
11782
11783     sysv4.3*)
11784       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11785       hardcode_shlibpath_var=no
11786       export_dynamic_flag_spec='-Bexport'
11787       ;;
11788
11789     sysv4*MP*)
11790       if test -d /usr/nec; then
11791         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11792         hardcode_shlibpath_var=no
11793         runpath_var=LD_RUN_PATH
11794         hardcode_runpath_var=yes
11795         ld_shlibs=yes
11796       fi
11797       ;;
11798
11799     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11800       no_undefined_flag='${wl}-z,text'
11801       archive_cmds_need_lc=no
11802       hardcode_shlibpath_var=no
11803       runpath_var='LD_RUN_PATH'
11804
11805       if test "$GCC" = yes; then
11806         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11807         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11808       else
11809         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11811       fi
11812       ;;
11813
11814     sysv5* | sco3.2v5* | sco5v6*)
11815       # Note: We can NOT use -z defs as we might desire, because we do not
11816       # link with -lc, and that would cause any symbols used from libc to
11817       # always be unresolved, which means just about no library would
11818       # ever link correctly.  If we're not using GNU ld we use -z text
11819       # though, which does catch some bad symbols but isn't as heavy-handed
11820       # as -z defs.
11821       no_undefined_flag='${wl}-z,text'
11822       allow_undefined_flag='${wl}-z,nodefs'
11823       archive_cmds_need_lc=no
11824       hardcode_shlibpath_var=no
11825       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11826       hardcode_libdir_separator=':'
11827       link_all_deplibs=yes
11828       export_dynamic_flag_spec='${wl}-Bexport'
11829       runpath_var='LD_RUN_PATH'
11830
11831       if test "$GCC" = yes; then
11832         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834       else
11835         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837       fi
11838       ;;
11839
11840     uts4*)
11841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11842       hardcode_libdir_flag_spec='-L$libdir'
11843       hardcode_shlibpath_var=no
11844       ;;
11845
11846     *)
11847       ld_shlibs=no
11848       ;;
11849     esac
11850
11851     if test x$host_vendor = xsni; then
11852       case $host in
11853       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11854         export_dynamic_flag_spec='${wl}-Blargedynsym'
11855         ;;
11856       esac
11857     fi
11858   fi
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11861 $as_echo "$ld_shlibs" >&6; }
11862 test "$ld_shlibs" = no && can_build_shared=no
11863
11864 with_gnu_ld=$with_gnu_ld
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 #
11881 # Do we need to explicitly link libc?
11882 #
11883 case "x$archive_cmds_need_lc" in
11884 x|xyes)
11885   # Assume -lc should be added
11886   archive_cmds_need_lc=yes
11887
11888   if test "$enable_shared" = yes && test "$GCC" = yes; then
11889     case $archive_cmds in
11890     *'~'*)
11891       # FIXME: we may have to deal with multi-command sequences.
11892       ;;
11893     '$CC '*)
11894       # Test whether the compiler implicitly links with -lc since on some
11895       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11896       # to ld, don't add -lc before -lgcc.
11897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11898 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11899       $RM conftest*
11900       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11901
11902       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11903   (eval $ac_compile) 2>&5
11904   ac_status=$?
11905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906   test $ac_status = 0; } 2>conftest.err; then
11907         soname=conftest
11908         lib=conftest
11909         libobjs=conftest.$ac_objext
11910         deplibs=
11911         wl=$lt_prog_compiler_wl
11912         pic_flag=$lt_prog_compiler_pic
11913         compiler_flags=-v
11914         linker_flags=-v
11915         verstring=
11916         output_objdir=.
11917         libname=conftest
11918         lt_save_allow_undefined_flag=$allow_undefined_flag
11919         allow_undefined_flag=
11920         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11921   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11922   ac_status=$?
11923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11924   test $ac_status = 0; }
11925         then
11926           archive_cmds_need_lc=no
11927         else
11928           archive_cmds_need_lc=yes
11929         fi
11930         allow_undefined_flag=$lt_save_allow_undefined_flag
11931       else
11932         cat conftest.err 1>&5
11933       fi
11934       $RM conftest*
11935       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11936 $as_echo "$archive_cmds_need_lc" >&6; }
11937       ;;
11938     esac
11939   fi
11940   ;;
11941 esac
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12101
12102 if test "$GCC" = yes; then
12103   case $host_os in
12104     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12105     *) lt_awk_arg="/^libraries:/" ;;
12106   esac
12107   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12108   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12109     # if the path contains ";" then we assume it to be the separator
12110     # otherwise default to the standard path separator (i.e. ":") - it is
12111     # assumed that no part of a normal pathname contains ";" but that should
12112     # okay in the real world where ";" in dirpaths is itself problematic.
12113     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12114   else
12115     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12116   fi
12117   # Ok, now we have the path, separated by spaces, we can step through it
12118   # and add multilib dir if necessary.
12119   lt_tmp_lt_search_path_spec=
12120   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12121   for lt_sys_path in $lt_search_path_spec; do
12122     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12123       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12124     else
12125       test -d "$lt_sys_path" && \
12126         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12127     fi
12128   done
12129   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12130 BEGIN {RS=" "; FS="/|\n";} {
12131   lt_foo="";
12132   lt_count=0;
12133   for (lt_i = NF; lt_i > 0; lt_i--) {
12134     if ($lt_i != "" && $lt_i != ".") {
12135       if ($lt_i == "..") {
12136         lt_count++;
12137       } else {
12138         if (lt_count == 0) {
12139           lt_foo="/" $lt_i lt_foo;
12140         } else {
12141           lt_count--;
12142         }
12143       }
12144     }
12145   }
12146   if (lt_foo != "") { lt_freq[lt_foo]++; }
12147   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12148 }'`
12149   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12150 else
12151   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12152 fi
12153 library_names_spec=
12154 libname_spec='lib$name'
12155 soname_spec=
12156 shrext_cmds=".so"
12157 postinstall_cmds=
12158 postuninstall_cmds=
12159 finish_cmds=
12160 finish_eval=
12161 shlibpath_var=
12162 shlibpath_overrides_runpath=unknown
12163 version_type=none
12164 dynamic_linker="$host_os ld.so"
12165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12166 need_lib_prefix=unknown
12167 hardcode_into_libs=no
12168
12169 # when you set need_version to no, make sure it does not cause -set_version
12170 # flags to be left without arguments
12171 need_version=unknown
12172
12173 case $host_os in
12174 aix3*)
12175   version_type=linux
12176   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12177   shlibpath_var=LIBPATH
12178
12179   # AIX 3 has no versioning support, so we append a major version to the name.
12180   soname_spec='${libname}${release}${shared_ext}$major'
12181   ;;
12182
12183 aix[4-9]*)
12184   version_type=linux
12185   need_lib_prefix=no
12186   need_version=no
12187   hardcode_into_libs=yes
12188   if test "$host_cpu" = ia64; then
12189     # AIX 5 supports IA64
12190     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12191     shlibpath_var=LD_LIBRARY_PATH
12192   else
12193     # With GCC up to 2.95.x, collect2 would create an import file
12194     # for dependence libraries.  The import file would start with
12195     # the line `#! .'.  This would cause the generated library to
12196     # depend on `.', always an invalid library.  This was fixed in
12197     # development snapshots of GCC prior to 3.0.
12198     case $host_os in
12199       aix4 | aix4.[01] | aix4.[01].*)
12200       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12201            echo ' yes '
12202            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12203         :
12204       else
12205         can_build_shared=no
12206       fi
12207       ;;
12208     esac
12209     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12210     # soname into executable. Probably we can add versioning support to
12211     # collect2, so additional links can be useful in future.
12212     if test "$aix_use_runtimelinking" = yes; then
12213       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12214       # instead of lib<name>.a to let people know that these are not
12215       # typical AIX shared libraries.
12216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12217     else
12218       # We preserve .a as extension for shared libraries through AIX4.2
12219       # and later when we are not doing run time linking.
12220       library_names_spec='${libname}${release}.a $libname.a'
12221       soname_spec='${libname}${release}${shared_ext}$major'
12222     fi
12223     shlibpath_var=LIBPATH
12224   fi
12225   ;;
12226
12227 amigaos*)
12228   case $host_cpu in
12229   powerpc)
12230     # Since July 2007 AmigaOS4 officially supports .so libraries.
12231     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233     ;;
12234   m68k)
12235     library_names_spec='$libname.ixlibrary $libname.a'
12236     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12237     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'
12238     ;;
12239   esac
12240   ;;
12241
12242 beos*)
12243   library_names_spec='${libname}${shared_ext}'
12244   dynamic_linker="$host_os ld.so"
12245   shlibpath_var=LIBRARY_PATH
12246   ;;
12247
12248 bsdi[45]*)
12249   version_type=linux
12250   need_version=no
12251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252   soname_spec='${libname}${release}${shared_ext}$major'
12253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12254   shlibpath_var=LD_LIBRARY_PATH
12255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12257   # the default ld.so.conf also contains /usr/contrib/lib and
12258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12259   # libtool to hard-code these into programs
12260   ;;
12261
12262 cygwin* | mingw* | pw32* | cegcc*)
12263   version_type=windows
12264   shrext_cmds=".dll"
12265   need_version=no
12266   need_lib_prefix=no
12267
12268   case $GCC,$host_os in
12269   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12270     library_names_spec='$libname.dll.a'
12271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12272     postinstall_cmds='base_file=`basename \${file}`~
12273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12274       dldir=$destdir/`dirname \$dlpath`~
12275       test -d \$dldir || mkdir -p \$dldir~
12276       $install_prog $dir/$dlname \$dldir/$dlname~
12277       chmod a+x \$dldir/$dlname~
12278       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12279         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12280       fi'
12281     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12282       dlpath=$dir/\$dldll~
12283        $RM \$dlpath'
12284     shlibpath_overrides_runpath=yes
12285
12286     case $host_os in
12287     cygwin*)
12288       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12289       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12290       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12291       ;;
12292     mingw* | cegcc*)
12293       # MinGW DLLs use traditional 'lib' prefix
12294       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12295       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12296       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12297         # It is most probably a Windows format PATH printed by
12298         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12299         # path with ; separators, and with drive letters. We can handle the
12300         # drive letters (cygwin fileutils understands them), so leave them,
12301         # especially as we might pass files found there to a mingw objdump,
12302         # which wouldn't understand a cygwinified path. Ahh.
12303         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12304       else
12305         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12306       fi
12307       ;;
12308     pw32*)
12309       # pw32 DLLs use 'pw' prefix rather than 'lib'
12310       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12311       ;;
12312     esac
12313     ;;
12314
12315   *)
12316     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12317     ;;
12318   esac
12319   dynamic_linker='Win32 ld.exe'
12320   # FIXME: first we should search . and the directory the executable is in
12321   shlibpath_var=PATH
12322   ;;
12323
12324 darwin* | rhapsody*)
12325   dynamic_linker="$host_os dyld"
12326   version_type=darwin
12327   need_lib_prefix=no
12328   need_version=no
12329   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12330   soname_spec='${libname}${release}${major}$shared_ext'
12331   shlibpath_overrides_runpath=yes
12332   shlibpath_var=DYLD_LIBRARY_PATH
12333   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12334
12335   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12336   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12337   ;;
12338
12339 dgux*)
12340   version_type=linux
12341   need_lib_prefix=no
12342   need_version=no
12343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12344   soname_spec='${libname}${release}${shared_ext}$major'
12345   shlibpath_var=LD_LIBRARY_PATH
12346   ;;
12347
12348 freebsd1*)
12349   dynamic_linker=no
12350   ;;
12351
12352 freebsd* | dragonfly*)
12353   # DragonFly does not have aout.  When/if they implement a new
12354   # versioning mechanism, adjust this.
12355   if test -x /usr/bin/objformat; then
12356     objformat=`/usr/bin/objformat`
12357   else
12358     case $host_os in
12359     freebsd[123]*) objformat=aout ;;
12360     *) objformat=elf ;;
12361     esac
12362   fi
12363   version_type=freebsd-$objformat
12364   case $version_type in
12365     freebsd-elf*)
12366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12367       need_version=no
12368       need_lib_prefix=no
12369       ;;
12370     freebsd-*)
12371       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12372       need_version=yes
12373       ;;
12374   esac
12375   shlibpath_var=LD_LIBRARY_PATH
12376   case $host_os in
12377   freebsd2*)
12378     shlibpath_overrides_runpath=yes
12379     ;;
12380   freebsd3.[01]* | freebsdelf3.[01]*)
12381     shlibpath_overrides_runpath=yes
12382     hardcode_into_libs=yes
12383     ;;
12384   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12385   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12386     shlibpath_overrides_runpath=no
12387     hardcode_into_libs=yes
12388     ;;
12389   *) # from 4.6 on, and DragonFly
12390     shlibpath_overrides_runpath=yes
12391     hardcode_into_libs=yes
12392     ;;
12393   esac
12394   ;;
12395
12396 gnu*)
12397   version_type=linux
12398   need_lib_prefix=no
12399   need_version=no
12400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12401   soname_spec='${libname}${release}${shared_ext}$major'
12402   shlibpath_var=LD_LIBRARY_PATH
12403   hardcode_into_libs=yes
12404   ;;
12405
12406 hpux9* | hpux10* | hpux11*)
12407   # Give a soname corresponding to the major version so that dld.sl refuses to
12408   # link against other versions.
12409   version_type=sunos
12410   need_lib_prefix=no
12411   need_version=no
12412   case $host_cpu in
12413   ia64*)
12414     shrext_cmds='.so'
12415     hardcode_into_libs=yes
12416     dynamic_linker="$host_os dld.so"
12417     shlibpath_var=LD_LIBRARY_PATH
12418     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420     soname_spec='${libname}${release}${shared_ext}$major'
12421     if test "X$HPUX_IA64_MODE" = X32; then
12422       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12423     else
12424       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12425     fi
12426     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12427     ;;
12428   hppa*64*)
12429     shrext_cmds='.sl'
12430     hardcode_into_libs=yes
12431     dynamic_linker="$host_os dld.sl"
12432     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12435     soname_spec='${libname}${release}${shared_ext}$major'
12436     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12437     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12438     ;;
12439   *)
12440     shrext_cmds='.sl'
12441     dynamic_linker="$host_os dld.sl"
12442     shlibpath_var=SHLIB_PATH
12443     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445     soname_spec='${libname}${release}${shared_ext}$major'
12446     ;;
12447   esac
12448   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12449   postinstall_cmds='chmod 555 $lib'
12450   ;;
12451
12452 interix[3-9]*)
12453   version_type=linux
12454   need_lib_prefix=no
12455   need_version=no
12456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12457   soname_spec='${libname}${release}${shared_ext}$major'
12458   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12459   shlibpath_var=LD_LIBRARY_PATH
12460   shlibpath_overrides_runpath=no
12461   hardcode_into_libs=yes
12462   ;;
12463
12464 irix5* | irix6* | nonstopux*)
12465   case $host_os in
12466     nonstopux*) version_type=nonstopux ;;
12467     *)
12468         if test "$lt_cv_prog_gnu_ld" = yes; then
12469                 version_type=linux
12470         else
12471                 version_type=irix
12472         fi ;;
12473   esac
12474   need_lib_prefix=no
12475   need_version=no
12476   soname_spec='${libname}${release}${shared_ext}$major'
12477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12478   case $host_os in
12479   irix5* | nonstopux*)
12480     libsuff= shlibsuff=
12481     ;;
12482   *)
12483     case $LD in # libtool.m4 will add one of these switches to LD
12484     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12485       libsuff= shlibsuff= libmagic=32-bit;;
12486     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12487       libsuff=32 shlibsuff=N32 libmagic=N32;;
12488     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12489       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12490     *) libsuff= shlibsuff= libmagic=never-match;;
12491     esac
12492     ;;
12493   esac
12494   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12495   shlibpath_overrides_runpath=no
12496   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12497   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12498   hardcode_into_libs=yes
12499   ;;
12500
12501 # No shared lib support for Linux oldld, aout, or coff.
12502 linux*oldld* | linux*aout* | linux*coff*)
12503   dynamic_linker=no
12504   ;;
12505
12506 # This must be Linux ELF.
12507 linux* | k*bsd*-gnu)
12508   version_type=linux
12509   need_lib_prefix=no
12510   need_version=no
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512   soname_spec='${libname}${release}${shared_ext}$major'
12513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12514   shlibpath_var=LD_LIBRARY_PATH
12515   shlibpath_overrides_runpath=no
12516   # Some binutils ld are patched to set DT_RUNPATH
12517   save_LDFLAGS=$LDFLAGS
12518   save_libdir=$libdir
12519   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12520        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523
12524 int
12525 main ()
12526 {
12527
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12534   shlibpath_overrides_runpath=yes
12535 fi
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext \
12538     conftest$ac_exeext conftest.$ac_ext
12539   LDFLAGS=$save_LDFLAGS
12540   libdir=$save_libdir
12541
12542   # This implies no fast_install, which is unacceptable.
12543   # Some rework will be needed to allow for fast_install
12544   # before this can be enabled.
12545   hardcode_into_libs=yes
12546
12547   # Append ld.so.conf contents to the search path
12548   if test -f /etc/ld.so.conf; then
12549     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' ' '`
12550     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12551   fi
12552
12553   # We used to test for /lib/ld.so.1 and disable shared libraries on
12554   # powerpc, because MkLinux only supported shared libraries with the
12555   # GNU dynamic linker.  Since this was broken with cross compilers,
12556   # most powerpc-linux boxes support dynamic linking these days and
12557   # people can always --disable-shared, the test was removed, and we
12558   # assume the GNU/Linux dynamic linker is in use.
12559   dynamic_linker='GNU/Linux ld.so'
12560   ;;
12561
12562 netbsdelf*-gnu)
12563   version_type=linux
12564   need_lib_prefix=no
12565   need_version=no
12566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12567   soname_spec='${libname}${release}${shared_ext}$major'
12568   shlibpath_var=LD_LIBRARY_PATH
12569   shlibpath_overrides_runpath=no
12570   hardcode_into_libs=yes
12571   dynamic_linker='NetBSD ld.elf_so'
12572   ;;
12573
12574 netbsd*)
12575   version_type=sunos
12576   need_lib_prefix=no
12577   need_version=no
12578   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12580     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581     dynamic_linker='NetBSD (a.out) ld.so'
12582   else
12583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584     soname_spec='${libname}${release}${shared_ext}$major'
12585     dynamic_linker='NetBSD ld.elf_so'
12586   fi
12587   shlibpath_var=LD_LIBRARY_PATH
12588   shlibpath_overrides_runpath=yes
12589   hardcode_into_libs=yes
12590   ;;
12591
12592 newsos6)
12593   version_type=linux
12594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12595   shlibpath_var=LD_LIBRARY_PATH
12596   shlibpath_overrides_runpath=yes
12597   ;;
12598
12599 *nto* | *qnx*)
12600   version_type=qnx
12601   need_lib_prefix=no
12602   need_version=no
12603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604   soname_spec='${libname}${release}${shared_ext}$major'
12605   shlibpath_var=LD_LIBRARY_PATH
12606   shlibpath_overrides_runpath=no
12607   hardcode_into_libs=yes
12608   dynamic_linker='ldqnx.so'
12609   ;;
12610
12611 openbsd*)
12612   version_type=sunos
12613   sys_lib_dlsearch_path_spec="/usr/lib"
12614   need_lib_prefix=no
12615   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12616   case $host_os in
12617     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12618     *)                          need_version=no  ;;
12619   esac
12620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12621   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12622   shlibpath_var=LD_LIBRARY_PATH
12623   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12624     case $host_os in
12625       openbsd2.[89] | openbsd2.[89].*)
12626         shlibpath_overrides_runpath=no
12627         ;;
12628       *)
12629         shlibpath_overrides_runpath=yes
12630         ;;
12631       esac
12632   else
12633     shlibpath_overrides_runpath=yes
12634   fi
12635   ;;
12636
12637 os2*)
12638   libname_spec='$name'
12639   shrext_cmds=".dll"
12640   need_lib_prefix=no
12641   library_names_spec='$libname${shared_ext} $libname.a'
12642   dynamic_linker='OS/2 ld.exe'
12643   shlibpath_var=LIBPATH
12644   ;;
12645
12646 osf3* | osf4* | osf5*)
12647   version_type=osf
12648   need_lib_prefix=no
12649   need_version=no
12650   soname_spec='${libname}${release}${shared_ext}$major'
12651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652   shlibpath_var=LD_LIBRARY_PATH
12653   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12654   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12655   ;;
12656
12657 rdos*)
12658   dynamic_linker=no
12659   ;;
12660
12661 solaris*)
12662   version_type=linux
12663   need_lib_prefix=no
12664   need_version=no
12665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666   soname_spec='${libname}${release}${shared_ext}$major'
12667   shlibpath_var=LD_LIBRARY_PATH
12668   shlibpath_overrides_runpath=yes
12669   hardcode_into_libs=yes
12670   # ldd complains unless libraries are executable
12671   postinstall_cmds='chmod +x $lib'
12672   ;;
12673
12674 sunos4*)
12675   version_type=sunos
12676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12677   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12678   shlibpath_var=LD_LIBRARY_PATH
12679   shlibpath_overrides_runpath=yes
12680   if test "$with_gnu_ld" = yes; then
12681     need_lib_prefix=no
12682   fi
12683   need_version=yes
12684   ;;
12685
12686 sysv4 | sysv4.3*)
12687   version_type=linux
12688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689   soname_spec='${libname}${release}${shared_ext}$major'
12690   shlibpath_var=LD_LIBRARY_PATH
12691   case $host_vendor in
12692     sni)
12693       shlibpath_overrides_runpath=no
12694       need_lib_prefix=no
12695       runpath_var=LD_RUN_PATH
12696       ;;
12697     siemens)
12698       need_lib_prefix=no
12699       ;;
12700     motorola)
12701       need_lib_prefix=no
12702       need_version=no
12703       shlibpath_overrides_runpath=no
12704       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12705       ;;
12706   esac
12707   ;;
12708
12709 sysv4*MP*)
12710   if test -d /usr/nec ;then
12711     version_type=linux
12712     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12713     soname_spec='$libname${shared_ext}.$major'
12714     shlibpath_var=LD_LIBRARY_PATH
12715   fi
12716   ;;
12717
12718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12719   version_type=freebsd-elf
12720   need_lib_prefix=no
12721   need_version=no
12722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12723   soname_spec='${libname}${release}${shared_ext}$major'
12724   shlibpath_var=LD_LIBRARY_PATH
12725   shlibpath_overrides_runpath=yes
12726   hardcode_into_libs=yes
12727   if test "$with_gnu_ld" = yes; then
12728     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12729   else
12730     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12731     case $host_os in
12732       sco3.2v5*)
12733         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12734         ;;
12735     esac
12736   fi
12737   sys_lib_dlsearch_path_spec='/usr/lib'
12738   ;;
12739
12740 tpf*)
12741   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12742   version_type=linux
12743   need_lib_prefix=no
12744   need_version=no
12745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746   shlibpath_var=LD_LIBRARY_PATH
12747   shlibpath_overrides_runpath=no
12748   hardcode_into_libs=yes
12749   ;;
12750
12751 uts4*)
12752   version_type=linux
12753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754   soname_spec='${libname}${release}${shared_ext}$major'
12755   shlibpath_var=LD_LIBRARY_PATH
12756   ;;
12757
12758 *)
12759   dynamic_linker=no
12760   ;;
12761 esac
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12763 $as_echo "$dynamic_linker" >&6; }
12764 test "$dynamic_linker" = no && can_build_shared=no
12765
12766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12767 if test "$GCC" = yes; then
12768   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12769 fi
12770
12771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12772   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12773 fi
12774 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12775   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12776 fi
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12866 hardcode_action=
12867 if test -n "$hardcode_libdir_flag_spec" ||
12868    test -n "$runpath_var" ||
12869    test "X$hardcode_automatic" = "Xyes" ; then
12870
12871   # We can hardcode non-existent directories.
12872   if test "$hardcode_direct" != no &&
12873      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12874      # have to relink, otherwise we might link with an installed library
12875      # when we should be linking with a yet-to-be-installed one
12876      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12877      test "$hardcode_minus_L" != no; then
12878     # Linking always hardcodes the temporary library directory.
12879     hardcode_action=relink
12880   else
12881     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12882     hardcode_action=immediate
12883   fi
12884 else
12885   # We cannot hardcode anything, or else we can only hardcode existing
12886   # directories.
12887   hardcode_action=unsupported
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12890 $as_echo "$hardcode_action" >&6; }
12891
12892 if test "$hardcode_action" = relink ||
12893    test "$inherit_rpath" = yes; then
12894   # Fast installation is not supported
12895   enable_fast_install=no
12896 elif test "$shlibpath_overrides_runpath" = yes ||
12897      test "$enable_shared" = no; then
12898   # Fast installation is not necessary
12899   enable_fast_install=needless
12900 fi
12901
12902
12903
12904
12905
12906
12907   if test "x$enable_dlopen" != xyes; then
12908   enable_dlopen=unknown
12909   enable_dlopen_self=unknown
12910   enable_dlopen_self_static=unknown
12911 else
12912   lt_cv_dlopen=no
12913   lt_cv_dlopen_libs=
12914
12915   case $host_os in
12916   beos*)
12917     lt_cv_dlopen="load_add_on"
12918     lt_cv_dlopen_libs=
12919     lt_cv_dlopen_self=yes
12920     ;;
12921
12922   mingw* | pw32* | cegcc*)
12923     lt_cv_dlopen="LoadLibrary"
12924     lt_cv_dlopen_libs=
12925     ;;
12926
12927   cygwin*)
12928     lt_cv_dlopen="dlopen"
12929     lt_cv_dlopen_libs=
12930     ;;
12931
12932   darwin*)
12933   # if libdl is installed we need to link against it
12934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12936 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-ldl  $LIBS"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h.  */
12943
12944 /* Override any GCC internal prototype to avoid an error.
12945    Use char because int might match the return type of a GCC
12946    builtin and then its argument prototype would still apply.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char dlopen ();
12951 int
12952 main ()
12953 {
12954 return dlopen ();
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960   ac_cv_lib_dl_dlopen=yes
12961 else
12962   ac_cv_lib_dl_dlopen=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext \
12965     conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12971   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12972 else
12973
12974     lt_cv_dlopen="dyld"
12975     lt_cv_dlopen_libs=
12976     lt_cv_dlopen_self=yes
12977
12978 fi
12979
12980     ;;
12981
12982   *)
12983     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12984 if test "x$ac_cv_func_shl_load" = x""yes; then :
12985   lt_cv_dlopen="shl_load"
12986 else
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12989 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-ldld  $LIBS"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char shl_load ();
13004 int
13005 main ()
13006 {
13007 return shl_load ();
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 if ac_fn_c_try_link "$LINENO"; then :
13013   ac_cv_lib_dld_shl_load=yes
13014 else
13015   ac_cv_lib_dld_shl_load=no
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext \
13018     conftest$ac_exeext conftest.$ac_ext
13019 LIBS=$ac_check_lib_save_LIBS
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13023 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13024   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13025 else
13026   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13027 if test "x$ac_cv_func_dlopen" = x""yes; then :
13028   lt_cv_dlopen="dlopen"
13029 else
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13032 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035   ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-ldl  $LIBS"
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h.  */
13039
13040 /* Override any GCC internal prototype to avoid an error.
13041    Use char because int might match the return type of a GCC
13042    builtin and then its argument prototype would still apply.  */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char dlopen ();
13047 int
13048 main ()
13049 {
13050 return dlopen ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056   ac_cv_lib_dl_dlopen=yes
13057 else
13058   ac_cv_lib_dl_dlopen=no
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061     conftest$ac_exeext conftest.$ac_ext
13062 LIBS=$ac_check_lib_save_LIBS
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13066 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13067   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13068 else
13069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13071 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13072   $as_echo_n "(cached) " >&6
13073 else
13074   ac_check_lib_save_LIBS=$LIBS
13075 LIBS="-lsvld  $LIBS"
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h.  */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080    Use char because int might match the return type of a GCC
13081    builtin and then its argument prototype would still apply.  */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char dlopen ();
13086 int
13087 main ()
13088 {
13089 return dlopen ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095   ac_cv_lib_svld_dlopen=yes
13096 else
13097   ac_cv_lib_svld_dlopen=no
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100     conftest$ac_exeext conftest.$ac_ext
13101 LIBS=$ac_check_lib_save_LIBS
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13105 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13107 else
13108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13110 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13111   $as_echo_n "(cached) " >&6
13112 else
13113   ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-ldld  $LIBS"
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h.  */
13117
13118 /* Override any GCC internal prototype to avoid an error.
13119    Use char because int might match the return type of a GCC
13120    builtin and then its argument prototype would still apply.  */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 char dld_link ();
13125 int
13126 main ()
13127 {
13128 return dld_link ();
13129   ;
13130   return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_c_try_link "$LINENO"; then :
13134   ac_cv_lib_dld_dld_link=yes
13135 else
13136   ac_cv_lib_dld_dld_link=no
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext \
13139     conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13144 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13145   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13146 fi
13147
13148
13149 fi
13150
13151
13152 fi
13153
13154
13155 fi
13156
13157
13158 fi
13159
13160
13161 fi
13162
13163     ;;
13164   esac
13165
13166   if test "x$lt_cv_dlopen" != xno; then
13167     enable_dlopen=yes
13168   else
13169     enable_dlopen=no
13170   fi
13171
13172   case $lt_cv_dlopen in
13173   dlopen)
13174     save_CPPFLAGS="$CPPFLAGS"
13175     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13176
13177     save_LDFLAGS="$LDFLAGS"
13178     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13179
13180     save_LIBS="$LIBS"
13181     LIBS="$lt_cv_dlopen_libs $LIBS"
13182
13183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13185 if test "${lt_cv_dlopen_self+set}" = set; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188           if test "$cross_compiling" = yes; then :
13189   lt_cv_dlopen_self=cross
13190 else
13191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13192   lt_status=$lt_dlunknown
13193   cat > conftest.$ac_ext <<_LT_EOF
13194 #line 13194 "configure"
13195 #include "confdefs.h"
13196
13197 #if HAVE_DLFCN_H
13198 #include <dlfcn.h>
13199 #endif
13200
13201 #include <stdio.h>
13202
13203 #ifdef RTLD_GLOBAL
13204 #  define LT_DLGLOBAL           RTLD_GLOBAL
13205 #else
13206 #  ifdef DL_GLOBAL
13207 #    define LT_DLGLOBAL         DL_GLOBAL
13208 #  else
13209 #    define LT_DLGLOBAL         0
13210 #  endif
13211 #endif
13212
13213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13214    find out it does not work in some platform. */
13215 #ifndef LT_DLLAZY_OR_NOW
13216 #  ifdef RTLD_LAZY
13217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13218 #  else
13219 #    ifdef DL_LAZY
13220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13221 #    else
13222 #      ifdef RTLD_NOW
13223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13224 #      else
13225 #        ifdef DL_NOW
13226 #          define LT_DLLAZY_OR_NOW      DL_NOW
13227 #        else
13228 #          define LT_DLLAZY_OR_NOW      0
13229 #        endif
13230 #      endif
13231 #    endif
13232 #  endif
13233 #endif
13234
13235 void fnord() { int i=42;}
13236 int main ()
13237 {
13238   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13239   int status = $lt_dlunknown;
13240
13241   if (self)
13242     {
13243       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13244       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13245       /* dlclose (self); */
13246     }
13247   else
13248     puts (dlerror ());
13249
13250   return status;
13251 }
13252 _LT_EOF
13253   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13254   (eval $ac_link) 2>&5
13255   ac_status=$?
13256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13258     (./conftest; exit; ) >&5 2>/dev/null
13259     lt_status=$?
13260     case x$lt_status in
13261       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13262       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13263       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13264     esac
13265   else :
13266     # compilation failed
13267     lt_cv_dlopen_self=no
13268   fi
13269 fi
13270 rm -fr conftest*
13271
13272
13273 fi
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13275 $as_echo "$lt_cv_dlopen_self" >&6; }
13276
13277     if test "x$lt_cv_dlopen_self" = xyes; then
13278       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13279       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13280 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13281 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13282   $as_echo_n "(cached) " >&6
13283 else
13284           if test "$cross_compiling" = yes; then :
13285   lt_cv_dlopen_self_static=cross
13286 else
13287   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13288   lt_status=$lt_dlunknown
13289   cat > conftest.$ac_ext <<_LT_EOF
13290 #line 13290 "configure"
13291 #include "confdefs.h"
13292
13293 #if HAVE_DLFCN_H
13294 #include <dlfcn.h>
13295 #endif
13296
13297 #include <stdio.h>
13298
13299 #ifdef RTLD_GLOBAL
13300 #  define LT_DLGLOBAL           RTLD_GLOBAL
13301 #else
13302 #  ifdef DL_GLOBAL
13303 #    define LT_DLGLOBAL         DL_GLOBAL
13304 #  else
13305 #    define LT_DLGLOBAL         0
13306 #  endif
13307 #endif
13308
13309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13310    find out it does not work in some platform. */
13311 #ifndef LT_DLLAZY_OR_NOW
13312 #  ifdef RTLD_LAZY
13313 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13314 #  else
13315 #    ifdef DL_LAZY
13316 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13317 #    else
13318 #      ifdef RTLD_NOW
13319 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13320 #      else
13321 #        ifdef DL_NOW
13322 #          define LT_DLLAZY_OR_NOW      DL_NOW
13323 #        else
13324 #          define LT_DLLAZY_OR_NOW      0
13325 #        endif
13326 #      endif
13327 #    endif
13328 #  endif
13329 #endif
13330
13331 void fnord() { int i=42;}
13332 int main ()
13333 {
13334   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13335   int status = $lt_dlunknown;
13336
13337   if (self)
13338     {
13339       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13340       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13341       /* dlclose (self); */
13342     }
13343   else
13344     puts (dlerror ());
13345
13346   return status;
13347 }
13348 _LT_EOF
13349   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13350   (eval $ac_link) 2>&5
13351   ac_status=$?
13352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13354     (./conftest; exit; ) >&5 2>/dev/null
13355     lt_status=$?
13356     case x$lt_status in
13357       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13358       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13359       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13360     esac
13361   else :
13362     # compilation failed
13363     lt_cv_dlopen_self_static=no
13364   fi
13365 fi
13366 rm -fr conftest*
13367
13368
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13371 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13372     fi
13373
13374     CPPFLAGS="$save_CPPFLAGS"
13375     LDFLAGS="$save_LDFLAGS"
13376     LIBS="$save_LIBS"
13377     ;;
13378   esac
13379
13380   case $lt_cv_dlopen_self in
13381   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13382   *) enable_dlopen_self=unknown ;;
13383   esac
13384
13385   case $lt_cv_dlopen_self_static in
13386   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13387   *) enable_dlopen_self_static=unknown ;;
13388   esac
13389 fi
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407 striplib=
13408 old_striplib=
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13410 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13411 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13412   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13413   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415 $as_echo "yes" >&6; }
13416 else
13417 # FIXME - insert some real tests, host_os isn't really good enough
13418   case $host_os in
13419   darwin*)
13420     if test -n "$STRIP" ; then
13421       striplib="$STRIP -x"
13422       old_striplib="$STRIP -S"
13423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13424 $as_echo "yes" >&6; }
13425     else
13426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428     fi
13429     ;;
13430   *)
13431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433     ;;
13434   esac
13435 fi
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448   # Report which library types will actually be built
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13450 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13452 $as_echo "$can_build_shared" >&6; }
13453
13454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13455 $as_echo_n "checking whether to build shared libraries... " >&6; }
13456   test "$can_build_shared" = "no" && enable_shared=no
13457
13458   # On AIX, shared libraries and static libraries use the same namespace, and
13459   # are all built from PIC.
13460   case $host_os in
13461   aix3*)
13462     test "$enable_shared" = yes && enable_static=no
13463     if test -n "$RANLIB"; then
13464       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13465       postinstall_cmds='$RANLIB $lib'
13466     fi
13467     ;;
13468
13469   aix[4-9]*)
13470     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13471       test "$enable_shared" = yes && enable_static=no
13472     fi
13473     ;;
13474   esac
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13476 $as_echo "$enable_shared" >&6; }
13477
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13479 $as_echo_n "checking whether to build static libraries... " >&6; }
13480   # Make sure either enable_shared or enable_static is yes.
13481   test "$enable_shared" = yes || enable_static=yes
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13483 $as_echo "$enable_static" >&6; }
13484
13485
13486
13487
13488 fi
13489 ac_ext=c
13490 ac_cpp='$CPP $CPPFLAGS'
13491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495 CC="$lt_save_CC"
13496
13497
13498 ac_ext=cpp
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13503
13504 archive_cmds_need_lc_CXX=no
13505 allow_undefined_flag_CXX=
13506 always_export_symbols_CXX=no
13507 archive_expsym_cmds_CXX=
13508 compiler_needs_object_CXX=no
13509 export_dynamic_flag_spec_CXX=
13510 hardcode_direct_CXX=no
13511 hardcode_direct_absolute_CXX=no
13512 hardcode_libdir_flag_spec_CXX=
13513 hardcode_libdir_flag_spec_ld_CXX=
13514 hardcode_libdir_separator_CXX=
13515 hardcode_minus_L_CXX=no
13516 hardcode_shlibpath_var_CXX=unsupported
13517 hardcode_automatic_CXX=no
13518 inherit_rpath_CXX=no
13519 module_cmds_CXX=
13520 module_expsym_cmds_CXX=
13521 link_all_deplibs_CXX=unknown
13522 old_archive_cmds_CXX=$old_archive_cmds
13523 no_undefined_flag_CXX=
13524 whole_archive_flag_spec_CXX=
13525 enable_shared_with_static_runtimes_CXX=no
13526
13527 # Source file extension for C++ test sources.
13528 ac_ext=cpp
13529
13530 # Object file extension for compiled C++ test sources.
13531 objext=o
13532 objext_CXX=$objext
13533
13534 # No sense in running all these tests if we already determined that
13535 # the CXX compiler isn't working.  Some variables (like enable_shared)
13536 # are currently assumed to apply to all compilers on this platform,
13537 # and will be corrupted by setting them based on a non-working compiler.
13538 if test "$_lt_caught_CXX_error" != yes; then
13539   # Code to be used in simple compile tests
13540   lt_simple_compile_test_code="int some_variable = 0;"
13541
13542   # Code to be used in simple link tests
13543   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13544
13545   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13546
13547
13548
13549
13550
13551
13552 # If no C compiler was specified, use CC.
13553 LTCC=${LTCC-"$CC"}
13554
13555 # If no C compiler flags were specified, use CFLAGS.
13556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13557
13558 # Allow CC to be a program name with arguments.
13559 compiler=$CC
13560
13561
13562   # save warnings/boilerplate of simple test code
13563   ac_outfile=conftest.$ac_objext
13564 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13565 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13566 _lt_compiler_boilerplate=`cat conftest.err`
13567 $RM conftest*
13568
13569   ac_outfile=conftest.$ac_objext
13570 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13571 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13572 _lt_linker_boilerplate=`cat conftest.err`
13573 $RM -r conftest*
13574
13575
13576   # Allow CC to be a program name with arguments.
13577   lt_save_CC=$CC
13578   lt_save_LD=$LD
13579   lt_save_GCC=$GCC
13580   GCC=$GXX
13581   lt_save_with_gnu_ld=$with_gnu_ld
13582   lt_save_path_LD=$lt_cv_path_LD
13583   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13584     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13585   else
13586     $as_unset lt_cv_prog_gnu_ld
13587   fi
13588   if test -n "${lt_cv_path_LDCXX+set}"; then
13589     lt_cv_path_LD=$lt_cv_path_LDCXX
13590   else
13591     $as_unset lt_cv_path_LD
13592   fi
13593   test -z "${LDCXX+set}" || LD=$LDCXX
13594   CC=${CXX-"c++"}
13595   compiler=$CC
13596   compiler_CXX=$CC
13597   for cc_temp in $compiler""; do
13598   case $cc_temp in
13599     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13600     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13601     \-*) ;;
13602     *) break;;
13603   esac
13604 done
13605 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13606
13607
13608   if test -n "$compiler"; then
13609     # We don't want -fno-exception when compiling C++ code, so set the
13610     # no_builtin_flag separately
13611     if test "$GXX" = yes; then
13612       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13613     else
13614       lt_prog_compiler_no_builtin_flag_CXX=
13615     fi
13616
13617     if test "$GXX" = yes; then
13618       # Set up default GNU C++ configuration
13619
13620
13621
13622 # Check whether --with-gnu-ld was given.
13623 if test "${with_gnu_ld+set}" = set; then :
13624   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13625 else
13626   with_gnu_ld=no
13627 fi
13628
13629 ac_prog=ld
13630 if test "$GCC" = yes; then
13631   # Check if gcc -print-prog-name=ld gives a path.
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13633 $as_echo_n "checking for ld used by $CC... " >&6; }
13634   case $host in
13635   *-*-mingw*)
13636     # gcc leaves a trailing carriage return which upsets mingw
13637     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13638   *)
13639     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13640   esac
13641   case $ac_prog in
13642     # Accept absolute paths.
13643     [\\/]* | ?:[\\/]*)
13644       re_direlt='/[^/][^/]*/\.\./'
13645       # Canonicalize the pathname of ld
13646       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13647       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13648         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13649       done
13650       test -z "$LD" && LD="$ac_prog"
13651       ;;
13652   "")
13653     # If it fails, then pretend we aren't using GCC.
13654     ac_prog=ld
13655     ;;
13656   *)
13657     # If it is relative, then search for the first ld in PATH.
13658     with_gnu_ld=unknown
13659     ;;
13660   esac
13661 elif test "$with_gnu_ld" = yes; then
13662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13663 $as_echo_n "checking for GNU ld... " >&6; }
13664 else
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13666 $as_echo_n "checking for non-GNU ld... " >&6; }
13667 fi
13668 if test "${lt_cv_path_LD+set}" = set; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   if test -z "$LD"; then
13672   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13673   for ac_dir in $PATH; do
13674     IFS="$lt_save_ifs"
13675     test -z "$ac_dir" && ac_dir=.
13676     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13677       lt_cv_path_LD="$ac_dir/$ac_prog"
13678       # Check to see if the program is GNU ld.  I'd rather use --version,
13679       # but apparently some variants of GNU ld only accept -v.
13680       # Break only if it was the GNU/non-GNU ld that we prefer.
13681       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13682       *GNU* | *'with BFD'*)
13683         test "$with_gnu_ld" != no && break
13684         ;;
13685       *)
13686         test "$with_gnu_ld" != yes && break
13687         ;;
13688       esac
13689     fi
13690   done
13691   IFS="$lt_save_ifs"
13692 else
13693   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13694 fi
13695 fi
13696
13697 LD="$lt_cv_path_LD"
13698 if test -n "$LD"; then
13699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13700 $as_echo "$LD" >&6; }
13701 else
13702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13704 fi
13705 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13708 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13712 case `$LD -v 2>&1 </dev/null` in
13713 *GNU* | *'with BFD'*)
13714   lt_cv_prog_gnu_ld=yes
13715   ;;
13716 *)
13717   lt_cv_prog_gnu_ld=no
13718   ;;
13719 esac
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13723 with_gnu_ld=$lt_cv_prog_gnu_ld
13724
13725
13726
13727
13728
13729
13730
13731       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13732       # archiving commands below assume that GNU ld is being used.
13733       if test "$with_gnu_ld" = yes; then
13734         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13735         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13736
13737         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13738         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13739
13740         # If archive_cmds runs LD, not CC, wlarc should be empty
13741         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13742         #     investigate it a little bit more. (MM)
13743         wlarc='${wl}'
13744
13745         # ancient GNU ld didn't support --whole-archive et. al.
13746         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13747           $GREP 'no-whole-archive' > /dev/null; then
13748           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13749         else
13750           whole_archive_flag_spec_CXX=
13751         fi
13752       else
13753         with_gnu_ld=no
13754         wlarc=
13755
13756         # A generic and very simple default shared library creation
13757         # command for GNU C++ for the case where it uses the native
13758         # linker, instead of GNU ld.  If possible, this setting should
13759         # overridden to take advantage of the native linker features on
13760         # the platform it is being used on.
13761         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13762       fi
13763
13764       # Commands to make compiler produce verbose output that lists
13765       # what "hidden" libraries, object files and flags are used when
13766       # linking a shared library.
13767       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13768
13769     else
13770       GXX=no
13771       with_gnu_ld=no
13772       wlarc=
13773     fi
13774
13775     # PORTME: fill in a description of your system's C++ link characteristics
13776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13778     ld_shlibs_CXX=yes
13779     case $host_os in
13780       aix3*)
13781         # FIXME: insert proper C++ library support
13782         ld_shlibs_CXX=no
13783         ;;
13784       aix[4-9]*)
13785         if test "$host_cpu" = ia64; then
13786           # On IA64, the linker does run time linking by default, so we don't
13787           # have to do anything special.
13788           aix_use_runtimelinking=no
13789           exp_sym_flag='-Bexport'
13790           no_entry_flag=""
13791         else
13792           aix_use_runtimelinking=no
13793
13794           # Test if we are trying to use run time linking or normal
13795           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13796           # need to do runtime linking.
13797           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13798             for ld_flag in $LDFLAGS; do
13799               case $ld_flag in
13800               *-brtl*)
13801                 aix_use_runtimelinking=yes
13802                 break
13803                 ;;
13804               esac
13805             done
13806             ;;
13807           esac
13808
13809           exp_sym_flag='-bexport'
13810           no_entry_flag='-bnoentry'
13811         fi
13812
13813         # When large executables or shared objects are built, AIX ld can
13814         # have problems creating the table of contents.  If linking a library
13815         # or program results in "error TOC overflow" add -mminimal-toc to
13816         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13817         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13818
13819         archive_cmds_CXX=''
13820         hardcode_direct_CXX=yes
13821         hardcode_direct_absolute_CXX=yes
13822         hardcode_libdir_separator_CXX=':'
13823         link_all_deplibs_CXX=yes
13824         file_list_spec_CXX='${wl}-f,'
13825
13826         if test "$GXX" = yes; then
13827           case $host_os in aix4.[012]|aix4.[012].*)
13828           # We only want to do this on AIX 4.2 and lower, the check
13829           # below for broken collect2 doesn't work under 4.3+
13830           collect2name=`${CC} -print-prog-name=collect2`
13831           if test -f "$collect2name" &&
13832              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13833           then
13834             # We have reworked collect2
13835             :
13836           else
13837             # We have old collect2
13838             hardcode_direct_CXX=unsupported
13839             # It fails to find uninstalled libraries when the uninstalled
13840             # path is not listed in the libpath.  Setting hardcode_minus_L
13841             # to unsupported forces relinking
13842             hardcode_minus_L_CXX=yes
13843             hardcode_libdir_flag_spec_CXX='-L$libdir'
13844             hardcode_libdir_separator_CXX=
13845           fi
13846           esac
13847           shared_flag='-shared'
13848           if test "$aix_use_runtimelinking" = yes; then
13849             shared_flag="$shared_flag "'${wl}-G'
13850           fi
13851         else
13852           # not using gcc
13853           if test "$host_cpu" = ia64; then
13854           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13855           # chokes on -Wl,-G. The following line is correct:
13856           shared_flag='-G'
13857           else
13858             if test "$aix_use_runtimelinking" = yes; then
13859               shared_flag='${wl}-G'
13860             else
13861               shared_flag='${wl}-bM:SRE'
13862             fi
13863           fi
13864         fi
13865
13866         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13867         # It seems that -bexpall does not export symbols beginning with
13868         # underscore (_), so it is better to generate a list of symbols to
13869         # export.
13870         always_export_symbols_CXX=yes
13871         if test "$aix_use_runtimelinking" = yes; then
13872           # Warning - without using the other runtime loading flags (-brtl),
13873           # -berok will link without error, but may produce a broken library.
13874           allow_undefined_flag_CXX='-berok'
13875           # Determine the default libpath from the value encoded in an empty
13876           # executable.
13877           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h.  */
13879
13880 int
13881 main ()
13882 {
13883
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 if ac_fn_cxx_try_link "$LINENO"; then :
13889
13890 lt_aix_libpath_sed='
13891     /Import File Strings/,/^$/ {
13892         /^0/ {
13893             s/^0  *\(.*\)$/\1/
13894             p
13895         }
13896     }'
13897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13898 # Check for a 64-bit object if we didn't find anything.
13899 if test -z "$aix_libpath"; then
13900   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13901 fi
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext \
13904     conftest$ac_exeext conftest.$ac_ext
13905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13906
13907           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13908
13909           archive_expsym_cmds_CXX='$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"
13910         else
13911           if test "$host_cpu" = ia64; then
13912             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13913             allow_undefined_flag_CXX="-z nodefs"
13914             archive_expsym_cmds_CXX="\$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"
13915           else
13916             # Determine the default libpath from the value encoded in an
13917             # empty executable.
13918             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920
13921 int
13922 main ()
13923 {
13924
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 if ac_fn_cxx_try_link "$LINENO"; then :
13930
13931 lt_aix_libpath_sed='
13932     /Import File Strings/,/^$/ {
13933         /^0/ {
13934             s/^0  *\(.*\)$/\1/
13935             p
13936         }
13937     }'
13938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13939 # Check for a 64-bit object if we didn't find anything.
13940 if test -z "$aix_libpath"; then
13941   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13942 fi
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945     conftest$ac_exeext conftest.$ac_ext
13946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13947
13948             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13949             # Warning - without using the other run time loading flags,
13950             # -berok will link without error, but may produce a broken library.
13951             no_undefined_flag_CXX=' ${wl}-bernotok'
13952             allow_undefined_flag_CXX=' ${wl}-berok'
13953             # Exported symbols can be pulled into shared objects from archives
13954             whole_archive_flag_spec_CXX='$convenience'
13955             archive_cmds_need_lc_CXX=yes
13956             # This is similar to how AIX traditionally builds its shared
13957             # libraries.
13958             archive_expsym_cmds_CXX="\$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'
13959           fi
13960         fi
13961         ;;
13962
13963       beos*)
13964         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13965           allow_undefined_flag_CXX=unsupported
13966           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13967           # support --undefined.  This deserves some investigation.  FIXME
13968           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13969         else
13970           ld_shlibs_CXX=no
13971         fi
13972         ;;
13973
13974       chorus*)
13975         case $cc_basename in
13976           *)
13977           # FIXME: insert proper C++ library support
13978           ld_shlibs_CXX=no
13979           ;;
13980         esac
13981         ;;
13982
13983       cygwin* | mingw* | pw32* | cegcc*)
13984         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13985         # as there is no search path for DLLs.
13986         hardcode_libdir_flag_spec_CXX='-L$libdir'
13987         allow_undefined_flag_CXX=unsupported
13988         always_export_symbols_CXX=no
13989         enable_shared_with_static_runtimes_CXX=yes
13990
13991         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13992           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13993           # If the export-symbols file already is a .def file (1st line
13994           # is EXPORTS), use it as is; otherwise, prepend...
13995           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13996             cp $export_symbols $output_objdir/$soname.def;
13997           else
13998             echo EXPORTS > $output_objdir/$soname.def;
13999             cat $export_symbols >> $output_objdir/$soname.def;
14000           fi~
14001           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14002         else
14003           ld_shlibs_CXX=no
14004         fi
14005         ;;
14006       darwin* | rhapsody*)
14007
14008
14009   archive_cmds_need_lc_CXX=no
14010   hardcode_direct_CXX=no
14011   hardcode_automatic_CXX=yes
14012   hardcode_shlibpath_var_CXX=unsupported
14013   whole_archive_flag_spec_CXX=''
14014   link_all_deplibs_CXX=yes
14015   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14016   case $cc_basename in
14017      ifort*) _lt_dar_can_shared=yes ;;
14018      *) _lt_dar_can_shared=$GCC ;;
14019   esac
14020   if test "$_lt_dar_can_shared" = "yes"; then
14021     output_verbose_link_cmd=echo
14022     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14023     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14024     archive_expsym_cmds_CXX="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}"
14025     module_expsym_cmds_CXX="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}"
14026        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14027       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14028       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14029     fi
14030
14031   else
14032   ld_shlibs_CXX=no
14033   fi
14034
14035         ;;
14036
14037       dgux*)
14038         case $cc_basename in
14039           ec++*)
14040             # FIXME: insert proper C++ library support
14041             ld_shlibs_CXX=no
14042             ;;
14043           ghcx*)
14044             # Green Hills C++ Compiler
14045             # FIXME: insert proper C++ library support
14046             ld_shlibs_CXX=no
14047             ;;
14048           *)
14049             # FIXME: insert proper C++ library support
14050             ld_shlibs_CXX=no
14051             ;;
14052         esac
14053         ;;
14054
14055       freebsd[12]*)
14056         # C++ shared libraries reported to be fairly broken before
14057         # switch to ELF
14058         ld_shlibs_CXX=no
14059         ;;
14060
14061       freebsd-elf*)
14062         archive_cmds_need_lc_CXX=no
14063         ;;
14064
14065       freebsd* | dragonfly*)
14066         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14067         # conventions
14068         ld_shlibs_CXX=yes
14069         ;;
14070
14071       gnu*)
14072         ;;
14073
14074       hpux9*)
14075         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14076         hardcode_libdir_separator_CXX=:
14077         export_dynamic_flag_spec_CXX='${wl}-E'
14078         hardcode_direct_CXX=yes
14079         hardcode_minus_L_CXX=yes # Not in the search PATH,
14080                                              # but as the default
14081                                              # location of the library.
14082
14083         case $cc_basename in
14084           CC*)
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088           aCC*)
14089             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14090             # Commands to make compiler produce verbose output that lists
14091             # what "hidden" libraries, object files and flags are used when
14092             # linking a shared library.
14093             #
14094             # There doesn't appear to be a way to prevent this compiler from
14095             # explicitly linking system object files so we need to strip them
14096             # from the output so that they don't get included in the library
14097             # dependencies.
14098             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14099             ;;
14100           *)
14101             if test "$GXX" = yes; then
14102               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14103             else
14104               # FIXME: insert proper C++ library support
14105               ld_shlibs_CXX=no
14106             fi
14107             ;;
14108         esac
14109         ;;
14110
14111       hpux10*|hpux11*)
14112         if test $with_gnu_ld = no; then
14113           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14114           hardcode_libdir_separator_CXX=:
14115
14116           case $host_cpu in
14117             hppa*64*|ia64*)
14118               ;;
14119             *)
14120               export_dynamic_flag_spec_CXX='${wl}-E'
14121               ;;
14122           esac
14123         fi
14124         case $host_cpu in
14125           hppa*64*|ia64*)
14126             hardcode_direct_CXX=no
14127             hardcode_shlibpath_var_CXX=no
14128             ;;
14129           *)
14130             hardcode_direct_CXX=yes
14131             hardcode_direct_absolute_CXX=yes
14132             hardcode_minus_L_CXX=yes # Not in the search PATH,
14133                                                  # but as the default
14134                                                  # location of the library.
14135             ;;
14136         esac
14137
14138         case $cc_basename in
14139           CC*)
14140             # FIXME: insert proper C++ library support
14141             ld_shlibs_CXX=no
14142             ;;
14143           aCC*)
14144             case $host_cpu in
14145               hppa*64*)
14146                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14147                 ;;
14148               ia64*)
14149                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14150                 ;;
14151               *)
14152                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14153                 ;;
14154             esac
14155             # Commands to make compiler produce verbose output that lists
14156             # what "hidden" libraries, object files and flags are used when
14157             # linking a shared library.
14158             #
14159             # There doesn't appear to be a way to prevent this compiler from
14160             # explicitly linking system object files so we need to strip them
14161             # from the output so that they don't get included in the library
14162             # dependencies.
14163             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14164             ;;
14165           *)
14166             if test "$GXX" = yes; then
14167               if test $with_gnu_ld = no; then
14168                 case $host_cpu in
14169                   hppa*64*)
14170                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14171                     ;;
14172                   ia64*)
14173                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174                     ;;
14175                   *)
14176                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177                     ;;
14178                 esac
14179               fi
14180             else
14181               # FIXME: insert proper C++ library support
14182               ld_shlibs_CXX=no
14183             fi
14184             ;;
14185         esac
14186         ;;
14187
14188       interix[3-9]*)
14189         hardcode_direct_CXX=no
14190         hardcode_shlibpath_var_CXX=no
14191         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14192         export_dynamic_flag_spec_CXX='${wl}-E'
14193         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14194         # Instead, shared libraries are loaded at an image base (0x10000000 by
14195         # default) and relocated if they conflict, which is a slow very memory
14196         # consuming and fragmenting process.  To avoid this, we pick a random,
14197         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14198         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14199         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14200         archive_expsym_cmds_CXX='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'
14201         ;;
14202       irix5* | irix6*)
14203         case $cc_basename in
14204           CC*)
14205             # SGI C++
14206             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14207
14208             # Archives containing C++ object files must be created using
14209             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14210             # necessary to make sure instantiated templates are included
14211             # in the archive.
14212             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14213             ;;
14214           *)
14215             if test "$GXX" = yes; then
14216               if test "$with_gnu_ld" = no; then
14217                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14218               else
14219                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14220               fi
14221             fi
14222             link_all_deplibs_CXX=yes
14223             ;;
14224         esac
14225         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14226         hardcode_libdir_separator_CXX=:
14227         inherit_rpath_CXX=yes
14228         ;;
14229
14230       linux* | k*bsd*-gnu)
14231         case $cc_basename in
14232           KCC*)
14233             # Kuck and Associates, Inc. (KAI) C++ Compiler
14234
14235             # KCC will only create a shared library if the output file
14236             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14237             # to its proper name (with version) after linking.
14238             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14239             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14240             # Commands to make compiler produce verbose output that lists
14241             # what "hidden" libraries, object files and flags are used when
14242             # linking a shared library.
14243             #
14244             # There doesn't appear to be a way to prevent this compiler from
14245             # explicitly linking system object files so we need to strip them
14246             # from the output so that they don't get included in the library
14247             # dependencies.
14248             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14249
14250             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14251             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14252
14253             # Archives containing C++ object files must be created using
14254             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14255             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14256             ;;
14257           icpc* | ecpc* )
14258             # Intel C++
14259             with_gnu_ld=yes
14260             # version 8.0 and above of icpc choke on multiply defined symbols
14261             # if we add $predep_objects and $postdep_objects, however 7.1 and
14262             # earlier do not add the objects themselves.
14263             case `$CC -V 2>&1` in
14264               *"Version 7."*)
14265                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14267                 ;;
14268               *)  # Version 8.0 or newer
14269                 tmp_idyn=
14270                 case $host_cpu in
14271                   ia64*) tmp_idyn=' -i_dynamic';;
14272                 esac
14273                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14274                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14275                 ;;
14276             esac
14277             archive_cmds_need_lc_CXX=no
14278             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14279             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14280             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14281             ;;
14282           pgCC* | pgcpp*)
14283             # Portland Group C++ compiler
14284             case `$CC -V` in
14285             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14286               prelink_cmds_CXX='tpldir=Template.dir~
14287                 rm -rf $tpldir~
14288                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14289                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14290               old_archive_cmds_CXX='tpldir=Template.dir~
14291                 rm -rf $tpldir~
14292                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14293                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14294                 $RANLIB $oldlib'
14295               archive_cmds_CXX='tpldir=Template.dir~
14296                 rm -rf $tpldir~
14297                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14298                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14299               archive_expsym_cmds_CXX='tpldir=Template.dir~
14300                 rm -rf $tpldir~
14301                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14302                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14303               ;;
14304             *) # Version 6 will use weak symbols
14305               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14306               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14307               ;;
14308             esac
14309
14310             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14311             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14312             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14313             ;;
14314           cxx*)
14315             # Compaq C++
14316             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14318
14319             runpath_var=LD_RUN_PATH
14320             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14321             hardcode_libdir_separator_CXX=:
14322
14323             # Commands to make compiler produce verbose output that lists
14324             # what "hidden" libraries, object files and flags are used when
14325             # linking a shared library.
14326             #
14327             # There doesn't appear to be a way to prevent this compiler from
14328             # explicitly linking system object files so we need to strip them
14329             # from the output so that they don't get included in the library
14330             # dependencies.
14331             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14332             ;;
14333           xl*)
14334             # IBM XL 8.0 on PPC, with GNU ld
14335             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14336             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14337             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338             if test "x$supports_anon_versioning" = xyes; then
14339               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14340                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14341                 echo "local: *; };" >> $output_objdir/$libname.ver~
14342                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14343             fi
14344             ;;
14345           *)
14346             case `$CC -V 2>&1 | sed 5q` in
14347             *Sun\ C*)
14348               # Sun C++ 5.9
14349               no_undefined_flag_CXX=' -zdefs'
14350               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14351               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14352               hardcode_libdir_flag_spec_CXX='-R$libdir'
14353               whole_archive_flag_spec_CXX='${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'
14354               compiler_needs_object_CXX=yes
14355
14356               # Not sure whether something based on
14357               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14358               # would be better.
14359               output_verbose_link_cmd='echo'
14360
14361               # Archives containing C++ object files must be created using
14362               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14363               # necessary to make sure instantiated templates are included
14364               # in the archive.
14365               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14366               ;;
14367             esac
14368             ;;
14369         esac
14370         ;;
14371
14372       lynxos*)
14373         # FIXME: insert proper C++ library support
14374         ld_shlibs_CXX=no
14375         ;;
14376
14377       m88k*)
14378         # FIXME: insert proper C++ library support
14379         ld_shlibs_CXX=no
14380         ;;
14381
14382       mvs*)
14383         case $cc_basename in
14384           cxx*)
14385             # FIXME: insert proper C++ library support
14386             ld_shlibs_CXX=no
14387             ;;
14388           *)
14389             # FIXME: insert proper C++ library support
14390             ld_shlibs_CXX=no
14391             ;;
14392         esac
14393         ;;
14394
14395       netbsd*)
14396         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14397           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14398           wlarc=
14399           hardcode_libdir_flag_spec_CXX='-R$libdir'
14400           hardcode_direct_CXX=yes
14401           hardcode_shlibpath_var_CXX=no
14402         fi
14403         # Workaround some broken pre-1.5 toolchains
14404         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14405         ;;
14406
14407       *nto* | *qnx*)
14408         ld_shlibs_CXX=yes
14409         ;;
14410
14411       openbsd2*)
14412         # C++ shared libraries are fairly broken
14413         ld_shlibs_CXX=no
14414         ;;
14415
14416       openbsd*)
14417         if test -f /usr/libexec/ld.so; then
14418           hardcode_direct_CXX=yes
14419           hardcode_shlibpath_var_CXX=no
14420           hardcode_direct_absolute_CXX=yes
14421           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14422           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14423           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14424             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14425             export_dynamic_flag_spec_CXX='${wl}-E'
14426             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14427           fi
14428           output_verbose_link_cmd=echo
14429         else
14430           ld_shlibs_CXX=no
14431         fi
14432         ;;
14433
14434       osf3* | osf4* | osf5*)
14435         case $cc_basename in
14436           KCC*)
14437             # Kuck and Associates, Inc. (KAI) C++ Compiler
14438
14439             # KCC will only create a shared library if the output file
14440             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14441             # to its proper name (with version) after linking.
14442             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14443
14444             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14445             hardcode_libdir_separator_CXX=:
14446
14447             # Archives containing C++ object files must be created using
14448             # the KAI C++ compiler.
14449             case $host in
14450               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14451               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14452             esac
14453             ;;
14454           RCC*)
14455             # Rational C++ 2.4.1
14456             # FIXME: insert proper C++ library support
14457             ld_shlibs_CXX=no
14458             ;;
14459           cxx*)
14460             case $host in
14461               osf3*)
14462                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14463                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14464                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14465                 ;;
14466               *)
14467                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14468                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14469                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14470                   echo "-hidden">> $lib.exp~
14471                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14472                   $RM $lib.exp'
14473                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14474                 ;;
14475             esac
14476
14477             hardcode_libdir_separator_CXX=:
14478
14479             # Commands to make compiler produce verbose output that lists
14480             # what "hidden" libraries, object files and flags are used when
14481             # linking a shared library.
14482             #
14483             # There doesn't appear to be a way to prevent this compiler from
14484             # explicitly linking system object files so we need to strip them
14485             # from the output so that they don't get included in the library
14486             # dependencies.
14487             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14488             ;;
14489           *)
14490             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14491               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14492               case $host in
14493                 osf3*)
14494                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14495                   ;;
14496                 *)
14497                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14498                   ;;
14499               esac
14500
14501               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14502               hardcode_libdir_separator_CXX=:
14503
14504               # Commands to make compiler produce verbose output that lists
14505               # what "hidden" libraries, object files and flags are used when
14506               # linking a shared library.
14507               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14508
14509             else
14510               # FIXME: insert proper C++ library support
14511               ld_shlibs_CXX=no
14512             fi
14513             ;;
14514         esac
14515         ;;
14516
14517       psos*)
14518         # FIXME: insert proper C++ library support
14519         ld_shlibs_CXX=no
14520         ;;
14521
14522       sunos4*)
14523         case $cc_basename in
14524           CC*)
14525             # Sun C++ 4.x
14526             # FIXME: insert proper C++ library support
14527             ld_shlibs_CXX=no
14528             ;;
14529           lcc*)
14530             # Lucid
14531             # FIXME: insert proper C++ library support
14532             ld_shlibs_CXX=no
14533             ;;
14534           *)
14535             # FIXME: insert proper C++ library support
14536             ld_shlibs_CXX=no
14537             ;;
14538         esac
14539         ;;
14540
14541       solaris*)
14542         case $cc_basename in
14543           CC*)
14544             # Sun C++ 4.2, 5.x and Centerline C++
14545             archive_cmds_need_lc_CXX=yes
14546             no_undefined_flag_CXX=' -zdefs'
14547             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14548             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14549               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14550
14551             hardcode_libdir_flag_spec_CXX='-R$libdir'
14552             hardcode_shlibpath_var_CXX=no
14553             case $host_os in
14554               solaris2.[0-5] | solaris2.[0-5].*) ;;
14555               *)
14556                 # The compiler driver will combine and reorder linker options,
14557                 # but understands `-z linker_flag'.
14558                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14559                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14560                 ;;
14561             esac
14562             link_all_deplibs_CXX=yes
14563
14564             output_verbose_link_cmd='echo'
14565
14566             # Archives containing C++ object files must be created using
14567             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14568             # necessary to make sure instantiated templates are included
14569             # in the archive.
14570             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14571             ;;
14572           gcx*)
14573             # Green Hills C++ Compiler
14574             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14575
14576             # The C++ compiler must be used to create the archive.
14577             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14578             ;;
14579           *)
14580             # GNU C++ compiler with Solaris linker
14581             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14582               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14583               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14584                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14585                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14586                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14587
14588                 # Commands to make compiler produce verbose output that lists
14589                 # what "hidden" libraries, object files and flags are used when
14590                 # linking a shared library.
14591                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14592               else
14593                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14594                 # platform.
14595                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14596                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14597                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14598
14599                 # Commands to make compiler produce verbose output that lists
14600                 # what "hidden" libraries, object files and flags are used when
14601                 # linking a shared library.
14602                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14603               fi
14604
14605               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14606               case $host_os in
14607                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14608                 *)
14609                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14610                   ;;
14611               esac
14612             fi
14613             ;;
14614         esac
14615         ;;
14616
14617     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14618       no_undefined_flag_CXX='${wl}-z,text'
14619       archive_cmds_need_lc_CXX=no
14620       hardcode_shlibpath_var_CXX=no
14621       runpath_var='LD_RUN_PATH'
14622
14623       case $cc_basename in
14624         CC*)
14625           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627           ;;
14628         *)
14629           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14630           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14631           ;;
14632       esac
14633       ;;
14634
14635       sysv5* | sco3.2v5* | sco5v6*)
14636         # Note: We can NOT use -z defs as we might desire, because we do not
14637         # link with -lc, and that would cause any symbols used from libc to
14638         # always be unresolved, which means just about no library would
14639         # ever link correctly.  If we're not using GNU ld we use -z text
14640         # though, which does catch some bad symbols but isn't as heavy-handed
14641         # as -z defs.
14642         no_undefined_flag_CXX='${wl}-z,text'
14643         allow_undefined_flag_CXX='${wl}-z,nodefs'
14644         archive_cmds_need_lc_CXX=no
14645         hardcode_shlibpath_var_CXX=no
14646         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14647         hardcode_libdir_separator_CXX=':'
14648         link_all_deplibs_CXX=yes
14649         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14650         runpath_var='LD_RUN_PATH'
14651
14652         case $cc_basename in
14653           CC*)
14654             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14655             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14656             ;;
14657           *)
14658             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14660             ;;
14661         esac
14662       ;;
14663
14664       tandem*)
14665         case $cc_basename in
14666           NCC*)
14667             # NonStop-UX NCC 3.20
14668             # FIXME: insert proper C++ library support
14669             ld_shlibs_CXX=no
14670             ;;
14671           *)
14672             # FIXME: insert proper C++ library support
14673             ld_shlibs_CXX=no
14674             ;;
14675         esac
14676         ;;
14677
14678       vxworks*)
14679         # FIXME: insert proper C++ library support
14680         ld_shlibs_CXX=no
14681         ;;
14682
14683       *)
14684         # FIXME: insert proper C++ library support
14685         ld_shlibs_CXX=no
14686         ;;
14687     esac
14688
14689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14690 $as_echo "$ld_shlibs_CXX" >&6; }
14691     test "$ld_shlibs_CXX" = no && can_build_shared=no
14692
14693     GCC_CXX="$GXX"
14694     LD_CXX="$LD"
14695
14696     ## CAVEAT EMPTOR:
14697     ## There is no encapsulation within the following macros, do not change
14698     ## the running order or otherwise move them around unless you know exactly
14699     ## what you are doing...
14700     # Dependencies to place before and after the object being linked:
14701 predep_objects_CXX=
14702 postdep_objects_CXX=
14703 predeps_CXX=
14704 postdeps_CXX=
14705 compiler_lib_search_path_CXX=
14706
14707 cat > conftest.$ac_ext <<_LT_EOF
14708 class Foo
14709 {
14710 public:
14711   Foo (void) { a = 0; }
14712 private:
14713   int a;
14714 };
14715 _LT_EOF
14716
14717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14718   (eval $ac_compile) 2>&5
14719   ac_status=$?
14720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14721   test $ac_status = 0; }; then
14722   # Parse the compiler output and extract the necessary
14723   # objects, libraries and library flags.
14724
14725   # Sentinel used to keep track of whether or not we are before
14726   # the conftest object file.
14727   pre_test_object_deps_done=no
14728
14729   for p in `eval "$output_verbose_link_cmd"`; do
14730     case $p in
14731
14732     -L* | -R* | -l*)
14733        # Some compilers place space between "-{L,R}" and the path.
14734        # Remove the space.
14735        if test $p = "-L" ||
14736           test $p = "-R"; then
14737          prev=$p
14738          continue
14739        else
14740          prev=
14741        fi
14742
14743        if test "$pre_test_object_deps_done" = no; then
14744          case $p in
14745          -L* | -R*)
14746            # Internal compiler library paths should come after those
14747            # provided the user.  The postdeps already come after the
14748            # user supplied libs so there is no need to process them.
14749            if test -z "$compiler_lib_search_path_CXX"; then
14750              compiler_lib_search_path_CXX="${prev}${p}"
14751            else
14752              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14753            fi
14754            ;;
14755          # The "-l" case would never come before the object being
14756          # linked, so don't bother handling this case.
14757          esac
14758        else
14759          if test -z "$postdeps_CXX"; then
14760            postdeps_CXX="${prev}${p}"
14761          else
14762            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14763          fi
14764        fi
14765        ;;
14766
14767     *.$objext)
14768        # This assumes that the test object file only shows up
14769        # once in the compiler output.
14770        if test "$p" = "conftest.$objext"; then
14771          pre_test_object_deps_done=yes
14772          continue
14773        fi
14774
14775        if test "$pre_test_object_deps_done" = no; then
14776          if test -z "$predep_objects_CXX"; then
14777            predep_objects_CXX="$p"
14778          else
14779            predep_objects_CXX="$predep_objects_CXX $p"
14780          fi
14781        else
14782          if test -z "$postdep_objects_CXX"; then
14783            postdep_objects_CXX="$p"
14784          else
14785            postdep_objects_CXX="$postdep_objects_CXX $p"
14786          fi
14787        fi
14788        ;;
14789
14790     *) ;; # Ignore the rest.
14791
14792     esac
14793   done
14794
14795   # Clean up.
14796   rm -f a.out a.exe
14797 else
14798   echo "libtool.m4: error: problem compiling CXX test program"
14799 fi
14800
14801 $RM -f confest.$objext
14802
14803 # PORTME: override above test on systems where it is broken
14804 case $host_os in
14805 interix[3-9]*)
14806   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14807   # hack all around it, let's just trust "g++" to DTRT.
14808   predep_objects_CXX=
14809   postdep_objects_CXX=
14810   postdeps_CXX=
14811   ;;
14812
14813 linux*)
14814   case `$CC -V 2>&1 | sed 5q` in
14815   *Sun\ C*)
14816     # Sun C++ 5.9
14817
14818     # The more standards-conforming stlport4 library is
14819     # incompatible with the Cstd library. Avoid specifying
14820     # it if it's in CXXFLAGS. Ignore libCrun as
14821     # -library=stlport4 depends on it.
14822     case " $CXX $CXXFLAGS " in
14823     *" -library=stlport4 "*)
14824       solaris_use_stlport4=yes
14825       ;;
14826     esac
14827
14828     if test "$solaris_use_stlport4" != yes; then
14829       postdeps_CXX='-library=Cstd -library=Crun'
14830     fi
14831     ;;
14832   esac
14833   ;;
14834
14835 solaris*)
14836   case $cc_basename in
14837   CC*)
14838     # The more standards-conforming stlport4 library is
14839     # incompatible with the Cstd library. Avoid specifying
14840     # it if it's in CXXFLAGS. Ignore libCrun as
14841     # -library=stlport4 depends on it.
14842     case " $CXX $CXXFLAGS " in
14843     *" -library=stlport4 "*)
14844       solaris_use_stlport4=yes
14845       ;;
14846     esac
14847
14848     # Adding this requires a known-good setup of shared libraries for
14849     # Sun compiler versions before 5.6, else PIC objects from an old
14850     # archive will be linked into the output, leading to subtle bugs.
14851     if test "$solaris_use_stlport4" != yes; then
14852       postdeps_CXX='-library=Cstd -library=Crun'
14853     fi
14854     ;;
14855   esac
14856   ;;
14857 esac
14858
14859
14860 case " $postdeps_CXX " in
14861 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14862 esac
14863  compiler_lib_search_dirs_CXX=
14864 if test -n "${compiler_lib_search_path_CXX}"; then
14865  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14866 fi
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898     lt_prog_compiler_wl_CXX=
14899 lt_prog_compiler_pic_CXX=
14900 lt_prog_compiler_static_CXX=
14901
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14903 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14904
14905   # C++ specific cases for pic, static, wl, etc.
14906   if test "$GXX" = yes; then
14907     lt_prog_compiler_wl_CXX='-Wl,'
14908     lt_prog_compiler_static_CXX='-static'
14909
14910     case $host_os in
14911     aix*)
14912       # All AIX code is PIC.
14913       if test "$host_cpu" = ia64; then
14914         # AIX 5 now supports IA64 processor
14915         lt_prog_compiler_static_CXX='-Bstatic'
14916       fi
14917       ;;
14918
14919     amigaos*)
14920       case $host_cpu in
14921       powerpc)
14922             # see comment about AmigaOS4 .so support
14923             lt_prog_compiler_pic_CXX='-fPIC'
14924         ;;
14925       m68k)
14926             # FIXME: we need at least 68020 code to build shared libraries, but
14927             # adding the `-m68020' flag to GCC prevents building anything better,
14928             # like `-m68040'.
14929             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14930         ;;
14931       esac
14932       ;;
14933
14934     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14935       # PIC is the default for these OSes.
14936       ;;
14937     mingw* | cygwin* | os2* | pw32* | cegcc*)
14938       # This hack is so that the source file can tell whether it is being
14939       # built for inclusion in a dll (and should export symbols for example).
14940       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14941       # (--disable-auto-import) libraries
14942       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14943       ;;
14944     darwin* | rhapsody*)
14945       # PIC is the default on this platform
14946       # Common symbols not allowed in MH_DYLIB files
14947       lt_prog_compiler_pic_CXX='-fno-common'
14948       ;;
14949     *djgpp*)
14950       # DJGPP does not support shared libraries at all
14951       lt_prog_compiler_pic_CXX=
14952       ;;
14953     interix[3-9]*)
14954       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14955       # Instead, we relocate shared libraries at runtime.
14956       ;;
14957     sysv4*MP*)
14958       if test -d /usr/nec; then
14959         lt_prog_compiler_pic_CXX=-Kconform_pic
14960       fi
14961       ;;
14962     hpux*)
14963       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14964       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14965       # sets the default TLS model and affects inlining.
14966       case $host_cpu in
14967       hppa*64*)
14968         ;;
14969       *)
14970         lt_prog_compiler_pic_CXX='-fPIC'
14971         ;;
14972       esac
14973       ;;
14974     *qnx* | *nto*)
14975       # QNX uses GNU C++, but need to define -shared option too, otherwise
14976       # it will coredump.
14977       lt_prog_compiler_pic_CXX='-fPIC -shared'
14978       ;;
14979     *)
14980       lt_prog_compiler_pic_CXX='-fPIC'
14981       ;;
14982     esac
14983   else
14984     case $host_os in
14985       aix[4-9]*)
14986         # All AIX code is PIC.
14987         if test "$host_cpu" = ia64; then
14988           # AIX 5 now supports IA64 processor
14989           lt_prog_compiler_static_CXX='-Bstatic'
14990         else
14991           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14992         fi
14993         ;;
14994       chorus*)
14995         case $cc_basename in
14996         cxch68*)
14997           # Green Hills C++ Compiler
14998           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14999           ;;
15000         esac
15001         ;;
15002       dgux*)
15003         case $cc_basename in
15004           ec++*)
15005             lt_prog_compiler_pic_CXX='-KPIC'
15006             ;;
15007           ghcx*)
15008             # Green Hills C++ Compiler
15009             lt_prog_compiler_pic_CXX='-pic'
15010             ;;
15011           *)
15012             ;;
15013         esac
15014         ;;
15015       freebsd* | dragonfly*)
15016         # FreeBSD uses GNU C++
15017         ;;
15018       hpux9* | hpux10* | hpux11*)
15019         case $cc_basename in
15020           CC*)
15021             lt_prog_compiler_wl_CXX='-Wl,'
15022             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15023             if test "$host_cpu" != ia64; then
15024               lt_prog_compiler_pic_CXX='+Z'
15025             fi
15026             ;;
15027           aCC*)
15028             lt_prog_compiler_wl_CXX='-Wl,'
15029             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15030             case $host_cpu in
15031             hppa*64*|ia64*)
15032               # +Z the default
15033               ;;
15034             *)
15035               lt_prog_compiler_pic_CXX='+Z'
15036               ;;
15037             esac
15038             ;;
15039           *)
15040             ;;
15041         esac
15042         ;;
15043       interix*)
15044         # This is c89, which is MS Visual C++ (no shared libs)
15045         # Anyone wants to do a port?
15046         ;;
15047       irix5* | irix6* | nonstopux*)
15048         case $cc_basename in
15049           CC*)
15050             lt_prog_compiler_wl_CXX='-Wl,'
15051             lt_prog_compiler_static_CXX='-non_shared'
15052             # CC pic flag -KPIC is the default.
15053             ;;
15054           *)
15055             ;;
15056         esac
15057         ;;
15058       linux* | k*bsd*-gnu)
15059         case $cc_basename in
15060           KCC*)
15061             # KAI C++ Compiler
15062             lt_prog_compiler_wl_CXX='--backend -Wl,'
15063             lt_prog_compiler_pic_CXX='-fPIC'
15064             ;;
15065           ecpc* )
15066             # old Intel C++ for x86_64 which still supported -KPIC.
15067             lt_prog_compiler_wl_CXX='-Wl,'
15068             lt_prog_compiler_pic_CXX='-KPIC'
15069             lt_prog_compiler_static_CXX='-static'
15070             ;;
15071           icpc* )
15072             # Intel C++, used to be incompatible with GCC.
15073             # ICC 10 doesn't accept -KPIC any more.
15074             lt_prog_compiler_wl_CXX='-Wl,'
15075             lt_prog_compiler_pic_CXX='-fPIC'
15076             lt_prog_compiler_static_CXX='-static'
15077             ;;
15078           pgCC* | pgcpp*)
15079             # Portland Group C++ compiler
15080             lt_prog_compiler_wl_CXX='-Wl,'
15081             lt_prog_compiler_pic_CXX='-fpic'
15082             lt_prog_compiler_static_CXX='-Bstatic'
15083             ;;
15084           cxx*)
15085             # Compaq C++
15086             # Make sure the PIC flag is empty.  It appears that all Alpha
15087             # Linux and Compaq Tru64 Unix objects are PIC.
15088             lt_prog_compiler_pic_CXX=
15089             lt_prog_compiler_static_CXX='-non_shared'
15090             ;;
15091           xlc* | xlC*)
15092             # IBM XL 8.0 on PPC
15093             lt_prog_compiler_wl_CXX='-Wl,'
15094             lt_prog_compiler_pic_CXX='-qpic'
15095             lt_prog_compiler_static_CXX='-qstaticlink'
15096             ;;
15097           *)
15098             case `$CC -V 2>&1 | sed 5q` in
15099             *Sun\ C*)
15100               # Sun C++ 5.9
15101               lt_prog_compiler_pic_CXX='-KPIC'
15102               lt_prog_compiler_static_CXX='-Bstatic'
15103               lt_prog_compiler_wl_CXX='-Qoption ld '
15104               ;;
15105             esac
15106             ;;
15107         esac
15108         ;;
15109       lynxos*)
15110         ;;
15111       m88k*)
15112         ;;
15113       mvs*)
15114         case $cc_basename in
15115           cxx*)
15116             lt_prog_compiler_pic_CXX='-W c,exportall'
15117             ;;
15118           *)
15119             ;;
15120         esac
15121         ;;
15122       netbsd* | netbsdelf*-gnu)
15123         ;;
15124       *qnx* | *nto*)
15125         # QNX uses GNU C++, but need to define -shared option too, otherwise
15126         # it will coredump.
15127         lt_prog_compiler_pic_CXX='-fPIC -shared'
15128         ;;
15129       osf3* | osf4* | osf5*)
15130         case $cc_basename in
15131           KCC*)
15132             lt_prog_compiler_wl_CXX='--backend -Wl,'
15133             ;;
15134           RCC*)
15135             # Rational C++ 2.4.1
15136             lt_prog_compiler_pic_CXX='-pic'
15137             ;;
15138           cxx*)
15139             # Digital/Compaq C++
15140             lt_prog_compiler_wl_CXX='-Wl,'
15141             # Make sure the PIC flag is empty.  It appears that all Alpha
15142             # Linux and Compaq Tru64 Unix objects are PIC.
15143             lt_prog_compiler_pic_CXX=
15144             lt_prog_compiler_static_CXX='-non_shared'
15145             ;;
15146           *)
15147             ;;
15148         esac
15149         ;;
15150       psos*)
15151         ;;
15152       solaris*)
15153         case $cc_basename in
15154           CC*)
15155             # Sun C++ 4.2, 5.x and Centerline C++
15156             lt_prog_compiler_pic_CXX='-KPIC'
15157             lt_prog_compiler_static_CXX='-Bstatic'
15158             lt_prog_compiler_wl_CXX='-Qoption ld '
15159             ;;
15160           gcx*)
15161             # Green Hills C++ Compiler
15162             lt_prog_compiler_pic_CXX='-PIC'
15163             ;;
15164           *)
15165             ;;
15166         esac
15167         ;;
15168       sunos4*)
15169         case $cc_basename in
15170           CC*)
15171             # Sun C++ 4.x
15172             lt_prog_compiler_pic_CXX='-pic'
15173             lt_prog_compiler_static_CXX='-Bstatic'
15174             ;;
15175           lcc*)
15176             # Lucid
15177             lt_prog_compiler_pic_CXX='-pic'
15178             ;;
15179           *)
15180             ;;
15181         esac
15182         ;;
15183       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15184         case $cc_basename in
15185           CC*)
15186             lt_prog_compiler_wl_CXX='-Wl,'
15187             lt_prog_compiler_pic_CXX='-KPIC'
15188             lt_prog_compiler_static_CXX='-Bstatic'
15189             ;;
15190         esac
15191         ;;
15192       tandem*)
15193         case $cc_basename in
15194           NCC*)
15195             # NonStop-UX NCC 3.20
15196             lt_prog_compiler_pic_CXX='-KPIC'
15197             ;;
15198           *)
15199             ;;
15200         esac
15201         ;;
15202       vxworks*)
15203         ;;
15204       *)
15205         lt_prog_compiler_can_build_shared_CXX=no
15206         ;;
15207     esac
15208   fi
15209
15210 case $host_os in
15211   # For platforms which do not support PIC, -DPIC is meaningless:
15212   *djgpp*)
15213     lt_prog_compiler_pic_CXX=
15214     ;;
15215   *)
15216     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15217     ;;
15218 esac
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15220 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15221
15222
15223
15224 #
15225 # Check to make sure the PIC flag actually works.
15226 #
15227 if test -n "$lt_prog_compiler_pic_CXX"; then
15228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15229 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15230 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15231   $as_echo_n "(cached) " >&6
15232 else
15233   lt_cv_prog_compiler_pic_works_CXX=no
15234    ac_outfile=conftest.$ac_objext
15235    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15236    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15237    # Insert the option either (1) after the last *FLAGS variable, or
15238    # (2) before a word containing "conftest.", or (3) at the end.
15239    # Note that $ac_compile itself does not contain backslashes and begins
15240    # with a dollar sign (not a hyphen), so the echo should work correctly.
15241    # The option is referenced via a variable to avoid confusing sed.
15242    lt_compile=`echo "$ac_compile" | $SED \
15243    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15244    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15245    -e 's:$: $lt_compiler_flag:'`
15246    (eval echo "\"\$as_me:15246: $lt_compile\"" >&5)
15247    (eval "$lt_compile" 2>conftest.err)
15248    ac_status=$?
15249    cat conftest.err >&5
15250    echo "$as_me:15250: \$? = $ac_status" >&5
15251    if (exit $ac_status) && test -s "$ac_outfile"; then
15252      # The compiler can only warn and ignore the option if not recognized
15253      # So say no if there are warnings other than the usual output.
15254      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15255      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15256      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15257        lt_cv_prog_compiler_pic_works_CXX=yes
15258      fi
15259    fi
15260    $RM conftest*
15261
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15264 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15265
15266 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15267     case $lt_prog_compiler_pic_CXX in
15268      "" | " "*) ;;
15269      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15270      esac
15271 else
15272     lt_prog_compiler_pic_CXX=
15273      lt_prog_compiler_can_build_shared_CXX=no
15274 fi
15275
15276 fi
15277
15278
15279
15280 #
15281 # Check to make sure the static flag actually works.
15282 #
15283 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15286 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15287   $as_echo_n "(cached) " >&6
15288 else
15289   lt_cv_prog_compiler_static_works_CXX=no
15290    save_LDFLAGS="$LDFLAGS"
15291    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15292    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15293    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15294      # The linker can only warn and ignore the option if not recognized
15295      # So say no if there are warnings
15296      if test -s conftest.err; then
15297        # Append any errors to the config.log.
15298        cat conftest.err 1>&5
15299        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15300        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15301        if diff conftest.exp conftest.er2 >/dev/null; then
15302          lt_cv_prog_compiler_static_works_CXX=yes
15303        fi
15304      else
15305        lt_cv_prog_compiler_static_works_CXX=yes
15306      fi
15307    fi
15308    $RM -r conftest*
15309    LDFLAGS="$save_LDFLAGS"
15310
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15313 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15314
15315 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15316     :
15317 else
15318     lt_prog_compiler_static_CXX=
15319 fi
15320
15321
15322
15323
15324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15326 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15327   $as_echo_n "(cached) " >&6
15328 else
15329   lt_cv_prog_compiler_c_o_CXX=no
15330    $RM -r conftest 2>/dev/null
15331    mkdir conftest
15332    cd conftest
15333    mkdir out
15334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336    lt_compiler_flag="-o out/conftest2.$ac_objext"
15337    # Insert the option either (1) after the last *FLAGS variable, or
15338    # (2) before a word containing "conftest.", or (3) at the end.
15339    # Note that $ac_compile itself does not contain backslashes and begins
15340    # with a dollar sign (not a hyphen), so the echo should work correctly.
15341    lt_compile=`echo "$ac_compile" | $SED \
15342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344    -e 's:$: $lt_compiler_flag:'`
15345    (eval echo "\"\$as_me:15345: $lt_compile\"" >&5)
15346    (eval "$lt_compile" 2>out/conftest.err)
15347    ac_status=$?
15348    cat out/conftest.err >&5
15349    echo "$as_me:15349: \$? = $ac_status" >&5
15350    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351    then
15352      # The compiler can only warn and ignore the option if not recognized
15353      # So say no if there are warnings
15354      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15355      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15356      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15357        lt_cv_prog_compiler_c_o_CXX=yes
15358      fi
15359    fi
15360    chmod u+w . 2>&5
15361    $RM conftest*
15362    # SGI C++ compiler will create directory out/ii_files/ for
15363    # template instantiation
15364    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15365    $RM out/* && rmdir out
15366    cd ..
15367    $RM -r conftest
15368    $RM conftest*
15369
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15372 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15373
15374
15375
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15378 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15379   $as_echo_n "(cached) " >&6
15380 else
15381   lt_cv_prog_compiler_c_o_CXX=no
15382    $RM -r conftest 2>/dev/null
15383    mkdir conftest
15384    cd conftest
15385    mkdir out
15386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15387
15388    lt_compiler_flag="-o out/conftest2.$ac_objext"
15389    # Insert the option either (1) after the last *FLAGS variable, or
15390    # (2) before a word containing "conftest.", or (3) at the end.
15391    # Note that $ac_compile itself does not contain backslashes and begins
15392    # with a dollar sign (not a hyphen), so the echo should work correctly.
15393    lt_compile=`echo "$ac_compile" | $SED \
15394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396    -e 's:$: $lt_compiler_flag:'`
15397    (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
15398    (eval "$lt_compile" 2>out/conftest.err)
15399    ac_status=$?
15400    cat out/conftest.err >&5
15401    echo "$as_me:15401: \$? = $ac_status" >&5
15402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15403    then
15404      # The compiler can only warn and ignore the option if not recognized
15405      # So say no if there are warnings
15406      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15409        lt_cv_prog_compiler_c_o_CXX=yes
15410      fi
15411    fi
15412    chmod u+w . 2>&5
15413    $RM conftest*
15414    # SGI C++ compiler will create directory out/ii_files/ for
15415    # template instantiation
15416    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15417    $RM out/* && rmdir out
15418    cd ..
15419    $RM -r conftest
15420    $RM conftest*
15421
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15425
15426
15427
15428
15429 hard_links="nottested"
15430 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15431   # do not overwrite the value of need_locks provided by the user
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15433 $as_echo_n "checking if we can lock with hard links... " >&6; }
15434   hard_links=yes
15435   $RM conftest*
15436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437   touch conftest.a
15438   ln conftest.a conftest.b 2>&5 || hard_links=no
15439   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15441 $as_echo "$hard_links" >&6; }
15442   if test "$hard_links" = no; then
15443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15444 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15445     need_locks=warn
15446   fi
15447 else
15448   need_locks=no
15449 fi
15450
15451
15452
15453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15454 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15455
15456   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15457   case $host_os in
15458   aix[4-9]*)
15459     # If we're using GNU nm, then we don't want the "-C" option.
15460     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15461     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15462       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15463     else
15464       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15465     fi
15466     ;;
15467   pw32*)
15468     export_symbols_cmds_CXX="$ltdll_cmds"
15469   ;;
15470   cygwin* | mingw* | cegcc*)
15471     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15472   ;;
15473   linux* | k*bsd*-gnu)
15474     link_all_deplibs_CXX=no
15475   ;;
15476   *)
15477     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15478   ;;
15479   esac
15480   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15481
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15483 $as_echo "$ld_shlibs_CXX" >&6; }
15484 test "$ld_shlibs_CXX" = no && can_build_shared=no
15485
15486 with_gnu_ld_CXX=$with_gnu_ld
15487
15488
15489
15490
15491
15492
15493 #
15494 # Do we need to explicitly link libc?
15495 #
15496 case "x$archive_cmds_need_lc_CXX" in
15497 x|xyes)
15498   # Assume -lc should be added
15499   archive_cmds_need_lc_CXX=yes
15500
15501   if test "$enable_shared" = yes && test "$GCC" = yes; then
15502     case $archive_cmds_CXX in
15503     *'~'*)
15504       # FIXME: we may have to deal with multi-command sequences.
15505       ;;
15506     '$CC '*)
15507       # Test whether the compiler implicitly links with -lc since on some
15508       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15509       # to ld, don't add -lc before -lgcc.
15510       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15512       $RM conftest*
15513       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15514
15515       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15516   (eval $ac_compile) 2>&5
15517   ac_status=$?
15518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15519   test $ac_status = 0; } 2>conftest.err; then
15520         soname=conftest
15521         lib=conftest
15522         libobjs=conftest.$ac_objext
15523         deplibs=
15524         wl=$lt_prog_compiler_wl_CXX
15525         pic_flag=$lt_prog_compiler_pic_CXX
15526         compiler_flags=-v
15527         linker_flags=-v
15528         verstring=
15529         output_objdir=.
15530         libname=conftest
15531         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15532         allow_undefined_flag_CXX=
15533         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15534   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15535   ac_status=$?
15536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537   test $ac_status = 0; }
15538         then
15539           archive_cmds_need_lc_CXX=no
15540         else
15541           archive_cmds_need_lc_CXX=yes
15542         fi
15543         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15544       else
15545         cat conftest.err 1>&5
15546       fi
15547       $RM conftest*
15548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15549 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15550       ;;
15551     esac
15552   fi
15553   ;;
15554 esac
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15620 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15621
15622 library_names_spec=
15623 libname_spec='lib$name'
15624 soname_spec=
15625 shrext_cmds=".so"
15626 postinstall_cmds=
15627 postuninstall_cmds=
15628 finish_cmds=
15629 finish_eval=
15630 shlibpath_var=
15631 shlibpath_overrides_runpath=unknown
15632 version_type=none
15633 dynamic_linker="$host_os ld.so"
15634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15635 need_lib_prefix=unknown
15636 hardcode_into_libs=no
15637
15638 # when you set need_version to no, make sure it does not cause -set_version
15639 # flags to be left without arguments
15640 need_version=unknown
15641
15642 case $host_os in
15643 aix3*)
15644   version_type=linux
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15646   shlibpath_var=LIBPATH
15647
15648   # AIX 3 has no versioning support, so we append a major version to the name.
15649   soname_spec='${libname}${release}${shared_ext}$major'
15650   ;;
15651
15652 aix[4-9]*)
15653   version_type=linux
15654   need_lib_prefix=no
15655   need_version=no
15656   hardcode_into_libs=yes
15657   if test "$host_cpu" = ia64; then
15658     # AIX 5 supports IA64
15659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15660     shlibpath_var=LD_LIBRARY_PATH
15661   else
15662     # With GCC up to 2.95.x, collect2 would create an import file
15663     # for dependence libraries.  The import file would start with
15664     # the line `#! .'.  This would cause the generated library to
15665     # depend on `.', always an invalid library.  This was fixed in
15666     # development snapshots of GCC prior to 3.0.
15667     case $host_os in
15668       aix4 | aix4.[01] | aix4.[01].*)
15669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15670            echo ' yes '
15671            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15672         :
15673       else
15674         can_build_shared=no
15675       fi
15676       ;;
15677     esac
15678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15679     # soname into executable. Probably we can add versioning support to
15680     # collect2, so additional links can be useful in future.
15681     if test "$aix_use_runtimelinking" = yes; then
15682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15683       # instead of lib<name>.a to let people know that these are not
15684       # typical AIX shared libraries.
15685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686     else
15687       # We preserve .a as extension for shared libraries through AIX4.2
15688       # and later when we are not doing run time linking.
15689       library_names_spec='${libname}${release}.a $libname.a'
15690       soname_spec='${libname}${release}${shared_ext}$major'
15691     fi
15692     shlibpath_var=LIBPATH
15693   fi
15694   ;;
15695
15696 amigaos*)
15697   case $host_cpu in
15698   powerpc)
15699     # Since July 2007 AmigaOS4 officially supports .so libraries.
15700     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702     ;;
15703   m68k)
15704     library_names_spec='$libname.ixlibrary $libname.a'
15705     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15706     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'
15707     ;;
15708   esac
15709   ;;
15710
15711 beos*)
15712   library_names_spec='${libname}${shared_ext}'
15713   dynamic_linker="$host_os ld.so"
15714   shlibpath_var=LIBRARY_PATH
15715   ;;
15716
15717 bsdi[45]*)
15718   version_type=linux
15719   need_version=no
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15723   shlibpath_var=LD_LIBRARY_PATH
15724   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15725   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15726   # the default ld.so.conf also contains /usr/contrib/lib and
15727   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15728   # libtool to hard-code these into programs
15729   ;;
15730
15731 cygwin* | mingw* | pw32* | cegcc*)
15732   version_type=windows
15733   shrext_cmds=".dll"
15734   need_version=no
15735   need_lib_prefix=no
15736
15737   case $GCC,$host_os in
15738   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15739     library_names_spec='$libname.dll.a'
15740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15741     postinstall_cmds='base_file=`basename \${file}`~
15742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15743       dldir=$destdir/`dirname \$dlpath`~
15744       test -d \$dldir || mkdir -p \$dldir~
15745       $install_prog $dir/$dlname \$dldir/$dlname~
15746       chmod a+x \$dldir/$dlname~
15747       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15748         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15749       fi'
15750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15751       dlpath=$dir/\$dldll~
15752        $RM \$dlpath'
15753     shlibpath_overrides_runpath=yes
15754
15755     case $host_os in
15756     cygwin*)
15757       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15758       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15759       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15760       ;;
15761     mingw* | cegcc*)
15762       # MinGW DLLs use traditional 'lib' prefix
15763       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15765       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15766         # It is most probably a Windows format PATH printed by
15767         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15768         # path with ; separators, and with drive letters. We can handle the
15769         # drive letters (cygwin fileutils understands them), so leave them,
15770         # especially as we might pass files found there to a mingw objdump,
15771         # which wouldn't understand a cygwinified path. Ahh.
15772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15773       else
15774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15775       fi
15776       ;;
15777     pw32*)
15778       # pw32 DLLs use 'pw' prefix rather than 'lib'
15779       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15780       ;;
15781     esac
15782     ;;
15783
15784   *)
15785     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15786     ;;
15787   esac
15788   dynamic_linker='Win32 ld.exe'
15789   # FIXME: first we should search . and the directory the executable is in
15790   shlibpath_var=PATH
15791   ;;
15792
15793 darwin* | rhapsody*)
15794   dynamic_linker="$host_os dyld"
15795   version_type=darwin
15796   need_lib_prefix=no
15797   need_version=no
15798   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15799   soname_spec='${libname}${release}${major}$shared_ext'
15800   shlibpath_overrides_runpath=yes
15801   shlibpath_var=DYLD_LIBRARY_PATH
15802   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15803
15804   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15805   ;;
15806
15807 dgux*)
15808   version_type=linux
15809   need_lib_prefix=no
15810   need_version=no
15811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15812   soname_spec='${libname}${release}${shared_ext}$major'
15813   shlibpath_var=LD_LIBRARY_PATH
15814   ;;
15815
15816 freebsd1*)
15817   dynamic_linker=no
15818   ;;
15819
15820 freebsd* | dragonfly*)
15821   # DragonFly does not have aout.  When/if they implement a new
15822   # versioning mechanism, adjust this.
15823   if test -x /usr/bin/objformat; then
15824     objformat=`/usr/bin/objformat`
15825   else
15826     case $host_os in
15827     freebsd[123]*) objformat=aout ;;
15828     *) objformat=elf ;;
15829     esac
15830   fi
15831   version_type=freebsd-$objformat
15832   case $version_type in
15833     freebsd-elf*)
15834       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15835       need_version=no
15836       need_lib_prefix=no
15837       ;;
15838     freebsd-*)
15839       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15840       need_version=yes
15841       ;;
15842   esac
15843   shlibpath_var=LD_LIBRARY_PATH
15844   case $host_os in
15845   freebsd2*)
15846     shlibpath_overrides_runpath=yes
15847     ;;
15848   freebsd3.[01]* | freebsdelf3.[01]*)
15849     shlibpath_overrides_runpath=yes
15850     hardcode_into_libs=yes
15851     ;;
15852   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15853   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15854     shlibpath_overrides_runpath=no
15855     hardcode_into_libs=yes
15856     ;;
15857   *) # from 4.6 on, and DragonFly
15858     shlibpath_overrides_runpath=yes
15859     hardcode_into_libs=yes
15860     ;;
15861   esac
15862   ;;
15863
15864 gnu*)
15865   version_type=linux
15866   need_lib_prefix=no
15867   need_version=no
15868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   shlibpath_var=LD_LIBRARY_PATH
15871   hardcode_into_libs=yes
15872   ;;
15873
15874 hpux9* | hpux10* | hpux11*)
15875   # Give a soname corresponding to the major version so that dld.sl refuses to
15876   # link against other versions.
15877   version_type=sunos
15878   need_lib_prefix=no
15879   need_version=no
15880   case $host_cpu in
15881   ia64*)
15882     shrext_cmds='.so'
15883     hardcode_into_libs=yes
15884     dynamic_linker="$host_os dld.so"
15885     shlibpath_var=LD_LIBRARY_PATH
15886     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888     soname_spec='${libname}${release}${shared_ext}$major'
15889     if test "X$HPUX_IA64_MODE" = X32; then
15890       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15891     else
15892       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15893     fi
15894     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895     ;;
15896   hppa*64*)
15897     shrext_cmds='.sl'
15898     hardcode_into_libs=yes
15899     dynamic_linker="$host_os dld.sl"
15900     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903     soname_spec='${libname}${release}${shared_ext}$major'
15904     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15906     ;;
15907   *)
15908     shrext_cmds='.sl'
15909     dynamic_linker="$host_os dld.sl"
15910     shlibpath_var=SHLIB_PATH
15911     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913     soname_spec='${libname}${release}${shared_ext}$major'
15914     ;;
15915   esac
15916   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15917   postinstall_cmds='chmod 555 $lib'
15918   ;;
15919
15920 interix[3-9]*)
15921   version_type=linux
15922   need_lib_prefix=no
15923   need_version=no
15924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15925   soname_spec='${libname}${release}${shared_ext}$major'
15926   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15927   shlibpath_var=LD_LIBRARY_PATH
15928   shlibpath_overrides_runpath=no
15929   hardcode_into_libs=yes
15930   ;;
15931
15932 irix5* | irix6* | nonstopux*)
15933   case $host_os in
15934     nonstopux*) version_type=nonstopux ;;
15935     *)
15936         if test "$lt_cv_prog_gnu_ld" = yes; then
15937                 version_type=linux
15938         else
15939                 version_type=irix
15940         fi ;;
15941   esac
15942   need_lib_prefix=no
15943   need_version=no
15944   soname_spec='${libname}${release}${shared_ext}$major'
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15946   case $host_os in
15947   irix5* | nonstopux*)
15948     libsuff= shlibsuff=
15949     ;;
15950   *)
15951     case $LD in # libtool.m4 will add one of these switches to LD
15952     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15953       libsuff= shlibsuff= libmagic=32-bit;;
15954     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15955       libsuff=32 shlibsuff=N32 libmagic=N32;;
15956     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15957       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15958     *) libsuff= shlibsuff= libmagic=never-match;;
15959     esac
15960     ;;
15961   esac
15962   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15963   shlibpath_overrides_runpath=no
15964   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15965   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15966   hardcode_into_libs=yes
15967   ;;
15968
15969 # No shared lib support for Linux oldld, aout, or coff.
15970 linux*oldld* | linux*aout* | linux*coff*)
15971   dynamic_linker=no
15972   ;;
15973
15974 # This must be Linux ELF.
15975 linux* | k*bsd*-gnu)
15976   version_type=linux
15977   need_lib_prefix=no
15978   need_version=no
15979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15980   soname_spec='${libname}${release}${shared_ext}$major'
15981   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15982   shlibpath_var=LD_LIBRARY_PATH
15983   shlibpath_overrides_runpath=no
15984   # Some binutils ld are patched to set DT_RUNPATH
15985   save_LDFLAGS=$LDFLAGS
15986   save_libdir=$libdir
15987   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15988        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991
15992 int
15993 main ()
15994 {
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 if ac_fn_cxx_try_link "$LINENO"; then :
16001   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16002   shlibpath_overrides_runpath=yes
16003 fi
16004 fi
16005 rm -f core conftest.err conftest.$ac_objext \
16006     conftest$ac_exeext conftest.$ac_ext
16007   LDFLAGS=$save_LDFLAGS
16008   libdir=$save_libdir
16009
16010   # This implies no fast_install, which is unacceptable.
16011   # Some rework will be needed to allow for fast_install
16012   # before this can be enabled.
16013   hardcode_into_libs=yes
16014
16015   # Append ld.so.conf contents to the search path
16016   if test -f /etc/ld.so.conf; then
16017     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' ' '`
16018     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16019   fi
16020
16021   # We used to test for /lib/ld.so.1 and disable shared libraries on
16022   # powerpc, because MkLinux only supported shared libraries with the
16023   # GNU dynamic linker.  Since this was broken with cross compilers,
16024   # most powerpc-linux boxes support dynamic linking these days and
16025   # people can always --disable-shared, the test was removed, and we
16026   # assume the GNU/Linux dynamic linker is in use.
16027   dynamic_linker='GNU/Linux ld.so'
16028   ;;
16029
16030 netbsdelf*-gnu)
16031   version_type=linux
16032   need_lib_prefix=no
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   shlibpath_overrides_runpath=no
16038   hardcode_into_libs=yes
16039   dynamic_linker='NetBSD ld.elf_so'
16040   ;;
16041
16042 netbsd*)
16043   version_type=sunos
16044   need_lib_prefix=no
16045   need_version=no
16046   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16048     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16049     dynamic_linker='NetBSD (a.out) ld.so'
16050   else
16051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16052     soname_spec='${libname}${release}${shared_ext}$major'
16053     dynamic_linker='NetBSD ld.elf_so'
16054   fi
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=yes
16057   hardcode_into_libs=yes
16058   ;;
16059
16060 newsos6)
16061   version_type=linux
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063   shlibpath_var=LD_LIBRARY_PATH
16064   shlibpath_overrides_runpath=yes
16065   ;;
16066
16067 *nto* | *qnx*)
16068   version_type=qnx
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   shlibpath_overrides_runpath=no
16075   hardcode_into_libs=yes
16076   dynamic_linker='ldqnx.so'
16077   ;;
16078
16079 openbsd*)
16080   version_type=sunos
16081   sys_lib_dlsearch_path_spec="/usr/lib"
16082   need_lib_prefix=no
16083   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16084   case $host_os in
16085     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16086     *)                          need_version=no  ;;
16087   esac
16088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16090   shlibpath_var=LD_LIBRARY_PATH
16091   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16092     case $host_os in
16093       openbsd2.[89] | openbsd2.[89].*)
16094         shlibpath_overrides_runpath=no
16095         ;;
16096       *)
16097         shlibpath_overrides_runpath=yes
16098         ;;
16099       esac
16100   else
16101     shlibpath_overrides_runpath=yes
16102   fi
16103   ;;
16104
16105 os2*)
16106   libname_spec='$name'
16107   shrext_cmds=".dll"
16108   need_lib_prefix=no
16109   library_names_spec='$libname${shared_ext} $libname.a'
16110   dynamic_linker='OS/2 ld.exe'
16111   shlibpath_var=LIBPATH
16112   ;;
16113
16114 osf3* | osf4* | osf5*)
16115   version_type=osf
16116   need_lib_prefix=no
16117   need_version=no
16118   soname_spec='${libname}${release}${shared_ext}$major'
16119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120   shlibpath_var=LD_LIBRARY_PATH
16121   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16122   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16123   ;;
16124
16125 rdos*)
16126   dynamic_linker=no
16127   ;;
16128
16129 solaris*)
16130   version_type=linux
16131   need_lib_prefix=no
16132   need_version=no
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   shlibpath_overrides_runpath=yes
16137   hardcode_into_libs=yes
16138   # ldd complains unless libraries are executable
16139   postinstall_cmds='chmod +x $lib'
16140   ;;
16141
16142 sunos4*)
16143   version_type=sunos
16144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16145   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16146   shlibpath_var=LD_LIBRARY_PATH
16147   shlibpath_overrides_runpath=yes
16148   if test "$with_gnu_ld" = yes; then
16149     need_lib_prefix=no
16150   fi
16151   need_version=yes
16152   ;;
16153
16154 sysv4 | sysv4.3*)
16155   version_type=linux
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   case $host_vendor in
16160     sni)
16161       shlibpath_overrides_runpath=no
16162       need_lib_prefix=no
16163       runpath_var=LD_RUN_PATH
16164       ;;
16165     siemens)
16166       need_lib_prefix=no
16167       ;;
16168     motorola)
16169       need_lib_prefix=no
16170       need_version=no
16171       shlibpath_overrides_runpath=no
16172       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16173       ;;
16174   esac
16175   ;;
16176
16177 sysv4*MP*)
16178   if test -d /usr/nec ;then
16179     version_type=linux
16180     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16181     soname_spec='$libname${shared_ext}.$major'
16182     shlibpath_var=LD_LIBRARY_PATH
16183   fi
16184   ;;
16185
16186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16187   version_type=freebsd-elf
16188   need_lib_prefix=no
16189   need_version=no
16190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191   soname_spec='${libname}${release}${shared_ext}$major'
16192   shlibpath_var=LD_LIBRARY_PATH
16193   shlibpath_overrides_runpath=yes
16194   hardcode_into_libs=yes
16195   if test "$with_gnu_ld" = yes; then
16196     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16197   else
16198     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16199     case $host_os in
16200       sco3.2v5*)
16201         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16202         ;;
16203     esac
16204   fi
16205   sys_lib_dlsearch_path_spec='/usr/lib'
16206   ;;
16207
16208 tpf*)
16209   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16210   version_type=linux
16211   need_lib_prefix=no
16212   need_version=no
16213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   shlibpath_overrides_runpath=no
16216   hardcode_into_libs=yes
16217   ;;
16218
16219 uts4*)
16220   version_type=linux
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222   soname_spec='${libname}${release}${shared_ext}$major'
16223   shlibpath_var=LD_LIBRARY_PATH
16224   ;;
16225
16226 *)
16227   dynamic_linker=no
16228   ;;
16229 esac
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16231 $as_echo "$dynamic_linker" >&6; }
16232 test "$dynamic_linker" = no && can_build_shared=no
16233
16234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16235 if test "$GCC" = yes; then
16236   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16237 fi
16238
16239 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16240   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16241 fi
16242 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16243   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16244 fi
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16282 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16283 hardcode_action_CXX=
16284 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16285    test -n "$runpath_var_CXX" ||
16286    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16287
16288   # We can hardcode non-existent directories.
16289   if test "$hardcode_direct_CXX" != no &&
16290      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16291      # have to relink, otherwise we might link with an installed library
16292      # when we should be linking with a yet-to-be-installed one
16293      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16294      test "$hardcode_minus_L_CXX" != no; then
16295     # Linking always hardcodes the temporary library directory.
16296     hardcode_action_CXX=relink
16297   else
16298     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16299     hardcode_action_CXX=immediate
16300   fi
16301 else
16302   # We cannot hardcode anything, or else we can only hardcode existing
16303   # directories.
16304   hardcode_action_CXX=unsupported
16305 fi
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16307 $as_echo "$hardcode_action_CXX" >&6; }
16308
16309 if test "$hardcode_action_CXX" = relink ||
16310    test "$inherit_rpath_CXX" = yes; then
16311   # Fast installation is not supported
16312   enable_fast_install=no
16313 elif test "$shlibpath_overrides_runpath" = yes ||
16314      test "$enable_shared" = no; then
16315   # Fast installation is not necessary
16316   enable_fast_install=needless
16317 fi
16318
16319
16320
16321
16322
16323
16324
16325   fi # test -n "$compiler"
16326
16327   CC=$lt_save_CC
16328   LDCXX=$LD
16329   LD=$lt_save_LD
16330   GCC=$lt_save_GCC
16331   with_gnu_ld=$lt_save_with_gnu_ld
16332   lt_cv_path_LDCXX=$lt_cv_path_LD
16333   lt_cv_path_LD=$lt_save_path_LD
16334   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16335   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16336 fi # test "$_lt_caught_CXX_error" != yes
16337
16338 ac_ext=c
16339 ac_cpp='$CPP $CPPFLAGS'
16340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356         ac_config_commands="$ac_config_commands libtool"
16357
16358
16359
16360
16361 # Only expand once:
16362
16363
16364
16365
16366 ac_ext=f
16367 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16368 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16369 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16370 if test -n "$ac_tool_prefix"; then
16371   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16372   do
16373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16376 $as_echo_n "checking for $ac_word... " >&6; }
16377 if test "${ac_cv_prog_F77+set}" = set; then :
16378   $as_echo_n "(cached) " >&6
16379 else
16380   if test -n "$F77"; then
16381   ac_cv_prog_F77="$F77" # Let the user override the test.
16382 else
16383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16384 for as_dir in $PATH
16385 do
16386   IFS=$as_save_IFS
16387   test -z "$as_dir" && as_dir=.
16388     for ac_exec_ext in '' $ac_executable_extensions; do
16389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16390     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16392     break 2
16393   fi
16394 done
16395   done
16396 IFS=$as_save_IFS
16397
16398 fi
16399 fi
16400 F77=$ac_cv_prog_F77
16401 if test -n "$F77"; then
16402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16403 $as_echo "$F77" >&6; }
16404 else
16405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 $as_echo "no" >&6; }
16407 fi
16408
16409
16410     test -n "$F77" && break
16411   done
16412 fi
16413 if test -z "$F77"; then
16414   ac_ct_F77=$F77
16415   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16416 do
16417   # Extract the first word of "$ac_prog", so it can be a program name with args.
16418 set dummy $ac_prog; ac_word=$2
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16420 $as_echo_n "checking for $ac_word... " >&6; }
16421 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
16422   $as_echo_n "(cached) " >&6
16423 else
16424   if test -n "$ac_ct_F77"; then
16425   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16426 else
16427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428 for as_dir in $PATH
16429 do
16430   IFS=$as_save_IFS
16431   test -z "$as_dir" && as_dir=.
16432     for ac_exec_ext in '' $ac_executable_extensions; do
16433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16434     ac_cv_prog_ac_ct_F77="$ac_prog"
16435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436     break 2
16437   fi
16438 done
16439   done
16440 IFS=$as_save_IFS
16441
16442 fi
16443 fi
16444 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16445 if test -n "$ac_ct_F77"; then
16446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16447 $as_echo "$ac_ct_F77" >&6; }
16448 else
16449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16451 fi
16452
16453
16454   test -n "$ac_ct_F77" && break
16455 done
16456
16457   if test "x$ac_ct_F77" = x; then
16458     F77=""
16459   else
16460     case $cross_compiling:$ac_tool_warned in
16461 yes:)
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16464 ac_tool_warned=yes ;;
16465 esac
16466     F77=$ac_ct_F77
16467   fi
16468 fi
16469
16470
16471 # Provide some information about the compiler.
16472 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16473 set X $ac_compile
16474 ac_compiler=$2
16475 for ac_option in --version -v -V -qversion; do
16476   { { ac_try="$ac_compiler $ac_option >&5"
16477 case "(($ac_try" in
16478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479   *) ac_try_echo=$ac_try;;
16480 esac
16481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16482 $as_echo "$ac_try_echo"; } >&5
16483   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16484   ac_status=$?
16485   if test -s conftest.err; then
16486     sed '10a\
16487 ... rest of stderr output deleted ...
16488          10q' conftest.err >conftest.er1
16489     cat conftest.er1 >&5
16490   fi
16491   rm -f conftest.er1 conftest.err
16492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16493   test $ac_status = 0; }
16494 done
16495 rm -f a.out
16496
16497 # If we don't use `.F' as extension, the preprocessor is not run on the
16498 # input file.  (Note that this only needs to work for GNU compilers.)
16499 ac_save_ext=$ac_ext
16500 ac_ext=F
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16502 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16503 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
16504   $as_echo_n "(cached) " >&6
16505 else
16506   cat > conftest.$ac_ext <<_ACEOF
16507       program main
16508 #ifndef __GNUC__
16509        choke me
16510 #endif
16511
16512       end
16513 _ACEOF
16514 if ac_fn_f77_try_compile "$LINENO"; then :
16515   ac_compiler_gnu=yes
16516 else
16517   ac_compiler_gnu=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16521
16522 fi
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16524 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16525 ac_ext=$ac_save_ext
16526 ac_test_FFLAGS=${FFLAGS+set}
16527 ac_save_FFLAGS=$FFLAGS
16528 FFLAGS=
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16530 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
16531 if test "${ac_cv_prog_f77_g+set}" = set; then :
16532   $as_echo_n "(cached) " >&6
16533 else
16534   FFLAGS=-g
16535 cat > conftest.$ac_ext <<_ACEOF
16536       program main
16537
16538       end
16539 _ACEOF
16540 if ac_fn_f77_try_compile "$LINENO"; then :
16541   ac_cv_prog_f77_g=yes
16542 else
16543   ac_cv_prog_f77_g=no
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16549 $as_echo "$ac_cv_prog_f77_g" >&6; }
16550 if test "$ac_test_FFLAGS" = set; then
16551   FFLAGS=$ac_save_FFLAGS
16552 elif test $ac_cv_prog_f77_g = yes; then
16553   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16554     FFLAGS="-g -O2"
16555   else
16556     FFLAGS="-g"
16557   fi
16558 else
16559   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16560     FFLAGS="-O2"
16561   else
16562     FFLAGS=
16563   fi
16564 fi
16565
16566 if test $ac_compiler_gnu = yes; then
16567   G77=yes
16568 else
16569   G77=
16570 fi
16571 ac_ext=c
16572 ac_cpp='$CPP $CPPFLAGS'
16573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16576
16577 if test -z "$F77" || test "X$F77" = "Xno"; then
16578   _lt_disable_F77=yes
16579 fi
16580
16581
16582 ac_ext=f
16583 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16584 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16585 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16586 if test -n "$ac_tool_prefix"; then
16587   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16588   do
16589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592 $as_echo_n "checking for $ac_word... " >&6; }
16593 if test "${ac_cv_prog_F77+set}" = set; then :
16594   $as_echo_n "(cached) " >&6
16595 else
16596   if test -n "$F77"; then
16597   ac_cv_prog_F77="$F77" # Let the user override the test.
16598 else
16599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16600 for as_dir in $PATH
16601 do
16602   IFS=$as_save_IFS
16603   test -z "$as_dir" && as_dir=.
16604     for ac_exec_ext in '' $ac_executable_extensions; do
16605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16606     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16608     break 2
16609   fi
16610 done
16611   done
16612 IFS=$as_save_IFS
16613
16614 fi
16615 fi
16616 F77=$ac_cv_prog_F77
16617 if test -n "$F77"; then
16618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16619 $as_echo "$F77" >&6; }
16620 else
16621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16622 $as_echo "no" >&6; }
16623 fi
16624
16625
16626     test -n "$F77" && break
16627   done
16628 fi
16629 if test -z "$F77"; then
16630   ac_ct_F77=$F77
16631   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16632 do
16633   # Extract the first word of "$ac_prog", so it can be a program name with args.
16634 set dummy $ac_prog; ac_word=$2
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16636 $as_echo_n "checking for $ac_word... " >&6; }
16637 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640   if test -n "$ac_ct_F77"; then
16641   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16642 else
16643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16644 for as_dir in $PATH
16645 do
16646   IFS=$as_save_IFS
16647   test -z "$as_dir" && as_dir=.
16648     for ac_exec_ext in '' $ac_executable_extensions; do
16649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16650     ac_cv_prog_ac_ct_F77="$ac_prog"
16651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16652     break 2
16653   fi
16654 done
16655   done
16656 IFS=$as_save_IFS
16657
16658 fi
16659 fi
16660 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16661 if test -n "$ac_ct_F77"; then
16662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16663 $as_echo "$ac_ct_F77" >&6; }
16664 else
16665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666 $as_echo "no" >&6; }
16667 fi
16668
16669
16670   test -n "$ac_ct_F77" && break
16671 done
16672
16673   if test "x$ac_ct_F77" = x; then
16674     F77=""
16675   else
16676     case $cross_compiling:$ac_tool_warned in
16677 yes:)
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16680 ac_tool_warned=yes ;;
16681 esac
16682     F77=$ac_ct_F77
16683   fi
16684 fi
16685
16686
16687 # Provide some information about the compiler.
16688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16689 set X $ac_compile
16690 ac_compiler=$2
16691 for ac_option in --version -v -V -qversion; do
16692   { { ac_try="$ac_compiler $ac_option >&5"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16698 $as_echo "$ac_try_echo"; } >&5
16699   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16700   ac_status=$?
16701   if test -s conftest.err; then
16702     sed '10a\
16703 ... rest of stderr output deleted ...
16704          10q' conftest.err >conftest.er1
16705     cat conftest.er1 >&5
16706   fi
16707   rm -f conftest.er1 conftest.err
16708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16709   test $ac_status = 0; }
16710 done
16711 rm -f a.out
16712
16713 # If we don't use `.F' as extension, the preprocessor is not run on the
16714 # input file.  (Note that this only needs to work for GNU compilers.)
16715 ac_save_ext=$ac_ext
16716 ac_ext=F
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16718 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16719 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
16720   $as_echo_n "(cached) " >&6
16721 else
16722   cat > conftest.$ac_ext <<_ACEOF
16723       program main
16724 #ifndef __GNUC__
16725        choke me
16726 #endif
16727
16728       end
16729 _ACEOF
16730 if ac_fn_f77_try_compile "$LINENO"; then :
16731   ac_compiler_gnu=yes
16732 else
16733   ac_compiler_gnu=no
16734 fi
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16737
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16740 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16741 ac_ext=$ac_save_ext
16742 ac_test_FFLAGS=${FFLAGS+set}
16743 ac_save_FFLAGS=$FFLAGS
16744 FFLAGS=
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16746 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
16747 if test "${ac_cv_prog_f77_g+set}" = set; then :
16748   $as_echo_n "(cached) " >&6
16749 else
16750   FFLAGS=-g
16751 cat > conftest.$ac_ext <<_ACEOF
16752       program main
16753
16754       end
16755 _ACEOF
16756 if ac_fn_f77_try_compile "$LINENO"; then :
16757   ac_cv_prog_f77_g=yes
16758 else
16759   ac_cv_prog_f77_g=no
16760 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762
16763 fi
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16765 $as_echo "$ac_cv_prog_f77_g" >&6; }
16766 if test "$ac_test_FFLAGS" = set; then
16767   FFLAGS=$ac_save_FFLAGS
16768 elif test $ac_cv_prog_f77_g = yes; then
16769   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16770     FFLAGS="-g -O2"
16771   else
16772     FFLAGS="-g"
16773   fi
16774 else
16775   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16776     FFLAGS="-O2"
16777   else
16778     FFLAGS=
16779   fi
16780 fi
16781
16782 if test $ac_compiler_gnu = yes; then
16783   G77=yes
16784 else
16785   G77=
16786 fi
16787 ac_ext=f
16788 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16789 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16790 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16791
16792
16793
16794             # Check whether --enable-fortran was given.
16795 if test "${enable_fortran+set}" = set; then :
16796   enableval=$enable_fortran;
16797 else
16798   enable_fortran=no
16799 fi
16800
16801      if test "x$enable_fortran" = xyes; then
16802   ENABLE_FORTRAN_TRUE=
16803   ENABLE_FORTRAN_FALSE='#'
16804 else
16805   ENABLE_FORTRAN_TRUE='#'
16806   ENABLE_FORTRAN_FALSE=
16807 fi
16808
16809
16810     if test "x$enable_fortran" = xyes
16811     then
16812         ac_ext=f
16813 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16814 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16816 if test -n "$ac_tool_prefix"; then
16817   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16818   do
16819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16822 $as_echo_n "checking for $ac_word... " >&6; }
16823 if test "${ac_cv_prog_F77+set}" = set; then :
16824   $as_echo_n "(cached) " >&6
16825 else
16826   if test -n "$F77"; then
16827   ac_cv_prog_F77="$F77" # Let the user override the test.
16828 else
16829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16830 for as_dir in $PATH
16831 do
16832   IFS=$as_save_IFS
16833   test -z "$as_dir" && as_dir=.
16834     for ac_exec_ext in '' $ac_executable_extensions; do
16835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16836     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16838     break 2
16839   fi
16840 done
16841   done
16842 IFS=$as_save_IFS
16843
16844 fi
16845 fi
16846 F77=$ac_cv_prog_F77
16847 if test -n "$F77"; then
16848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16849 $as_echo "$F77" >&6; }
16850 else
16851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16852 $as_echo "no" >&6; }
16853 fi
16854
16855
16856     test -n "$F77" && break
16857   done
16858 fi
16859 if test -z "$F77"; then
16860   ac_ct_F77=$F77
16861   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16862 do
16863   # Extract the first word of "$ac_prog", so it can be a program name with args.
16864 set dummy $ac_prog; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 $as_echo_n "checking for $ac_word... " >&6; }
16867 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   if test -n "$ac_ct_F77"; then
16871   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16872 else
16873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16874 for as_dir in $PATH
16875 do
16876   IFS=$as_save_IFS
16877   test -z "$as_dir" && as_dir=.
16878     for ac_exec_ext in '' $ac_executable_extensions; do
16879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16880     ac_cv_prog_ac_ct_F77="$ac_prog"
16881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16882     break 2
16883   fi
16884 done
16885   done
16886 IFS=$as_save_IFS
16887
16888 fi
16889 fi
16890 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16891 if test -n "$ac_ct_F77"; then
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16893 $as_echo "$ac_ct_F77" >&6; }
16894 else
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897 fi
16898
16899
16900   test -n "$ac_ct_F77" && break
16901 done
16902
16903   if test "x$ac_ct_F77" = x; then
16904     F77=""
16905   else
16906     case $cross_compiling:$ac_tool_warned in
16907 yes:)
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16910 ac_tool_warned=yes ;;
16911 esac
16912     F77=$ac_ct_F77
16913   fi
16914 fi
16915
16916
16917 # Provide some information about the compiler.
16918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16919 set X $ac_compile
16920 ac_compiler=$2
16921 for ac_option in --version -v -V -qversion; do
16922   { { ac_try="$ac_compiler $ac_option >&5"
16923 case "(($ac_try" in
16924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925   *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16928 $as_echo "$ac_try_echo"; } >&5
16929   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16930   ac_status=$?
16931   if test -s conftest.err; then
16932     sed '10a\
16933 ... rest of stderr output deleted ...
16934          10q' conftest.err >conftest.er1
16935     cat conftest.er1 >&5
16936   fi
16937   rm -f conftest.er1 conftest.err
16938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16939   test $ac_status = 0; }
16940 done
16941 rm -f a.out
16942
16943 # If we don't use `.F' as extension, the preprocessor is not run on the
16944 # input file.  (Note that this only needs to work for GNU compilers.)
16945 ac_save_ext=$ac_ext
16946 ac_ext=F
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16948 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16949 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
16950   $as_echo_n "(cached) " >&6
16951 else
16952   cat > conftest.$ac_ext <<_ACEOF
16953       program main
16954 #ifndef __GNUC__
16955        choke me
16956 #endif
16957
16958       end
16959 _ACEOF
16960 if ac_fn_f77_try_compile "$LINENO"; then :
16961   ac_compiler_gnu=yes
16962 else
16963   ac_compiler_gnu=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16967
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16970 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16971 ac_ext=$ac_save_ext
16972 ac_test_FFLAGS=${FFLAGS+set}
16973 ac_save_FFLAGS=$FFLAGS
16974 FFLAGS=
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16976 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
16977 if test "${ac_cv_prog_f77_g+set}" = set; then :
16978   $as_echo_n "(cached) " >&6
16979 else
16980   FFLAGS=-g
16981 cat > conftest.$ac_ext <<_ACEOF
16982       program main
16983
16984       end
16985 _ACEOF
16986 if ac_fn_f77_try_compile "$LINENO"; then :
16987   ac_cv_prog_f77_g=yes
16988 else
16989   ac_cv_prog_f77_g=no
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16995 $as_echo "$ac_cv_prog_f77_g" >&6; }
16996 if test "$ac_test_FFLAGS" = set; then
16997   FFLAGS=$ac_save_FFLAGS
16998 elif test $ac_cv_prog_f77_g = yes; then
16999   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17000     FFLAGS="-g -O2"
17001   else
17002     FFLAGS="-g"
17003   fi
17004 else
17005   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17006     FFLAGS="-O2"
17007   else
17008     FFLAGS=
17009   fi
17010 fi
17011
17012 if test $ac_compiler_gnu = yes; then
17013   G77=yes
17014 else
17015   G77=
17016 fi
17017 ac_ext=c
17018 ac_cpp='$CPP $CPPFLAGS'
17019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17022       ac_ext=f
17023 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17024 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17026
17027
17028 archive_cmds_need_lc_F77=no
17029 allow_undefined_flag_F77=
17030 always_export_symbols_F77=no
17031 archive_expsym_cmds_F77=
17032 export_dynamic_flag_spec_F77=
17033 hardcode_direct_F77=no
17034 hardcode_direct_absolute_F77=no
17035 hardcode_libdir_flag_spec_F77=
17036 hardcode_libdir_flag_spec_ld_F77=
17037 hardcode_libdir_separator_F77=
17038 hardcode_minus_L_F77=no
17039 hardcode_automatic_F77=no
17040 inherit_rpath_F77=no
17041 module_cmds_F77=
17042 module_expsym_cmds_F77=
17043 link_all_deplibs_F77=unknown
17044 old_archive_cmds_F77=$old_archive_cmds
17045 no_undefined_flag_F77=
17046 whole_archive_flag_spec_F77=
17047 enable_shared_with_static_runtimes_F77=no
17048
17049 # Source file extension for f77 test sources.
17050 ac_ext=f
17051
17052 # Object file extension for compiled f77 test sources.
17053 objext=o
17054 objext_F77=$objext
17055
17056 # No sense in running all these tests if we already determined that
17057 # the F77 compiler isn't working.  Some variables (like enable_shared)
17058 # are currently assumed to apply to all compilers on this platform,
17059 # and will be corrupted by setting them based on a non-working compiler.
17060 if test "$_lt_disable_F77" != yes; then
17061   # Code to be used in simple compile tests
17062   lt_simple_compile_test_code="\
17063       subroutine t
17064       return
17065       end
17066 "
17067
17068   # Code to be used in simple link tests
17069   lt_simple_link_test_code="\
17070       program t
17071       end
17072 "
17073
17074   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17075
17076
17077
17078
17079
17080
17081 # If no C compiler was specified, use CC.
17082 LTCC=${LTCC-"$CC"}
17083
17084 # If no C compiler flags were specified, use CFLAGS.
17085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17086
17087 # Allow CC to be a program name with arguments.
17088 compiler=$CC
17089
17090
17091   # save warnings/boilerplate of simple test code
17092   ac_outfile=conftest.$ac_objext
17093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17095 _lt_compiler_boilerplate=`cat conftest.err`
17096 $RM conftest*
17097
17098   ac_outfile=conftest.$ac_objext
17099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17101 _lt_linker_boilerplate=`cat conftest.err`
17102 $RM -r conftest*
17103
17104
17105   # Allow CC to be a program name with arguments.
17106   lt_save_CC="$CC"
17107   lt_save_GCC=$GCC
17108   CC=${F77-"f77"}
17109   compiler=$CC
17110   compiler_F77=$CC
17111   for cc_temp in $compiler""; do
17112   case $cc_temp in
17113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17115     \-*) ;;
17116     *) break;;
17117   esac
17118 done
17119 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17120
17121   GCC=$G77
17122   if test -n "$compiler"; then
17123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17126 $as_echo "$can_build_shared" >&6; }
17127
17128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17129 $as_echo_n "checking whether to build shared libraries... " >&6; }
17130     test "$can_build_shared" = "no" && enable_shared=no
17131
17132     # On AIX, shared libraries and static libraries use the same namespace, and
17133     # are all built from PIC.
17134     case $host_os in
17135       aix3*)
17136         test "$enable_shared" = yes && enable_static=no
17137         if test -n "$RANLIB"; then
17138           archive_cmds="$archive_cmds~\$RANLIB \$lib"
17139           postinstall_cmds='$RANLIB $lib'
17140         fi
17141         ;;
17142       aix[4-9]*)
17143         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17144           test "$enable_shared" = yes && enable_static=no
17145         fi
17146         ;;
17147     esac
17148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17149 $as_echo "$enable_shared" >&6; }
17150
17151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17152 $as_echo_n "checking whether to build static libraries... " >&6; }
17153     # Make sure either enable_shared or enable_static is yes.
17154     test "$enable_shared" = yes || enable_static=yes
17155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17156 $as_echo "$enable_static" >&6; }
17157
17158     GCC_F77="$G77"
17159     LD_F77="$LD"
17160
17161     ## CAVEAT EMPTOR:
17162     ## There is no encapsulation within the following macros, do not change
17163     ## the running order or otherwise move them around unless you know exactly
17164     ## what you are doing...
17165     lt_prog_compiler_wl_F77=
17166 lt_prog_compiler_pic_F77=
17167 lt_prog_compiler_static_F77=
17168
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17171
17172   if test "$GCC" = yes; then
17173     lt_prog_compiler_wl_F77='-Wl,'
17174     lt_prog_compiler_static_F77='-static'
17175
17176     case $host_os in
17177       aix*)
17178       # All AIX code is PIC.
17179       if test "$host_cpu" = ia64; then
17180         # AIX 5 now supports IA64 processor
17181         lt_prog_compiler_static_F77='-Bstatic'
17182       fi
17183       ;;
17184
17185     amigaos*)
17186       case $host_cpu in
17187       powerpc)
17188             # see comment about AmigaOS4 .so support
17189             lt_prog_compiler_pic_F77='-fPIC'
17190         ;;
17191       m68k)
17192             # FIXME: we need at least 68020 code to build shared libraries, but
17193             # adding the `-m68020' flag to GCC prevents building anything better,
17194             # like `-m68040'.
17195             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17196         ;;
17197       esac
17198       ;;
17199
17200     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17201       # PIC is the default for these OSes.
17202       ;;
17203
17204     mingw* | cygwin* | pw32* | os2* | cegcc*)
17205       # This hack is so that the source file can tell whether it is being
17206       # built for inclusion in a dll (and should export symbols for example).
17207       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17208       # (--disable-auto-import) libraries
17209       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17210       ;;
17211
17212     darwin* | rhapsody*)
17213       # PIC is the default on this platform
17214       # Common symbols not allowed in MH_DYLIB files
17215       lt_prog_compiler_pic_F77='-fno-common'
17216       ;;
17217
17218     hpux*)
17219       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17220       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17221       # sets the default TLS model and affects inlining.
17222       case $host_cpu in
17223       hppa*64*)
17224         # +Z the default
17225         ;;
17226       *)
17227         lt_prog_compiler_pic_F77='-fPIC'
17228         ;;
17229       esac
17230       ;;
17231
17232     interix[3-9]*)
17233       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17234       # Instead, we relocate shared libraries at runtime.
17235       ;;
17236
17237     msdosdjgpp*)
17238       # Just because we use GCC doesn't mean we suddenly get shared libraries
17239       # on systems that don't support them.
17240       lt_prog_compiler_can_build_shared_F77=no
17241       enable_shared=no
17242       ;;
17243
17244     *nto* | *qnx*)
17245       # QNX uses GNU C++, but need to define -shared option too, otherwise
17246       # it will coredump.
17247       lt_prog_compiler_pic_F77='-fPIC -shared'
17248       ;;
17249
17250     sysv4*MP*)
17251       if test -d /usr/nec; then
17252         lt_prog_compiler_pic_F77=-Kconform_pic
17253       fi
17254       ;;
17255
17256     *)
17257       lt_prog_compiler_pic_F77='-fPIC'
17258       ;;
17259     esac
17260   else
17261     # PORTME Check for flag to pass linker flags through the system compiler.
17262     case $host_os in
17263     aix*)
17264       lt_prog_compiler_wl_F77='-Wl,'
17265       if test "$host_cpu" = ia64; then
17266         # AIX 5 now supports IA64 processor
17267         lt_prog_compiler_static_F77='-Bstatic'
17268       else
17269         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17270       fi
17271       ;;
17272
17273     mingw* | cygwin* | pw32* | os2* | cegcc*)
17274       # This hack is so that the source file can tell whether it is being
17275       # built for inclusion in a dll (and should export symbols for example).
17276       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17277       ;;
17278
17279     hpux9* | hpux10* | hpux11*)
17280       lt_prog_compiler_wl_F77='-Wl,'
17281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17282       # not for PA HP-UX.
17283       case $host_cpu in
17284       hppa*64*|ia64*)
17285         # +Z the default
17286         ;;
17287       *)
17288         lt_prog_compiler_pic_F77='+Z'
17289         ;;
17290       esac
17291       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17292       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17293       ;;
17294
17295     irix5* | irix6* | nonstopux*)
17296       lt_prog_compiler_wl_F77='-Wl,'
17297       # PIC (with -KPIC) is the default.
17298       lt_prog_compiler_static_F77='-non_shared'
17299       ;;
17300
17301     linux* | k*bsd*-gnu)
17302       case $cc_basename in
17303       # old Intel for x86_64 which still supported -KPIC.
17304       ecc*)
17305         lt_prog_compiler_wl_F77='-Wl,'
17306         lt_prog_compiler_pic_F77='-KPIC'
17307         lt_prog_compiler_static_F77='-static'
17308         ;;
17309       # icc used to be incompatible with GCC.
17310       # ICC 10 doesn't accept -KPIC any more.
17311       icc* | ifort*)
17312         lt_prog_compiler_wl_F77='-Wl,'
17313         lt_prog_compiler_pic_F77='-fPIC'
17314         lt_prog_compiler_static_F77='-static'
17315         ;;
17316       # Lahey Fortran 8.1.
17317       lf95*)
17318         lt_prog_compiler_wl_F77='-Wl,'
17319         lt_prog_compiler_pic_F77='--shared'
17320         lt_prog_compiler_static_F77='--static'
17321         ;;
17322       pgcc* | pgf77* | pgf90* | pgf95*)
17323         # Portland Group compilers (*not* the Pentium gcc compiler,
17324         # which looks to be a dead project)
17325         lt_prog_compiler_wl_F77='-Wl,'
17326         lt_prog_compiler_pic_F77='-fpic'
17327         lt_prog_compiler_static_F77='-Bstatic'
17328         ;;
17329       ccc*)
17330         lt_prog_compiler_wl_F77='-Wl,'
17331         # All Alpha code is PIC.
17332         lt_prog_compiler_static_F77='-non_shared'
17333         ;;
17334       xl*)
17335         # IBM XL C 8.0/Fortran 10.1 on PPC
17336         lt_prog_compiler_wl_F77='-Wl,'
17337         lt_prog_compiler_pic_F77='-qpic'
17338         lt_prog_compiler_static_F77='-qstaticlink'
17339         ;;
17340       *)
17341         case `$CC -V 2>&1 | sed 5q` in
17342         *Sun\ C*)
17343           # Sun C 5.9
17344           lt_prog_compiler_pic_F77='-KPIC'
17345           lt_prog_compiler_static_F77='-Bstatic'
17346           lt_prog_compiler_wl_F77='-Wl,'
17347           ;;
17348         *Sun\ F*)
17349           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17350           lt_prog_compiler_pic_F77='-KPIC'
17351           lt_prog_compiler_static_F77='-Bstatic'
17352           lt_prog_compiler_wl_F77=''
17353           ;;
17354         esac
17355         ;;
17356       esac
17357       ;;
17358
17359     newsos6)
17360       lt_prog_compiler_pic_F77='-KPIC'
17361       lt_prog_compiler_static_F77='-Bstatic'
17362       ;;
17363
17364     *nto* | *qnx*)
17365       # QNX uses GNU C++, but need to define -shared option too, otherwise
17366       # it will coredump.
17367       lt_prog_compiler_pic_F77='-fPIC -shared'
17368       ;;
17369
17370     osf3* | osf4* | osf5*)
17371       lt_prog_compiler_wl_F77='-Wl,'
17372       # All OSF/1 code is PIC.
17373       lt_prog_compiler_static_F77='-non_shared'
17374       ;;
17375
17376     rdos*)
17377       lt_prog_compiler_static_F77='-non_shared'
17378       ;;
17379
17380     solaris*)
17381       lt_prog_compiler_pic_F77='-KPIC'
17382       lt_prog_compiler_static_F77='-Bstatic'
17383       case $cc_basename in
17384       f77* | f90* | f95*)
17385         lt_prog_compiler_wl_F77='-Qoption ld ';;
17386       *)
17387         lt_prog_compiler_wl_F77='-Wl,';;
17388       esac
17389       ;;
17390
17391     sunos4*)
17392       lt_prog_compiler_wl_F77='-Qoption ld '
17393       lt_prog_compiler_pic_F77='-PIC'
17394       lt_prog_compiler_static_F77='-Bstatic'
17395       ;;
17396
17397     sysv4 | sysv4.2uw2* | sysv4.3*)
17398       lt_prog_compiler_wl_F77='-Wl,'
17399       lt_prog_compiler_pic_F77='-KPIC'
17400       lt_prog_compiler_static_F77='-Bstatic'
17401       ;;
17402
17403     sysv4*MP*)
17404       if test -d /usr/nec ;then
17405         lt_prog_compiler_pic_F77='-Kconform_pic'
17406         lt_prog_compiler_static_F77='-Bstatic'
17407       fi
17408       ;;
17409
17410     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17411       lt_prog_compiler_wl_F77='-Wl,'
17412       lt_prog_compiler_pic_F77='-KPIC'
17413       lt_prog_compiler_static_F77='-Bstatic'
17414       ;;
17415
17416     unicos*)
17417       lt_prog_compiler_wl_F77='-Wl,'
17418       lt_prog_compiler_can_build_shared_F77=no
17419       ;;
17420
17421     uts4*)
17422       lt_prog_compiler_pic_F77='-pic'
17423       lt_prog_compiler_static_F77='-Bstatic'
17424       ;;
17425
17426     *)
17427       lt_prog_compiler_can_build_shared_F77=no
17428       ;;
17429     esac
17430   fi
17431
17432 case $host_os in
17433   # For platforms which do not support PIC, -DPIC is meaningless:
17434   *djgpp*)
17435     lt_prog_compiler_pic_F77=
17436     ;;
17437   *)
17438     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17439     ;;
17440 esac
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
17442 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
17443
17444
17445
17446 #
17447 # Check to make sure the PIC flag actually works.
17448 #
17449 if test -n "$lt_prog_compiler_pic_F77"; then
17450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17451 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
17452 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
17453   $as_echo_n "(cached) " >&6
17454 else
17455   lt_cv_prog_compiler_pic_works_F77=no
17456    ac_outfile=conftest.$ac_objext
17457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17458    lt_compiler_flag="$lt_prog_compiler_pic_F77"
17459    # Insert the option either (1) after the last *FLAGS variable, or
17460    # (2) before a word containing "conftest.", or (3) at the end.
17461    # Note that $ac_compile itself does not contain backslashes and begins
17462    # with a dollar sign (not a hyphen), so the echo should work correctly.
17463    # The option is referenced via a variable to avoid confusing sed.
17464    lt_compile=`echo "$ac_compile" | $SED \
17465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17467    -e 's:$: $lt_compiler_flag:'`
17468    (eval echo "\"\$as_me:17468: $lt_compile\"" >&5)
17469    (eval "$lt_compile" 2>conftest.err)
17470    ac_status=$?
17471    cat conftest.err >&5
17472    echo "$as_me:17472: \$? = $ac_status" >&5
17473    if (exit $ac_status) && test -s "$ac_outfile"; then
17474      # The compiler can only warn and ignore the option if not recognized
17475      # So say no if there are warnings other than the usual output.
17476      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17477      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17478      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17479        lt_cv_prog_compiler_pic_works_F77=yes
17480      fi
17481    fi
17482    $RM conftest*
17483
17484 fi
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17486 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
17487
17488 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17489     case $lt_prog_compiler_pic_F77 in
17490      "" | " "*) ;;
17491      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17492      esac
17493 else
17494     lt_prog_compiler_pic_F77=
17495      lt_prog_compiler_can_build_shared_F77=no
17496 fi
17497
17498 fi
17499
17500
17501
17502 #
17503 # Check to make sure the static flag actually works.
17504 #
17505 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17507 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17508 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511   lt_cv_prog_compiler_static_works_F77=no
17512    save_LDFLAGS="$LDFLAGS"
17513    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17514    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17515    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17516      # The linker can only warn and ignore the option if not recognized
17517      # So say no if there are warnings
17518      if test -s conftest.err; then
17519        # Append any errors to the config.log.
17520        cat conftest.err 1>&5
17521        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17522        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17523        if diff conftest.exp conftest.er2 >/dev/null; then
17524          lt_cv_prog_compiler_static_works_F77=yes
17525        fi
17526      else
17527        lt_cv_prog_compiler_static_works_F77=yes
17528      fi
17529    fi
17530    $RM -r conftest*
17531    LDFLAGS="$save_LDFLAGS"
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
17535 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
17536
17537 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17538     :
17539 else
17540     lt_prog_compiler_static_F77=
17541 fi
17542
17543
17544
17545
17546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17548 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
17549   $as_echo_n "(cached) " >&6
17550 else
17551   lt_cv_prog_compiler_c_o_F77=no
17552    $RM -r conftest 2>/dev/null
17553    mkdir conftest
17554    cd conftest
17555    mkdir out
17556    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17557
17558    lt_compiler_flag="-o out/conftest2.$ac_objext"
17559    # Insert the option either (1) after the last *FLAGS variable, or
17560    # (2) before a word containing "conftest.", or (3) at the end.
17561    # Note that $ac_compile itself does not contain backslashes and begins
17562    # with a dollar sign (not a hyphen), so the echo should work correctly.
17563    lt_compile=`echo "$ac_compile" | $SED \
17564    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566    -e 's:$: $lt_compiler_flag:'`
17567    (eval echo "\"\$as_me:17567: $lt_compile\"" >&5)
17568    (eval "$lt_compile" 2>out/conftest.err)
17569    ac_status=$?
17570    cat out/conftest.err >&5
17571    echo "$as_me:17571: \$? = $ac_status" >&5
17572    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17573    then
17574      # The compiler can only warn and ignore the option if not recognized
17575      # So say no if there are warnings
17576      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17577      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17578      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17579        lt_cv_prog_compiler_c_o_F77=yes
17580      fi
17581    fi
17582    chmod u+w . 2>&5
17583    $RM conftest*
17584    # SGI C++ compiler will create directory out/ii_files/ for
17585    # template instantiation
17586    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17587    $RM out/* && rmdir out
17588    cd ..
17589    $RM -r conftest
17590    $RM conftest*
17591
17592 fi
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17594 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17595
17596
17597
17598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17600 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
17601   $as_echo_n "(cached) " >&6
17602 else
17603   lt_cv_prog_compiler_c_o_F77=no
17604    $RM -r conftest 2>/dev/null
17605    mkdir conftest
17606    cd conftest
17607    mkdir out
17608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17609
17610    lt_compiler_flag="-o out/conftest2.$ac_objext"
17611    # Insert the option either (1) after the last *FLAGS variable, or
17612    # (2) before a word containing "conftest.", or (3) at the end.
17613    # Note that $ac_compile itself does not contain backslashes and begins
17614    # with a dollar sign (not a hyphen), so the echo should work correctly.
17615    lt_compile=`echo "$ac_compile" | $SED \
17616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17618    -e 's:$: $lt_compiler_flag:'`
17619    (eval echo "\"\$as_me:17619: $lt_compile\"" >&5)
17620    (eval "$lt_compile" 2>out/conftest.err)
17621    ac_status=$?
17622    cat out/conftest.err >&5
17623    echo "$as_me:17623: \$? = $ac_status" >&5
17624    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17625    then
17626      # The compiler can only warn and ignore the option if not recognized
17627      # So say no if there are warnings
17628      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17629      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17630      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17631        lt_cv_prog_compiler_c_o_F77=yes
17632      fi
17633    fi
17634    chmod u+w . 2>&5
17635    $RM conftest*
17636    # SGI C++ compiler will create directory out/ii_files/ for
17637    # template instantiation
17638    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17639    $RM out/* && rmdir out
17640    cd ..
17641    $RM -r conftest
17642    $RM conftest*
17643
17644 fi
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17646 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17647
17648
17649
17650
17651 hard_links="nottested"
17652 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17653   # do not overwrite the value of need_locks provided by the user
17654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17655 $as_echo_n "checking if we can lock with hard links... " >&6; }
17656   hard_links=yes
17657   $RM conftest*
17658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17659   touch conftest.a
17660   ln conftest.a conftest.b 2>&5 || hard_links=no
17661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17663 $as_echo "$hard_links" >&6; }
17664   if test "$hard_links" = no; then
17665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17667     need_locks=warn
17668   fi
17669 else
17670   need_locks=no
17671 fi
17672
17673
17674
17675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17677
17678   runpath_var=
17679   allow_undefined_flag_F77=
17680   always_export_symbols_F77=no
17681   archive_cmds_F77=
17682   archive_expsym_cmds_F77=
17683   compiler_needs_object_F77=no
17684   enable_shared_with_static_runtimes_F77=no
17685   export_dynamic_flag_spec_F77=
17686   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17687   hardcode_automatic_F77=no
17688   hardcode_direct_F77=no
17689   hardcode_direct_absolute_F77=no
17690   hardcode_libdir_flag_spec_F77=
17691   hardcode_libdir_flag_spec_ld_F77=
17692   hardcode_libdir_separator_F77=
17693   hardcode_minus_L_F77=no
17694   hardcode_shlibpath_var_F77=unsupported
17695   inherit_rpath_F77=no
17696   link_all_deplibs_F77=unknown
17697   module_cmds_F77=
17698   module_expsym_cmds_F77=
17699   old_archive_from_new_cmds_F77=
17700   old_archive_from_expsyms_cmds_F77=
17701   thread_safe_flag_spec_F77=
17702   whole_archive_flag_spec_F77=
17703   # include_expsyms should be a list of space-separated symbols to be *always*
17704   # included in the symbol list
17705   include_expsyms_F77=
17706   # exclude_expsyms can be an extended regexp of symbols to exclude
17707   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17708   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17709   # as well as any symbol that contains `d'.
17710   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17711   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17712   # platforms (ab)use it in PIC code, but their linkers get confused if
17713   # the symbol is explicitly referenced.  Since portable code cannot
17714   # rely on this symbol name, it's probably fine to never include it in
17715   # preloaded symbol tables.
17716   # Exclude shared library initialization/finalization symbols.
17717   extract_expsyms_cmds=
17718
17719   case $host_os in
17720   cygwin* | mingw* | pw32* | cegcc*)
17721     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17722     # When not using gcc, we currently assume that we are using
17723     # Microsoft Visual C++.
17724     if test "$GCC" != yes; then
17725       with_gnu_ld=no
17726     fi
17727     ;;
17728   interix*)
17729     # we just hope/assume this is gcc and not c89 (= MSVC++)
17730     with_gnu_ld=yes
17731     ;;
17732   openbsd*)
17733     with_gnu_ld=no
17734     ;;
17735   esac
17736
17737   ld_shlibs_F77=yes
17738   if test "$with_gnu_ld" = yes; then
17739     # If archive_cmds runs LD, not CC, wlarc should be empty
17740     wlarc='${wl}'
17741
17742     # Set some defaults for GNU ld with shared library support. These
17743     # are reset later if shared libraries are not supported. Putting them
17744     # here allows them to be overridden if necessary.
17745     runpath_var=LD_RUN_PATH
17746     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17747     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17748     # ancient GNU ld didn't support --whole-archive et. al.
17749     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17750       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17751     else
17752       whole_archive_flag_spec_F77=
17753     fi
17754     supports_anon_versioning=no
17755     case `$LD -v 2>&1` in
17756       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17757       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17758       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17759       *\ 2.11.*) ;; # other 2.11 versions
17760       *) supports_anon_versioning=yes ;;
17761     esac
17762
17763     # See if GNU ld supports shared libraries.
17764     case $host_os in
17765     aix[3-9]*)
17766       # On AIX/PPC, the GNU linker is very broken
17767       if test "$host_cpu" != ia64; then
17768         ld_shlibs_F77=no
17769         cat <<_LT_EOF 1>&2
17770
17771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17772 *** to be unable to reliably create shared libraries on AIX.
17773 *** Therefore, libtool is disabling shared libraries support.  If you
17774 *** really care for shared libraries, you may want to modify your PATH
17775 *** so that a non-GNU linker is found, and then restart.
17776
17777 _LT_EOF
17778       fi
17779       ;;
17780
17781     amigaos*)
17782       case $host_cpu in
17783       powerpc)
17784             # see comment about AmigaOS4 .so support
17785             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17786             archive_expsym_cmds_F77=''
17787         ;;
17788       m68k)
17789             archive_cmds_F77='$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)'
17790             hardcode_libdir_flag_spec_F77='-L$libdir'
17791             hardcode_minus_L_F77=yes
17792         ;;
17793       esac
17794       ;;
17795
17796     beos*)
17797       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17798         allow_undefined_flag_F77=unsupported
17799         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17800         # support --undefined.  This deserves some investigation.  FIXME
17801         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802       else
17803         ld_shlibs_F77=no
17804       fi
17805       ;;
17806
17807     cygwin* | mingw* | pw32* | cegcc*)
17808       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17809       # as there is no search path for DLLs.
17810       hardcode_libdir_flag_spec_F77='-L$libdir'
17811       allow_undefined_flag_F77=unsupported
17812       always_export_symbols_F77=no
17813       enable_shared_with_static_runtimes_F77=yes
17814       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17815
17816       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17817         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17818         # If the export-symbols file already is a .def file (1st line
17819         # is EXPORTS), use it as is; otherwise, prepend...
17820         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17821           cp $export_symbols $output_objdir/$soname.def;
17822         else
17823           echo EXPORTS > $output_objdir/$soname.def;
17824           cat $export_symbols >> $output_objdir/$soname.def;
17825         fi~
17826         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17827       else
17828         ld_shlibs_F77=no
17829       fi
17830       ;;
17831
17832     interix[3-9]*)
17833       hardcode_direct_F77=no
17834       hardcode_shlibpath_var_F77=no
17835       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17836       export_dynamic_flag_spec_F77='${wl}-E'
17837       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17838       # Instead, shared libraries are loaded at an image base (0x10000000 by
17839       # default) and relocated if they conflict, which is a slow very memory
17840       # consuming and fragmenting process.  To avoid this, we pick a random,
17841       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17842       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17843       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17844       archive_expsym_cmds_F77='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'
17845       ;;
17846
17847     gnu* | linux* | tpf* | k*bsd*-gnu)
17848       tmp_diet=no
17849       if test "$host_os" = linux-dietlibc; then
17850         case $cc_basename in
17851           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17852         esac
17853       fi
17854       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17855          && test "$tmp_diet" = no
17856       then
17857         tmp_addflag=
17858         tmp_sharedflag='-shared'
17859         case $cc_basename,$host_cpu in
17860         pgcc*)                          # Portland Group C compiler
17861           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17862           tmp_addflag=' $pic_flag'
17863           ;;
17864         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17865           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17866           tmp_addflag=' $pic_flag -Mnomain' ;;
17867         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17868           tmp_addflag=' -i_dynamic' ;;
17869         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17870           tmp_addflag=' -i_dynamic -nofor_main' ;;
17871         ifc* | ifort*)                  # Intel Fortran compiler
17872           tmp_addflag=' -nofor_main' ;;
17873         lf95*)                          # Lahey Fortran 8.1
17874           whole_archive_flag_spec_F77=
17875           tmp_sharedflag='--shared' ;;
17876         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17877           tmp_sharedflag='-qmkshrobj'
17878           tmp_addflag= ;;
17879         esac
17880         case `$CC -V 2>&1 | sed 5q` in
17881         *Sun\ C*)                       # Sun C 5.9
17882           whole_archive_flag_spec_F77='${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'
17883           compiler_needs_object_F77=yes
17884           tmp_sharedflag='-G' ;;
17885         *Sun\ F*)                       # Sun Fortran 8.3
17886           tmp_sharedflag='-G' ;;
17887         esac
17888         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17889
17890         if test "x$supports_anon_versioning" = xyes; then
17891           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17892             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17893             echo "local: *; };" >> $output_objdir/$libname.ver~
17894             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17895         fi
17896
17897         case $cc_basename in
17898         xlf*)
17899           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17900           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
17901           hardcode_libdir_flag_spec_F77=
17902           hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17903           archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17904           if test "x$supports_anon_versioning" = xyes; then
17905             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17906               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17907               echo "local: *; };" >> $output_objdir/$libname.ver~
17908               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17909           fi
17910           ;;
17911         esac
17912       else
17913         ld_shlibs_F77=no
17914       fi
17915       ;;
17916
17917     netbsd* | netbsdelf*-gnu)
17918       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17919         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17920         wlarc=
17921       else
17922         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17923         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17924       fi
17925       ;;
17926
17927     solaris*)
17928       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17929         ld_shlibs_F77=no
17930         cat <<_LT_EOF 1>&2
17931
17932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17933 *** create shared libraries on Solaris systems.  Therefore, libtool
17934 *** is disabling shared libraries support.  We urge you to upgrade GNU
17935 *** binutils to release 2.9.1 or newer.  Another option is to modify
17936 *** your PATH or compiler configuration so that the native linker is
17937 *** used, and then restart.
17938
17939 _LT_EOF
17940       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17941         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17942         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17943       else
17944         ld_shlibs_F77=no
17945       fi
17946       ;;
17947
17948     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17949       case `$LD -v 2>&1` in
17950         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17951         ld_shlibs_F77=no
17952         cat <<_LT_EOF 1>&2
17953
17954 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17955 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17956 *** is disabling shared libraries support.  We urge you to upgrade GNU
17957 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17958 *** your PATH or compiler configuration so that the native linker is
17959 *** used, and then restart.
17960
17961 _LT_EOF
17962         ;;
17963         *)
17964           # For security reasons, it is highly recommended that you always
17965           # use absolute paths for naming shared libraries, and exclude the
17966           # DT_RUNPATH tag from executables and libraries.  But doing so
17967           # requires that you compile everything twice, which is a pain.
17968           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17969             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17970             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17972           else
17973             ld_shlibs_F77=no
17974           fi
17975         ;;
17976       esac
17977       ;;
17978
17979     sunos4*)
17980       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17981       wlarc=
17982       hardcode_direct_F77=yes
17983       hardcode_shlibpath_var_F77=no
17984       ;;
17985
17986     *)
17987       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17988         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17989         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17990       else
17991         ld_shlibs_F77=no
17992       fi
17993       ;;
17994     esac
17995
17996     if test "$ld_shlibs_F77" = no; then
17997       runpath_var=
17998       hardcode_libdir_flag_spec_F77=
17999       export_dynamic_flag_spec_F77=
18000       whole_archive_flag_spec_F77=
18001     fi
18002   else
18003     # PORTME fill in a description of your system's linker (not GNU ld)
18004     case $host_os in
18005     aix3*)
18006       allow_undefined_flag_F77=unsupported
18007       always_export_symbols_F77=yes
18008       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18009       # Note: this linker hardcodes the directories in LIBPATH if there
18010       # are no directories specified by -L.
18011       hardcode_minus_L_F77=yes
18012       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18013         # Neither direct hardcoding nor static linking is supported with a
18014         # broken collect2.
18015         hardcode_direct_F77=unsupported
18016       fi
18017       ;;
18018
18019     aix[4-9]*)
18020       if test "$host_cpu" = ia64; then
18021         # On IA64, the linker does run time linking by default, so we don't
18022         # have to do anything special.
18023         aix_use_runtimelinking=no
18024         exp_sym_flag='-Bexport'
18025         no_entry_flag=""
18026       else
18027         # If we're using GNU nm, then we don't want the "-C" option.
18028         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18029         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18030           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18031         else
18032           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18033         fi
18034         aix_use_runtimelinking=no
18035
18036         # Test if we are trying to use run time linking or normal
18037         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18038         # need to do runtime linking.
18039         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18040           for ld_flag in $LDFLAGS; do
18041           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18042             aix_use_runtimelinking=yes
18043             break
18044           fi
18045           done
18046           ;;
18047         esac
18048
18049         exp_sym_flag='-bexport'
18050         no_entry_flag='-bnoentry'
18051       fi
18052
18053       # When large executables or shared objects are built, AIX ld can
18054       # have problems creating the table of contents.  If linking a library
18055       # or program results in "error TOC overflow" add -mminimal-toc to
18056       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18057       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18058
18059       archive_cmds_F77=''
18060       hardcode_direct_F77=yes
18061       hardcode_direct_absolute_F77=yes
18062       hardcode_libdir_separator_F77=':'
18063       link_all_deplibs_F77=yes
18064       file_list_spec_F77='${wl}-f,'
18065
18066       if test "$GCC" = yes; then
18067         case $host_os in aix4.[012]|aix4.[012].*)
18068         # We only want to do this on AIX 4.2 and lower, the check
18069         # below for broken collect2 doesn't work under 4.3+
18070           collect2name=`${CC} -print-prog-name=collect2`
18071           if test -f "$collect2name" &&
18072            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18073           then
18074           # We have reworked collect2
18075           :
18076           else
18077           # We have old collect2
18078           hardcode_direct_F77=unsupported
18079           # It fails to find uninstalled libraries when the uninstalled
18080           # path is not listed in the libpath.  Setting hardcode_minus_L
18081           # to unsupported forces relinking
18082           hardcode_minus_L_F77=yes
18083           hardcode_libdir_flag_spec_F77='-L$libdir'
18084           hardcode_libdir_separator_F77=
18085           fi
18086           ;;
18087         esac
18088         shared_flag='-shared'
18089         if test "$aix_use_runtimelinking" = yes; then
18090           shared_flag="$shared_flag "'${wl}-G'
18091         fi
18092         link_all_deplibs_F77=no
18093       else
18094         # not using gcc
18095         if test "$host_cpu" = ia64; then
18096         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18097         # chokes on -Wl,-G. The following line is correct:
18098           shared_flag='-G'
18099         else
18100           if test "$aix_use_runtimelinking" = yes; then
18101             shared_flag='${wl}-G'
18102           else
18103             shared_flag='${wl}-bM:SRE'
18104           fi
18105         fi
18106       fi
18107
18108       export_dynamic_flag_spec_F77='${wl}-bexpall'
18109       # It seems that -bexpall does not export symbols beginning with
18110       # underscore (_), so it is better to generate a list of symbols to export.
18111       always_export_symbols_F77=yes
18112       if test "$aix_use_runtimelinking" = yes; then
18113         # Warning - without using the other runtime loading flags (-brtl),
18114         # -berok will link without error, but may produce a broken library.
18115         allow_undefined_flag_F77='-berok'
18116         # Determine the default libpath from the value encoded in an
18117         # empty executable.
18118         cat > conftest.$ac_ext <<_ACEOF
18119       program main
18120
18121       end
18122 _ACEOF
18123 if ac_fn_f77_try_link "$LINENO"; then :
18124
18125 lt_aix_libpath_sed='
18126     /Import File Strings/,/^$/ {
18127         /^0/ {
18128             s/^0  *\(.*\)$/\1/
18129             p
18130         }
18131     }'
18132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18133 # Check for a 64-bit object if we didn't find anything.
18134 if test -z "$aix_libpath"; then
18135   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18136 fi
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext \
18139     conftest$ac_exeext conftest.$ac_ext
18140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18141
18142         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18143         archive_expsym_cmds_F77='$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"
18144       else
18145         if test "$host_cpu" = ia64; then
18146           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18147           allow_undefined_flag_F77="-z nodefs"
18148           archive_expsym_cmds_F77="\$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"
18149         else
18150          # Determine the default libpath from the value encoded in an
18151          # empty executable.
18152          cat > conftest.$ac_ext <<_ACEOF
18153       program main
18154
18155       end
18156 _ACEOF
18157 if ac_fn_f77_try_link "$LINENO"; then :
18158
18159 lt_aix_libpath_sed='
18160     /Import File Strings/,/^$/ {
18161         /^0/ {
18162             s/^0  *\(.*\)$/\1/
18163             p
18164         }
18165     }'
18166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18167 # Check for a 64-bit object if we didn't find anything.
18168 if test -z "$aix_libpath"; then
18169   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18170 fi
18171 fi
18172 rm -f core conftest.err conftest.$ac_objext \
18173     conftest$ac_exeext conftest.$ac_ext
18174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18175
18176          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18177           # Warning - without using the other run time loading flags,
18178           # -berok will link without error, but may produce a broken library.
18179           no_undefined_flag_F77=' ${wl}-bernotok'
18180           allow_undefined_flag_F77=' ${wl}-berok'
18181           # Exported symbols can be pulled into shared objects from archives
18182           whole_archive_flag_spec_F77='$convenience'
18183           archive_cmds_need_lc_F77=yes
18184           # This is similar to how AIX traditionally builds its shared libraries.
18185           archive_expsym_cmds_F77="\$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'
18186         fi
18187       fi
18188       ;;
18189
18190     amigaos*)
18191       case $host_cpu in
18192       powerpc)
18193             # see comment about AmigaOS4 .so support
18194             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195             archive_expsym_cmds_F77=''
18196         ;;
18197       m68k)
18198             archive_cmds_F77='$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)'
18199             hardcode_libdir_flag_spec_F77='-L$libdir'
18200             hardcode_minus_L_F77=yes
18201         ;;
18202       esac
18203       ;;
18204
18205     bsdi[45]*)
18206       export_dynamic_flag_spec_F77=-rdynamic
18207       ;;
18208
18209     cygwin* | mingw* | pw32* | cegcc*)
18210       # When not using gcc, we currently assume that we are using
18211       # Microsoft Visual C++.
18212       # hardcode_libdir_flag_spec is actually meaningless, as there is
18213       # no search path for DLLs.
18214       hardcode_libdir_flag_spec_F77=' '
18215       allow_undefined_flag_F77=unsupported
18216       # Tell ltmain to make .lib files, not .a files.
18217       libext=lib
18218       # Tell ltmain to make .dll files, not .so files.
18219       shrext_cmds=".dll"
18220       # FIXME: Setting linknames here is a bad hack.
18221       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18222       # The linker will automatically build a .lib file if we build a DLL.
18223       old_archive_from_new_cmds_F77='true'
18224       # FIXME: Should let the user specify the lib program.
18225       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18226       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18227       enable_shared_with_static_runtimes_F77=yes
18228       ;;
18229
18230     darwin* | rhapsody*)
18231
18232
18233   archive_cmds_need_lc_F77=no
18234   hardcode_direct_F77=no
18235   hardcode_automatic_F77=yes
18236   hardcode_shlibpath_var_F77=unsupported
18237   whole_archive_flag_spec_F77=''
18238   link_all_deplibs_F77=yes
18239   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
18240   case $cc_basename in
18241      ifort*) _lt_dar_can_shared=yes ;;
18242      *) _lt_dar_can_shared=$GCC ;;
18243   esac
18244   if test "$_lt_dar_can_shared" = "yes"; then
18245     output_verbose_link_cmd=echo
18246     archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18247     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18248     archive_expsym_cmds_F77="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}"
18249     module_expsym_cmds_F77="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}"
18250
18251   else
18252   ld_shlibs_F77=no
18253   fi
18254
18255       ;;
18256
18257     dgux*)
18258       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259       hardcode_libdir_flag_spec_F77='-L$libdir'
18260       hardcode_shlibpath_var_F77=no
18261       ;;
18262
18263     freebsd1*)
18264       ld_shlibs_F77=no
18265       ;;
18266
18267     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18268     # support.  Future versions do this automatically, but an explicit c++rt0.o
18269     # does not break anything, and helps significantly (at the cost of a little
18270     # extra space).
18271     freebsd2.2*)
18272       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18273       hardcode_libdir_flag_spec_F77='-R$libdir'
18274       hardcode_direct_F77=yes
18275       hardcode_shlibpath_var_F77=no
18276       ;;
18277
18278     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18279     freebsd2*)
18280       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18281       hardcode_direct_F77=yes
18282       hardcode_minus_L_F77=yes
18283       hardcode_shlibpath_var_F77=no
18284       ;;
18285
18286     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18287     freebsd* | dragonfly*)
18288       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18289       hardcode_libdir_flag_spec_F77='-R$libdir'
18290       hardcode_direct_F77=yes
18291       hardcode_shlibpath_var_F77=no
18292       ;;
18293
18294     hpux9*)
18295       if test "$GCC" = yes; then
18296         archive_cmds_F77='$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'
18297       else
18298         archive_cmds_F77='$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'
18299       fi
18300       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18301       hardcode_libdir_separator_F77=:
18302       hardcode_direct_F77=yes
18303
18304       # hardcode_minus_L: Not really in the search PATH,
18305       # but as the default location of the library.
18306       hardcode_minus_L_F77=yes
18307       export_dynamic_flag_spec_F77='${wl}-E'
18308       ;;
18309
18310     hpux10*)
18311       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18312         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18313       else
18314         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18315       fi
18316       if test "$with_gnu_ld" = no; then
18317         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18318         hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18319         hardcode_libdir_separator_F77=:
18320         hardcode_direct_F77=yes
18321         hardcode_direct_absolute_F77=yes
18322         export_dynamic_flag_spec_F77='${wl}-E'
18323         # hardcode_minus_L: Not really in the search PATH,
18324         # but as the default location of the library.
18325         hardcode_minus_L_F77=yes
18326       fi
18327       ;;
18328
18329     hpux11*)
18330       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18331         case $host_cpu in
18332         hppa*64*)
18333           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334           ;;
18335         ia64*)
18336           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18337           ;;
18338         *)
18339           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18340           ;;
18341         esac
18342       else
18343         case $host_cpu in
18344         hppa*64*)
18345           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18346           ;;
18347         ia64*)
18348           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18349           ;;
18350         *)
18351           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18352           ;;
18353         esac
18354       fi
18355       if test "$with_gnu_ld" = no; then
18356         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18357         hardcode_libdir_separator_F77=:
18358
18359         case $host_cpu in
18360         hppa*64*|ia64*)
18361           hardcode_direct_F77=no
18362           hardcode_shlibpath_var_F77=no
18363           ;;
18364         *)
18365           hardcode_direct_F77=yes
18366           hardcode_direct_absolute_F77=yes
18367           export_dynamic_flag_spec_F77='${wl}-E'
18368
18369           # hardcode_minus_L: Not really in the search PATH,
18370           # but as the default location of the library.
18371           hardcode_minus_L_F77=yes
18372           ;;
18373         esac
18374       fi
18375       ;;
18376
18377     irix5* | irix6* | nonstopux*)
18378       if test "$GCC" = yes; then
18379         archive_cmds_F77='$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'
18380         # Try to use the -exported_symbol ld option, if it does not
18381         # work, assume that -exports_file does not work either and
18382         # implicitly export all symbols.
18383         save_LDFLAGS="$LDFLAGS"
18384         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18385         cat > conftest.$ac_ext <<_ACEOF
18386 int foo(void) {}
18387 _ACEOF
18388 if ac_fn_f77_try_link "$LINENO"; then :
18389   archive_expsym_cmds_F77='$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'
18390
18391 fi
18392 rm -f core conftest.err conftest.$ac_objext \
18393     conftest$ac_exeext conftest.$ac_ext
18394         LDFLAGS="$save_LDFLAGS"
18395       else
18396         archive_cmds_F77='$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'
18397         archive_expsym_cmds_F77='$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'
18398       fi
18399       archive_cmds_need_lc_F77='no'
18400       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18401       hardcode_libdir_separator_F77=:
18402       inherit_rpath_F77=yes
18403       link_all_deplibs_F77=yes
18404       ;;
18405
18406     netbsd* | netbsdelf*-gnu)
18407       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18408         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18409       else
18410         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18411       fi
18412       hardcode_libdir_flag_spec_F77='-R$libdir'
18413       hardcode_direct_F77=yes
18414       hardcode_shlibpath_var_F77=no
18415       ;;
18416
18417     newsos6)
18418       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18419       hardcode_direct_F77=yes
18420       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18421       hardcode_libdir_separator_F77=:
18422       hardcode_shlibpath_var_F77=no
18423       ;;
18424
18425     *nto* | *qnx*)
18426       ;;
18427
18428     openbsd*)
18429       if test -f /usr/libexec/ld.so; then
18430         hardcode_direct_F77=yes
18431         hardcode_shlibpath_var_F77=no
18432         hardcode_direct_absolute_F77=yes
18433         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18434           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18435           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18436           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18437           export_dynamic_flag_spec_F77='${wl}-E'
18438         else
18439           case $host_os in
18440            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18441              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18442              hardcode_libdir_flag_spec_F77='-R$libdir'
18443              ;;
18444            *)
18445              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18446              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18447              ;;
18448           esac
18449         fi
18450       else
18451         ld_shlibs_F77=no
18452       fi
18453       ;;
18454
18455     os2*)
18456       hardcode_libdir_flag_spec_F77='-L$libdir'
18457       hardcode_minus_L_F77=yes
18458       allow_undefined_flag_F77=unsupported
18459       archive_cmds_F77='$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'
18460       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18461       ;;
18462
18463     osf3*)
18464       if test "$GCC" = yes; then
18465         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18466         archive_cmds_F77='$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'
18467       else
18468         allow_undefined_flag_F77=' -expect_unresolved \*'
18469         archive_cmds_F77='$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'
18470       fi
18471       archive_cmds_need_lc_F77='no'
18472       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18473       hardcode_libdir_separator_F77=:
18474       ;;
18475
18476     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18477       if test "$GCC" = yes; then
18478         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18479         archive_cmds_F77='$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'
18480         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18481       else
18482         allow_undefined_flag_F77=' -expect_unresolved \*'
18483         archive_cmds_F77='$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'
18484         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18485         $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'
18486
18487         # Both c and cxx compiler support -rpath directly
18488         hardcode_libdir_flag_spec_F77='-rpath $libdir'
18489       fi
18490       archive_cmds_need_lc_F77='no'
18491       hardcode_libdir_separator_F77=:
18492       ;;
18493
18494     solaris*)
18495       no_undefined_flag_F77=' -z defs'
18496       if test "$GCC" = yes; then
18497         wlarc='${wl}'
18498         archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18499         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18500           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18501       else
18502         case `$CC -V 2>&1` in
18503         *"Compilers 5.0"*)
18504           wlarc=''
18505           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18506           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18507           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18508           ;;
18509         *)
18510           wlarc='${wl}'
18511           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18512           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18513           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18514           ;;
18515         esac
18516       fi
18517       hardcode_libdir_flag_spec_F77='-R$libdir'
18518       hardcode_shlibpath_var_F77=no
18519       case $host_os in
18520       solaris2.[0-5] | solaris2.[0-5].*) ;;
18521       *)
18522         # The compiler driver will combine and reorder linker options,
18523         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18524         # but is careful enough not to reorder.
18525         # Supported since Solaris 2.6 (maybe 2.5.1?)
18526         if test "$GCC" = yes; then
18527           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18528         else
18529           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18530         fi
18531         ;;
18532       esac
18533       link_all_deplibs_F77=yes
18534       ;;
18535
18536     sunos4*)
18537       if test "x$host_vendor" = xsequent; then
18538         # Use $CC to link under sequent, because it throws in some extra .o
18539         # files that make .init and .fini sections work.
18540         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18541       else
18542         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18543       fi
18544       hardcode_libdir_flag_spec_F77='-L$libdir'
18545       hardcode_direct_F77=yes
18546       hardcode_minus_L_F77=yes
18547       hardcode_shlibpath_var_F77=no
18548       ;;
18549
18550     sysv4)
18551       case $host_vendor in
18552         sni)
18553           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18554           hardcode_direct_F77=yes # is this really true???
18555         ;;
18556         siemens)
18557           ## LD is ld it makes a PLAMLIB
18558           ## CC just makes a GrossModule.
18559           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18560           reload_cmds_F77='$CC -r -o $output$reload_objs'
18561           hardcode_direct_F77=no
18562         ;;
18563         motorola)
18564           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18565           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18566         ;;
18567       esac
18568       runpath_var='LD_RUN_PATH'
18569       hardcode_shlibpath_var_F77=no
18570       ;;
18571
18572     sysv4.3*)
18573       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574       hardcode_shlibpath_var_F77=no
18575       export_dynamic_flag_spec_F77='-Bexport'
18576       ;;
18577
18578     sysv4*MP*)
18579       if test -d /usr/nec; then
18580         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18581         hardcode_shlibpath_var_F77=no
18582         runpath_var=LD_RUN_PATH
18583         hardcode_runpath_var=yes
18584         ld_shlibs_F77=yes
18585       fi
18586       ;;
18587
18588     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18589       no_undefined_flag_F77='${wl}-z,text'
18590       archive_cmds_need_lc_F77=no
18591       hardcode_shlibpath_var_F77=no
18592       runpath_var='LD_RUN_PATH'
18593
18594       if test "$GCC" = yes; then
18595         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18596         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18597       else
18598         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18599         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18600       fi
18601       ;;
18602
18603     sysv5* | sco3.2v5* | sco5v6*)
18604       # Note: We can NOT use -z defs as we might desire, because we do not
18605       # link with -lc, and that would cause any symbols used from libc to
18606       # always be unresolved, which means just about no library would
18607       # ever link correctly.  If we're not using GNU ld we use -z text
18608       # though, which does catch some bad symbols but isn't as heavy-handed
18609       # as -z defs.
18610       no_undefined_flag_F77='${wl}-z,text'
18611       allow_undefined_flag_F77='${wl}-z,nodefs'
18612       archive_cmds_need_lc_F77=no
18613       hardcode_shlibpath_var_F77=no
18614       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
18615       hardcode_libdir_separator_F77=':'
18616       link_all_deplibs_F77=yes
18617       export_dynamic_flag_spec_F77='${wl}-Bexport'
18618       runpath_var='LD_RUN_PATH'
18619
18620       if test "$GCC" = yes; then
18621         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18622         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18623       else
18624         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18625         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18626       fi
18627       ;;
18628
18629     uts4*)
18630       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631       hardcode_libdir_flag_spec_F77='-L$libdir'
18632       hardcode_shlibpath_var_F77=no
18633       ;;
18634
18635     *)
18636       ld_shlibs_F77=no
18637       ;;
18638     esac
18639
18640     if test x$host_vendor = xsni; then
18641       case $host in
18642       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18643         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
18644         ;;
18645       esac
18646     fi
18647   fi
18648
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
18650 $as_echo "$ld_shlibs_F77" >&6; }
18651 test "$ld_shlibs_F77" = no && can_build_shared=no
18652
18653 with_gnu_ld_F77=$with_gnu_ld
18654
18655
18656
18657
18658
18659
18660 #
18661 # Do we need to explicitly link libc?
18662 #
18663 case "x$archive_cmds_need_lc_F77" in
18664 x|xyes)
18665   # Assume -lc should be added
18666   archive_cmds_need_lc_F77=yes
18667
18668   if test "$enable_shared" = yes && test "$GCC" = yes; then
18669     case $archive_cmds_F77 in
18670     *'~'*)
18671       # FIXME: we may have to deal with multi-command sequences.
18672       ;;
18673     '$CC '*)
18674       # Test whether the compiler implicitly links with -lc since on some
18675       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18676       # to ld, don't add -lc before -lgcc.
18677       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18678 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18679       $RM conftest*
18680       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18681
18682       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18683   (eval $ac_compile) 2>&5
18684   ac_status=$?
18685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18686   test $ac_status = 0; } 2>conftest.err; then
18687         soname=conftest
18688         lib=conftest
18689         libobjs=conftest.$ac_objext
18690         deplibs=
18691         wl=$lt_prog_compiler_wl_F77
18692         pic_flag=$lt_prog_compiler_pic_F77
18693         compiler_flags=-v
18694         linker_flags=-v
18695         verstring=
18696         output_objdir=.
18697         libname=conftest
18698         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18699         allow_undefined_flag_F77=
18700         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18701   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18702   ac_status=$?
18703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704   test $ac_status = 0; }
18705         then
18706           archive_cmds_need_lc_F77=no
18707         else
18708           archive_cmds_need_lc_F77=yes
18709         fi
18710         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18711       else
18712         cat conftest.err 1>&5
18713       fi
18714       $RM conftest*
18715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
18716 $as_echo "$archive_cmds_need_lc_F77" >&6; }
18717       ;;
18718     esac
18719   fi
18720   ;;
18721 esac
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18788
18789 library_names_spec=
18790 libname_spec='lib$name'
18791 soname_spec=
18792 shrext_cmds=".so"
18793 postinstall_cmds=
18794 postuninstall_cmds=
18795 finish_cmds=
18796 finish_eval=
18797 shlibpath_var=
18798 shlibpath_overrides_runpath=unknown
18799 version_type=none
18800 dynamic_linker="$host_os ld.so"
18801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18802 need_lib_prefix=unknown
18803 hardcode_into_libs=no
18804
18805 # when you set need_version to no, make sure it does not cause -set_version
18806 # flags to be left without arguments
18807 need_version=unknown
18808
18809 case $host_os in
18810 aix3*)
18811   version_type=linux
18812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18813   shlibpath_var=LIBPATH
18814
18815   # AIX 3 has no versioning support, so we append a major version to the name.
18816   soname_spec='${libname}${release}${shared_ext}$major'
18817   ;;
18818
18819 aix[4-9]*)
18820   version_type=linux
18821   need_lib_prefix=no
18822   need_version=no
18823   hardcode_into_libs=yes
18824   if test "$host_cpu" = ia64; then
18825     # AIX 5 supports IA64
18826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18827     shlibpath_var=LD_LIBRARY_PATH
18828   else
18829     # With GCC up to 2.95.x, collect2 would create an import file
18830     # for dependence libraries.  The import file would start with
18831     # the line `#! .'.  This would cause the generated library to
18832     # depend on `.', always an invalid library.  This was fixed in
18833     # development snapshots of GCC prior to 3.0.
18834     case $host_os in
18835       aix4 | aix4.[01] | aix4.[01].*)
18836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18837            echo ' yes '
18838            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18839         :
18840       else
18841         can_build_shared=no
18842       fi
18843       ;;
18844     esac
18845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18846     # soname into executable. Probably we can add versioning support to
18847     # collect2, so additional links can be useful in future.
18848     if test "$aix_use_runtimelinking" = yes; then
18849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18850       # instead of lib<name>.a to let people know that these are not
18851       # typical AIX shared libraries.
18852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18853     else
18854       # We preserve .a as extension for shared libraries through AIX4.2
18855       # and later when we are not doing run time linking.
18856       library_names_spec='${libname}${release}.a $libname.a'
18857       soname_spec='${libname}${release}${shared_ext}$major'
18858     fi
18859     shlibpath_var=LIBPATH
18860   fi
18861   ;;
18862
18863 amigaos*)
18864   case $host_cpu in
18865   powerpc)
18866     # Since July 2007 AmigaOS4 officially supports .so libraries.
18867     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869     ;;
18870   m68k)
18871     library_names_spec='$libname.ixlibrary $libname.a'
18872     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18873     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'
18874     ;;
18875   esac
18876   ;;
18877
18878 beos*)
18879   library_names_spec='${libname}${shared_ext}'
18880   dynamic_linker="$host_os ld.so"
18881   shlibpath_var=LIBRARY_PATH
18882   ;;
18883
18884 bsdi[45]*)
18885   version_type=linux
18886   need_version=no
18887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888   soname_spec='${libname}${release}${shared_ext}$major'
18889   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18890   shlibpath_var=LD_LIBRARY_PATH
18891   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18892   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18893   # the default ld.so.conf also contains /usr/contrib/lib and
18894   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18895   # libtool to hard-code these into programs
18896   ;;
18897
18898 cygwin* | mingw* | pw32* | cegcc*)
18899   version_type=windows
18900   shrext_cmds=".dll"
18901   need_version=no
18902   need_lib_prefix=no
18903
18904   case $GCC,$host_os in
18905   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18906     library_names_spec='$libname.dll.a'
18907     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18908     postinstall_cmds='base_file=`basename \${file}`~
18909       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18910       dldir=$destdir/`dirname \$dlpath`~
18911       test -d \$dldir || mkdir -p \$dldir~
18912       $install_prog $dir/$dlname \$dldir/$dlname~
18913       chmod a+x \$dldir/$dlname~
18914       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18915         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18916       fi'
18917     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18918       dlpath=$dir/\$dldll~
18919        $RM \$dlpath'
18920     shlibpath_overrides_runpath=yes
18921
18922     case $host_os in
18923     cygwin*)
18924       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18925       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18926       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18927       ;;
18928     mingw* | cegcc*)
18929       # MinGW DLLs use traditional 'lib' prefix
18930       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18931       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18932       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18933         # It is most probably a Windows format PATH printed by
18934         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18935         # path with ; separators, and with drive letters. We can handle the
18936         # drive letters (cygwin fileutils understands them), so leave them,
18937         # especially as we might pass files found there to a mingw objdump,
18938         # which wouldn't understand a cygwinified path. Ahh.
18939         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18940       else
18941         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18942       fi
18943       ;;
18944     pw32*)
18945       # pw32 DLLs use 'pw' prefix rather than 'lib'
18946       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18947       ;;
18948     esac
18949     ;;
18950
18951   *)
18952     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18953     ;;
18954   esac
18955   dynamic_linker='Win32 ld.exe'
18956   # FIXME: first we should search . and the directory the executable is in
18957   shlibpath_var=PATH
18958   ;;
18959
18960 darwin* | rhapsody*)
18961   dynamic_linker="$host_os dyld"
18962   version_type=darwin
18963   need_lib_prefix=no
18964   need_version=no
18965   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18966   soname_spec='${libname}${release}${major}$shared_ext'
18967   shlibpath_overrides_runpath=yes
18968   shlibpath_var=DYLD_LIBRARY_PATH
18969   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18970
18971   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18972   ;;
18973
18974 dgux*)
18975   version_type=linux
18976   need_lib_prefix=no
18977   need_version=no
18978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18979   soname_spec='${libname}${release}${shared_ext}$major'
18980   shlibpath_var=LD_LIBRARY_PATH
18981   ;;
18982
18983 freebsd1*)
18984   dynamic_linker=no
18985   ;;
18986
18987 freebsd* | dragonfly*)
18988   # DragonFly does not have aout.  When/if they implement a new
18989   # versioning mechanism, adjust this.
18990   if test -x /usr/bin/objformat; then
18991     objformat=`/usr/bin/objformat`
18992   else
18993     case $host_os in
18994     freebsd[123]*) objformat=aout ;;
18995     *) objformat=elf ;;
18996     esac
18997   fi
18998   version_type=freebsd-$objformat
18999   case $version_type in
19000     freebsd-elf*)
19001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19002       need_version=no
19003       need_lib_prefix=no
19004       ;;
19005     freebsd-*)
19006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19007       need_version=yes
19008       ;;
19009   esac
19010   shlibpath_var=LD_LIBRARY_PATH
19011   case $host_os in
19012   freebsd2*)
19013     shlibpath_overrides_runpath=yes
19014     ;;
19015   freebsd3.[01]* | freebsdelf3.[01]*)
19016     shlibpath_overrides_runpath=yes
19017     hardcode_into_libs=yes
19018     ;;
19019   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19020   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19021     shlibpath_overrides_runpath=no
19022     hardcode_into_libs=yes
19023     ;;
19024   *) # from 4.6 on, and DragonFly
19025     shlibpath_overrides_runpath=yes
19026     hardcode_into_libs=yes
19027     ;;
19028   esac
19029   ;;
19030
19031 gnu*)
19032   version_type=linux
19033   need_lib_prefix=no
19034   need_version=no
19035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19036   soname_spec='${libname}${release}${shared_ext}$major'
19037   shlibpath_var=LD_LIBRARY_PATH
19038   hardcode_into_libs=yes
19039   ;;
19040
19041 hpux9* | hpux10* | hpux11*)
19042   # Give a soname corresponding to the major version so that dld.sl refuses to
19043   # link against other versions.
19044   version_type=sunos
19045   need_lib_prefix=no
19046   need_version=no
19047   case $host_cpu in
19048   ia64*)
19049     shrext_cmds='.so'
19050     hardcode_into_libs=yes
19051     dynamic_linker="$host_os dld.so"
19052     shlibpath_var=LD_LIBRARY_PATH
19053     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055     soname_spec='${libname}${release}${shared_ext}$major'
19056     if test "X$HPUX_IA64_MODE" = X32; then
19057       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19058     else
19059       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19060     fi
19061     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19062     ;;
19063   hppa*64*)
19064     shrext_cmds='.sl'
19065     hardcode_into_libs=yes
19066     dynamic_linker="$host_os dld.sl"
19067     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19068     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070     soname_spec='${libname}${release}${shared_ext}$major'
19071     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19073     ;;
19074   *)
19075     shrext_cmds='.sl'
19076     dynamic_linker="$host_os dld.sl"
19077     shlibpath_var=SHLIB_PATH
19078     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080     soname_spec='${libname}${release}${shared_ext}$major'
19081     ;;
19082   esac
19083   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19084   postinstall_cmds='chmod 555 $lib'
19085   ;;
19086
19087 interix[3-9]*)
19088   version_type=linux
19089   need_lib_prefix=no
19090   need_version=no
19091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19092   soname_spec='${libname}${release}${shared_ext}$major'
19093   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19094   shlibpath_var=LD_LIBRARY_PATH
19095   shlibpath_overrides_runpath=no
19096   hardcode_into_libs=yes
19097   ;;
19098
19099 irix5* | irix6* | nonstopux*)
19100   case $host_os in
19101     nonstopux*) version_type=nonstopux ;;
19102     *)
19103         if test "$lt_cv_prog_gnu_ld" = yes; then
19104                 version_type=linux
19105         else
19106                 version_type=irix
19107         fi ;;
19108   esac
19109   need_lib_prefix=no
19110   need_version=no
19111   soname_spec='${libname}${release}${shared_ext}$major'
19112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19113   case $host_os in
19114   irix5* | nonstopux*)
19115     libsuff= shlibsuff=
19116     ;;
19117   *)
19118     case $LD in # libtool.m4 will add one of these switches to LD
19119     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19120       libsuff= shlibsuff= libmagic=32-bit;;
19121     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19122       libsuff=32 shlibsuff=N32 libmagic=N32;;
19123     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19124       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19125     *) libsuff= shlibsuff= libmagic=never-match;;
19126     esac
19127     ;;
19128   esac
19129   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19130   shlibpath_overrides_runpath=no
19131   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19132   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19133   hardcode_into_libs=yes
19134   ;;
19135
19136 # No shared lib support for Linux oldld, aout, or coff.
19137 linux*oldld* | linux*aout* | linux*coff*)
19138   dynamic_linker=no
19139   ;;
19140
19141 # This must be Linux ELF.
19142 linux* | k*bsd*-gnu)
19143   version_type=linux
19144   need_lib_prefix=no
19145   need_version=no
19146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19147   soname_spec='${libname}${release}${shared_ext}$major'
19148   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19149   shlibpath_var=LD_LIBRARY_PATH
19150   shlibpath_overrides_runpath=no
19151   # Some binutils ld are patched to set DT_RUNPATH
19152   save_LDFLAGS=$LDFLAGS
19153   save_libdir=$libdir
19154   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
19155        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
19156   cat > conftest.$ac_ext <<_ACEOF
19157       program main
19158
19159       end
19160 _ACEOF
19161 if ac_fn_f77_try_link "$LINENO"; then :
19162   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19163   shlibpath_overrides_runpath=yes
19164 fi
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext \
19167     conftest$ac_exeext conftest.$ac_ext
19168   LDFLAGS=$save_LDFLAGS
19169   libdir=$save_libdir
19170
19171   # This implies no fast_install, which is unacceptable.
19172   # Some rework will be needed to allow for fast_install
19173   # before this can be enabled.
19174   hardcode_into_libs=yes
19175
19176   # Append ld.so.conf contents to the search path
19177   if test -f /etc/ld.so.conf; then
19178     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' ' '`
19179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19180   fi
19181
19182   # We used to test for /lib/ld.so.1 and disable shared libraries on
19183   # powerpc, because MkLinux only supported shared libraries with the
19184   # GNU dynamic linker.  Since this was broken with cross compilers,
19185   # most powerpc-linux boxes support dynamic linking these days and
19186   # people can always --disable-shared, the test was removed, and we
19187   # assume the GNU/Linux dynamic linker is in use.
19188   dynamic_linker='GNU/Linux ld.so'
19189   ;;
19190
19191 netbsdelf*-gnu)
19192   version_type=linux
19193   need_lib_prefix=no
19194   need_version=no
19195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19196   soname_spec='${libname}${release}${shared_ext}$major'
19197   shlibpath_var=LD_LIBRARY_PATH
19198   shlibpath_overrides_runpath=no
19199   hardcode_into_libs=yes
19200   dynamic_linker='NetBSD ld.elf_so'
19201   ;;
19202
19203 netbsd*)
19204   version_type=sunos
19205   need_lib_prefix=no
19206   need_version=no
19207   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19209     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19210     dynamic_linker='NetBSD (a.out) ld.so'
19211   else
19212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19213     soname_spec='${libname}${release}${shared_ext}$major'
19214     dynamic_linker='NetBSD ld.elf_so'
19215   fi
19216   shlibpath_var=LD_LIBRARY_PATH
19217   shlibpath_overrides_runpath=yes
19218   hardcode_into_libs=yes
19219   ;;
19220
19221 newsos6)
19222   version_type=linux
19223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224   shlibpath_var=LD_LIBRARY_PATH
19225   shlibpath_overrides_runpath=yes
19226   ;;
19227
19228 *nto* | *qnx*)
19229   version_type=qnx
19230   need_lib_prefix=no
19231   need_version=no
19232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19233   soname_spec='${libname}${release}${shared_ext}$major'
19234   shlibpath_var=LD_LIBRARY_PATH
19235   shlibpath_overrides_runpath=no
19236   hardcode_into_libs=yes
19237   dynamic_linker='ldqnx.so'
19238   ;;
19239
19240 openbsd*)
19241   version_type=sunos
19242   sys_lib_dlsearch_path_spec="/usr/lib"
19243   need_lib_prefix=no
19244   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19245   case $host_os in
19246     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19247     *)                          need_version=no  ;;
19248   esac
19249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19251   shlibpath_var=LD_LIBRARY_PATH
19252   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19253     case $host_os in
19254       openbsd2.[89] | openbsd2.[89].*)
19255         shlibpath_overrides_runpath=no
19256         ;;
19257       *)
19258         shlibpath_overrides_runpath=yes
19259         ;;
19260       esac
19261   else
19262     shlibpath_overrides_runpath=yes
19263   fi
19264   ;;
19265
19266 os2*)
19267   libname_spec='$name'
19268   shrext_cmds=".dll"
19269   need_lib_prefix=no
19270   library_names_spec='$libname${shared_ext} $libname.a'
19271   dynamic_linker='OS/2 ld.exe'
19272   shlibpath_var=LIBPATH
19273   ;;
19274
19275 osf3* | osf4* | osf5*)
19276   version_type=osf
19277   need_lib_prefix=no
19278   need_version=no
19279   soname_spec='${libname}${release}${shared_ext}$major'
19280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19281   shlibpath_var=LD_LIBRARY_PATH
19282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19284   ;;
19285
19286 rdos*)
19287   dynamic_linker=no
19288   ;;
19289
19290 solaris*)
19291   version_type=linux
19292   need_lib_prefix=no
19293   need_version=no
19294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19295   soname_spec='${libname}${release}${shared_ext}$major'
19296   shlibpath_var=LD_LIBRARY_PATH
19297   shlibpath_overrides_runpath=yes
19298   hardcode_into_libs=yes
19299   # ldd complains unless libraries are executable
19300   postinstall_cmds='chmod +x $lib'
19301   ;;
19302
19303 sunos4*)
19304   version_type=sunos
19305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19306   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19307   shlibpath_var=LD_LIBRARY_PATH
19308   shlibpath_overrides_runpath=yes
19309   if test "$with_gnu_ld" = yes; then
19310     need_lib_prefix=no
19311   fi
19312   need_version=yes
19313   ;;
19314
19315 sysv4 | sysv4.3*)
19316   version_type=linux
19317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19318   soname_spec='${libname}${release}${shared_ext}$major'
19319   shlibpath_var=LD_LIBRARY_PATH
19320   case $host_vendor in
19321     sni)
19322       shlibpath_overrides_runpath=no
19323       need_lib_prefix=no
19324       runpath_var=LD_RUN_PATH
19325       ;;
19326     siemens)
19327       need_lib_prefix=no
19328       ;;
19329     motorola)
19330       need_lib_prefix=no
19331       need_version=no
19332       shlibpath_overrides_runpath=no
19333       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19334       ;;
19335   esac
19336   ;;
19337
19338 sysv4*MP*)
19339   if test -d /usr/nec ;then
19340     version_type=linux
19341     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19342     soname_spec='$libname${shared_ext}.$major'
19343     shlibpath_var=LD_LIBRARY_PATH
19344   fi
19345   ;;
19346
19347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19348   version_type=freebsd-elf
19349   need_lib_prefix=no
19350   need_version=no
19351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19352   soname_spec='${libname}${release}${shared_ext}$major'
19353   shlibpath_var=LD_LIBRARY_PATH
19354   shlibpath_overrides_runpath=yes
19355   hardcode_into_libs=yes
19356   if test "$with_gnu_ld" = yes; then
19357     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19358   else
19359     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19360     case $host_os in
19361       sco3.2v5*)
19362         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19363         ;;
19364     esac
19365   fi
19366   sys_lib_dlsearch_path_spec='/usr/lib'
19367   ;;
19368
19369 tpf*)
19370   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19371   version_type=linux
19372   need_lib_prefix=no
19373   need_version=no
19374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19375   shlibpath_var=LD_LIBRARY_PATH
19376   shlibpath_overrides_runpath=no
19377   hardcode_into_libs=yes
19378   ;;
19379
19380 uts4*)
19381   version_type=linux
19382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19383   soname_spec='${libname}${release}${shared_ext}$major'
19384   shlibpath_var=LD_LIBRARY_PATH
19385   ;;
19386
19387 *)
19388   dynamic_linker=no
19389   ;;
19390 esac
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19392 $as_echo "$dynamic_linker" >&6; }
19393 test "$dynamic_linker" = no && can_build_shared=no
19394
19395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19396 if test "$GCC" = yes; then
19397   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19398 fi
19399
19400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19401   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19402 fi
19403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19404   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19405 fi
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19443 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19444 hardcode_action_F77=
19445 if test -n "$hardcode_libdir_flag_spec_F77" ||
19446    test -n "$runpath_var_F77" ||
19447    test "X$hardcode_automatic_F77" = "Xyes" ; then
19448
19449   # We can hardcode non-existent directories.
19450   if test "$hardcode_direct_F77" != no &&
19451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19452      # have to relink, otherwise we might link with an installed library
19453      # when we should be linking with a yet-to-be-installed one
19454      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19455      test "$hardcode_minus_L_F77" != no; then
19456     # Linking always hardcodes the temporary library directory.
19457     hardcode_action_F77=relink
19458   else
19459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19460     hardcode_action_F77=immediate
19461   fi
19462 else
19463   # We cannot hardcode anything, or else we can only hardcode existing
19464   # directories.
19465   hardcode_action_F77=unsupported
19466 fi
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
19468 $as_echo "$hardcode_action_F77" >&6; }
19469
19470 if test "$hardcode_action_F77" = relink ||
19471    test "$inherit_rpath_F77" = yes; then
19472   # Fast installation is not supported
19473   enable_fast_install=no
19474 elif test "$shlibpath_overrides_runpath" = yes ||
19475      test "$enable_shared" = no; then
19476   # Fast installation is not necessary
19477   enable_fast_install=needless
19478 fi
19479
19480
19481
19482
19483
19484
19485
19486   fi # test -n "$compiler"
19487
19488   GCC=$lt_save_GCC
19489   CC="$lt_save_CC"
19490 fi # test "$_lt_disable_F77" != yes
19491
19492 ac_ext=c
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497
19498
19499         ac_ext=f
19500 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19501 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19502 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
19504 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
19505 if test "${ac_cv_prog_f77_v+set}" = set; then :
19506   $as_echo_n "(cached) " >&6
19507 else
19508   cat > conftest.$ac_ext <<_ACEOF
19509       program main
19510
19511       end
19512 _ACEOF
19513 if ac_fn_f77_try_compile "$LINENO"; then :
19514   ac_cv_prog_f77_v=
19515 # Try some options frequently used verbose output
19516 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
19517   cat > conftest.$ac_ext <<_ACEOF
19518       program main
19519
19520       end
19521 _ACEOF
19522
19523 # Compile and link our simple test program by passing a flag (argument
19524 # 1 to this macro) to the Fortran compiler in order to get
19525 # "verbose" output that we can then parse for the Fortran linker
19526 # flags.
19527 ac_save_FFLAGS=$FFLAGS
19528 FFLAGS="$FFLAGS $ac_verb"
19529 eval "set x $ac_link"
19530 shift
19531 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
19532 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
19533 # LIBRARY_PATH; skip all such settings.
19534 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
19535   grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
19536 $as_echo "$ac_f77_v_output" >&5
19537 FFLAGS=$ac_save_FFLAGS
19538
19539 rm -rf conftest*
19540
19541 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
19542 # /foo, /bar, and /baz are search directories for the Fortran linker.
19543 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
19544 ac_f77_v_output="`echo $ac_f77_v_output |
19545         grep 'LPATH is:' |
19546         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
19547
19548 # FIXME: we keep getting bitten by quoted arguments; a more general fix
19549 #        that detects unbalanced quotes in FLIBS should be implemented
19550 #        and (ugh) tested at some point.
19551 case $ac_f77_v_output in
19552   # If we are using xlf then replace all the commas with spaces.
19553   *xlfentry*)
19554     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
19555
19556   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
19557   # $LIBS confuse us, and the libraries appear later in the output anyway).
19558   *mGLOB_options_string*)
19559     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
19560
19561   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
19562   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
19563   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
19564   *-cmdline\ * | *-ignore\ * | *-def\ *)
19565     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
19566         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
19567         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
19568         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
19569
19570   # If we are using Cray Fortran then delete quotes.
19571   *cft90*)
19572     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
19573 esac
19574
19575
19576   # look for -l* and *.a constructs in the output
19577   for ac_arg in $ac_f77_v_output; do
19578      case $ac_arg in
19579         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
19580           ac_cv_prog_f77_v=$ac_verb
19581           break 2 ;;
19582      esac
19583   done
19584 done
19585 if test -z "$ac_cv_prog_f77_v"; then
19586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
19587 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
19588 fi
19589 else
19590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
19591 $as_echo "$as_me: WARNING: compilation failed" >&2;}
19592 fi
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594
19595 fi
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
19597 $as_echo "$ac_cv_prog_f77_v" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
19599 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
19600 if test "${ac_cv_f77_libs+set}" = set; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   if test "x$FLIBS" != "x"; then
19604   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
19605 else
19606
19607 cat > conftest.$ac_ext <<_ACEOF
19608       program main
19609
19610       end
19611 _ACEOF
19612
19613 # Compile and link our simple test program by passing a flag (argument
19614 # 1 to this macro) to the Fortran compiler in order to get
19615 # "verbose" output that we can then parse for the Fortran linker
19616 # flags.
19617 ac_save_FFLAGS=$FFLAGS
19618 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
19619 eval "set x $ac_link"
19620 shift
19621 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
19622 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
19623 # LIBRARY_PATH; skip all such settings.
19624 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
19625   grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
19626 $as_echo "$ac_f77_v_output" >&5
19627 FFLAGS=$ac_save_FFLAGS
19628
19629 rm -rf conftest*
19630
19631 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
19632 # /foo, /bar, and /baz are search directories for the Fortran linker.
19633 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
19634 ac_f77_v_output="`echo $ac_f77_v_output |
19635         grep 'LPATH is:' |
19636         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
19637
19638 # FIXME: we keep getting bitten by quoted arguments; a more general fix
19639 #        that detects unbalanced quotes in FLIBS should be implemented
19640 #        and (ugh) tested at some point.
19641 case $ac_f77_v_output in
19642   # If we are using xlf then replace all the commas with spaces.
19643   *xlfentry*)
19644     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
19645
19646   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
19647   # $LIBS confuse us, and the libraries appear later in the output anyway).
19648   *mGLOB_options_string*)
19649     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
19650
19651   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
19652   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
19653   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
19654   *-cmdline\ * | *-ignore\ * | *-def\ *)
19655     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
19656         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
19657         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
19658         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
19659
19660   # If we are using Cray Fortran then delete quotes.
19661   *cft90*)
19662     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
19663 esac
19664
19665
19666
19667 ac_cv_f77_libs=
19668
19669 # Save positional arguments (if any)
19670 ac_save_positional="$@"
19671
19672 set X $ac_f77_v_output
19673 while test $# != 1; do
19674   shift
19675   ac_arg=$1
19676   case $ac_arg in
19677         [\\/]*.a | ?:[\\/]*.a)
19678             ac_exists=false
19679   for ac_i in $ac_cv_f77_libs; do
19680     if test x"$ac_arg" = x"$ac_i"; then
19681       ac_exists=true
19682       break
19683     fi
19684   done
19685
19686   if test x"$ac_exists" = xtrue; then :
19687
19688 else
19689   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
19690 fi
19691           ;;
19692         -bI:*)
19693             ac_exists=false
19694   for ac_i in $ac_cv_f77_libs; do
19695     if test x"$ac_arg" = x"$ac_i"; then
19696       ac_exists=true
19697       break
19698     fi
19699   done
19700
19701   if test x"$ac_exists" = xtrue; then :
19702
19703 else
19704   if test "$ac_compiler_gnu" = yes; then
19705   for ac_link_opt in $ac_arg; do
19706     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
19707   done
19708 else
19709   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
19710 fi
19711 fi
19712           ;;
19713           # Ignore these flags.
19714         -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
19715           |-LANG:=* | -LIST:* | -LNO:*)
19716           ;;
19717         -lkernel32)
19718           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
19719           ;;
19720         -[LRuYz])
19721           # These flags, when seen by themselves, take an argument.
19722           # We remove the space between option and argument and re-iterate
19723           # unless we find an empty arg or a new option (starting with -)
19724           case $2 in
19725              "" | -*);;
19726              *)
19727                 ac_arg="$ac_arg$2"
19728                 shift; shift
19729                 set X $ac_arg "$@"
19730                 ;;
19731           esac
19732           ;;
19733         -YP,*)
19734           for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
19735               ac_exists=false
19736   for ac_i in $ac_cv_f77_libs; do
19737     if test x"$ac_j" = x"$ac_i"; then
19738       ac_exists=true
19739       break
19740     fi
19741   done
19742
19743   if test x"$ac_exists" = xtrue; then :
19744
19745 else
19746   ac_arg="$ac_arg $ac_j"
19747                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
19748 fi
19749           done
19750           ;;
19751         -[lLR]*)
19752             ac_exists=false
19753   for ac_i in $ac_cv_f77_libs; do
19754     if test x"$ac_arg" = x"$ac_i"; then
19755       ac_exists=true
19756       break
19757     fi
19758   done
19759
19760   if test x"$ac_exists" = xtrue; then :
19761
19762 else
19763   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
19764 fi
19765           ;;
19766         -zallextract*| -zdefaultextract)
19767           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
19768           ;;
19769           # Ignore everything else.
19770   esac
19771 done
19772 # restore positional arguments
19773 set X $ac_save_positional; shift
19774
19775 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
19776 # then we insist that the "run path" must be an absolute path (i.e. it
19777 # must begin with a "/").
19778 case `(uname -sr) 2>/dev/null` in
19779    "SunOS 5"*)
19780       ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
19781                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
19782       test "x$ac_ld_run_path" != x &&
19783         if test "$ac_compiler_gnu" = yes; then
19784   for ac_link_opt in $ac_ld_run_path; do
19785     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
19786   done
19787 else
19788   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
19789 fi
19790       ;;
19791 esac
19792 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
19793
19794 fi
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
19796 $as_echo "$ac_cv_f77_libs" >&6; }
19797 FLIBS="$ac_cv_f77_libs"
19798
19799
19800 ac_ext=c
19801 ac_cpp='$CPP $CPPFLAGS'
19802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19805
19806     fi
19807
19808
19809
19810
19811         no_undefined=""
19812         case "${host_os}" in
19813                 *mingw* | *cygwin*)
19814
19815                 # on MinGW/Cygwin extra LDFLAGS are required
19816                 no_undefined="-no-undefined"
19817                 ;;
19818         esac
19819         NO_UNDEFINED=$no_undefined
19820
19821
19822
19823
19824
19825
19826         # Find any Python interpreter.
19827     if test -z "$PYTHON"; then
19828       for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
19829 do
19830   # Extract the first word of "$ac_prog", so it can be a program name with args.
19831 set dummy $ac_prog; ac_word=$2
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19833 $as_echo_n "checking for $ac_word... " >&6; }
19834 if test "${ac_cv_path_PYTHON+set}" = set; then :
19835   $as_echo_n "(cached) " >&6
19836 else
19837   case $PYTHON in
19838   [\\/]* | ?:[\\/]*)
19839   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19840   ;;
19841   *)
19842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19843 for as_dir in $PATH
19844 do
19845   IFS=$as_save_IFS
19846   test -z "$as_dir" && as_dir=.
19847     for ac_exec_ext in '' $ac_executable_extensions; do
19848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19849     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19851     break 2
19852   fi
19853 done
19854   done
19855 IFS=$as_save_IFS
19856
19857   ;;
19858 esac
19859 fi
19860 PYTHON=$ac_cv_path_PYTHON
19861 if test -n "$PYTHON"; then
19862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19863 $as_echo "$PYTHON" >&6; }
19864 else
19865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19866 $as_echo "no" >&6; }
19867 fi
19868
19869
19870   test -n "$PYTHON" && break
19871 done
19872 test -n "$PYTHON" || PYTHON=":"
19873
19874     fi
19875     am_display_PYTHON=python
19876
19877
19878   if test "$PYTHON" = :; then
19879       as_fn_error "no suitable Python interpreter found" "$LINENO" 5
19880   else
19881
19882
19883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19884 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19885 if test "${am_cv_python_version+set}" = set; then :
19886   $as_echo_n "(cached) " >&6
19887 else
19888   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19889 fi
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19891 $as_echo "$am_cv_python_version" >&6; }
19892   PYTHON_VERSION=$am_cv_python_version
19893
19894
19895
19896   PYTHON_PREFIX='${prefix}'
19897
19898   PYTHON_EXEC_PREFIX='${exec_prefix}'
19899
19900
19901
19902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19903 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19904 if test "${am_cv_python_platform+set}" = set; then :
19905   $as_echo_n "(cached) " >&6
19906 else
19907   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19908 fi
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19910 $as_echo "$am_cv_python_platform" >&6; }
19911   PYTHON_PLATFORM=$am_cv_python_platform
19912
19913
19914
19915
19916                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19917 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19918 if test "${am_cv_python_pythondir+set}" = set; then :
19919   $as_echo_n "(cached) " >&6
19920 else
19921   if test "x$prefix" = xNONE
19922      then
19923        am_py_prefix=$ac_default_prefix
19924      else
19925        am_py_prefix=$prefix
19926      fi
19927      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
19928      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19929      case $am_cv_python_pythondir in
19930      $am_py_prefix*)
19931        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19932        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19933        ;;
19934      *)
19935        case $am_py_prefix in
19936          /usr|/System*) ;;
19937          *)
19938           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19939           ;;
19940        esac
19941        ;;
19942      esac
19943
19944 fi
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19946 $as_echo "$am_cv_python_pythondir" >&6; }
19947   pythondir=$am_cv_python_pythondir
19948
19949
19950
19951   pkgpythondir=\${pythondir}/$PACKAGE
19952
19953
19954             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19955 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19956 if test "${am_cv_python_pyexecdir+set}" = set; then :
19957   $as_echo_n "(cached) " >&6
19958 else
19959   if test "x$exec_prefix" = xNONE
19960      then
19961        am_py_exec_prefix=$am_py_prefix
19962      else
19963        am_py_exec_prefix=$exec_prefix
19964      fi
19965      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
19966      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
19967      case $am_cv_python_pyexecdir in
19968      $am_py_exec_prefix*)
19969        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19970        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19971        ;;
19972      *)
19973        case $am_py_exec_prefix in
19974          /usr|/System*) ;;
19975          *)
19976            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19977            ;;
19978        esac
19979        ;;
19980      esac
19981
19982 fi
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19984 $as_echo "$am_cv_python_pyexecdir" >&6; }
19985   pyexecdir=$am_cv_python_pyexecdir
19986
19987
19988
19989   pkgpyexecdir=\${pyexecdir}/$PACKAGE
19990
19991
19992
19993   fi
19994
19995
19996
19997
19998
19999
20000
20001 # Check whether --with-pythondir was given.
20002 if test "${with_pythondir+set}" = set; then :
20003   withval=$with_pythondir; with_pythondir=${withval}
20004 else
20005   with_pythondir=${prefix}/lib/python2.5/site-packages
20006 fi
20007
20008
20009         # if we're cross-compiling, asking the host python about any of
20010         # this is completely useless...
20011
20012         if test x$cross_compiling != xno
20013         then
20014                 pythondir=$with_pythondir
20015                 pyexecdir=$with_pythondir
20016
20017
20018         else
20019
20020             # For Fedora Core 5 and 6, see ticket:39 in Trac
20021             if test -f '/etc/redhat-release'; then
20022                     if  (echo $pyexecdir | grep -q lib64); then
20023                             pythondir="$pyexecdir"
20024                     fi
20025             fi
20026
20027             # Check for Python include path
20028             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20029 $as_echo_n "checking for Python include path... " >&6; }
20030             if test -z "$PYTHON" ; then
20031                     as_fn_error "cannot find Python path" "$LINENO" 5
20032             fi
20033
20034             # ask distutils which include path we should use
20035             python_cmd='
20036 import distutils.sysconfig
20037 import os
20038 path = distutils.sysconfig.get_python_inc(plat_specific=False)
20039 if os.sep == "\\":
20040   path = path.replace("\\", "/")
20041 print path
20042 '
20043             python_path=`$PYTHON -c "$python_cmd"`
20044             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_path" >&5
20045 $as_echo "$python_path" >&6; }
20046             if test -z "$python_path" ; then
20047                     as_fn_error "cannot find Python include path" "$LINENO" 5
20048             fi
20049
20050             PYTHON_CPPFLAGS=-I$python_path
20051
20052
20053             # Check for Python headers usability
20054             python_save_CPPFLAGS=$CPPFLAGS
20055             CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
20056             for ac_header in Python.h
20057 do :
20058   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
20059 if test "x$ac_cv_header_Python_h" = x""yes; then :
20060   cat >>confdefs.h <<_ACEOF
20061 #define HAVE_PYTHON_H 1
20062 _ACEOF
20063
20064 else
20065   as_fn_error "cannot find usable Python headers" "$LINENO" 5
20066 fi
20067
20068 done
20069
20070             CPPFLAGS="$python_save_CPPFLAGS"
20071
20072             # Only set this on mingw and cygwin hosts, (only implemented
20073             # for mingw host, for crosscompiling you need to trick this)
20074
20075             PYTHON_LDFLAGS=""
20076             case $host_os in
20077                  *mingw* | *cygwin* )
20078               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5
20079 $as_echo_n "checking for Python LDFLAGS... " >&6; }
20080
20081             python_cmd='
20082 import distutils.sysconfig
20083 import os
20084 path = distutils.sysconfig.get_config_var("LIBPL")
20085 if path == None:
20086   path = distutils.sysconfig.PREFIX + "/libs"
20087 if os.sep == "\\":
20088   path = path.replace("\\", "/")
20089 print path
20090 '
20091               python_stdlib_path=`$PYTHON -c "$python_cmd"`
20092
20093               python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
20094               libpython_name="python$PYTHON_VERSION"
20095
20096               # Standard install of python for win32 has libpython24.a
20097               # instead of libpython2.4.a so we check for the library
20098               # without the dot in the version number.
20099
20100               python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
20101               if test -n "$python_stdlib_filename" ; then
20102                     libpython_name="python$python_version_nodot"
20103               fi
20104
20105               PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
20106               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20107 $as_echo "$PYTHON_LDFLAGS" >&6; }
20108               # Replace all backslashes in PYTHON Paths with forward slashes
20109               pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
20110               pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
20111               pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
20112               pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
20113               ;;
20114             esac
20115
20116
20117         fi
20118
20119
20120
20121
20122
20123
20124
20125
20126         # Extract the first word of "swig", so it can be a program name with args.
20127 set dummy swig; ac_word=$2
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20129 $as_echo_n "checking for $ac_word... " >&6; }
20130 if test "${ac_cv_prog_SWIG+set}" = set; then :
20131   $as_echo_n "(cached) " >&6
20132 else
20133   if test -n "$SWIG"; then
20134   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
20135 else
20136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137 for as_dir in $PATH
20138 do
20139   IFS=$as_save_IFS
20140   test -z "$as_dir" && as_dir=.
20141     for ac_exec_ext in '' $ac_executable_extensions; do
20142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20143     ac_cv_prog_SWIG="`which swig`"
20144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20145     break 2
20146   fi
20147 done
20148   done
20149 IFS=$as_save_IFS
20150
20151 fi
20152 fi
20153 SWIG=$ac_cv_prog_SWIG
20154 if test -n "$SWIG"; then
20155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
20156 $as_echo "$SWIG" >&6; }
20157 else
20158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20159 $as_echo "no" >&6; }
20160 fi
20161
20162
20163         if test -z "$SWIG" ; then
20164                 as_fn_error "Cannot find 'swig' program.  SWIG version >= 1.3.31 required" "$LINENO" 5
20165                 SWIG=false
20166         elif test -n "1.3.31" ; then
20167                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
20168 $as_echo_n "checking for SWIG version... " >&6; }
20169                 swig_version=`$SWIG -version 2>&1 | \
20170                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
20171                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
20172 $as_echo "$swig_version" >&6; }
20173                 if test -n "$swig_version" ; then
20174                         swig_version=`echo $swig_version | \
20175                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
20176                         swig_required_version=`echo 1.3.31 | \
20177                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
20178                         if test $swig_required_version -gt $swig_version ; then
20179                                 as_fn_error "SWIG version >= 1.3.31 required" "$LINENO" 5
20180                         fi
20181                 else
20182                         as_fn_error "cannot determine SWIG version" "$LINENO" 5
20183                 fi
20184         fi
20185
20186
20187
20188
20189         if test "$SWIG" != "false" ; then
20190                 SWIG="$SWIG -c++"
20191         fi
20192
20193
20194
20195
20196         if test "$SWIG" != "false" ; then
20197                 SWIG_PYTHON_LIB=-lswigpy
20198
20199                 SWIG_PYTHON_OPT=-python
20200
20201         fi
20202         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
20203
20204
20205
20206
20207 # Extract the first word of "xmlto", so it can be a program name with args.
20208 set dummy xmlto; ac_word=$2
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20210 $as_echo_n "checking for $ac_word... " >&6; }
20211 if test "${ac_cv_prog_XMLTO+set}" = set; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   if test -n "$XMLTO"; then
20215   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
20216 else
20217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20218 for as_dir in $PATH
20219 do
20220   IFS=$as_save_IFS
20221   test -z "$as_dir" && as_dir=.
20222     for ac_exec_ext in '' $ac_executable_extensions; do
20223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20224     ac_cv_prog_XMLTO="yes"
20225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20226     break 2
20227   fi
20228 done
20229   done
20230 IFS=$as_save_IFS
20231
20232 fi
20233 fi
20234 XMLTO=$ac_cv_prog_XMLTO
20235 if test -n "$XMLTO"; then
20236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20237 $as_echo "$XMLTO" >&6; }
20238 else
20239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20240 $as_echo "no" >&6; }
20241 fi
20242
20243
20244  if test x$XMLTO = xyes; then
20245   HAS_XMLTO_TRUE=
20246   HAS_XMLTO_FALSE='#'
20247 else
20248   HAS_XMLTO_TRUE='#'
20249   HAS_XMLTO_FALSE=
20250 fi
20251
20252
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
20254 $as_echo_n "checking for socket in -lsocket... " >&6; }
20255 if test "${ac_cv_lib_socket_socket+set}" = set; then :
20256   $as_echo_n "(cached) " >&6
20257 else
20258   ac_check_lib_save_LIBS=$LIBS
20259 LIBS="-lsocket  $LIBS"
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h.  */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264    Use char because int might match the return type of a GCC
20265    builtin and then its argument prototype would still apply.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char socket ();
20270 int
20271 main ()
20272 {
20273 return socket ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 if ac_fn_c_try_link "$LINENO"; then :
20279   ac_cv_lib_socket_socket=yes
20280 else
20281   ac_cv_lib_socket_socket=no
20282 fi
20283 rm -f core conftest.err conftest.$ac_objext \
20284     conftest$ac_exeext conftest.$ac_ext
20285 LIBS=$ac_check_lib_save_LIBS
20286 fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
20288 $as_echo "$ac_cv_lib_socket_socket" >&6; }
20289 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
20290   cat >>confdefs.h <<_ACEOF
20291 #define HAVE_LIBSOCKET 1
20292 _ACEOF
20293
20294   LIBS="-lsocket $LIBS"
20295
20296 fi
20297
20298
20299
20300   # Check first for POSIX
20301
20302
20303
20304 ac_ext=c
20305 ac_cpp='$CPP $CPPFLAGS'
20306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20309
20310 acx_pthread_ok=no
20311
20312 # We used to check for pthread.h first, but this fails if pthread.h
20313 # requires special compiler flags (e.g. on True64 or Sequent).
20314 # It gets checked for in the link test anyway.
20315
20316 # First of all, check if the user has set any of the PTHREAD_LIBS,
20317 # etcetera environment variables, and if threads linking works using
20318 # them:
20319 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20320         save_CFLAGS="$CFLAGS"
20321         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20322         save_LIBS="$LIBS"
20323         LIBS="$PTHREAD_LIBS $LIBS"
20324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20325 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20326         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h.  */
20328
20329 /* Override any GCC internal prototype to avoid an error.
20330    Use char because int might match the return type of a GCC
20331    builtin and then its argument prototype would still apply.  */
20332 #ifdef __cplusplus
20333 extern "C"
20334 #endif
20335 char pthread_join ();
20336 int
20337 main ()
20338 {
20339 return pthread_join ();
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 if ac_fn_c_try_link "$LINENO"; then :
20345   acx_pthread_ok=yes
20346 fi
20347 rm -f core conftest.err conftest.$ac_objext \
20348     conftest$ac_exeext conftest.$ac_ext
20349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20350 $as_echo "$acx_pthread_ok" >&6; }
20351         if test x"$acx_pthread_ok" = xno; then
20352                 PTHREAD_LIBS=""
20353                 PTHREAD_CFLAGS=""
20354         fi
20355         LIBS="$save_LIBS"
20356         CFLAGS="$save_CFLAGS"
20357 fi
20358
20359 # We must check for the threads library under a number of different
20360 # names; the ordering is very important because some systems
20361 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20362 # libraries is broken (non-POSIX).
20363
20364 # Create a list of thread flags to try.  Items starting with a "-" are
20365 # C compiler flags, and other items are library names, except for "none"
20366 # which indicates that we try without any flags at all, and "pthread-config"
20367 # which is a program returning the flags for the Pth emulation library.
20368
20369 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20370
20371 # The ordering *is* (sometimes) important.  Some notes on the
20372 # individual items follow:
20373
20374 # pthreads: AIX (must check this before -lpthread)
20375 # none: in case threads are in libc; should be tried before -Kthread and
20376 #       other compiler flags to prevent continual compiler warnings
20377 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20378 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20379 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20380 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20381 # -pthreads: Solaris/gcc
20382 # -mthreads: Mingw32/gcc, Lynx/gcc
20383 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20384 #      doesn't hurt to check since this sometimes defines pthreads too;
20385 #      also defines -D_REENTRANT)
20386 #      ... -mt is also the pthreads flag for HP/aCC
20387 # pthread: Linux, etcetera
20388 # --thread-safe: KAI C++
20389 # pthread-config: use pthread-config program (for GNU Pth library)
20390
20391 case "${host_cpu}-${host_os}" in
20392         *solaris*)
20393
20394         # On Solaris (at least, for some versions), libc contains stubbed
20395         # (non-functional) versions of the pthreads routines, so link-based
20396         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
20397         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20398         # a function called by this macro, so we could check for that, but
20399         # who knows whether they'll stub that too in a future libc.)  So,
20400         # we'll just look for -pthreads and -lpthread first:
20401
20402         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
20403         ;;
20404 esac
20405
20406 if test x"$acx_pthread_ok" = xno; then
20407 for flag in $acx_pthread_flags; do
20408
20409         case $flag in
20410                 none)
20411                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20412 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20413                 ;;
20414
20415                 -*)
20416                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
20417 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20418                 PTHREAD_CFLAGS="$flag"
20419                 ;;
20420
20421                 pthread-config)
20422                 # Extract the first word of "pthread-config", so it can be a program name with args.
20423 set dummy pthread-config; ac_word=$2
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20425 $as_echo_n "checking for $ac_word... " >&6; }
20426 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   if test -n "$acx_pthread_config"; then
20430   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20431 else
20432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433 for as_dir in $PATH
20434 do
20435   IFS=$as_save_IFS
20436   test -z "$as_dir" && as_dir=.
20437     for ac_exec_ext in '' $ac_executable_extensions; do
20438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20439     ac_cv_prog_acx_pthread_config="yes"
20440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20441     break 2
20442   fi
20443 done
20444   done
20445 IFS=$as_save_IFS
20446
20447   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20448 fi
20449 fi
20450 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20451 if test -n "$acx_pthread_config"; then
20452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
20453 $as_echo "$acx_pthread_config" >&6; }
20454 else
20455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456 $as_echo "no" >&6; }
20457 fi
20458
20459
20460                 if test x"$acx_pthread_config" = xno; then continue; fi
20461                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20462                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20463                 ;;
20464
20465                 *)
20466                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
20467 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20468                 PTHREAD_LIBS="-l$flag"
20469                 ;;
20470         esac
20471
20472         save_LIBS="$LIBS"
20473         save_CFLAGS="$CFLAGS"
20474         LIBS="$PTHREAD_LIBS $LIBS"
20475         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20476
20477         # Check for various functions.  We must include pthread.h,
20478         # since some functions may be macros.  (On the Sequent, we
20479         # need a special flag -Kthread to make this header compile.)
20480         # We check for pthread_join because it is in -lpthread on IRIX
20481         # while pthread_create is in libc.  We check for pthread_attr_init
20482         # due to DEC craziness with -lpthreads.  We check for
20483         # pthread_cleanup_push because it is one of the few pthread
20484         # functions on Solaris that doesn't have a non-functional libc stub.
20485         # We try pthread_create on general principles.
20486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h.  */
20488 #include <pthread.h>
20489 int
20490 main ()
20491 {
20492 pthread_t th; pthread_join(th, 0);
20493                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
20494                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 if ac_fn_c_try_link "$LINENO"; then :
20500   acx_pthread_ok=yes
20501 fi
20502 rm -f core conftest.err conftest.$ac_objext \
20503     conftest$ac_exeext conftest.$ac_ext
20504
20505         LIBS="$save_LIBS"
20506         CFLAGS="$save_CFLAGS"
20507
20508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
20509 $as_echo "$acx_pthread_ok" >&6; }
20510         if test "x$acx_pthread_ok" = xyes; then
20511                 break;
20512         fi
20513
20514         PTHREAD_LIBS=""
20515         PTHREAD_CFLAGS=""
20516 done
20517 fi
20518
20519 # Various other checks:
20520 if test "x$acx_pthread_ok" = xyes; then
20521         save_LIBS="$LIBS"
20522         LIBS="$PTHREAD_LIBS $LIBS"
20523         save_CFLAGS="$CFLAGS"
20524         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20525
20526         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20528 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20529         attr_name=unknown
20530         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20531             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20532 /* end confdefs.h.  */
20533 #include <pthread.h>
20534 int
20535 main ()
20536 {
20537 int attr=$attr; return attr;
20538   ;
20539   return 0;
20540 }
20541 _ACEOF
20542 if ac_fn_c_try_link "$LINENO"; then :
20543   attr_name=$attr; break
20544 fi
20545 rm -f core conftest.err conftest.$ac_objext \
20546     conftest$ac_exeext conftest.$ac_ext
20547         done
20548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20549 $as_echo "$attr_name" >&6; }
20550         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20551
20552 cat >>confdefs.h <<_ACEOF
20553 #define PTHREAD_CREATE_JOINABLE $attr_name
20554 _ACEOF
20555
20556         fi
20557
20558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20559 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
20560         flag=no
20561         case "${host_cpu}-${host_os}" in
20562             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
20563             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20564         esac
20565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
20566 $as_echo "${flag}" >&6; }
20567         if test "x$flag" != xno; then
20568             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20569         fi
20570
20571         LIBS="$save_LIBS"
20572         CFLAGS="$save_CFLAGS"
20573
20574         # More AIX lossage: must compile with xlc_r or cc_r
20575         if test x"$GCC" != xyes; then
20576           for ac_prog in xlc_r cc_r
20577 do
20578   # Extract the first word of "$ac_prog", so it can be a program name with args.
20579 set dummy $ac_prog; ac_word=$2
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20581 $as_echo_n "checking for $ac_word... " >&6; }
20582 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
20583   $as_echo_n "(cached) " >&6
20584 else
20585   if test -n "$PTHREAD_CC"; then
20586   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20587 else
20588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20589 for as_dir in $PATH
20590 do
20591   IFS=$as_save_IFS
20592   test -z "$as_dir" && as_dir=.
20593     for ac_exec_ext in '' $ac_executable_extensions; do
20594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20595     ac_cv_prog_PTHREAD_CC="$ac_prog"
20596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20597     break 2
20598   fi
20599 done
20600   done
20601 IFS=$as_save_IFS
20602
20603 fi
20604 fi
20605 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20606 if test -n "$PTHREAD_CC"; then
20607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20608 $as_echo "$PTHREAD_CC" >&6; }
20609 else
20610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20611 $as_echo "no" >&6; }
20612 fi
20613
20614
20615   test -n "$PTHREAD_CC" && break
20616 done
20617 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
20618
20619         else
20620           PTHREAD_CC=$CC
20621         fi
20622 else
20623         PTHREAD_CC="$CC"
20624 fi
20625
20626
20627
20628
20629
20630 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20631 if test x"$acx_pthread_ok" = xyes; then
20632
20633 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20634
20635     ot_posix="yes"
20636     DEFINES="$DEFINES -DOMNITHREAD_POSIX=1"
20637
20638         :
20639 else
20640         acx_pthread_ok=no
20641
20642     # If no POSIX support found, then check for NT threads
20643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NT threads" >&5
20644 $as_echo_n "checking for NT threads... " >&6; }
20645
20646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h.  */
20648
20649         #include <windows.h>
20650         #include <winbase.h>
20651         int main() { InitializeCriticalSection(NULL); return 0; }
20652
20653 _ACEOF
20654 if ac_fn_c_try_link "$LINENO"; then :
20655
20656         ot_nt="yes"
20657         DEFINES="$DEFINES -DOMNITHREAD_NT=1"
20658
20659 else
20660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20662 as_fn_error "GNU Radio requires POSIX threads.  pthreads not found.
20663 See \`config.log' for more details." "$LINENO" 5; }
20664
20665 fi
20666 rm -f core conftest.err conftest.$ac_objext \
20667     conftest$ac_exeext conftest.$ac_ext
20668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20669 $as_echo "yes" >&6; }
20670
20671 fi
20672 ac_ext=c
20673 ac_cpp='$CPP $CPPFLAGS'
20674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
20678
20679    if test "x$ot_posix" = xyes; then
20680   OMNITHREAD_POSIX_TRUE=
20681   OMNITHREAD_POSIX_FALSE='#'
20682 else
20683   OMNITHREAD_POSIX_TRUE='#'
20684   OMNITHREAD_POSIX_FALSE=
20685 fi
20686
20687    if test "x$ot_nt" = xyes; then
20688   OMNITHREAD_NT_TRUE=
20689   OMNITHREAD_NT_FALSE='#'
20690 else
20691   OMNITHREAD_NT_TRUE='#'
20692   OMNITHREAD_NT_FALSE=
20693 fi
20694
20695
20696   save_LIBS="$LIBS"
20697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20698 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20699 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20700   $as_echo_n "(cached) " >&6
20701 else
20702   ac_func_search_save_LIBS=$LIBS
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h.  */
20705
20706 /* Override any GCC internal prototype to avoid an error.
20707    Use char because int might match the return type of a GCC
20708    builtin and then its argument prototype would still apply.  */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 char clock_gettime ();
20713 int
20714 main ()
20715 {
20716 return clock_gettime ();
20717   ;
20718   return 0;
20719 }
20720 _ACEOF
20721 for ac_lib in '' rt; do
20722   if test -z "$ac_lib"; then
20723     ac_res="none required"
20724   else
20725     ac_res=-l$ac_lib
20726     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20727   fi
20728   if ac_fn_c_try_link "$LINENO"; then :
20729   ac_cv_search_clock_gettime=$ac_res
20730 fi
20731 rm -f core conftest.err conftest.$ac_objext \
20732     conftest$ac_exeext
20733   if test "${ac_cv_search_clock_gettime+set}" = set; then :
20734   break
20735 fi
20736 done
20737 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20738
20739 else
20740   ac_cv_search_clock_gettime=no
20741 fi
20742 rm conftest.$ac_ext
20743 LIBS=$ac_func_search_save_LIBS
20744 fi
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20746 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20747 ac_res=$ac_cv_search_clock_gettime
20748 if test "$ac_res" != no; then :
20749   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20750   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
20751 fi
20752
20753   for ac_func in clock_gettime gettimeofday nanosleep
20754 do :
20755   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20757 eval as_val=\$$as_ac_var
20758    if test "x$as_val" = x""yes; then :
20759   cat >>confdefs.h <<_ACEOF
20760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20761 _ACEOF
20762
20763 fi
20764 done
20765
20766   LIBS="$save_LIBS"
20767
20768
20769 if test x$CXX_FOR_BUILD = x
20770 then
20771   if test x$cross_compiling = xno; then
20772     CXX_FOR_BUILD=${CXX}
20773   else
20774     CXX_FOR_BUILD=g++
20775   fi
20776 fi
20777
20778
20779
20780
20781         ac_ext=c
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787
20788         for ac_header in sys/ipc.h sys/shm.h
20789 do :
20790   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20792 eval as_val=\$$as_ac_Header
20793    if test "x$as_val" = x""yes; then :
20794   cat >>confdefs.h <<_ACEOF
20795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20796 _ACEOF
20797
20798 fi
20799
20800 done
20801
20802
20803         save_LIBS="$LIBS"
20804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmat" >&5
20805 $as_echo_n "checking for library containing shmat... " >&6; }
20806 if test "${ac_cv_search_shmat+set}" = set; then :
20807   $as_echo_n "(cached) " >&6
20808 else
20809   ac_func_search_save_LIBS=$LIBS
20810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811 /* end confdefs.h.  */
20812
20813 /* Override any GCC internal prototype to avoid an error.
20814    Use char because int might match the return type of a GCC
20815    builtin and then its argument prototype would still apply.  */
20816 #ifdef __cplusplus
20817 extern "C"
20818 #endif
20819 char shmat ();
20820 int
20821 main ()
20822 {
20823 return shmat ();
20824   ;
20825   return 0;
20826 }
20827 _ACEOF
20828 for ac_lib in '' cygipc ipc; do
20829   if test -z "$ac_lib"; then
20830     ac_res="none required"
20831   else
20832     ac_res=-l$ac_lib
20833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20834   fi
20835   if ac_fn_c_try_link "$LINENO"; then :
20836   ac_cv_search_shmat=$ac_res
20837 fi
20838 rm -f core conftest.err conftest.$ac_objext \
20839     conftest$ac_exeext
20840   if test "${ac_cv_search_shmat+set}" = set; then :
20841   break
20842 fi
20843 done
20844 if test "${ac_cv_search_shmat+set}" = set; then :
20845
20846 else
20847   ac_cv_search_shmat=no
20848 fi
20849 rm conftest.$ac_ext
20850 LIBS=$ac_func_search_save_LIBS
20851 fi
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmat" >&5
20853 $as_echo "$ac_cv_search_shmat" >&6; }
20854 ac_res=$ac_cv_search_shmat
20855 if test "$ac_res" != no; then :
20856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20857    IPC_LIBS="$LIBS"
20858 else
20859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SystemV IPC support not found. " >&5
20860 $as_echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
20861
20862 fi
20863
20864         LIBS="$save_LIBS"
20865
20866         ac_ext=c
20867 ac_cpp='$CPP $CPPFLAGS'
20868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20871
20872
20873
20874
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20876 $as_echo_n "checking for ANSI C header files... " >&6; }
20877 if test "${ac_cv_header_stdc+set}" = set; then :
20878   $as_echo_n "(cached) " >&6
20879 else
20880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h.  */
20882 #include <stdlib.h>
20883 #include <stdarg.h>
20884 #include <string.h>
20885 #include <float.h>
20886
20887 int
20888 main ()
20889 {
20890
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 if ac_fn_c_try_compile "$LINENO"; then :
20896   ac_cv_header_stdc=yes
20897 else
20898   ac_cv_header_stdc=no
20899 fi
20900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901
20902 if test $ac_cv_header_stdc = yes; then
20903   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h.  */
20906 #include <string.h>
20907
20908 _ACEOF
20909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20910   $EGREP "memchr" >/dev/null 2>&1; then :
20911
20912 else
20913   ac_cv_header_stdc=no
20914 fi
20915 rm -f conftest*
20916
20917 fi
20918
20919 if test $ac_cv_header_stdc = yes; then
20920   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20922 /* end confdefs.h.  */
20923 #include <stdlib.h>
20924
20925 _ACEOF
20926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20927   $EGREP "free" >/dev/null 2>&1; then :
20928
20929 else
20930   ac_cv_header_stdc=no
20931 fi
20932 rm -f conftest*
20933
20934 fi
20935
20936 if test $ac_cv_header_stdc = yes; then
20937   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20938   if test "$cross_compiling" = yes; then :
20939   :
20940 else
20941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h.  */
20943 #include <ctype.h>
20944 #include <stdlib.h>
20945 #if ((' ' & 0x0FF) == 0x020)
20946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20948 #else
20949 # define ISLOWER(c) \
20950                    (('a' <= (c) && (c) <= 'i') \
20951                      || ('j' <= (c) && (c) <= 'r') \
20952                      || ('s' <= (c) && (c) <= 'z'))
20953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20954 #endif
20955
20956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20957 int
20958 main ()
20959 {
20960   int i;
20961   for (i = 0; i < 256; i++)
20962     if (XOR (islower (i), ISLOWER (i))
20963         || toupper (i) != TOUPPER (i))
20964       return 2;
20965   return 0;
20966 }
20967 _ACEOF
20968 if ac_fn_c_try_run "$LINENO"; then :
20969
20970 else
20971   ac_cv_header_stdc=no
20972 fi
20973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20974   conftest.$ac_objext conftest.beam conftest.$ac_ext
20975 fi
20976
20977 fi
20978 fi
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20980 $as_echo "$ac_cv_header_stdc" >&6; }
20981 if test $ac_cv_header_stdc = yes; then
20982
20983 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20984
20985 fi
20986
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20988 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20989 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
20990   $as_echo_n "(cached) " >&6
20991 else
20992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h.  */
20994 #include <sys/types.h>
20995 #include <sys/wait.h>
20996 #ifndef WEXITSTATUS
20997 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20998 #endif
20999 #ifndef WIFEXITED
21000 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21001 #endif
21002
21003 int
21004 main ()
21005 {
21006   int s;
21007   wait (&s);
21008   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_compile "$LINENO"; then :
21014   ac_cv_header_sys_wait_h=yes
21015 else
21016   ac_cv_header_sys_wait_h=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 fi
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21021 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21022 if test $ac_cv_header_sys_wait_h = yes; then
21023
21024 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21025
21026 fi
21027
21028 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
21029 do :
21030   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21032 eval as_val=\$$as_ac_Header
21033    if test "x$as_val" = x""yes; then :
21034   cat >>confdefs.h <<_ACEOF
21035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21036 _ACEOF
21037
21038 fi
21039
21040 done
21041
21042 for ac_header in linux/ppdev.h dev/ppbus/ppi.h sys/mman.h sys/select.h sys/types.h
21043 do :
21044   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21046 eval as_val=\$$as_ac_Header
21047    if test "x$as_val" = x""yes; then :
21048   cat >>confdefs.h <<_ACEOF
21049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21050 _ACEOF
21051
21052 fi
21053
21054 done
21055
21056 for ac_header in sys/resource.h stdint.h sched.h signal.h sys/syscall.h malloc.h
21057 do :
21058   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21060 eval as_val=\$$as_ac_Header
21061    if test "x$as_val" = x""yes; then :
21062   cat >>confdefs.h <<_ACEOF
21063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21064 _ACEOF
21065
21066 fi
21067
21068 done
21069
21070 for ac_header in netinet/in.h
21071 do :
21072   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
21073 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
21074   cat >>confdefs.h <<_ACEOF
21075 #define HAVE_NETINET_IN_H 1
21076 _ACEOF
21077
21078 fi
21079
21080 done
21081
21082 for ac_header in windows.h
21083 do :
21084   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21085 if test "x$ac_cv_header_windows_h" = x""yes; then :
21086   cat >>confdefs.h <<_ACEOF
21087 #define HAVE_WINDOWS_H 1
21088 _ACEOF
21089
21090 fi
21091
21092 done
21093
21094 for ac_header in vec_types.h
21095 do :
21096   ac_fn_c_check_header_mongrel "$LINENO" "vec_types.h" "ac_cv_header_vec_types_h" "$ac_includes_default"
21097 if test "x$ac_cv_header_vec_types_h" = x""yes; then :
21098   cat >>confdefs.h <<_ACEOF
21099 #define HAVE_VEC_TYPES_H 1
21100 _ACEOF
21101
21102 fi
21103
21104 done
21105
21106
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21108 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21109 if test "${ac_cv_c_const+set}" = set; then :
21110   $as_echo_n "(cached) " >&6
21111 else
21112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h.  */
21114
21115 int
21116 main ()
21117 {
21118 /* FIXME: Include the comments suggested by Paul. */
21119 #ifndef __cplusplus
21120   /* Ultrix mips cc rejects this.  */
21121   typedef int charset[2];
21122   const charset cs;
21123   /* SunOS 4.1.1 cc rejects this.  */
21124   char const *const *pcpcc;
21125   char **ppc;
21126   /* NEC SVR4.0.2 mips cc rejects this.  */
21127   struct point {int x, y;};
21128   static struct point const zero = {0,0};
21129   /* AIX XL C 1.02.0.0 rejects this.
21130      It does not let you subtract one const X* pointer from another in
21131      an arm of an if-expression whose if-part is not a constant
21132      expression */
21133   const char *g = "string";
21134   pcpcc = &g + (g ? g-g : 0);
21135   /* HPUX 7.0 cc rejects these. */
21136   ++pcpcc;
21137   ppc = (char**) pcpcc;
21138   pcpcc = (char const *const *) ppc;
21139   { /* SCO 3.2v4 cc rejects this.  */
21140     char *t;
21141     char const *s = 0 ? (char *) 0 : (char const *) 0;
21142
21143     *t++ = 0;
21144     if (s) return 0;
21145   }
21146   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21147     int x[] = {25, 17};
21148     const int *foo = &x[0];
21149     ++foo;
21150   }
21151   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21152     typedef const int *iptr;
21153     iptr p = 0;
21154     ++p;
21155   }
21156   { /* AIX XL C 1.02.0.0 rejects this saying
21157        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21158     struct s { int j; const int *ap[3]; };
21159     struct s *b; b->j = 5;
21160   }
21161   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21162     const int foo = 10;
21163     if (!foo) return 0;
21164   }
21165   return !cs[0] && !zero.x;
21166 #endif
21167
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 if ac_fn_c_try_compile "$LINENO"; then :
21173   ac_cv_c_const=yes
21174 else
21175   ac_cv_c_const=no
21176 fi
21177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178 fi
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21180 $as_echo "$ac_cv_c_const" >&6; }
21181 if test $ac_cv_c_const = no; then
21182
21183 $as_echo "#define const /**/" >>confdefs.h
21184
21185 fi
21186
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21188 $as_echo_n "checking for inline... " >&6; }
21189 if test "${ac_cv_c_inline+set}" = set; then :
21190   $as_echo_n "(cached) " >&6
21191 else
21192   ac_cv_c_inline=no
21193 for ac_kw in inline __inline__ __inline; do
21194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h.  */
21196 #ifndef __cplusplus
21197 typedef int foo_t;
21198 static $ac_kw foo_t static_foo () {return 0; }
21199 $ac_kw foo_t foo () {return 0; }
21200 #endif
21201
21202 _ACEOF
21203 if ac_fn_c_try_compile "$LINENO"; then :
21204   ac_cv_c_inline=$ac_kw
21205 fi
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207   test "$ac_cv_c_inline" != no && break
21208 done
21209
21210 fi
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21212 $as_echo "$ac_cv_c_inline" >&6; }
21213
21214 case $ac_cv_c_inline in
21215   inline | yes) ;;
21216   *)
21217     case $ac_cv_c_inline in
21218       no) ac_val=;;
21219       *) ac_val=$ac_cv_c_inline;;
21220     esac
21221     cat >>confdefs.h <<_ACEOF
21222 #ifndef __cplusplus
21223 #define inline $ac_val
21224 #endif
21225 _ACEOF
21226     ;;
21227 esac
21228
21229 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21230 if test "x$ac_cv_type_size_t" = x""yes; then :
21231
21232 else
21233
21234 cat >>confdefs.h <<_ACEOF
21235 #define size_t unsigned int
21236 _ACEOF
21237
21238 fi
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21241 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21242 if test "${ac_cv_header_time+set}" = set; then :
21243   $as_echo_n "(cached) " >&6
21244 else
21245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21246 /* end confdefs.h.  */
21247 #include <sys/types.h>
21248 #include <sys/time.h>
21249 #include <time.h>
21250
21251 int
21252 main ()
21253 {
21254 if ((struct tm *) 0)
21255 return 0;
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 if ac_fn_c_try_compile "$LINENO"; then :
21261   ac_cv_header_time=yes
21262 else
21263   ac_cv_header_time=no
21264 fi
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 fi
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21268 $as_echo "$ac_cv_header_time" >&6; }
21269 if test $ac_cv_header_time = yes; then
21270
21271 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21272
21273 fi
21274
21275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21277 if test "${ac_cv_c_bigendian+set}" = set; then :
21278   $as_echo_n "(cached) " >&6
21279 else
21280   ac_cv_c_bigendian=unknown
21281     # See if we're dealing with a universal compiler.
21282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21283 /* end confdefs.h.  */
21284 #ifndef __APPLE_CC__
21285                not a universal capable compiler
21286              #endif
21287              typedef int dummy;
21288
21289 _ACEOF
21290 if ac_fn_c_try_compile "$LINENO"; then :
21291
21292         # Check for potential -arch flags.  It is not universal unless
21293         # there are at least two -arch flags with different values.
21294         ac_arch=
21295         ac_prev=
21296         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21297          if test -n "$ac_prev"; then
21298            case $ac_word in
21299              i?86 | x86_64 | ppc | ppc64)
21300                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21301                  ac_arch=$ac_word
21302                else
21303                  ac_cv_c_bigendian=universal
21304                  break
21305                fi
21306                ;;
21307            esac
21308            ac_prev=
21309          elif test "x$ac_word" = "x-arch"; then
21310            ac_prev=arch
21311          fi
21312        done
21313 fi
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315     if test $ac_cv_c_bigendian = unknown; then
21316       # See if sys/param.h defines the BYTE_ORDER macro.
21317       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h.  */
21319 #include <sys/types.h>
21320              #include <sys/param.h>
21321
21322 int
21323 main ()
21324 {
21325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21326                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21327                      && LITTLE_ENDIAN)
21328               bogus endian macros
21329              #endif
21330
21331   ;
21332   return 0;
21333 }
21334 _ACEOF
21335 if ac_fn_c_try_compile "$LINENO"; then :
21336   # It does; now see whether it defined to BIG_ENDIAN or not.
21337          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h.  */
21339 #include <sys/types.h>
21340                 #include <sys/param.h>
21341
21342 int
21343 main ()
21344 {
21345 #if BYTE_ORDER != BIG_ENDIAN
21346                  not big endian
21347                 #endif
21348
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 if ac_fn_c_try_compile "$LINENO"; then :
21354   ac_cv_c_bigendian=yes
21355 else
21356   ac_cv_c_bigendian=no
21357 fi
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359 fi
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361     fi
21362     if test $ac_cv_c_bigendian = unknown; then
21363       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21364       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h.  */
21366 #include <limits.h>
21367
21368 int
21369 main ()
21370 {
21371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21372               bogus endian macros
21373              #endif
21374
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 if ac_fn_c_try_compile "$LINENO"; then :
21380   # It does; now see whether it defined to _BIG_ENDIAN or not.
21381          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21382 /* end confdefs.h.  */
21383 #include <limits.h>
21384
21385 int
21386 main ()
21387 {
21388 #ifndef _BIG_ENDIAN
21389                  not big endian
21390                 #endif
21391
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 if ac_fn_c_try_compile "$LINENO"; then :
21397   ac_cv_c_bigendian=yes
21398 else
21399   ac_cv_c_bigendian=no
21400 fi
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 fi
21403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404     fi
21405     if test $ac_cv_c_bigendian = unknown; then
21406       # Compile a test program.
21407       if test "$cross_compiling" = yes; then :
21408   # Try to guess by grepping values from an object file.
21409          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h.  */
21411 short int ascii_mm[] =
21412                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21413                 short int ascii_ii[] =
21414                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21415                 int use_ascii (int i) {
21416                   return ascii_mm[i] + ascii_ii[i];
21417                 }
21418                 short int ebcdic_ii[] =
21419                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21420                 short int ebcdic_mm[] =
21421                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21422                 int use_ebcdic (int i) {
21423                   return ebcdic_mm[i] + ebcdic_ii[i];
21424                 }
21425                 extern int foo;
21426
21427 int
21428 main ()
21429 {
21430 return use_ascii (foo) == use_ebcdic (foo);
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 if ac_fn_c_try_compile "$LINENO"; then :
21436   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21437               ac_cv_c_bigendian=yes
21438             fi
21439             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21440               if test "$ac_cv_c_bigendian" = unknown; then
21441                 ac_cv_c_bigendian=no
21442               else
21443                 # finding both strings is unlikely to happen, but who knows?
21444                 ac_cv_c_bigendian=unknown
21445               fi
21446             fi
21447 fi
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 else
21450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h.  */
21452 $ac_includes_default
21453 int
21454 main ()
21455 {
21456
21457              /* Are we little or big endian?  From Harbison&Steele.  */
21458              union
21459              {
21460                long int l;
21461                char c[sizeof (long int)];
21462              } u;
21463              u.l = 1;
21464              return u.c[sizeof (long int) - 1] == 1;
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 if ac_fn_c_try_run "$LINENO"; then :
21471   ac_cv_c_bigendian=no
21472 else
21473   ac_cv_c_bigendian=yes
21474 fi
21475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21476   conftest.$ac_objext conftest.beam conftest.$ac_ext
21477 fi
21478
21479     fi
21480 fi
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21482 $as_echo "$ac_cv_c_bigendian" >&6; }
21483  case $ac_cv_c_bigendian in #(
21484    yes)
21485      GR_ARCH_BIGENDIAN=1;; #(
21486    no)
21487      GR_ARCH_BIGENDIAN=0 ;; #(
21488    universal)
21489
21490 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21491
21492      ;; #(
21493    *)
21494      as_fn_error "unknown endianness
21495  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21496  esac
21497
21498
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21500 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21501 if test "${ac_cv_struct_tm+set}" = set; then :
21502   $as_echo_n "(cached) " >&6
21503 else
21504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21505 /* end confdefs.h.  */
21506 #include <sys/types.h>
21507 #include <time.h>
21508
21509 int
21510 main ()
21511 {
21512 struct tm tm;
21513                                      int *p = &tm.tm_sec;
21514                                      return !p;
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 if ac_fn_c_try_compile "$LINENO"; then :
21520   ac_cv_struct_tm=time.h
21521 else
21522   ac_cv_struct_tm=sys/time.h
21523 fi
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 fi
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21527 $as_echo "$ac_cv_struct_tm" >&6; }
21528 if test $ac_cv_struct_tm = sys/time.h; then
21529
21530 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21531
21532 fi
21533
21534
21535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21536 # for constant arguments.  Useless!
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21538 $as_echo_n "checking for working alloca.h... " >&6; }
21539 if test "${ac_cv_working_alloca_h+set}" = set; then :
21540   $as_echo_n "(cached) " >&6
21541 else
21542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h.  */
21544 #include <alloca.h>
21545 int
21546 main ()
21547 {
21548 char *p = (char *) alloca (2 * sizeof (int));
21549                           if (p) return 0;
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 if ac_fn_c_try_link "$LINENO"; then :
21555   ac_cv_working_alloca_h=yes
21556 else
21557   ac_cv_working_alloca_h=no
21558 fi
21559 rm -f core conftest.err conftest.$ac_objext \
21560     conftest$ac_exeext conftest.$ac_ext
21561 fi
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21563 $as_echo "$ac_cv_working_alloca_h" >&6; }
21564 if test $ac_cv_working_alloca_h = yes; then
21565
21566 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21567
21568 fi
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21571 $as_echo_n "checking for alloca... " >&6; }
21572 if test "${ac_cv_func_alloca_works+set}" = set; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h.  */
21577 #ifdef __GNUC__
21578 # define alloca __builtin_alloca
21579 #else
21580 # ifdef _MSC_VER
21581 #  include <malloc.h>
21582 #  define alloca _alloca
21583 # else
21584 #  ifdef HAVE_ALLOCA_H
21585 #   include <alloca.h>
21586 #  else
21587 #   ifdef _AIX
21588  #pragma alloca
21589 #   else
21590 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21591 char *alloca ();
21592 #    endif
21593 #   endif
21594 #  endif
21595 # endif
21596 #endif
21597
21598 int
21599 main ()
21600 {
21601 char *p = (char *) alloca (1);
21602                                     if (p) return 0;
21603   ;
21604   return 0;
21605 }
21606 _ACEOF
21607 if ac_fn_c_try_link "$LINENO"; then :
21608   ac_cv_func_alloca_works=yes
21609 else
21610   ac_cv_func_alloca_works=no
21611 fi
21612 rm -f core conftest.err conftest.$ac_objext \
21613     conftest$ac_exeext conftest.$ac_ext
21614 fi
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21616 $as_echo "$ac_cv_func_alloca_works" >&6; }
21617
21618 if test $ac_cv_func_alloca_works = yes; then
21619
21620 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21621
21622 else
21623   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21624 # that cause trouble.  Some versions do not even contain alloca or
21625 # contain a buggy version.  If you still want to use their alloca,
21626 # use ar to extract alloca.o from them instead of compiling alloca.c.
21627
21628 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21629
21630 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21631
21632
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21634 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21635 if test "${ac_cv_os_cray+set}" = set; then :
21636   $as_echo_n "(cached) " >&6
21637 else
21638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h.  */
21640 #if defined CRAY && ! defined CRAY2
21641 webecray
21642 #else
21643 wenotbecray
21644 #endif
21645
21646 _ACEOF
21647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21648   $EGREP "webecray" >/dev/null 2>&1; then :
21649   ac_cv_os_cray=yes
21650 else
21651   ac_cv_os_cray=no
21652 fi
21653 rm -f conftest*
21654
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21657 $as_echo "$ac_cv_os_cray" >&6; }
21658 if test $ac_cv_os_cray = yes; then
21659   for ac_func in _getb67 GETB67 getb67; do
21660     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21661 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21662 eval as_val=\$$as_ac_var
21663    if test "x$as_val" = x""yes; then :
21664
21665 cat >>confdefs.h <<_ACEOF
21666 #define CRAY_STACKSEG_END $ac_func
21667 _ACEOF
21668
21669     break
21670 fi
21671
21672   done
21673 fi
21674
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21676 $as_echo_n "checking stack direction for C alloca... " >&6; }
21677 if test "${ac_cv_c_stack_direction+set}" = set; then :
21678   $as_echo_n "(cached) " >&6
21679 else
21680   if test "$cross_compiling" = yes; then :
21681   ac_cv_c_stack_direction=0
21682 else
21683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21684 /* end confdefs.h.  */
21685 $ac_includes_default
21686 int
21687 find_stack_direction ()
21688 {
21689   static char *addr = 0;
21690   auto char dummy;
21691   if (addr == 0)
21692     {
21693       addr = &dummy;
21694       return find_stack_direction ();
21695     }
21696   else
21697     return (&dummy > addr) ? 1 : -1;
21698 }
21699
21700 int
21701 main ()
21702 {
21703   return find_stack_direction () < 0;
21704 }
21705 _ACEOF
21706 if ac_fn_c_try_run "$LINENO"; then :
21707   ac_cv_c_stack_direction=1
21708 else
21709   ac_cv_c_stack_direction=-1
21710 fi
21711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21712   conftest.$ac_objext conftest.beam conftest.$ac_ext
21713 fi
21714
21715 fi
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21717 $as_echo "$ac_cv_c_stack_direction" >&6; }
21718 cat >>confdefs.h <<_ACEOF
21719 #define STACK_DIRECTION $ac_cv_c_stack_direction
21720 _ACEOF
21721
21722
21723 fi
21724
21725
21726
21727
21728   # Check for allocing memory alignment functions
21729   # If 'posix_memalign' is available, use it solely.
21730   for ac_func in posix_memalign
21731 do :
21732   ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
21733 if test "x$ac_cv_func_posix_memalign" = x""yes; then :
21734   cat >>confdefs.h <<_ACEOF
21735 #define HAVE_POSIX_MEMALIGN 1
21736 _ACEOF
21737
21738 else
21739
21740     # Otherwise, check for valloc and the
21741     # (a-priori known) alignment of 'malloc'
21742     for ac_func in valloc
21743 do :
21744   ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
21745 if test "x$ac_cv_func_valloc" = x""yes; then :
21746   cat >>confdefs.h <<_ACEOF
21747 #define HAVE_VALLOC 1
21748 _ACEOF
21749
21750 fi
21751 done
21752
21753     aligned_malloc=0
21754     # 'malloc' is 16-byte aligned on (at least) Darwin 8 and 9
21755     case "$host_os" in
21756       darwin8*) aligned_malloc=16 ;;
21757       darwin9*) aligned_malloc=16 ;;
21758       *) ;;
21759     esac
21760     if test $aligned_malloc = 0; then
21761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc has unknown alignment." >&5
21762 $as_echo "malloc has unknown alignment." >&6; }
21763     else
21764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc is $aligned_malloc-byte aligned." >&5
21765 $as_echo "malloc is $aligned_malloc-byte aligned." >&6; }
21766     fi
21767
21768 cat >>confdefs.h <<_ACEOF
21769 #define ALIGNED_MALLOC $aligned_malloc
21770 _ACEOF
21771
21772
21773 fi
21774 done
21775
21776
21777 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
21778   $as_echo_n "(cached) " >&6
21779 else
21780   ac_cv_func_setvbuf_reversed=no
21781 fi
21782
21783
21784 for ac_func in vprintf
21785 do :
21786   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21787 if test "x$ac_cv_func_vprintf" = x""yes; then :
21788   cat >>confdefs.h <<_ACEOF
21789 #define HAVE_VPRINTF 1
21790 _ACEOF
21791
21792 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21793 if test "x$ac_cv_func__doprnt" = x""yes; then :
21794
21795 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21796
21797 fi
21798
21799 fi
21800 done
21801
21802
21803 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
21804 do :
21805   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21807 eval as_val=\$$as_ac_var
21808    if test "x$as_val" = x""yes; then :
21809   cat >>confdefs.h <<_ACEOF
21810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21811 _ACEOF
21812
21813 fi
21814 done
21815
21816 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
21817 do :
21818   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21820 eval as_val=\$$as_ac_var
21821    if test "x$as_val" = x""yes; then :
21822   cat >>confdefs.h <<_ACEOF
21823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21824 _ACEOF
21825
21826 fi
21827 done
21828
21829 for ac_func in modf sqrt sigaction sigprocmask pthread_sigmask
21830 do :
21831   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21833 eval as_val=\$$as_ac_var
21834    if test "x$as_val" = x""yes; then :
21835   cat >>confdefs.h <<_ACEOF
21836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21837 _ACEOF
21838
21839 fi
21840 done
21841
21842 for ac_func in sched_setaffinity
21843 do :
21844   ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
21845 if test "x$ac_cv_func_sched_setaffinity" = x""yes; then :
21846   cat >>confdefs.h <<_ACEOF
21847 #define HAVE_SCHED_SETAFFINITY 1
21848 _ACEOF
21849
21850 fi
21851 done
21852
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos in -lm" >&5
21855 $as_echo_n "checking for sincos in -lm... " >&6; }
21856 if test "${ac_cv_lib_m_sincos+set}" = set; then :
21857   $as_echo_n "(cached) " >&6
21858 else
21859   ac_check_lib_save_LIBS=$LIBS
21860 LIBS="-lm  $LIBS"
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h.  */
21863
21864 /* Override any GCC internal prototype to avoid an error.
21865    Use char because int might match the return type of a GCC
21866    builtin and then its argument prototype would still apply.  */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char sincos ();
21871 int
21872 main ()
21873 {
21874 return sincos ();
21875   ;
21876   return 0;
21877 }
21878 _ACEOF
21879 if ac_fn_c_try_link "$LINENO"; then :
21880   ac_cv_lib_m_sincos=yes
21881 else
21882   ac_cv_lib_m_sincos=no
21883 fi
21884 rm -f core conftest.err conftest.$ac_objext \
21885     conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21887 fi
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincos" >&5
21889 $as_echo "$ac_cv_lib_m_sincos" >&6; }
21890 if test "x$ac_cv_lib_m_sincos" = x""yes; then :
21891
21892 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
21893
21894 fi
21895
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf in -lm" >&5
21897 $as_echo_n "checking for sincosf in -lm... " >&6; }
21898 if test "${ac_cv_lib_m_sincosf+set}" = set; then :
21899   $as_echo_n "(cached) " >&6
21900 else
21901   ac_check_lib_save_LIBS=$LIBS
21902 LIBS="-lm  $LIBS"
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h.  */
21905
21906 /* Override any GCC internal prototype to avoid an error.
21907    Use char because int might match the return type of a GCC
21908    builtin and then its argument prototype would still apply.  */
21909 #ifdef __cplusplus
21910 extern "C"
21911 #endif
21912 char sincosf ();
21913 int
21914 main ()
21915 {
21916 return sincosf ();
21917   ;
21918   return 0;
21919 }
21920 _ACEOF
21921 if ac_fn_c_try_link "$LINENO"; then :
21922   ac_cv_lib_m_sincosf=yes
21923 else
21924   ac_cv_lib_m_sincosf=no
21925 fi
21926 rm -f core conftest.err conftest.$ac_objext \
21927     conftest$ac_exeext conftest.$ac_ext
21928 LIBS=$ac_check_lib_save_LIBS
21929 fi
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sincosf" >&5
21931 $as_echo "$ac_cv_lib_m_sincosf" >&6; }
21932 if test "x$ac_cv_lib_m_sincosf" = x""yes; then :
21933
21934 $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
21935
21936 fi
21937
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
21939 $as_echo_n "checking for sinf in -lm... " >&6; }
21940 if test "${ac_cv_lib_m_sinf+set}" = set; then :
21941   $as_echo_n "(cached) " >&6
21942 else
21943   ac_check_lib_save_LIBS=$LIBS
21944 LIBS="-lm  $LIBS"
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h.  */
21947
21948 /* Override any GCC internal prototype to avoid an error.
21949    Use char because int might match the return type of a GCC
21950    builtin and then its argument prototype would still apply.  */
21951 #ifdef __cplusplus
21952 extern "C"
21953 #endif
21954 char sinf ();
21955 int
21956 main ()
21957 {
21958 return sinf ();
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 if ac_fn_c_try_link "$LINENO"; then :
21964   ac_cv_lib_m_sinf=yes
21965 else
21966   ac_cv_lib_m_sinf=no
21967 fi
21968 rm -f core conftest.err conftest.$ac_objext \
21969     conftest$ac_exeext conftest.$ac_ext
21970 LIBS=$ac_check_lib_save_LIBS
21971 fi
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
21973 $as_echo "$ac_cv_lib_m_sinf" >&6; }
21974 if test "x$ac_cv_lib_m_sinf" = x""yes; then :
21975
21976 $as_echo "#define HAVE_SINF 1" >>confdefs.h
21977
21978 fi
21979
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
21981 $as_echo_n "checking for cosf in -lm... " >&6; }
21982 if test "${ac_cv_lib_m_cosf+set}" = set; then :
21983   $as_echo_n "(cached) " >&6
21984 else
21985   ac_check_lib_save_LIBS=$LIBS
21986 LIBS="-lm  $LIBS"
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h.  */
21989
21990 /* Override any GCC internal prototype to avoid an error.
21991    Use char because int might match the return type of a GCC
21992    builtin and then its argument prototype would still apply.  */
21993 #ifdef __cplusplus
21994 extern "C"
21995 #endif
21996 char cosf ();
21997 int
21998 main ()
21999 {
22000 return cosf ();
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 if ac_fn_c_try_link "$LINENO"; then :
22006   ac_cv_lib_m_cosf=yes
22007 else
22008   ac_cv_lib_m_cosf=no
22009 fi
22010 rm -f core conftest.err conftest.$ac_objext \
22011     conftest$ac_exeext conftest.$ac_ext
22012 LIBS=$ac_check_lib_save_LIBS
22013 fi
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
22015 $as_echo "$ac_cv_lib_m_cosf" >&6; }
22016 if test "x$ac_cv_lib_m_cosf" = x""yes; then :
22017
22018 $as_echo "#define HAVE_COSF 1" >>confdefs.h
22019
22020 fi
22021
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
22023 $as_echo_n "checking for trunc in -lm... " >&6; }
22024 if test "${ac_cv_lib_m_trunc+set}" = set; then :
22025   $as_echo_n "(cached) " >&6
22026 else
22027   ac_check_lib_save_LIBS=$LIBS
22028 LIBS="-lm  $LIBS"
22029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h.  */
22031
22032 /* Override any GCC internal prototype to avoid an error.
22033    Use char because int might match the return type of a GCC
22034    builtin and then its argument prototype would still apply.  */
22035 #ifdef __cplusplus
22036 extern "C"
22037 #endif
22038 char trunc ();
22039 int
22040 main ()
22041 {
22042 return trunc ();
22043   ;
22044   return 0;
22045 }
22046 _ACEOF
22047 if ac_fn_c_try_link "$LINENO"; then :
22048   ac_cv_lib_m_trunc=yes
22049 else
22050   ac_cv_lib_m_trunc=no
22051 fi
22052 rm -f core conftest.err conftest.$ac_objext \
22053     conftest$ac_exeext conftest.$ac_ext
22054 LIBS=$ac_check_lib_save_LIBS
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
22057 $as_echo "$ac_cv_lib_m_trunc" >&6; }
22058 if test "x$ac_cv_lib_m_trunc" = x""yes; then :
22059
22060 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
22061
22062 fi
22063
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
22065 $as_echo_n "checking for exp10 in -lm... " >&6; }
22066 if test "${ac_cv_lib_m_exp10+set}" = set; then :
22067   $as_echo_n "(cached) " >&6
22068 else
22069   ac_check_lib_save_LIBS=$LIBS
22070 LIBS="-lm  $LIBS"
22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h.  */
22073
22074 /* Override any GCC internal prototype to avoid an error.
22075    Use char because int might match the return type of a GCC
22076    builtin and then its argument prototype would still apply.  */
22077 #ifdef __cplusplus
22078 extern "C"
22079 #endif
22080 char exp10 ();
22081 int
22082 main ()
22083 {
22084 return exp10 ();
22085   ;
22086   return 0;
22087 }
22088 _ACEOF
22089 if ac_fn_c_try_link "$LINENO"; then :
22090   ac_cv_lib_m_exp10=yes
22091 else
22092   ac_cv_lib_m_exp10=no
22093 fi
22094 rm -f core conftest.err conftest.$ac_objext \
22095     conftest$ac_exeext conftest.$ac_ext
22096 LIBS=$ac_check_lib_save_LIBS
22097 fi
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
22099 $as_echo "$ac_cv_lib_m_exp10" >&6; }
22100 if test "x$ac_cv_lib_m_exp10" = x""yes; then :
22101
22102 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
22103
22104 fi
22105
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
22107 $as_echo_n "checking for log2 in -lm... " >&6; }
22108 if test "${ac_cv_lib_m_log2+set}" = set; then :
22109   $as_echo_n "(cached) " >&6
22110 else
22111   ac_check_lib_save_LIBS=$LIBS
22112 LIBS="-lm  $LIBS"
22113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h.  */
22115
22116 /* Override any GCC internal prototype to avoid an error.
22117    Use char because int might match the return type of a GCC
22118    builtin and then its argument prototype would still apply.  */
22119 #ifdef __cplusplus
22120 extern "C"
22121 #endif
22122 char log2 ();
22123 int
22124 main ()
22125 {
22126 return log2 ();
22127   ;
22128   return 0;
22129 }
22130 _ACEOF
22131 if ac_fn_c_try_link "$LINENO"; then :
22132   ac_cv_lib_m_log2=yes
22133 else
22134   ac_cv_lib_m_log2=no
22135 fi
22136 rm -f core conftest.err conftest.$ac_objext \
22137     conftest$ac_exeext conftest.$ac_ext
22138 LIBS=$ac_check_lib_save_LIBS
22139 fi
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
22141 $as_echo "$ac_cv_lib_m_log2" >&6; }
22142 if test "x$ac_cv_lib_m_log2" = x""yes; then :
22143
22144 $as_echo "#define HAVE_LOG2 1" >>confdefs.h
22145
22146 fi
22147
22148 #AC_FUNC_MKTIME
22149
22150
22151
22152
22153   SHM_OPEN_LIBS=""
22154   save_LIBS="$LIBS"
22155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22156 $as_echo_n "checking for library containing shm_open... " >&6; }
22157 if test "${ac_cv_search_shm_open+set}" = set; then :
22158   $as_echo_n "(cached) " >&6
22159 else
22160   ac_func_search_save_LIBS=$LIBS
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h.  */
22163
22164 /* Override any GCC internal prototype to avoid an error.
22165    Use char because int might match the return type of a GCC
22166    builtin and then its argument prototype would still apply.  */
22167 #ifdef __cplusplus
22168 extern "C"
22169 #endif
22170 char shm_open ();
22171 int
22172 main ()
22173 {
22174 return shm_open ();
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 for ac_lib in '' rt; do
22180   if test -z "$ac_lib"; then
22181     ac_res="none required"
22182   else
22183     ac_res=-l$ac_lib
22184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22185   fi
22186   if ac_fn_c_try_link "$LINENO"; then :
22187   ac_cv_search_shm_open=$ac_res
22188 fi
22189 rm -f core conftest.err conftest.$ac_objext \
22190     conftest$ac_exeext
22191   if test "${ac_cv_search_shm_open+set}" = set; then :
22192   break
22193 fi
22194 done
22195 if test "${ac_cv_search_shm_open+set}" = set; then :
22196
22197 else
22198   ac_cv_search_shm_open=no
22199 fi
22200 rm conftest.$ac_ext
22201 LIBS=$ac_func_search_save_LIBS
22202 fi
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22204 $as_echo "$ac_cv_search_shm_open" >&6; }
22205 ac_res=$ac_cv_search_shm_open
22206 if test "$ac_res" != no; then :
22207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22208   SHM_OPEN_LIBS="$LIBS"
22209 fi
22210
22211   for ac_func in shm_open
22212 do :
22213   ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
22214 if test "x$ac_cv_func_shm_open" = x""yes; then :
22215   cat >>confdefs.h <<_ACEOF
22216 #define HAVE_SHM_OPEN 1
22217 _ACEOF
22218
22219 fi
22220 done
22221
22222   LIBS="$save_LIBS"
22223
22224
22225
22226
22227 # Check whether --with-gnu-ld was given.
22228 if test "${with_gnu_ld+set}" = set; then :
22229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22230 else
22231   with_gnu_ld=no
22232 fi
22233
22234 ac_prog=ld
22235 if test "$GCC" = yes; then
22236   # Check if gcc -print-prog-name=ld gives a path.
22237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22238 $as_echo_n "checking for ld used by $CC... " >&6; }
22239   case $host in
22240   *-*-mingw*)
22241     # gcc leaves a trailing carriage return which upsets mingw
22242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22243   *)
22244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22245   esac
22246   case $ac_prog in
22247     # Accept absolute paths.
22248     [\\/]* | ?:[\\/]*)
22249       re_direlt='/[^/][^/]*/\.\./'
22250       # Canonicalize the pathname of ld
22251       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22252       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22253         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22254       done
22255       test -z "$LD" && LD="$ac_prog"
22256       ;;
22257   "")
22258     # If it fails, then pretend we aren't using GCC.
22259     ac_prog=ld
22260     ;;
22261   *)
22262     # If it is relative, then search for the first ld in PATH.
22263     with_gnu_ld=unknown
22264     ;;
22265   esac
22266 elif test "$with_gnu_ld" = yes; then
22267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22268 $as_echo_n "checking for GNU ld... " >&6; }
22269 else
22270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22271 $as_echo_n "checking for non-GNU ld... " >&6; }
22272 fi
22273 if test "${lt_cv_path_LD+set}" = set; then :
22274   $as_echo_n "(cached) " >&6
22275 else
22276   if test -z "$LD"; then
22277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22278   for ac_dir in $PATH; do
22279     IFS="$lt_save_ifs"
22280     test -z "$ac_dir" && ac_dir=.
22281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22282       lt_cv_path_LD="$ac_dir/$ac_prog"
22283       # Check to see if the program is GNU ld.  I'd rather use --version,
22284       # but apparently some variants of GNU ld only accept -v.
22285       # Break only if it was the GNU/non-GNU ld that we prefer.
22286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22287       *GNU* | *'with BFD'*)
22288         test "$with_gnu_ld" != no && break
22289         ;;
22290       *)
22291         test "$with_gnu_ld" != yes && break
22292         ;;
22293       esac
22294     fi
22295   done
22296   IFS="$lt_save_ifs"
22297 else
22298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
22299 fi
22300 fi
22301
22302 LD="$lt_cv_path_LD"
22303 if test -n "$LD"; then
22304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22305 $as_echo "$LD" >&6; }
22306 else
22307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22308 $as_echo "no" >&6; }
22309 fi
22310 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22313 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
22314   $as_echo_n "(cached) " >&6
22315 else
22316   # I'd rather use --version here, but apparently some GNU lds only accept -v.
22317 case `$LD -v 2>&1 </dev/null` in
22318 *GNU* | *'with BFD'*)
22319   lt_cv_prog_gnu_ld=yes
22320   ;;
22321 *)
22322   lt_cv_prog_gnu_ld=no
22323   ;;
22324 esac
22325 fi
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22328 with_gnu_ld=$lt_cv_prog_gnu_ld
22329
22330
22331
22332
22333
22334
22335
22336
22337 # on Mingw32 extra LDFLAGS are required to ease global variable linking
22338 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
22339
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
22341 $as_echo_n "checking whether $LD accepts --enable-runtime-pseudo-reloc... " >&6; }
22342 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
22343 then
22344         # libtool requires the quotes
22345         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
22346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347 $as_echo "yes" >&6; }
22348 else
22349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22351 fi
22352
22353
22354
22355
22356
22357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateFileMapping function" >&5
22358 $as_echo_n "checking for CreateFileMapping function... " >&6; }
22359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h.  */
22361
22362 #include <windows.h>
22363 int main (int argc, char **argv)
22364 {
22365     HANDLE handle;
22366     int size;
22367     char                seg_name[1024];
22368     handle = CreateFileMapping(
22369                      INVALID_HANDLE_VALUE,    // use paging file
22370                      NULL,                    // default security
22371                      PAGE_READWRITE,          // read/write access
22372                      0,                       // max. object size
22373                      size,                // buffer size
22374                      seg_name);                 // name of mapping object
22375     return 0;
22376 }
22377
22378 _ACEOF
22379 if ac_fn_c_try_compile "$LINENO"; then :
22380   HAVE_CREATEFILEMAPPING=yes
22381
22382 $as_echo "#define HAVE_CREATEFILEMAPPING 1" >>confdefs.h
22383
22384 else
22385   HAVE_CREATEFILEMAPPING=no
22386 fi
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388
22389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CREATEFILEMAPPING" >&5
22390 $as_echo "$HAVE_CREATEFILEMAPPING" >&6; }
22391    if test x$HAVE_CREATEFILEMAPPING = xyes; then
22392   HAVE_CREATEFILEMAPPING_TRUE=
22393   HAVE_CREATEFILEMAPPING_FALSE='#'
22394 else
22395   HAVE_CREATEFILEMAPPING_TRUE='#'
22396   HAVE_CREATEFILEMAPPING_FALSE=
22397 fi
22398
22399
22400
22401
22402
22403 for ac_header in sys/types.h fcntl.h io.h
22404 do :
22405   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22407 eval as_val=\$$as_ac_Header
22408    if test "x$as_val" = x""yes; then :
22409   cat >>confdefs.h <<_ACEOF
22410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22411 _ACEOF
22412
22413 fi
22414
22415 done
22416
22417 for ac_header in windows.h
22418 do :
22419   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
22420 if test "x$ac_cv_header_windows_h" = x""yes; then :
22421   cat >>confdefs.h <<_ACEOF
22422 #define HAVE_WINDOWS_H 1
22423 _ACEOF
22424
22425 fi
22426
22427 done
22428
22429 for ac_header in winioctl.h winbase.h
22430 do :
22431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22433         #if HAVE_WINDOWS_H
22434         #include <windows.h>
22435         #endif
22436
22437 "
22438 eval as_val=\$$as_ac_Header
22439    if test "x$as_val" = x""yes; then :
22440   cat >>confdefs.h <<_ACEOF
22441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22442 _ACEOF
22443
22444 fi
22445
22446 done
22447
22448
22449 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
22450 do :
22451   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22453 eval as_val=\$$as_ac_var
22454    if test "x$as_val" = x""yes; then :
22455   cat >>confdefs.h <<_ACEOF
22456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22457 _ACEOF
22458
22459 fi
22460 done
22461
22462 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "
22463      #if HAVE_SYS_TYPES_H
22464      # include <sys/types.h>
22465      #endif
22466      #if TIME_WITH_SYS_TIME
22467      # include <sys/time.h>
22468      # include <time.h>
22469      #else
22470      # if HAVE_SYS_TIME_H
22471      #  include <sys/time.h>
22472      # else
22473      #  include <time.h>
22474      # endif
22475      #endif
22476
22477 "
22478 if test "x$ac_cv_type_struct_timezone" = x""yes; then :
22479
22480 cat >>confdefs.h <<_ACEOF
22481 #define HAVE_STRUCT_TIMEZONE 1
22482 _ACEOF
22483
22484
22485 fi
22486 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "
22487      #if HAVE_SYS_TYPES_H
22488      # include <sys/types.h>
22489      #endif
22490      #if TIME_WITH_SYS_TIME
22491      # include <sys/time.h>
22492      # include <time.h>
22493      #else
22494      # if HAVE_SYS_TIME_H
22495      #  include <sys/time.h>
22496      # else
22497      #  include <time.h>
22498      # endif
22499      #endif
22500
22501 "
22502 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
22503
22504 cat >>confdefs.h <<_ACEOF
22505 #define HAVE_STRUCT_TIMESPEC 1
22506 _ACEOF
22507
22508
22509 fi
22510 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
22511      #if HAVE_SYS_TYPES_H
22512      # include <sys/types.h>
22513      #endif
22514      #if TIME_WITH_SYS_TIME
22515      # include <sys/time.h>
22516      # include <time.h>
22517      #else
22518      # if HAVE_SYS_TIME_H
22519      #  include <sys/time.h>
22520      # else
22521      #  include <time.h>
22522      # endif
22523      #endif
22524
22525 "
22526 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22527
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_SSIZE_T 1
22530 _ACEOF
22531
22532
22533 fi
22534
22535
22536 for ac_func in getopt usleep gettimeofday
22537 do :
22538   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22540 eval as_val=\$$as_ac_var
22541    if test "x$as_val" = x""yes; then :
22542   cat >>confdefs.h <<_ACEOF
22543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22544 _ACEOF
22545
22546 else
22547   case " $LIBOBJS " in
22548   *" $ac_func.$ac_objext "* ) ;;
22549   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22550  ;;
22551 esac
22552
22553 fi
22554 done
22555
22556
22557
22558
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sleep" >&5
22560 $as_echo_n "checking for Sleep... " >&6; }
22561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22562 /* end confdefs.h.  */
22563    #include <windows.h>
22564                 #include <winbase.h>
22565
22566 int
22567 main ()
22568 {
22569  Sleep(0);
22570   ;
22571   return 0;
22572 }
22573 _ACEOF
22574 if ac_fn_c_try_link "$LINENO"; then :
22575
22576 $as_echo "#define HAVE_SSLEEP 1" >>confdefs.h
22577
22578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22579 $as_echo "yes" >&6; }
22580 else
22581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582 $as_echo "no" >&6; }
22583
22584 fi
22585 rm -f core conftest.err conftest.$ac_objext \
22586     conftest$ac_exeext conftest.$ac_ext
22587
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir accepts only one arg" >&5
22589 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
22590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22591 /* end confdefs.h.  */
22592 #include <sys/types.h>
22593        #include <sys/stat.h>
22594        #include <fcntl.h>
22595 int
22596 main ()
22597 {
22598
22599        mkdir("")
22600
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22607 $as_echo "yes" >&6; }
22608
22609 $as_echo "#define MKDIR_TAKES_ONE_ARG /**/" >>confdefs.h
22610
22611 else
22612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613 $as_echo "no" >&6; }
22614
22615 fi
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617
22618
22619
22620
22621
22622
22623 # Extract the first word of "dot", so it can be a program name with args.
22624 set dummy dot; ac_word=$2
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22626 $as_echo_n "checking for $ac_word... " >&6; }
22627 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then :
22628   $as_echo_n "(cached) " >&6
22629 else
22630   if test -n "$HAVE_DOT"; then
22631   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
22632 else
22633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22634 for as_dir in $PATH
22635 do
22636   IFS=$as_save_IFS
22637   test -z "$as_dir" && as_dir=.
22638     for ac_exec_ext in '' $ac_executable_extensions; do
22639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22640     ac_cv_prog_HAVE_DOT="YES"
22641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22642     break 2
22643   fi
22644 done
22645   done
22646 IFS=$as_save_IFS
22647
22648   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
22649 fi
22650 fi
22651 HAVE_DOT=$ac_cv_prog_HAVE_DOT
22652 if test -n "$HAVE_DOT"; then
22653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
22654 $as_echo "$HAVE_DOT" >&6; }
22655 else
22656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22657 $as_echo "no" >&6; }
22658 fi
22659
22660
22661
22662
22663
22664 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22665         if test -n "$ac_tool_prefix"; then
22666   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22667 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22669 $as_echo_n "checking for $ac_word... " >&6; }
22670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22671   $as_echo_n "(cached) " >&6
22672 else
22673   case $PKG_CONFIG in
22674   [\\/]* | ?:[\\/]*)
22675   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22676   ;;
22677   *)
22678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22679 for as_dir in $PATH
22680 do
22681   IFS=$as_save_IFS
22682   test -z "$as_dir" && as_dir=.
22683     for ac_exec_ext in '' $ac_executable_extensions; do
22684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22685     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22687     break 2
22688   fi
22689 done
22690   done
22691 IFS=$as_save_IFS
22692
22693   ;;
22694 esac
22695 fi
22696 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22697 if test -n "$PKG_CONFIG"; then
22698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22699 $as_echo "$PKG_CONFIG" >&6; }
22700 else
22701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702 $as_echo "no" >&6; }
22703 fi
22704
22705
22706 fi
22707 if test -z "$ac_cv_path_PKG_CONFIG"; then
22708   ac_pt_PKG_CONFIG=$PKG_CONFIG
22709   # Extract the first word of "pkg-config", so it can be a program name with args.
22710 set dummy pkg-config; ac_word=$2
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22712 $as_echo_n "checking for $ac_word... " >&6; }
22713 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22714   $as_echo_n "(cached) " >&6
22715 else
22716   case $ac_pt_PKG_CONFIG in
22717   [\\/]* | ?:[\\/]*)
22718   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22719   ;;
22720   *)
22721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22722 for as_dir in $PATH
22723 do
22724   IFS=$as_save_IFS
22725   test -z "$as_dir" && as_dir=.
22726     for ac_exec_ext in '' $ac_executable_extensions; do
22727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22728     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22730     break 2
22731   fi
22732 done
22733   done
22734 IFS=$as_save_IFS
22735
22736   ;;
22737 esac
22738 fi
22739 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22740 if test -n "$ac_pt_PKG_CONFIG"; then
22741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22742 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22743 else
22744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22745 $as_echo "no" >&6; }
22746 fi
22747
22748   if test "x$ac_pt_PKG_CONFIG" = x; then
22749     PKG_CONFIG=""
22750   else
22751     case $cross_compiling:$ac_tool_warned in
22752 yes:)
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22755 ac_tool_warned=yes ;;
22756 esac
22757     PKG_CONFIG=$ac_pt_PKG_CONFIG
22758   fi
22759 else
22760   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22761 fi
22762
22763 fi
22764 if test -n "$PKG_CONFIG"; then
22765         _pkg_min_version=0.18
22766         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22767 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22768         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22769                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22770 $as_echo "yes" >&6; }
22771         else
22772                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22773 $as_echo "no" >&6; }
22774                 PKG_CONFIG=""
22775         fi
22776
22777 fi
22778
22779
22780
22781 pkg_failed=no
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3F" >&5
22783 $as_echo_n "checking for FFTW3F... " >&6; }
22784
22785 if test -n "$PKG_CONFIG"; then
22786     if test -n "$FFTW3F_CFLAGS"; then
22787         pkg_cv_FFTW3F_CFLAGS="$FFTW3F_CFLAGS"
22788     else
22789         if test -n "$PKG_CONFIG" && \
22790     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
22791   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
22792   ac_status=$?
22793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794   test $ac_status = 0; }; then
22795   pkg_cv_FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0" 2>/dev/null`
22796 else
22797   pkg_failed=yes
22798 fi
22799     fi
22800 else
22801         pkg_failed=untried
22802 fi
22803
22804 if test x$cross_compiling = xyes
22805 then
22806     if test -n "$PKG_CONFIG"; then
22807     if test -n "$FFTW3F_LIBS"; then
22808         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
22809     else
22810         if test -n "$PKG_CONFIG" && \
22811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
22812   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
22813   ac_status=$?
22814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815   test $ac_status = 0; }; then
22816   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
22817 else
22818   pkg_failed=yes
22819 fi
22820     fi
22821 else
22822         pkg_failed=untried
22823 fi
22824     _pkg_tmp=
22825   for flag in $pkg_cv_FFTW3F_LIBS; do
22826     case $flag in
22827     (-L/lib* | -L/usr/lib* )       ;; # ignore
22828     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
22829     esac
22830   done
22831   pkg_cv_FFTW3F_LIBS="$_pkg_tmp"
22832 else
22833   if test -n "$PKG_CONFIG"; then
22834     if test -n "$FFTW3F_LIBS"; then
22835         pkg_cv_FFTW3F_LIBS="$FFTW3F_LIBS"
22836     else
22837         if test -n "$PKG_CONFIG" && \
22838     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
22839   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
22840   ac_status=$?
22841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842   test $ac_status = 0; }; then
22843   pkg_cv_FFTW3F_LIBS=`$PKG_CONFIG --libs --static "fftw3f >= 3.0" 2>/dev/null`
22844 else
22845   pkg_failed=yes
22846 fi
22847     fi
22848 else
22849         pkg_failed=untried
22850 fi
22851 fi
22852
22853 if test -n "$PKG_CONFIG"; then
22854     if test -n "$FFTW3F_INCLUDEDIR"; then
22855         pkg_cv_FFTW3F_INCLUDEDIR="$FFTW3F_INCLUDEDIR"
22856     else
22857         if test -n "$PKG_CONFIG" && \
22858     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3f >= 3.0\""; } >&5
22859   ($PKG_CONFIG --exists --print-errors "fftw3f >= 3.0") 2>&5
22860   ac_status=$?
22861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862   test $ac_status = 0; }; then
22863   pkg_cv_FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0" 2>/dev/null`
22864 else
22865   pkg_failed=yes
22866 fi
22867     fi
22868 else
22869         pkg_failed=untried
22870 fi
22871
22872
22873
22874
22875 if test $pkg_failed = yes; then
22876
22877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22878         _pkg_short_errors_supported=yes
22879 else
22880         _pkg_short_errors_supported=no
22881 fi
22882         if test $_pkg_short_errors_supported = yes; then
22883                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fftw3f >= 3.0"`
22884         else
22885                 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
22886         fi
22887         # Put the nasty error message in config.log where it belongs
22888         echo "$FFTW3F_PKG_ERRORS" >&5
22889
22890         as_fn_error "Package requirements (fftw3f >= 3.0) were not met:
22891
22892 $FFTW3F_PKG_ERRORS
22893
22894 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22895 installed software in a non-standard prefix.
22896
22897 Alternatively, you may set the environment variables FFTW3F_CFLAGS
22898 and FFTW3F_LIBS to avoid the need to call pkg-config.
22899 See the pkg-config man page for more details.
22900 " "$LINENO" 5
22901 elif test $pkg_failed = untried; then
22902         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22904 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
22905 is in your PATH or set the PKG_CONFIG environment variable to the full
22906 path to pkg-config.
22907
22908 Alternatively, you may set the environment variables FFTW3F_CFLAGS
22909 and FFTW3F_LIBS to avoid the need to call pkg-config.
22910 See the pkg-config man page for more details.
22911
22912 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22913 See \`config.log' for more details." "$LINENO" 5; }
22914 else
22915         FFTW3F_CFLAGS=$pkg_cv_FFTW3F_CFLAGS
22916         FFTW3F_LIBS=$pkg_cv_FFTW3F_LIBS
22917         FFTW3F_INCLUDEDIR=$pkg_cv_FFTW3F_INCLUDEDIR
22918
22919         FFTW3F_CPPFLAGS=""
22920         for flag in $FFTW3F_CFLAGS; do
22921           case $flag in
22922           -I* | -D* | -U*) FFTW3F_CPPFLAGS="$FFTW3F_CPPFLAGS $flag" ;;
22923           esac
22924         done
22925         pkg_cv_FFTW3F_CPPFLAGS=$FFTW3F_CPPFLAGS
22926
22927
22928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22929 $as_echo "yes" >&6; }
22930         :
22931 fi
22932
22933
22934
22935   # Check whether --enable-doxygen was given.
22936 if test "${enable_doxygen+set}" = set; then :
22937   enableval=$enable_doxygen;
22938 fi
22939
22940   # Check whether --enable-dot was given.
22941 if test "${enable_dot+set}" = set; then :
22942   enableval=$enable_dot;
22943 fi
22944
22945
22946   if test "x$enable_doxygen" = xno; then
22947         enable_doc=no
22948   else
22949         # Extract the first word of "doxygen", so it can be a program name with args.
22950 set dummy doxygen; ac_word=$2
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22952 $as_echo_n "checking for $ac_word... " >&6; }
22953 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
22954   $as_echo_n "(cached) " >&6
22955 else
22956   case $DOXYGEN in
22957   [\\/]* | ?:[\\/]*)
22958   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
22959   ;;
22960   *)
22961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22962 for as_dir in $PATH
22963 do
22964   IFS=$as_save_IFS
22965   test -z "$as_dir" && as_dir=.
22966     for ac_exec_ext in '' $ac_executable_extensions; do
22967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22968     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
22969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22970     break 2
22971   fi
22972 done
22973   done
22974 IFS=$as_save_IFS
22975
22976   ;;
22977 esac
22978 fi
22979 DOXYGEN=$ac_cv_path_DOXYGEN
22980 if test -n "$DOXYGEN"; then
22981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
22982 $as_echo "$DOXYGEN" >&6; }
22983 else
22984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22985 $as_echo "no" >&6; }
22986 fi
22987
22988
22989         if test x$DOXYGEN = x; then
22990                 if test "x$enable_doxygen" = xyes; then
22991                         as_fn_error "could not find doxygen" "$LINENO" 5
22992                 fi
22993                 enable_doc=no
22994                 generate_docs=
22995         else
22996                 enable_doc=yes
22997                 generate_docs=docs
22998                 # Extract the first word of "dot", so it can be a program name with args.
22999 set dummy dot; ac_word=$2
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23001 $as_echo_n "checking for $ac_word... " >&6; }
23002 if test "${ac_cv_path_DOT+set}" = set; then :
23003   $as_echo_n "(cached) " >&6
23004 else
23005   case $DOT in
23006   [\\/]* | ?:[\\/]*)
23007   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
23008   ;;
23009   *)
23010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23011 for as_dir in $PATH
23012 do
23013   IFS=$as_save_IFS
23014   test -z "$as_dir" && as_dir=.
23015     for ac_exec_ext in '' $ac_executable_extensions; do
23016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23017     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
23018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23019     break 2
23020   fi
23021 done
23022   done
23023 IFS=$as_save_IFS
23024
23025   ;;
23026 esac
23027 fi
23028 DOT=$ac_cv_path_DOT
23029 if test -n "$DOT"; then
23030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
23031 $as_echo "$DOT" >&6; }
23032 else
23033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23034 $as_echo "no" >&6; }
23035 fi
23036
23037
23038         fi
23039   fi
23040
23041    if test x$enable_doc = xyes; then
23042   DOC_TRUE=
23043   DOC_FALSE='#'
23044 else
23045   DOC_TRUE='#'
23046   DOC_FALSE=
23047 fi
23048
23049
23050   if test x$DOT = x; then
23051         if test "x$enable_dot" = xyes; then
23052                 as_fn_error "could not find dot" "$LINENO" 5
23053         fi
23054         enable_dot=no
23055   else
23056         enable_dot=yes
23057   fi
23058
23059   enable_xml_docs=YES
23060
23061   enable_html_docs=YES
23062
23063   enable_latex_docs=NO
23064
23065
23066
23067
23068
23069
23070 # Check whether --with-md-cpu was given.
23071 if test "${with_md_cpu+set}" = set; then :
23072   withval=$with_md_cpu; cf_with_md_cpu="$withval"
23073 else
23074   cf_with_md_cpu="$host_cpu"
23075 fi
23076
23077
23078   case "$cf_with_md_cpu" in
23079    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86 ;;
23080    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64 ;;
23081    powerpc*)            MD_CPU=powerpc ;;
23082    *)                   MD_CPU=generic ;;
23083   esac
23084
23085   # Check whether --enable-altivec was given.
23086 if test "${enable_altivec+set}" = set; then :
23087   enableval=$enable_altivec;  if test $MD_CPU = powerpc; then
23088         case "$enableval" in
23089           (no)  MD_CPU=generic ;;
23090           (yes)
23091
23092   echo 'void f(){}' > conftest.c
23093   for i in -mabi=altivec -maltivec
23094   do
23095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
23096 $as_echo_n "checking whether $CC accepts $i... " >&6; }
23097     if test -z "`${CC} $i -c conftest.c 2>&1`"
23098     then
23099       lf_CFLAGS="${lf_CFLAGS} $i"
23100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23101 $as_echo "yes" >&6; }
23102     else
23103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23104 $as_echo "no" >&6; }
23105     fi
23106   done
23107   rm -f conftest.c conftest.o
23108
23109
23110
23111   echo 'void f(){}' > conftest.cc
23112   for i in -mabi=altivec -maltivec
23113   do
23114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
23115 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
23116     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
23117     then
23118       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
23119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23120 $as_echo "yes" >&6; }
23121     else
23122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23123 $as_echo "no" >&6; }
23124     fi
23125   done
23126   rm -f conftest.cc conftest.o
23127
23128
23129  ;;
23130           (*) as_fn_error "Invalid argument ($enableval) to --enable-altivec" "$LINENO" 5 ;;
23131         esac
23132       fi
23133 else
23134    if test $MD_CPU = powerpc; then
23135
23136   echo 'void f(){}' > conftest.c
23137   for i in -mabi=altivec -maltivec
23138   do
23139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $i" >&5
23140 $as_echo_n "checking whether $CC accepts $i... " >&6; }
23141     if test -z "`${CC} $i -c conftest.c 2>&1`"
23142     then
23143       lf_CFLAGS="${lf_CFLAGS} $i"
23144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23145 $as_echo "yes" >&6; }
23146     else
23147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23148 $as_echo "no" >&6; }
23149     fi
23150   done
23151   rm -f conftest.c conftest.o
23152
23153
23154
23155   echo 'void f(){}' > conftest.cc
23156   for i in -mabi=altivec -maltivec
23157   do
23158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $i" >&5
23159 $as_echo_n "checking whether $CXX accepts $i... " >&6; }
23160     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
23161     then
23162       lf_CXXFLAGS="${lf_CXXFLAGS} $i"
23163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23164 $as_echo "yes" >&6; }
23165     else
23166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23167 $as_echo "no" >&6; }
23168     fi
23169   done
23170   rm -f conftest.cc conftest.o
23171
23172
23173  fi
23174 fi
23175
23176
23177
23178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine dependent speedups" >&5
23179 $as_echo_n "checking for machine dependent speedups... " >&6; }
23180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD_CPU" >&5
23181 $as_echo "$MD_CPU" >&6; }
23182
23183
23184
23185    if test "$MD_CPU" = "x86"; then
23186   MD_CPU_x86_TRUE=
23187   MD_CPU_x86_FALSE='#'
23188 else
23189   MD_CPU_x86_TRUE='#'
23190   MD_CPU_x86_FALSE=
23191 fi
23192
23193    if test "$MD_SUBCPU" = "x86_64"; then
23194   MD_SUBCPU_x86_64_TRUE=
23195   MD_SUBCPU_x86_64_FALSE='#'
23196 else
23197   MD_SUBCPU_x86_64_TRUE='#'
23198   MD_SUBCPU_x86_64_FALSE=
23199 fi
23200
23201    if test "$MD_CPU" = "powerpc"; then
23202   MD_CPU_powerpc_TRUE=
23203   MD_CPU_powerpc_FALSE='#'
23204 else
23205   MD_CPU_powerpc_TRUE='#'
23206   MD_CPU_powerpc_FALSE=
23207 fi
23208
23209    if test "$MD_CPU" = "generic"; then
23210   MD_CPU_generic_TRUE=
23211   MD_CPU_generic_FALSE='#'
23212 else
23213   MD_CPU_generic_TRUE='#'
23214   MD_CPU_generic_FALSE=
23215 fi
23216
23217
23218
23219 if test -n "$PKG_CONFIG" && \
23220     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
23221   ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
23222   ac_status=$?
23223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224   test $ac_status = 0; }; then
23225
23226
23227
23228 pkg_failed=no
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
23230 $as_echo_n "checking for CPPUNIT... " >&6; }
23231
23232 if test -n "$PKG_CONFIG"; then
23233     if test -n "$CPPUNIT_CFLAGS"; then
23234         pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
23235     else
23236         if test -n "$PKG_CONFIG" && \
23237     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
23238   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
23239   ac_status=$?
23240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23241   test $ac_status = 0; }; then
23242   pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.9.14" 2>/dev/null`
23243 else
23244   pkg_failed=yes
23245 fi
23246     fi
23247 else
23248         pkg_failed=untried
23249 fi
23250
23251 if test x$cross_compiling = xyes
23252 then
23253     if test -n "$PKG_CONFIG"; then
23254     if test -n "$CPPUNIT_LIBS"; then
23255         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
23256     else
23257         if test -n "$PKG_CONFIG" && \
23258     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
23259   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
23260   ac_status=$?
23261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23262   test $ac_status = 0; }; then
23263   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
23264 else
23265   pkg_failed=yes
23266 fi
23267     fi
23268 else
23269         pkg_failed=untried
23270 fi
23271     _pkg_tmp=
23272   for flag in $pkg_cv_CPPUNIT_LIBS; do
23273     case $flag in
23274     (-L/lib* | -L/usr/lib* )       ;; # ignore
23275     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
23276     esac
23277   done
23278   pkg_cv_CPPUNIT_LIBS="$_pkg_tmp"
23279 else
23280   if test -n "$PKG_CONFIG"; then
23281     if test -n "$CPPUNIT_LIBS"; then
23282         pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
23283     else
23284         if test -n "$PKG_CONFIG" && \
23285     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
23286   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
23287   ac_status=$?
23288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289   test $ac_status = 0; }; then
23290   pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs --static "cppunit >= 1.9.14" 2>/dev/null`
23291 else
23292   pkg_failed=yes
23293 fi
23294     fi
23295 else
23296         pkg_failed=untried
23297 fi
23298 fi
23299
23300 if test -n "$PKG_CONFIG"; then
23301     if test -n "$CPPUNIT_INCLUDEDIR"; then
23302         pkg_cv_CPPUNIT_INCLUDEDIR="$CPPUNIT_INCLUDEDIR"
23303     else
23304         if test -n "$PKG_CONFIG" && \
23305     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.9.14\""; } >&5
23306   ($PKG_CONFIG --exists --print-errors "cppunit >= 1.9.14") 2>&5
23307   ac_status=$?
23308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309   test $ac_status = 0; }; then
23310   pkg_cv_CPPUNIT_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "cppunit >= 1.9.14" 2>/dev/null`
23311 else
23312   pkg_failed=yes
23313 fi
23314     fi
23315 else
23316         pkg_failed=untried
23317 fi
23318
23319
23320
23321
23322 if test $pkg_failed = yes; then
23323
23324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23325         _pkg_short_errors_supported=yes
23326 else
23327         _pkg_short_errors_supported=no
23328 fi
23329         if test $_pkg_short_errors_supported = yes; then
23330                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
23331         else
23332                 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cppunit >= 1.9.14"`
23333         fi
23334         # Put the nasty error message in config.log where it belongs
23335         echo "$CPPUNIT_PKG_ERRORS" >&5
23336
23337         as_fn_error "Package requirements (cppunit >= 1.9.14) were not met:
23338
23339 $CPPUNIT_PKG_ERRORS
23340
23341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23342 installed software in a non-standard prefix.
23343
23344 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
23345 and CPPUNIT_LIBS to avoid the need to call pkg-config.
23346 See the pkg-config man page for more details.
23347 " "$LINENO" 5
23348 elif test $pkg_failed = untried; then
23349         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23351 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
23352 is in your PATH or set the PKG_CONFIG environment variable to the full
23353 path to pkg-config.
23354
23355 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
23356 and CPPUNIT_LIBS to avoid the need to call pkg-config.
23357 See the pkg-config man page for more details.
23358
23359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23360 See \`config.log' for more details." "$LINENO" 5; }
23361 else
23362         CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
23363         CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
23364         CPPUNIT_INCLUDEDIR=$pkg_cv_CPPUNIT_INCLUDEDIR
23365
23366         CPPUNIT_CPPFLAGS=""
23367         for flag in $CPPUNIT_CFLAGS; do
23368           case $flag in
23369           -I* | -D* | -U*) CPPUNIT_CPPFLAGS="$CPPUNIT_CPPFLAGS $flag" ;;
23370           esac
23371         done
23372         pkg_cv_CPPUNIT_CPPFLAGS=$CPPUNIT_CPPFLAGS
23373
23374
23375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23376 $as_echo "yes" >&6; }
23377         :
23378 fi
23379 else
23380
23381
23382
23383 # Check whether --with-cppunit-prefix was given.
23384 if test "${with_cppunit_prefix+set}" = set; then :
23385   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
23386 else
23387   cppunit_config_prefix=""
23388 fi
23389
23390
23391 # Check whether --with-cppunit-exec-prefix was given.
23392 if test "${with_cppunit_exec_prefix+set}" = set; then :
23393   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
23394 else
23395   cppunit_config_exec_prefix=""
23396 fi
23397
23398
23399   if test x$cppunit_config_exec_prefix != x ; then
23400      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
23401      if test x${CPPUNIT_CONFIG+set} != xset ; then
23402         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
23403      fi
23404   fi
23405   if test x$cppunit_config_prefix != x ; then
23406      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
23407      if test x${CPPUNIT_CONFIG+set} != xset ; then
23408         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
23409      fi
23410   fi
23411
23412   # Extract the first word of "cppunit-config", so it can be a program name with args.
23413 set dummy cppunit-config; ac_word=$2
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23415 $as_echo_n "checking for $ac_word... " >&6; }
23416 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
23417   $as_echo_n "(cached) " >&6
23418 else
23419   case $CPPUNIT_CONFIG in
23420   [\\/]* | ?:[\\/]*)
23421   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
23422   ;;
23423   *)
23424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23425 for as_dir in $PATH
23426 do
23427   IFS=$as_save_IFS
23428   test -z "$as_dir" && as_dir=.
23429     for ac_exec_ext in '' $ac_executable_extensions; do
23430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23431     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23433     break 2
23434   fi
23435 done
23436   done
23437 IFS=$as_save_IFS
23438
23439   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
23440   ;;
23441 esac
23442 fi
23443 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
23444 if test -n "$CPPUNIT_CONFIG"; then
23445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
23446 $as_echo "$CPPUNIT_CONFIG" >&6; }
23447 else
23448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23449 $as_echo "no" >&6; }
23450 fi
23451
23452
23453   cppunit_version_min=1.9.14
23454
23455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
23456 $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
23457   no_cppunit=""
23458   if test "$CPPUNIT_CONFIG" = "no" ; then
23459     no_cppunit=yes
23460   else
23461     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
23462     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
23463     cppunit_version=`$CPPUNIT_CONFIG --version`
23464
23465     cppunit_major_version=`echo $cppunit_version | \
23466            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23467     cppunit_minor_version=`echo $cppunit_version | \
23468            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23469     cppunit_micro_version=`echo $cppunit_version | \
23470            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23471
23472     cppunit_major_min=`echo $cppunit_version_min | \
23473            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23474     cppunit_minor_min=`echo $cppunit_version_min | \
23475            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23476     cppunit_micro_min=`echo $cppunit_version_min | \
23477            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23478
23479     cppunit_version_proper=`expr \
23480         $cppunit_major_version \> $cppunit_major_min \| \
23481         $cppunit_major_version \= $cppunit_major_min \& \
23482         $cppunit_minor_version \> $cppunit_minor_min \| \
23483         $cppunit_major_version \= $cppunit_major_min \& \
23484         $cppunit_minor_version \= $cppunit_minor_min \& \
23485         $cppunit_micro_version \>= $cppunit_micro_min `
23486
23487     if test "$cppunit_version_proper" = "1" ; then
23488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
23489 $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
23490     else
23491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23492 $as_echo "no" >&6; }
23493       no_cppunit=yes
23494     fi
23495   fi
23496
23497   if test "x$no_cppunit" = x ; then
23498      :
23499   else
23500      CPPUNIT_CFLAGS=""
23501      CPPUNIT_LIBS=""
23502      as_fn_error "GNU Radio requires cppunit.  Stop" "$LINENO" 5
23503   fi
23504
23505
23506
23507
23508 fi
23509
23510 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
23511
23512
23513 # Extract the first word of "guile", so it can be a program name with args.
23514 set dummy guile; ac_word=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if test "${ac_cv_path_GUILE+set}" = set; then :
23518   $as_echo_n "(cached) " >&6
23519 else
23520   case $GUILE in
23521   [\\/]* | ?:[\\/]*)
23522   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
23523   ;;
23524   *)
23525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23526 for as_dir in $PATH
23527 do
23528   IFS=$as_save_IFS
23529   test -z "$as_dir" && as_dir=.
23530     for ac_exec_ext in '' $ac_executable_extensions; do
23531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23532     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
23533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23534     break 2
23535   fi
23536 done
23537   done
23538 IFS=$as_save_IFS
23539
23540   ;;
23541 esac
23542 fi
23543 GUILE=$ac_cv_path_GUILE
23544 if test -n "$GUILE"; then
23545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
23546 $as_echo "$GUILE" >&6; }
23547 else
23548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23550 fi
23551
23552
23553
23554
23555
23556
23557 # Check whether --with-boost was given.
23558 if test "${with_boost+set}" = set; then :
23559   withval=$with_boost;
23560     if test "$withval" = "no"; then
23561         want_boost="no"
23562     elif test "$withval" = "yes"; then
23563         want_boost="yes"
23564         ac_boost_path=""
23565     else
23566         want_boost="yes"
23567         ac_boost_path="$withval"
23568     fi
23569
23570 else
23571   want_boost="yes"
23572 fi
23573
23574
23575
23576
23577 # Check whether --with-boost-libdir was given.
23578 if test "${with_boost_libdir+set}" = set; then :
23579   withval=$with_boost_libdir;
23580         if test -d $withval
23581         then
23582                 ac_boost_lib_path="$withval"
23583         else
23584                 as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
23585         fi
23586
23587 else
23588   ac_boost_lib_path=""
23589
23590 fi
23591
23592
23593 if test "x$want_boost" = "xyes"; then
23594     boost_lib_version_req=1.35
23595     boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
23596     boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
23597     boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
23598     boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23599     if test "x$boost_lib_version_req_sub_minor" = "x" ; then
23600         boost_lib_version_req_sub_minor="0"
23601         fi
23602     WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
23603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost >= $boost_lib_version_req" >&5
23604 $as_echo_n "checking for boost >= $boost_lib_version_req... " >&6; }
23605     succeeded=no
23606
23607                 if test "$ac_boost_path" != ""; then
23608                         if test -d "$ac_boost_path/lib${gr_libdir_suffix}"; then
23609             BOOST_LDFLAGS="-L$ac_boost_path/lib${gr_libdir_suffix}"
23610         else
23611             BOOST_LDFLAGS="-L$ac_boost_path/lib"
23612         fi
23613         BOOST_CPPFLAGS="-I$ac_boost_path/include"
23614     else
23615         for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
23616             if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
23617                                                 if test -d "$ac_boost_path_tmp/lib${gr_libdir_suffix}"; then
23618                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib${gr_libdir_suffix}"
23619                 else
23620                     BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
23621                 fi
23622                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
23623                 break;
23624             fi
23625         done
23626     fi
23627
23628             if test "$ac_boost_lib_path" != ""; then
23629        BOOST_LDFLAGS="-L$ac_boost_lib_path"
23630     fi
23631
23632     CPPFLAGS_SAVED="$CPPFLAGS"
23633     CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
23634     export CPPFLAGS
23635
23636     LDFLAGS_SAVED="$LDFLAGS"
23637     LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
23638     export LDFLAGS
23639
23640     ac_ext=cpp
23641 ac_cpp='$CXXCPP $CPPFLAGS'
23642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23645
23646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h.  */
23648
23649     #include <boost/version.hpp>
23650
23651 int
23652 main ()
23653 {
23654
23655     #if BOOST_VERSION >= $WANT_BOOST_VERSION
23656     // Everything is okay
23657     #else
23658     #  error Boost version is too old
23659     #endif
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 if ac_fn_cxx_try_compile "$LINENO"; then :
23666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667 $as_echo "yes" >&6; }
23668           succeeded=yes
23669           found_system=yes
23670
23671 fi
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673     ac_ext=c
23674 ac_cpp='$CPP $CPPFLAGS'
23675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23678
23679     CPPFLAGS="$CPPFLAGS_SAVED"
23680     LDFLAGS="$LDFLAGS_SAVED"
23681
23682
23683             if test "$succeeded" != "yes"; then
23684         _version=0
23685
23686         if test "$ac_boost_path" != ""; then
23687             path_list="$ac_boost_path"
23688         else
23689             path_list="/usr /usr/local /opt /opt/local"
23690         fi
23691         for ac_boost_path in $path_list ; do
23692             if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
23693                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
23694                     _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's,/include/boost-,,; s,_,.,'`
23695                     V_CHECK=`expr $_version_tmp \> $_version`
23696                     if test "$V_CHECK" = "1" ; then
23697                         _version=$_version_tmp
23698                         best_path=$ac_boost_path
23699                     fi
23700                 done
23701             fi
23702         done
23703
23704         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
23705         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
23706
23707         if test "$ac_boost_lib_path" = "";  then
23708                             if test -d "$best_path/lib${gr_libdir_suffix}"; then
23709                 BOOST_LDFLAGS="-L$best_path/lib${gr_libdir_suffix}"
23710             else
23711                 BOOST_LDFLAGS="-L$best_path/lib"
23712             fi
23713         fi
23714
23715         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
23716         export CPPFLAGS
23717         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
23718         export LDFLAGS
23719
23720         ac_ext=cpp
23721 ac_cpp='$CXXCPP $CPPFLAGS'
23722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23725
23726             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23727 /* end confdefs.h.  */
23728
23729         #include <boost/version.hpp>
23730
23731 int
23732 main ()
23733 {
23734
23735         #if BOOST_VERSION >= $WANT_BOOST_VERSION
23736         // Everything is okay
23737         #else
23738         #  error Boost version is too old
23739         #endif
23740
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 if ac_fn_cxx_try_compile "$LINENO"; then :
23746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23747 $as_echo "yes" >&6; }
23748               succeeded=yes
23749               found_system=yes
23750
23751 fi
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753         ac_ext=c
23754 ac_cpp='$CPP $CPPFLAGS'
23755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23758
23759         CPPFLAGS="$CPPFLAGS_SAVED"
23760         LDFLAGS="$LDFLAGS_SAVED"
23761     fi
23762
23763     if test "$succeeded" != "yes" ; then
23764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23765 $as_echo "no" >&6; }
23766         if test "$_version" = "0" ; then
23767             as_fn_error "we could not detect the boost libraries (version $boost_lib_version_req_shorten or higher).
23768 If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>." "$LINENO" 5
23769         else
23770             as_fn_error "your boost libraries seem to old (version $_version)." "$LINENO" 5
23771         fi
23772     else
23773
23774
23775
23776 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
23777
23778     fi
23779 fi
23780
23781
23782
23783
23784
23785
23786
23787
23788 # Check whether --with-boost-thread was given.
23789 if test "${with_boost_thread+set}" = set; then :
23790   withval=$with_boost_thread;
23791                 if test "$withval" = "no"; then
23792                     want_boost="no"
23793                 elif test "$withval" = "yes"; then
23794                     want_boost="yes"
23795                     ax_boost_user_lib=""
23796                 else
23797                     want_boost="yes"
23798                     ax_boost_user_lib="$withval"
23799                 fi
23800
23801 else
23802   want_boost="yes"
23803 fi
23804
23805
23806
23807
23808     if test "$want_boost" = "yes"; then
23809
23810
23811
23812
23813         CPPFLAGS_SAVED="$CPPFLAGS"
23814         LDFLAGS_SAVED="$LDFLAGS"
23815         CXXFLAGS_SAVED="$CXXFLAGS"
23816
23817         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
23818         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS $PTHREAD_LIBS"
23819         CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
23820
23821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::thread includes are available" >&5
23822 $as_echo_n "checking whether the boost::thread includes are available... " >&6; }
23823 if test "${ax_cv_boost_thread+set}" = set; then :
23824   $as_echo_n "(cached) " >&6
23825 else
23826   ac_ext=cpp
23827 ac_cpp='$CXXCPP $CPPFLAGS'
23828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23831
23832              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h.  */
23834 #include <boost/thread/thread.hpp>
23835 int
23836 main ()
23837 {
23838 boost::thread_group thrds;
23839                                    return 0;
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 if ac_fn_cxx_try_compile "$LINENO"; then :
23845   ax_cv_boost_thread=yes
23846 else
23847   ax_cv_boost_thread=no
23848 fi
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850              ac_ext=c
23851 ac_cpp='$CPP $CPPFLAGS'
23852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23855
23856
23857 fi
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
23859 $as_echo "$ax_cv_boost_thread" >&6; }
23860
23861         if test "$ax_cv_boost_thread" = "yes"; then
23862             BOOST_CXXFLAGS="$PTHREAD_CFLAGS"
23863
23864
23865
23866     ac_ext=cpp
23867 ac_cpp='$CXXCPP $CPPFLAGS'
23868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23871
23872
23873 $as_echo "#define HAVE_BOOST_THREAD 1" >>confdefs.h
23874
23875     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
23876
23877         link_ok="no"
23878     if test "$ax_boost_user_lib" != ""; then
23879                 for ax_lib in $ax_boost_user_lib boost_thread-${ax_boost_user_lib}; do
23880             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23882 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
23883 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23884   $as_echo_n "(cached) " >&6
23885 else
23886   ac_check_lib_save_LIBS=$LIBS
23887 LIBS="-l$ax_lib  $LIBS"
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h.  */
23890
23891 /* Override any GCC internal prototype to avoid an error.
23892    Use char because int might match the return type of a GCC
23893    builtin and then its argument prototype would still apply.  */
23894 #ifdef __cplusplus
23895 extern "C"
23896 #endif
23897 char exit ();
23898 int
23899 main ()
23900 {
23901 return exit ();
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 if ac_fn_cxx_try_link "$LINENO"; then :
23907   eval "$as_ac_Lib=yes"
23908 else
23909   eval "$as_ac_Lib=no"
23910 fi
23911 rm -f core conftest.err conftest.$ac_objext \
23912     conftest$ac_exeext conftest.$ac_ext
23913 LIBS=$ac_check_lib_save_LIBS
23914 fi
23915 eval ac_res=\$$as_ac_Lib
23916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23917 $as_echo "$ac_res" >&6; }
23918 eval as_val=\$$as_ac_Lib
23919    if test "x$as_val" = x""yes; then :
23920   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
23921 fi
23922
23923         done
23924     else
23925                 head=$BOOSTLIBDIR/libboost_thread
23926         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
23927                     case $f in
23928               *\**) continue;;
23929             esac
23930             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
23931                     f=`echo $f | sed -e 's,\(boost_thread.*\)\.so.*$,\1,' -e 's,\(boost_thread.*\)\.a.*$,\1,' -e 's,\(boost_thread.*\)\.dll.*$,\1,' -e 's,\(boost_thread.*\)\.dylib.*$,\1,'`
23932
23933             ax_lib=$f
23934             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
23936 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
23937 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23938   $as_echo_n "(cached) " >&6
23939 else
23940   ac_check_lib_save_LIBS=$LIBS
23941 LIBS="-l$ax_lib  $LIBS"
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h.  */
23944
23945 /* Override any GCC internal prototype to avoid an error.
23946    Use char because int might match the return type of a GCC
23947    builtin and then its argument prototype would still apply.  */
23948 #ifdef __cplusplus
23949 extern "C"
23950 #endif
23951 char exit ();
23952 int
23953 main ()
23954 {
23955 return exit ();
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 if ac_fn_cxx_try_link "$LINENO"; then :
23961   eval "$as_ac_Lib=yes"
23962 else
23963   eval "$as_ac_Lib=no"
23964 fi
23965 rm -f core conftest.err conftest.$ac_objext \
23966     conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23968 fi
23969 eval ac_res=\$$as_ac_Lib
23970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23971 $as_echo "$ac_res" >&6; }
23972 eval as_val=\$$as_ac_Lib
23973    if test "x$as_val" = x""yes; then :
23974   BOOST_THREAD_LIB="-l$ax_lib";  link_ok="yes"; break
23975 fi
23976
23977         done
23978     fi
23979
23980     if test "$link_ok" != "yes"; then
23981         as_fn_error "Could not link against libboost_thread!" "$LINENO" 5
23982     fi
23983     ac_ext=c
23984 ac_cpp='$CPP $CPPFLAGS'
23985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23988
23989
23990
23991             if test "$link_ok" = "yes" && test -n "$PTHREAD_LIBS"; then
23992                 BOOST_THREAD_LIB="$BOOST_THREAD_LIB $PTHREAD_LIBS"
23993             fi
23994         fi
23995
23996         CPPFLAGS="$CPPFLAGS_SAVED"
23997         LDFLAGS="$LDFLAGS_SAVED"
23998         CXXFLAGS="$CXXFLAGS_SAVED"
23999     fi
24000
24001 CXXFLAGS="$CXXFLAGS $BOOST_CXXFLAGS"       CFLAGS="$CFLAGS $BOOST_CXXFLAGS"
24002
24003
24004
24005
24006
24007
24008
24009 # Check whether --with-boost-date-time was given.
24010 if test "${with_boost_date_time+set}" = set; then :
24011   withval=$with_boost_date_time;
24012                 if test "$withval" = "no"; then
24013                     want_boost="no"
24014                 elif test "$withval" = "yes"; then
24015                     want_boost="yes"
24016                     ax_boost_user_lib=""
24017                 else
24018                     want_boost="yes"
24019                     ax_boost_user_lib="$withval"
24020                 fi
24021
24022 else
24023   want_boost="yes"
24024 fi
24025
24026
24027
24028     if test "$want_boost" = "yes"; then
24029
24030
24031         CPPFLAGS_SAVED="$CPPFLAGS"
24032         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
24033         LDFLAGS_SAVED="$LDFLAGS"
24034         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
24035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::date_time includes are available" >&5
24036 $as_echo_n "checking whether the boost::date_time includes are available... " >&6; }
24037 if test "${ax_cv_boost_date_time+set}" = set; then :
24038   $as_echo_n "(cached) " >&6
24039 else
24040   ac_ext=cpp
24041 ac_cpp='$CXXCPP $CPPFLAGS'
24042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24045
24046                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047 /* end confdefs.h.  */
24048 #include <boost/date_time/gregorian/gregorian_types.hpp>
24049 int
24050 main ()
24051 {
24052 using namespace boost::gregorian; date d(2002,Jan,10); return 0;
24053   ;
24054   return 0;
24055 }
24056 _ACEOF
24057 if ac_fn_cxx_try_compile "$LINENO"; then :
24058   ax_cv_boost_date_time=yes
24059 else
24060   ax_cv_boost_date_time=no
24061 fi
24062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063                         ac_ext=c
24064 ac_cpp='$CPP $CPPFLAGS'
24065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24068
24069
24070 fi
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_date_time" >&5
24072 $as_echo "$ax_cv_boost_date_time" >&6; }
24073         if test "$ax_cv_boost_date_time" = "yes"; then
24074
24075
24076     ac_ext=cpp
24077 ac_cpp='$CXXCPP $CPPFLAGS'
24078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24081
24082
24083 $as_echo "#define HAVE_BOOST_DATE_TIME 1" >>confdefs.h
24084
24085     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
24086
24087         link_ok="no"
24088     if test "$ax_boost_user_lib" != ""; then
24089                 for ax_lib in $ax_boost_user_lib boost_date_time-${ax_boost_user_lib}; do
24090             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
24092 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
24093 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096   ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-l$ax_lib  $LIBS"
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h.  */
24100
24101 /* Override any GCC internal prototype to avoid an error.
24102    Use char because int might match the return type of a GCC
24103    builtin and then its argument prototype would still apply.  */
24104 #ifdef __cplusplus
24105 extern "C"
24106 #endif
24107 char exit ();
24108 int
24109 main ()
24110 {
24111 return exit ();
24112   ;
24113   return 0;
24114 }
24115 _ACEOF
24116 if ac_fn_cxx_try_link "$LINENO"; then :
24117   eval "$as_ac_Lib=yes"
24118 else
24119   eval "$as_ac_Lib=no"
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext \
24122     conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24124 fi
24125 eval ac_res=\$$as_ac_Lib
24126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24127 $as_echo "$ac_res" >&6; }
24128 eval as_val=\$$as_ac_Lib
24129    if test "x$as_val" = x""yes; then :
24130   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
24131 fi
24132
24133         done
24134     else
24135                 head=$BOOSTLIBDIR/libboost_date_time
24136         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
24137                     case $f in
24138               *\**) continue;;
24139             esac
24140             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
24141                     f=`echo $f | sed -e 's,\(boost_date_time.*\)\.so.*$,\1,' -e 's,\(boost_date_time.*\)\.a.*$,\1,' -e 's,\(boost_date_time.*\)\.dll.*$,\1,' -e 's,\(boost_date_time.*\)\.dylib.*$,\1,'`
24142
24143             ax_lib=$f
24144             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
24146 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
24147 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   ac_check_lib_save_LIBS=$LIBS
24151 LIBS="-l$ax_lib  $LIBS"
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h.  */
24154
24155 /* Override any GCC internal prototype to avoid an error.
24156    Use char because int might match the return type of a GCC
24157    builtin and then its argument prototype would still apply.  */
24158 #ifdef __cplusplus
24159 extern "C"
24160 #endif
24161 char exit ();
24162 int
24163 main ()
24164 {
24165 return exit ();
24166   ;
24167   return 0;
24168 }
24169 _ACEOF
24170 if ac_fn_cxx_try_link "$LINENO"; then :
24171   eval "$as_ac_Lib=yes"
24172 else
24173   eval "$as_ac_Lib=no"
24174 fi
24175 rm -f core conftest.err conftest.$ac_objext \
24176     conftest$ac_exeext conftest.$ac_ext
24177 LIBS=$ac_check_lib_save_LIBS
24178 fi
24179 eval ac_res=\$$as_ac_Lib
24180                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24181 $as_echo "$ac_res" >&6; }
24182 eval as_val=\$$as_ac_Lib
24183    if test "x$as_val" = x""yes; then :
24184   BOOST_DATE_TIME_LIB="-l$ax_lib";  link_ok="yes"; break
24185 fi
24186
24187         done
24188     fi
24189
24190     if test "$link_ok" != "yes"; then
24191         as_fn_error "Could not link against libboost_date_time!" "$LINENO" 5
24192     fi
24193     ac_ext=c
24194 ac_cpp='$CPP $CPPFLAGS'
24195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24198
24199
24200
24201         fi
24202         CPPFLAGS="$CPPFLAGS_SAVED"
24203         LDFLAGS="$LDFLAGS_SAVED"
24204     fi
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215 # Check whether --with-boost-program-options was given.
24216 if test "${with_boost_program_options+set}" = set; then :
24217   withval=$with_boost_program_options;
24218                 if test "$withval" = "no"; then
24219                     want_boost="no"
24220                 elif test "$withval" = "yes"; then
24221                     want_boost="yes"
24222                     ax_boost_user_lib=""
24223                 else
24224                     want_boost="yes"
24225                     ax_boost_user_lib="$withval"
24226                 fi
24227
24228 else
24229   want_boost="yes"
24230 fi
24231
24232
24233
24234     if test "$want_boost" = "yes"; then
24235
24236
24237         CPPFLAGS_SAVED="$CPPFLAGS"
24238         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
24239         LDFLAGS_SAVED="$LDFLAGS"
24240         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
24241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the boost::program_options includes are available" >&5
24242 $as_echo_n "checking whether the boost::program_options includes are available... " >&6; }
24243 if test "${ax_cv_boost_program_options+set}" = set; then :
24244   $as_echo_n "(cached) " >&6
24245 else
24246   ac_ext=cpp
24247 ac_cpp='$CXXCPP $CPPFLAGS'
24248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24251
24252                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h.  */
24254 #include <boost/program_options.hpp>
24255 int
24256 main ()
24257 {
24258 boost::program_options::options_description generic("Generic options");
24259                      return 0;
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 if ac_fn_cxx_try_compile "$LINENO"; then :
24265   ax_cv_boost_program_options=yes
24266 else
24267   ax_cv_boost_program_options=no
24268 fi
24269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270                         ac_ext=c
24271 ac_cpp='$CPP $CPPFLAGS'
24272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24275
24276
24277 fi
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
24279 $as_echo "$ax_cv_boost_program_options" >&6; }
24280         if test "$ax_cv_boost_program_options" = "yes"; then
24281
24282
24283     ac_ext=cpp
24284 ac_cpp='$CXXCPP $CPPFLAGS'
24285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24288
24289
24290 $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS 1" >>confdefs.h
24291
24292     BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
24293
24294         link_ok="no"
24295     if test "$ax_boost_user_lib" != ""; then
24296                 for ax_lib in $ax_boost_user_lib boost_program_options-${ax_boost_user_lib}; do
24297             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
24299 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
24300 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24301   $as_echo_n "(cached) " >&6
24302 else
24303   ac_check_lib_save_LIBS=$LIBS
24304 LIBS="-l$ax_lib  $LIBS"
24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h.  */
24307
24308 /* Override any GCC internal prototype to avoid an error.
24309    Use char because int might match the return type of a GCC
24310    builtin and then its argument prototype would still apply.  */
24311 #ifdef __cplusplus
24312 extern "C"
24313 #endif
24314 char exit ();
24315 int
24316 main ()
24317 {
24318 return exit ();
24319   ;
24320   return 0;
24321 }
24322 _ACEOF
24323 if ac_fn_cxx_try_link "$LINENO"; then :
24324   eval "$as_ac_Lib=yes"
24325 else
24326   eval "$as_ac_Lib=no"
24327 fi
24328 rm -f core conftest.err conftest.$ac_objext \
24329     conftest$ac_exeext conftest.$ac_ext
24330 LIBS=$ac_check_lib_save_LIBS
24331 fi
24332 eval ac_res=\$$as_ac_Lib
24333                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24334 $as_echo "$ac_res" >&6; }
24335 eval as_val=\$$as_ac_Lib
24336    if test "x$as_val" = x""yes; then :
24337   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
24338 fi
24339
24340         done
24341     else
24342                 head=$BOOSTLIBDIR/libboost_program_options
24343         for f in ${head}*.so* ${head}*.a* ${head}*.dll* ${head}*.dylib; do
24344                     case $f in
24345               *\**) continue;;
24346             esac
24347             f=`echo $f | sed -e 's,.*/,,' -e 's,^lib,,'`
24348                     f=`echo $f | sed -e 's,\(boost_program_options.*\)\.so.*$,\1,' -e 's,\(boost_program_options.*\)\.a.*$,\1,' -e 's,\(boost_program_options.*\)\.dll.*$,\1,' -e 's,\(boost_program_options.*\)\.dylib.*$,\1,'`
24349
24350             ax_lib=$f
24351             as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
24353 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
24354 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24355   $as_echo_n "(cached) " >&6
24356 else
24357   ac_check_lib_save_LIBS=$LIBS
24358 LIBS="-l$ax_lib  $LIBS"
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h.  */
24361
24362 /* Override any GCC internal prototype to avoid an error.
24363    Use char because int might match the return type of a GCC
24364    builtin and then its argument prototype would still apply.  */
24365 #ifdef __cplusplus
24366 extern "C"
24367 #endif
24368 char exit ();
24369 int
24370 main ()
24371 {
24372 return exit ();
24373   ;
24374   return 0;
24375 }
24376 _ACEOF
24377 if ac_fn_cxx_try_link "$LINENO"; then :
24378   eval "$as_ac_Lib=yes"
24379 else
24380   eval "$as_ac_Lib=no"
24381 fi
24382 rm -f core conftest.err conftest.$ac_objext \
24383     conftest$ac_exeext conftest.$ac_ext
24384 LIBS=$ac_check_lib_save_LIBS
24385 fi
24386 eval ac_res=\$$as_ac_Lib
24387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24388 $as_echo "$ac_res" >&6; }
24389 eval as_val=\$$as_ac_Lib
24390    if test "x$as_val" = x""yes; then :
24391   BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib";  link_ok="yes"; break
24392 fi
24393
24394         done
24395     fi
24396
24397     if test "$link_ok" != "yes"; then
24398         as_fn_error "Could not link against libboost_program_options!" "$LINENO" 5
24399     fi
24400     ac_ext=c
24401 ac_cpp='$CPP $CPPFLAGS'
24402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24405
24406
24407
24408         fi
24409         CPPFLAGS="$CPPFLAGS_SAVED"
24410         LDFLAGS="$LDFLAGS_SAVED"
24411     fi
24412
24413
24414
24415
24416
24417
24418         # Extract the first word of "svn", so it can be a program name with args.
24419 set dummy svn; ac_word=$2
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24421 $as_echo_n "checking for $ac_word... " >&6; }
24422 if test "${ac_cv_path_SVN+set}" = set; then :
24423   $as_echo_n "(cached) " >&6
24424 else
24425   case $SVN in
24426   [\\/]* | ?:[\\/]*)
24427   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
24428   ;;
24429   *)
24430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24431 for as_dir in $PATH
24432 do
24433   IFS=$as_save_IFS
24434   test -z "$as_dir" && as_dir=.
24435     for ac_exec_ext in '' $ac_executable_extensions; do
24436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24437     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
24438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24439     break 2
24440   fi
24441 done
24442   done
24443 IFS=$as_save_IFS
24444
24445   ;;
24446 esac
24447 fi
24448 SVN=$ac_cv_path_SVN
24449 if test -n "$SVN"; then
24450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
24451 $as_echo "$SVN" >&6; }
24452 else
24453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24454 $as_echo "no" >&6; }
24455 fi
24456
24457
24458         if test "$SVN" != "" -a -d .svn ; then
24459             SVNVERSION=`$SVN info . | grep '^Revision' | cut -f 2- -d ' '`
24460             SVNDATE=`$SVN info . | grep 'Last Changed Date' | cut -f 4-6 -d ' '`
24461         fi
24462
24463
24464
24465
24466
24467
24468 # Check whether --enable-all-components was given.
24469 if test "${enable_all_components+set}" = set; then :
24470   enableval=$enable_all_components;
24471 fi
24472
24473
24474 build_dirs="config"
24475
24476
24477
24478     passed=yes
24479     # Check whether --enable-gruel was given.
24480 if test "${enable_gruel+set}" = set; then :
24481   enableval=$enable_gruel;
24482 else
24483
24484         enable_gruel=$enable_all_components
24485         if test x$enable_all_components = xno; then
24486             passed=no
24487         fi
24488
24489 fi
24490
24491
24492
24493
24494     if test x = x; then
24495         pc_comp_name="gruel"
24496     else
24497         pc_comp_name=""
24498     fi
24499
24500
24501 # Check whether --with-gruel was given.
24502 if test "${with_gruel+set}" = set; then :
24503   withval=$with_gruel; if test "x$withval" != "xyes"; then
24504                     with_gruel_val=$withval
24505                     with_gruel=yes
24506                  fi
24507 fi
24508
24509     if test x$with_gruel = xyes; then
24510         if test x$enable_gruel = xyes; then
24511             as_fn_error "Component gruel: Cannot use both --enable and --with" "$LINENO" 5
24512         else
24513
24514         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
24515
24516             l_PKG_CONFIG_PATH=$with_gruel_val
24517     if test "x$l_PKG_CONFIG_PATH" != "x"; then
24518         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
24519
24520                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
24521             as_fn_error "Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
24522         fi
24523     fi
24524
24525         if test -n "$PKG_CONFIG" && \
24526     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
24527   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
24528   ac_status=$?
24529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530   test $ac_status = 0; }; then
24531   passed=with; check1=yes
24532 else
24533
24534         check1=no
24535                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
24536             if test "x$s_PKG_CONFIG_PATH" != "x"; then
24537                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
24538                 if test -n "$PKG_CONFIG" && \
24539     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
24540   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
24541   ac_status=$?
24542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543   test $ac_status = 0; }; then
24544   passed=with
24545 else
24546   passed=no
24547 fi
24548             fi
24549         fi
24550         if test $passed != with; then
24551             as_fn_error "Component gruel: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
24552         fi
24553                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
24554
24555 fi
24556
24557                 gruel_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
24558     gruel_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
24559     gruel_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
24560
24561     if test x$check1 = xyes; then
24562                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
24563             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
24564         fi
24565     fi
24566
24567             :
24568         fi
24569     fi
24570
24571
24572
24573                     if test $passed != with; then
24574                 gruel_INCLUDES="\
24575 -I\${abs_top_srcdir}/gruel/src/include \
24576 -I\${abs_top_builddir}/gruel/src/include"
24577         gruel_LA="\${abs_top_builddir}/gruel/src/lib/libgruel.la"
24578         gruel_LIBDIRPATH="\${abs_top_builddir}/gruel/src/lib:\${abs_top_builddir}/gruel/src/lib/.libs"
24579     fi
24580
24581     ac_config_files="$ac_config_files gruel/Makefile gruel/gruel.pc gruel/src/Makefile gruel/src/include/Makefile gruel/src/include/gruel/Makefile gruel/src/include/gruel/inet.h gruel/src/lib/Makefile"
24582
24583
24584         ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
24585 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
24586   GR_HAVE_ARPA_INET=1
24587 else
24588   GR_HAVE_ARPA_INET=0
24589 fi
24590
24591
24592     ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24593 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
24594   GR_HAVE_NETINET_IN=1
24595 else
24596   GR_HAVE_NETINET_IN=0
24597 fi
24598
24599
24600     ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
24601 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
24602   GR_HAVE_BYTESWAP=1
24603 else
24604   GR_HAVE_BYTESWAP=0
24605 fi
24606
24607
24608
24609
24610
24611
24612
24613
24614     gruel_with=no
24615     if test $passed = no; then
24616         if test x$enable_gruel = xyes; then
24617             as_fn_error "Component gruel has errors; stopping." "$LINENO" 5
24618         else
24619             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gruel." >&5
24620 $as_echo "Not building component gruel." >&6; }
24621         fi
24622     else
24623         if test $passed = with; then
24624             with_dirs="$with_dirs gruel"
24625
24626     if test "x${gruel_INCLUDES}" != "x"; then
24627         if test "x$with_INCLUDES" = "x"; then
24628             with_INCLUDES="${gruel_INCLUDES}"
24629         else
24630             with_INCLUDES="${gruel_INCLUDES}"" ""$with_INCLUDES"
24631         fi
24632         gruel_INCLUDES=
24633     fi
24634
24635
24636     if test "x${gruel_SWIG_INCLUDES}" != "x"; then
24637         if test "x$with_SWIG_INCLUDES" = "x"; then
24638             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"
24639         else
24640             with_SWIG_INCLUDES="${gruel_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
24641         fi
24642         gruel_SWIG_INCLUDES=
24643     fi
24644
24645
24646     if test "x${gruel_PYDIRPATH}" != "x"; then
24647         if test "x$with_PYDIRPATH" = "x"; then
24648             with_PYDIRPATH="${gruel_PYDIRPATH}"
24649         else
24650             with_PYDIRPATH="${gruel_PYDIRPATH}"":""$with_PYDIRPATH"
24651         fi
24652         gruel_PYDIRPATH=
24653     fi
24654
24655
24656     if test "x${gruel_SWIGDIRPATH}" != "x"; then
24657         if test "x$with_SWIGDIRPATH" = "x"; then
24658             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"
24659         else
24660             with_SWIGDIRPATH="${gruel_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
24661         fi
24662         gruel_SWIGDIRPATH=
24663     fi
24664
24665
24666     if test "x${gruel_LIBDIRPATH}" != "x"; then
24667         if test "x$with_LIBDIRPATH" = "x"; then
24668             with_LIBDIRPATH="${gruel_LIBDIRPATH}"
24669         else
24670             with_LIBDIRPATH="${gruel_LIBDIRPATH}"":""$with_LIBDIRPATH"
24671         fi
24672         gruel_LIBDIRPATH=
24673     fi
24674
24675             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel will be included from a pre-installed library and includes." >&5
24676 $as_echo "Component gruel will be included from a pre-installed library and includes." >&6; }
24677             gruel_with=yes
24678         else
24679             gruel_LDFLAG=
24680             if test x$enable_gruel != xno; then
24681                 :
24682                 build_dirs="$build_dirs gruel"
24683                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel passed configuration checks; building." >&5
24684 $as_echo "Component gruel passed configuration checks; building." >&6; }
24685             else
24686                 passed=no
24687                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gruel passed configuration checks; but not building." >&5
24688 $as_echo "Component gruel passed configuration checks; but not building." >&6; }
24689             fi
24690         fi
24691     fi
24692     if test $passed = no; then
24693         skipped_dirs="$skipped_dirs gruel"
24694         gruel_skipped=yes
24695     else
24696         gruel_skipped=no
24697     fi
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708     passed=yes
24709     # Check whether --enable-omnithread was given.
24710 if test "${enable_omnithread+set}" = set; then :
24711   enableval=$enable_omnithread;
24712 else
24713
24714         enable_omnithread=$enable_all_components
24715         if test x$enable_all_components = xno; then
24716             passed=no
24717         fi
24718
24719 fi
24720
24721
24722
24723
24724
24725     if test xgnuradio-omnithread = x; then
24726         pc_comp_name="omnithread"
24727     else
24728         pc_comp_name="gnuradio-omnithread"
24729     fi
24730
24731
24732 # Check whether --with-omnithread was given.
24733 if test "${with_omnithread+set}" = set; then :
24734   withval=$with_omnithread; if test "x$withval" != "xyes"; then
24735                     with_omnithread_val=$withval
24736                     with_omnithread=yes
24737                  fi
24738 fi
24739
24740     if test x$with_omnithread = xyes; then
24741         if test x$enable_omnithread = xyes; then
24742             as_fn_error "Component omnithread: Cannot use both --enable and --with" "$LINENO" 5
24743         else
24744
24745         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
24746
24747             l_PKG_CONFIG_PATH=$with_omnithread_val
24748     if test "x$l_PKG_CONFIG_PATH" != "x"; then
24749         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
24750
24751                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
24752             as_fn_error "Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
24753         fi
24754     fi
24755
24756         if test -n "$PKG_CONFIG" && \
24757     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
24758   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
24759   ac_status=$?
24760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761   test $ac_status = 0; }; then
24762   passed=with; check1=yes
24763 else
24764
24765         check1=no
24766                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
24767             if test "x$s_PKG_CONFIG_PATH" != "x"; then
24768                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
24769                 if test -n "$PKG_CONFIG" && \
24770     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
24771   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
24772   ac_status=$?
24773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774   test $ac_status = 0; }; then
24775   passed=with
24776 else
24777   passed=no
24778 fi
24779             fi
24780         fi
24781         if test $passed != with; then
24782             as_fn_error "Component omnithread: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
24783         fi
24784                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
24785
24786 fi
24787
24788                 omnithread_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
24789     omnithread_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
24790     omnithread_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
24791
24792     if test x$check1 = xyes; then
24793                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
24794             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
24795         fi
24796     fi
24797
24798             :
24799         fi
24800     fi
24801
24802
24803
24804                     if test $passed != with; then
24805                 omnithread_INCLUDES="-I\${abs_top_srcdir}/omnithread"
24806         omnithread_LA="\${abs_top_builddir}/omnithread/libgromnithread.la"
24807         omnithread_LIBDIRPATH="\${abs_top_builddir}/omnithread:\${abs_top_builddir}/omnithread/.libs"
24808     fi
24809
24810     ac_config_files="$ac_config_files omnithread/Makefile omnithread/gnuradio/Makefile omnithread/gnuradio-omnithread.pc"
24811
24812
24813
24814
24815     omnithread_with=no
24816     if test $passed = no; then
24817         if test x$enable_omnithread = xyes; then
24818             as_fn_error "Component omnithread has errors; stopping." "$LINENO" 5
24819         else
24820             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component omnithread." >&5
24821 $as_echo "Not building component omnithread." >&6; }
24822         fi
24823     else
24824         if test $passed = with; then
24825             with_dirs="$with_dirs omnithread"
24826
24827     if test "x${omnithread_INCLUDES}" != "x"; then
24828         if test "x$with_INCLUDES" = "x"; then
24829             with_INCLUDES="${omnithread_INCLUDES}"
24830         else
24831             with_INCLUDES="${omnithread_INCLUDES}"" ""$with_INCLUDES"
24832         fi
24833         omnithread_INCLUDES=
24834     fi
24835
24836
24837     if test "x${omnithread_SWIG_INCLUDES}" != "x"; then
24838         if test "x$with_SWIG_INCLUDES" = "x"; then
24839             with_SWIG_INCLUDES="${omnithread_SWIG_INCLUDES}"
24840         else
24841             with_SWIG_INCLUDES="${omnithread_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
24842         fi
24843         omnithread_SWIG_INCLUDES=
24844     fi
24845
24846
24847     if test "x${omnithread_PYDIRPATH}" != "x"; then
24848         if test "x$with_PYDIRPATH" = "x"; then
24849             with_PYDIRPATH="${omnithread_PYDIRPATH}"
24850         else
24851             with_PYDIRPATH="${omnithread_PYDIRPATH}"":""$with_PYDIRPATH"
24852         fi
24853         omnithread_PYDIRPATH=
24854     fi
24855
24856
24857     if test "x${omnithread_SWIGDIRPATH}" != "x"; then
24858         if test "x$with_SWIGDIRPATH" = "x"; then
24859             with_SWIGDIRPATH="${omnithread_SWIGDIRPATH}"
24860         else
24861             with_SWIGDIRPATH="${omnithread_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
24862         fi
24863         omnithread_SWIGDIRPATH=
24864     fi
24865
24866
24867     if test "x${omnithread_LIBDIRPATH}" != "x"; then
24868         if test "x$with_LIBDIRPATH" = "x"; then
24869             with_LIBDIRPATH="${omnithread_LIBDIRPATH}"
24870         else
24871             with_LIBDIRPATH="${omnithread_LIBDIRPATH}"":""$with_LIBDIRPATH"
24872         fi
24873         omnithread_LIBDIRPATH=
24874     fi
24875
24876             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component omnithread will be included from a pre-installed library and includes." >&5
24877 $as_echo "Component omnithread will be included from a pre-installed library and includes." >&6; }
24878             omnithread_with=yes
24879         else
24880             omnithread_LDFLAG=
24881             if test x$enable_omnithread != xno; then
24882
24883                 build_dirs="$build_dirs omnithread"
24884                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component omnithread passed configuration checks; building." >&5
24885 $as_echo "Component omnithread passed configuration checks; building." >&6; }
24886             else
24887                 passed=no
24888                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component omnithread passed configuration checks; but not building." >&5
24889 $as_echo "Component omnithread passed configuration checks; but not building." >&6; }
24890             fi
24891         fi
24892     fi
24893     if test $passed = no; then
24894         skipped_dirs="$skipped_dirs omnithread"
24895         omnithread_skipped=yes
24896     else
24897         omnithread_skipped=no
24898     fi
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909     passed=yes
24910     # Check whether --enable-gcell was given.
24911 if test "${enable_gcell+set}" = set; then :
24912   enableval=$enable_gcell;
24913 else
24914
24915         enable_gcell=$enable_all_components
24916         if test x$enable_all_components = xno; then
24917             passed=no
24918         fi
24919
24920 fi
24921
24922
24923
24924
24925
24926     if test $passed != no; then
24927         if test $passed = yes; then
24928                         if test x$omnithread_skipped = xyes; then
24929                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell requires omnithread, which is not being built or specified via pre-installed files." >&5
24930 $as_echo "Component gcell requires omnithread, which is not being built or specified via pre-installed files." >&6; }
24931                 passed=no
24932             fi
24933         else
24934                         if test x$omnithread_with = xno; then
24935                 as_fn_error "Component gcell requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
24936             fi
24937         fi
24938     fi
24939
24940
24941                     if test $passed = yes; then
24942                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host_cpu is powerpc*" >&5
24943 $as_echo_n "checking whether host_cpu is powerpc*... " >&6; }
24944         case "$host_cpu" in
24945             powerpc*)
24946                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24947 $as_echo "yes" >&6; }
24948                 ;;
24949             *)
24950                 passed=no
24951                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24952 $as_echo "no" >&6; }
24953                 ;;
24954         esac
24955
24956                 # Extract the first word of "spu-gcc", so it can be a program name with args.
24957 set dummy spu-gcc; ac_word=$2
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24959 $as_echo_n "checking for $ac_word... " >&6; }
24960 if test "${ac_cv_prog_SPU_GCC_PROG+set}" = set; then :
24961   $as_echo_n "(cached) " >&6
24962 else
24963   if test -n "$SPU_GCC_PROG"; then
24964   ac_cv_prog_SPU_GCC_PROG="$SPU_GCC_PROG" # Let the user override the test.
24965 else
24966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24967 for as_dir in $PATH
24968 do
24969   IFS=$as_save_IFS
24970   test -z "$as_dir" && as_dir=.
24971     for ac_exec_ext in '' $ac_executable_extensions; do
24972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24973     ac_cv_prog_SPU_GCC_PROG="yes"
24974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24975     break 2
24976   fi
24977 done
24978   done
24979 IFS=$as_save_IFS
24980
24981   test -z "$ac_cv_prog_SPU_GCC_PROG" && ac_cv_prog_SPU_GCC_PROG="no"
24982 fi
24983 fi
24984 SPU_GCC_PROG=$ac_cv_prog_SPU_GCC_PROG
24985 if test -n "$SPU_GCC_PROG"; then
24986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPU_GCC_PROG" >&5
24987 $as_echo "$SPU_GCC_PROG" >&6; }
24988 else
24989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24990 $as_echo "no" >&6; }
24991 fi
24992
24993
24994         if test $SPU_GCC_PROG = no; then
24995             passed=no
24996         fi
24997     fi
24998
24999     if test $passed != with; then
25000                 gcell_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
25001         gcell_LA="\${abs_top_builddir}/gcell/lib/libgcell.la"
25002         gcell_spu_INCLUDES="-I\${abs_top_srcdir}/gcell/include"
25003         gcell_spu_LA="\${abs_top_builddir}/gcell/lib/spu/libgcell_spu.a"
25004
25005
25006
25007     fi
25008
25009     ac_config_files="$ac_config_files gcell/Makefile gcell/gcell.pc gcell/gcell_spu.pc gcell/include/Makefile gcell/include/gcell/Makefile gcell/include/gcell/spu/Makefile gcell/lib/Makefile gcell/lib/spu/Makefile gcell/lib/general/Makefile gcell/lib/wrapper/Makefile gcell/lib/runtime/Makefile gcell/apps/Makefile gcell/apps/spu/Makefile gcell/ibm/Makefile"
25010
25011
25012
25013
25014     gcell_with=no
25015     if test $passed = no; then
25016         if test x$enable_gcell = xyes; then
25017             as_fn_error "Component gcell has errors; stopping." "$LINENO" 5
25018         else
25019             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gcell." >&5
25020 $as_echo "Not building component gcell." >&6; }
25021         fi
25022     else
25023         if test $passed = with; then
25024             with_dirs="$with_dirs gcell"
25025
25026     if test "x${gcell_INCLUDES}" != "x"; then
25027         if test "x$with_INCLUDES" = "x"; then
25028             with_INCLUDES="${gcell_INCLUDES}"
25029         else
25030             with_INCLUDES="${gcell_INCLUDES}"" ""$with_INCLUDES"
25031         fi
25032         gcell_INCLUDES=
25033     fi
25034
25035
25036     if test "x${gcell_SWIG_INCLUDES}" != "x"; then
25037         if test "x$with_SWIG_INCLUDES" = "x"; then
25038             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"
25039         else
25040             with_SWIG_INCLUDES="${gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
25041         fi
25042         gcell_SWIG_INCLUDES=
25043     fi
25044
25045
25046     if test "x${gcell_PYDIRPATH}" != "x"; then
25047         if test "x$with_PYDIRPATH" = "x"; then
25048             with_PYDIRPATH="${gcell_PYDIRPATH}"
25049         else
25050             with_PYDIRPATH="${gcell_PYDIRPATH}"":""$with_PYDIRPATH"
25051         fi
25052         gcell_PYDIRPATH=
25053     fi
25054
25055
25056     if test "x${gcell_SWIGDIRPATH}" != "x"; then
25057         if test "x$with_SWIGDIRPATH" = "x"; then
25058             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"
25059         else
25060             with_SWIGDIRPATH="${gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
25061         fi
25062         gcell_SWIGDIRPATH=
25063     fi
25064
25065
25066     if test "x${gcell_LIBDIRPATH}" != "x"; then
25067         if test "x$with_LIBDIRPATH" = "x"; then
25068             with_LIBDIRPATH="${gcell_LIBDIRPATH}"
25069         else
25070             with_LIBDIRPATH="${gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
25071         fi
25072         gcell_LIBDIRPATH=
25073     fi
25074
25075             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell will be included from a pre-installed library and includes." >&5
25076 $as_echo "Component gcell will be included from a pre-installed library and includes." >&6; }
25077             gcell_with=yes
25078         else
25079             gcell_LDFLAG=
25080             if test x$enable_gcell != xno; then
25081                 :
25082                 build_dirs="$build_dirs gcell"
25083                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell passed configuration checks; building." >&5
25084 $as_echo "Component gcell passed configuration checks; building." >&6; }
25085             else
25086                 passed=no
25087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gcell passed configuration checks; but not building." >&5
25088 $as_echo "Component gcell passed configuration checks; but not building." >&6; }
25089             fi
25090         fi
25091     fi
25092     if test $passed = no; then
25093         skipped_dirs="$skipped_dirs gcell"
25094         gcell_skipped=yes
25095     else
25096         gcell_skipped=no
25097     fi
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109     passed=yes
25110     # Check whether --enable-gnuradio-core was given.
25111 if test "${enable_gnuradio_core+set}" = set; then :
25112   enableval=$enable_gnuradio_core;
25113 else
25114
25115         enable_gnuradio_core=$enable_all_components
25116         if test x$enable_all_components = xno; then
25117             passed=no
25118         fi
25119
25120 fi
25121
25122
25123
25124
25125
25126     if test x = x; then
25127         pc_comp_name="gnuradio-core"
25128     else
25129         pc_comp_name=""
25130     fi
25131
25132
25133 # Check whether --with-gnuradio-core was given.
25134 if test "${with_gnuradio_core+set}" = set; then :
25135   withval=$with_gnuradio_core; if test "x$withval" != "xyes"; then
25136                     with_gnuradio_core_val=$withval
25137                     with_gnuradio_core=yes
25138                  fi
25139 fi
25140
25141     if test x$with_gnuradio_core = xyes; then
25142         if test x$enable_gnuradio_core = xyes; then
25143             as_fn_error "Component gnuradio-core: Cannot use both --enable and --with" "$LINENO" 5
25144         else
25145
25146         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
25147
25148             l_PKG_CONFIG_PATH=$with_gnuradio_core_val
25149     if test "x$l_PKG_CONFIG_PATH" != "x"; then
25150         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
25151
25152                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
25153             as_fn_error "Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
25154         fi
25155     fi
25156
25157         if test -n "$PKG_CONFIG" && \
25158     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
25159   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
25160   ac_status=$?
25161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162   test $ac_status = 0; }; then
25163   passed=with; check1=yes
25164 else
25165
25166         check1=no
25167                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
25168             if test "x$s_PKG_CONFIG_PATH" != "x"; then
25169                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
25170                 if test -n "$PKG_CONFIG" && \
25171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
25172   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
25173   ac_status=$?
25174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175   test $ac_status = 0; }; then
25176   passed=with
25177 else
25178   passed=no
25179 fi
25180             fi
25181         fi
25182         if test $passed != with; then
25183             as_fn_error "Component gnuradio-core: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
25184         fi
25185                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
25186
25187 fi
25188
25189                 gnuradio_core_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
25190     gnuradio_core_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
25191     gnuradio_core_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
25192
25193     if test x$check1 = xyes; then
25194                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
25195             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
25196         fi
25197     fi
25198
25199
25200                 gnuradio_core_SWIGDIRPATH="$gnuradio_core_INCLUDEDIR/swig"
25201         gnuradio_core_I="$gnuradio_core_SWIGDIRPATH/gnuradio.i"
25202         gnuradio_core_SWIG_INCLUDES="-I$gnuradio_core_SWIGDIRPATH"
25203         gnuradio_core_PYDIRPATH=$pythondir
25204
25205         fi
25206     fi
25207
25208
25209
25210
25211     if test $passed != no; then
25212         if test $passed = yes; then
25213                         if test x$gruel_skipped = xyes; then
25214                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&5
25215 $as_echo "Component gnuradio-core requires gruel, which is not being built or specified via pre-installed files." >&6; }
25216                 passed=no
25217             fi
25218         else
25219                         if test x$gruel_with = xno; then
25220                 as_fn_error "Component gnuradio-core requires gruel to be included as --with-gruel[=arg]" "$LINENO" 5
25221             fi
25222         fi
25223     fi
25224
25225
25226     if test $passed != no; then
25227         if test $passed = yes; then
25228                         if test x$omnithread_skipped = xyes; then
25229                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core requires omnithread, which is not being built or specified via pre-installed files." >&5
25230 $as_echo "Component gnuradio-core requires omnithread, which is not being built or specified via pre-installed files." >&6; }
25231                 passed=no
25232             fi
25233         else
25234                         if test x$omnithread_with = xno; then
25235                 as_fn_error "Component gnuradio-core requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
25236             fi
25237         fi
25238     fi
25239
25240
25241                     if test $passed = yes; then
25242
25243
25244
25245 acx_cblas_ok=no
25246
25247
25248 # Check whether --with-cblas was given.
25249 if test "${with_cblas+set}" = set; then :
25250   withval=$with_cblas;
25251 fi
25252
25253 case $with_cblas in
25254         yes | "") ;;
25255         no) acx_cblas_ok=disable ;;
25256         -* | */* | *.a | *.so | *.so.* | *.o) CBLAS_LIBS="$with_cblas" ;;
25257         *) CBLAS_LIBS="-l$with_cblas" ;;
25258 esac
25259
25260
25261 acx_cblas_save_LIBS="$LIBS"
25262 LIBS="$LIBS $FLIBS"
25263
25264 # First, check CBLAS_LIBS environment variable
25265 if test $acx_cblas_ok = no; then
25266 if test "x$CBLAS_LIBS" != x; then
25267         save_LIBS="$LIBS"; LIBS="$CBLAS_LIBS $LIBS"
25268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in $CBLAS_LIBS" >&5
25269 $as_echo_n "checking for cblas_sgemm in $CBLAS_LIBS... " >&6; }
25270         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h.  */
25272
25273 /* Override any GCC internal prototype to avoid an error.
25274    Use char because int might match the return type of a GCC
25275    builtin and then its argument prototype would still apply.  */
25276 #ifdef __cplusplus
25277 extern "C"
25278 #endif
25279 char cblas_sgemm ();
25280 int
25281 main ()
25282 {
25283 return cblas_sgemm ();
25284   ;
25285   return 0;
25286 }
25287 _ACEOF
25288 if ac_fn_c_try_link "$LINENO"; then :
25289   acx_cblas_ok=yes
25290 else
25291   CBLAS_LIBS=""
25292 fi
25293 rm -f core conftest.err conftest.$ac_objext \
25294     conftest$ac_exeext conftest.$ac_ext
25295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cblas_ok" >&5
25296 $as_echo "$acx_cblas_ok" >&6; }
25297         LIBS="$save_LIBS"
25298 fi
25299 fi
25300
25301 # CBLAS linked to by default?  (happens on some supercomputers)
25302 if test $acx_cblas_ok = no; then
25303         save_LIBS="$LIBS"; LIBS="$LIBS"
25304         ac_fn_c_check_func "$LINENO" "cblas_sgemm" "ac_cv_func_cblas_sgemm"
25305 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then :
25306   acx_cblas_ok=yes
25307 fi
25308
25309         LIBS="$save_LIBS"
25310 fi
25311
25312 # CBLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
25313 if test $acx_cblas_ok = no; then
25314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
25315 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
25316 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
25317   $as_echo_n "(cached) " >&6
25318 else
25319   ac_check_lib_save_LIBS=$LIBS
25320 LIBS="-latlas -latlas $LIBS"
25321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322 /* end confdefs.h.  */
25323
25324 /* Override any GCC internal prototype to avoid an error.
25325    Use char because int might match the return type of a GCC
25326    builtin and then its argument prototype would still apply.  */
25327 #ifdef __cplusplus
25328 extern "C"
25329 #endif
25330 char ATL_xerbla ();
25331 int
25332 main ()
25333 {
25334 return ATL_xerbla ();
25335   ;
25336   return 0;
25337 }
25338 _ACEOF
25339 if ac_fn_c_try_link "$LINENO"; then :
25340   ac_cv_lib_atlas_ATL_xerbla=yes
25341 else
25342   ac_cv_lib_atlas_ATL_xerbla=no
25343 fi
25344 rm -f core conftest.err conftest.$ac_objext \
25345     conftest$ac_exeext conftest.$ac_ext
25346 LIBS=$ac_check_lib_save_LIBS
25347 fi
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
25349 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
25350 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
25351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
25352 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
25353 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
25354   $as_echo_n "(cached) " >&6
25355 else
25356   ac_check_lib_save_LIBS=$LIBS
25357 LIBS="-lcblas -latlas $LIBS"
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360
25361 /* Override any GCC internal prototype to avoid an error.
25362    Use char because int might match the return type of a GCC
25363    builtin and then its argument prototype would still apply.  */
25364 #ifdef __cplusplus
25365 extern "C"
25366 #endif
25367 char cblas_dgemm ();
25368 int
25369 main ()
25370 {
25371 return cblas_dgemm ();
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 if ac_fn_c_try_link "$LINENO"; then :
25377   ac_cv_lib_cblas_cblas_dgemm=yes
25378 else
25379   ac_cv_lib_cblas_cblas_dgemm=no
25380 fi
25381 rm -f core conftest.err conftest.$ac_objext \
25382     conftest$ac_exeext conftest.$ac_ext
25383 LIBS=$ac_check_lib_save_LIBS
25384 fi
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
25386 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
25387 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
25388   acx_cblas_ok=yes
25389                  CBLAS_LIBS="-lcblas -latlas"
25390 fi
25391
25392 fi
25393
25394 fi
25395
25396 # CBLAS in ATLAS library in /usr/lib64/atlas (if not cross-compiling)
25397 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
25398         unset ac_cv_lib_atlas_ATL_xerbla
25399         unset ac_cv_lib_cblas_cblas_dgemm
25400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
25401 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
25402 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
25403   $as_echo_n "(cached) " >&6
25404 else
25405   ac_check_lib_save_LIBS=$LIBS
25406 LIBS="-latlas -L/usr/lib64/atlas -latlas $LIBS"
25407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* end confdefs.h.  */
25409
25410 /* Override any GCC internal prototype to avoid an error.
25411    Use char because int might match the return type of a GCC
25412    builtin and then its argument prototype would still apply.  */
25413 #ifdef __cplusplus
25414 extern "C"
25415 #endif
25416 char ATL_xerbla ();
25417 int
25418 main ()
25419 {
25420 return ATL_xerbla ();
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 if ac_fn_c_try_link "$LINENO"; then :
25426   ac_cv_lib_atlas_ATL_xerbla=yes
25427 else
25428   ac_cv_lib_atlas_ATL_xerbla=no
25429 fi
25430 rm -f core conftest.err conftest.$ac_objext \
25431     conftest$ac_exeext conftest.$ac_ext
25432 LIBS=$ac_check_lib_save_LIBS
25433 fi
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
25435 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
25436 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
25437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
25438 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
25439 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
25440   $as_echo_n "(cached) " >&6
25441 else
25442   ac_check_lib_save_LIBS=$LIBS
25443 LIBS="-lcblas -L/usr/lib64/atlas -latlas $LIBS"
25444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445 /* end confdefs.h.  */
25446
25447 /* Override any GCC internal prototype to avoid an error.
25448    Use char because int might match the return type of a GCC
25449    builtin and then its argument prototype would still apply.  */
25450 #ifdef __cplusplus
25451 extern "C"
25452 #endif
25453 char cblas_dgemm ();
25454 int
25455 main ()
25456 {
25457 return cblas_dgemm ();
25458   ;
25459   return 0;
25460 }
25461 _ACEOF
25462 if ac_fn_c_try_link "$LINENO"; then :
25463   ac_cv_lib_cblas_cblas_dgemm=yes
25464 else
25465   ac_cv_lib_cblas_cblas_dgemm=no
25466 fi
25467 rm -f core conftest.err conftest.$ac_objext \
25468     conftest$ac_exeext conftest.$ac_ext
25469 LIBS=$ac_check_lib_save_LIBS
25470 fi
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
25472 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
25473 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
25474   acx_cblas_ok=yes
25475                  CBLAS_LIBS="-L/usr/lib64/atlas -lcblas -latlas"
25476 fi
25477
25478 fi
25479
25480 fi
25481
25482 # CBLAS in ATLAS library in /usr/lib/atlas (if not cross-compiling)
25483 if test $acx_cblas_ok = no && test "$cross_compiling" = no; then
25484         unset ac_cv_lib_atlas_ATL_xerbla
25485         unset ac_cv_lib_cblas_cblas_dgemm
25486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5
25487 $as_echo_n "checking for ATL_xerbla in -latlas... " >&6; }
25488 if test "${ac_cv_lib_atlas_ATL_xerbla+set}" = set; then :
25489   $as_echo_n "(cached) " >&6
25490 else
25491   ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-latlas -L/usr/lib/atlas -latlas $LIBS"
25493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h.  */
25495
25496 /* Override any GCC internal prototype to avoid an error.
25497    Use char because int might match the return type of a GCC
25498    builtin and then its argument prototype would still apply.  */
25499 #ifdef __cplusplus
25500 extern "C"
25501 #endif
25502 char ATL_xerbla ();
25503 int
25504 main ()
25505 {
25506 return ATL_xerbla ();
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 if ac_fn_c_try_link "$LINENO"; then :
25512   ac_cv_lib_atlas_ATL_xerbla=yes
25513 else
25514   ac_cv_lib_atlas_ATL_xerbla=no
25515 fi
25516 rm -f core conftest.err conftest.$ac_objext \
25517     conftest$ac_exeext conftest.$ac_ext
25518 LIBS=$ac_check_lib_save_LIBS
25519 fi
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5
25521 $as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; }
25522 if test "x$ac_cv_lib_atlas_ATL_xerbla" = x""yes; then :
25523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
25524 $as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
25525 if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then :
25526   $as_echo_n "(cached) " >&6
25527 else
25528   ac_check_lib_save_LIBS=$LIBS
25529 LIBS="-lcblas -L/usr/lib/atlas -latlas $LIBS"
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531 /* end confdefs.h.  */
25532
25533 /* Override any GCC internal prototype to avoid an error.
25534    Use char because int might match the return type of a GCC
25535    builtin and then its argument prototype would still apply.  */
25536 #ifdef __cplusplus
25537 extern "C"
25538 #endif
25539 char cblas_dgemm ();
25540 int
25541 main ()
25542 {
25543 return cblas_dgemm ();
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 if ac_fn_c_try_link "$LINENO"; then :
25549   ac_cv_lib_cblas_cblas_dgemm=yes
25550 else
25551   ac_cv_lib_cblas_cblas_dgemm=no
25552 fi
25553 rm -f core conftest.err conftest.$ac_objext \
25554     conftest$ac_exeext conftest.$ac_ext
25555 LIBS=$ac_check_lib_save_LIBS
25556 fi
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
25558 $as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
25559 if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then :
25560   acx_cblas_ok=yes
25561                  CBLAS_LIBS="-L/usr/lib/atlas -lcblas -latlas"
25562 fi
25563
25564 fi
25565
25566 fi
25567
25568
25569 # CBLAS in PhiPACK libraries? (requires generic BLAS lib, too)
25570 if test $acx_cblas_ok = no; then
25571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
25572 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
25573 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
25574   $as_echo_n "(cached) " >&6
25575 else
25576   ac_check_lib_save_LIBS=$LIBS
25577 LIBS="-lcblas  $LIBS"
25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h.  */
25580
25581 /* Override any GCC internal prototype to avoid an error.
25582    Use char because int might match the return type of a GCC
25583    builtin and then its argument prototype would still apply.  */
25584 #ifdef __cplusplus
25585 extern "C"
25586 #endif
25587 char cblas_sgemm ();
25588 int
25589 main ()
25590 {
25591 return cblas_sgemm ();
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 if ac_fn_c_try_link "$LINENO"; then :
25597   ac_cv_lib_cblas_cblas_sgemm=yes
25598 else
25599   ac_cv_lib_cblas_cblas_sgemm=no
25600 fi
25601 rm -f core conftest.err conftest.$ac_objext \
25602     conftest$ac_exeext conftest.$ac_ext
25603 LIBS=$ac_check_lib_save_LIBS
25604 fi
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
25606 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
25607 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
25608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -ldgemm" >&5
25609 $as_echo_n "checking for cblas_dgemm in -ldgemm... " >&6; }
25610 if test "${ac_cv_lib_dgemm_cblas_dgemm+set}" = set; then :
25611   $as_echo_n "(cached) " >&6
25612 else
25613   ac_check_lib_save_LIBS=$LIBS
25614 LIBS="-ldgemm -lblas $LIBS"
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h.  */
25617
25618 /* Override any GCC internal prototype to avoid an error.
25619    Use char because int might match the return type of a GCC
25620    builtin and then its argument prototype would still apply.  */
25621 #ifdef __cplusplus
25622 extern "C"
25623 #endif
25624 char cblas_dgemm ();
25625 int
25626 main ()
25627 {
25628 return cblas_dgemm ();
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 if ac_fn_c_try_link "$LINENO"; then :
25634   ac_cv_lib_dgemm_cblas_dgemm=yes
25635 else
25636   ac_cv_lib_dgemm_cblas_dgemm=no
25637 fi
25638 rm -f core conftest.err conftest.$ac_objext \
25639     conftest$ac_exeext conftest.$ac_ext
25640 LIBS=$ac_check_lib_save_LIBS
25641 fi
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgemm_cblas_dgemm" >&5
25643 $as_echo "$ac_cv_lib_dgemm_cblas_dgemm" >&6; }
25644 if test "x$ac_cv_lib_dgemm_cblas_dgemm" = x""yes; then :
25645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lsgemm" >&5
25646 $as_echo_n "checking for cblas_sgemm in -lsgemm... " >&6; }
25647 if test "${ac_cv_lib_sgemm_cblas_sgemm+set}" = set; then :
25648   $as_echo_n "(cached) " >&6
25649 else
25650   ac_check_lib_save_LIBS=$LIBS
25651 LIBS="-lsgemm -lblas $LIBS"
25652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653 /* end confdefs.h.  */
25654
25655 /* Override any GCC internal prototype to avoid an error.
25656    Use char because int might match the return type of a GCC
25657    builtin and then its argument prototype would still apply.  */
25658 #ifdef __cplusplus
25659 extern "C"
25660 #endif
25661 char cblas_sgemm ();
25662 int
25663 main ()
25664 {
25665 return cblas_sgemm ();
25666   ;
25667   return 0;
25668 }
25669 _ACEOF
25670 if ac_fn_c_try_link "$LINENO"; then :
25671   ac_cv_lib_sgemm_cblas_sgemm=yes
25672 else
25673   ac_cv_lib_sgemm_cblas_sgemm=no
25674 fi
25675 rm -f core conftest.err conftest.$ac_objext \
25676     conftest$ac_exeext conftest.$ac_ext
25677 LIBS=$ac_check_lib_save_LIBS
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sgemm_cblas_sgemm" >&5
25680 $as_echo "$ac_cv_lib_sgemm_cblas_sgemm" >&6; }
25681 if test "x$ac_cv_lib_sgemm_cblas_sgemm" = x""yes; then :
25682   acx_cblas_ok=yes; CBLAS_LIBS="-lsgemm -ldgemm -lblas"
25683 fi
25684
25685 fi
25686
25687 fi
25688
25689 fi
25690
25691 # BLAS in Intel MKL library?
25692 if test $acx_cblas_ok = no; then
25693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lmkl" >&5
25694 $as_echo_n "checking for cblas_sgemm in -lmkl... " >&6; }
25695 if test "${ac_cv_lib_mkl_cblas_sgemm+set}" = set; then :
25696   $as_echo_n "(cached) " >&6
25697 else
25698   ac_check_lib_save_LIBS=$LIBS
25699 LIBS="-lmkl  $LIBS"
25700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25701 /* end confdefs.h.  */
25702
25703 /* Override any GCC internal prototype to avoid an error.
25704    Use char because int might match the return type of a GCC
25705    builtin and then its argument prototype would still apply.  */
25706 #ifdef __cplusplus
25707 extern "C"
25708 #endif
25709 char cblas_sgemm ();
25710 int
25711 main ()
25712 {
25713 return cblas_sgemm ();
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 if ac_fn_c_try_link "$LINENO"; then :
25719   ac_cv_lib_mkl_cblas_sgemm=yes
25720 else
25721   ac_cv_lib_mkl_cblas_sgemm=no
25722 fi
25723 rm -f core conftest.err conftest.$ac_objext \
25724     conftest$ac_exeext conftest.$ac_ext
25725 LIBS=$ac_check_lib_save_LIBS
25726 fi
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mkl_cblas_sgemm" >&5
25728 $as_echo "$ac_cv_lib_mkl_cblas_sgemm" >&6; }
25729 if test "x$ac_cv_lib_mkl_cblas_sgemm" = x""yes; then :
25730   acx_cblas_ok=yes;CBLAS_LIBS="-lmkl"
25731 fi
25732
25733 fi
25734
25735 # CBLAS in Apple vecLib library?
25736 if test $acx_cblas_ok = no; then
25737         save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
25738         ac_fn_c_check_func "$LINENO" "cblas_sgemm" "ac_cv_func_cblas_sgemm"
25739 if test "x$ac_cv_func_cblas_sgemm" = x""yes; then :
25740   acx_cblas_ok=yes;CBLAS_LIBS="-framework vecLib"
25741 fi
25742
25743         LIBS="$save_LIBS"
25744 fi
25745
25746 # CBLAS in Alpha CXML library?
25747 if test $acx_cblas_ok = no; then
25748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcxml" >&5
25749 $as_echo_n "checking for cblas_sgemm in -lcxml... " >&6; }
25750 if test "${ac_cv_lib_cxml_cblas_sgemm+set}" = set; then :
25751   $as_echo_n "(cached) " >&6
25752 else
25753   ac_check_lib_save_LIBS=$LIBS
25754 LIBS="-lcxml  $LIBS"
25755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h.  */
25757
25758 /* Override any GCC internal prototype to avoid an error.
25759    Use char because int might match the return type of a GCC
25760    builtin and then its argument prototype would still apply.  */
25761 #ifdef __cplusplus
25762 extern "C"
25763 #endif
25764 char cblas_sgemm ();
25765 int
25766 main ()
25767 {
25768 return cblas_sgemm ();
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 if ac_fn_c_try_link "$LINENO"; then :
25774   ac_cv_lib_cxml_cblas_sgemm=yes
25775 else
25776   ac_cv_lib_cxml_cblas_sgemm=no
25777 fi
25778 rm -f core conftest.err conftest.$ac_objext \
25779     conftest$ac_exeext conftest.$ac_ext
25780 LIBS=$ac_check_lib_save_LIBS
25781 fi
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cxml_cblas_sgemm" >&5
25783 $as_echo "$ac_cv_lib_cxml_cblas_sgemm" >&6; }
25784 if test "x$ac_cv_lib_cxml_cblas_sgemm" = x""yes; then :
25785   acx_cblas_ok=yes;CBLAS_LIBS="-lcxml"
25786 fi
25787
25788 fi
25789
25790 # CBLAS in Alpha DXML library? (now called CXML, see above)
25791 if test $acx_cblas_ok = no; then
25792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -ldxml" >&5
25793 $as_echo_n "checking for cblas_sgemm in -ldxml... " >&6; }
25794 if test "${ac_cv_lib_dxml_cblas_sgemm+set}" = set; then :
25795   $as_echo_n "(cached) " >&6
25796 else
25797   ac_check_lib_save_LIBS=$LIBS
25798 LIBS="-ldxml  $LIBS"
25799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h.  */
25801
25802 /* Override any GCC internal prototype to avoid an error.
25803    Use char because int might match the return type of a GCC
25804    builtin and then its argument prototype would still apply.  */
25805 #ifdef __cplusplus
25806 extern "C"
25807 #endif
25808 char cblas_sgemm ();
25809 int
25810 main ()
25811 {
25812 return cblas_sgemm ();
25813   ;
25814   return 0;
25815 }
25816 _ACEOF
25817 if ac_fn_c_try_link "$LINENO"; then :
25818   ac_cv_lib_dxml_cblas_sgemm=yes
25819 else
25820   ac_cv_lib_dxml_cblas_sgemm=no
25821 fi
25822 rm -f core conftest.err conftest.$ac_objext \
25823     conftest$ac_exeext conftest.$ac_ext
25824 LIBS=$ac_check_lib_save_LIBS
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dxml_cblas_sgemm" >&5
25827 $as_echo "$ac_cv_lib_dxml_cblas_sgemm" >&6; }
25828 if test "x$ac_cv_lib_dxml_cblas_sgemm" = x""yes; then :
25829   acx_cblas_ok=yes;CBLAS_LIBS="-ldxml"
25830 fi
25831
25832 fi
25833
25834 # CBLAS in Sun Performance library?
25835 if test $acx_cblas_ok = no; then
25836         if test "x$GCC" != xyes; then # only works with Sun CC
25837                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
25838 $as_echo_n "checking for acosp in -lsunmath... " >&6; }
25839 if test "${ac_cv_lib_sunmath_acosp+set}" = set; then :
25840   $as_echo_n "(cached) " >&6
25841 else
25842   ac_check_lib_save_LIBS=$LIBS
25843 LIBS="-lsunmath  $LIBS"
25844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25845 /* end confdefs.h.  */
25846
25847 /* Override any GCC internal prototype to avoid an error.
25848    Use char because int might match the return type of a GCC
25849    builtin and then its argument prototype would still apply.  */
25850 #ifdef __cplusplus
25851 extern "C"
25852 #endif
25853 char acosp ();
25854 int
25855 main ()
25856 {
25857 return acosp ();
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 if ac_fn_c_try_link "$LINENO"; then :
25863   ac_cv_lib_sunmath_acosp=yes
25864 else
25865   ac_cv_lib_sunmath_acosp=no
25866 fi
25867 rm -f core conftest.err conftest.$ac_objext \
25868     conftest$ac_exeext conftest.$ac_ext
25869 LIBS=$ac_check_lib_save_LIBS
25870 fi
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
25872 $as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
25873 if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then :
25874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lsunperf" >&5
25875 $as_echo_n "checking for cblas_sgemm in -lsunperf... " >&6; }
25876 if test "${ac_cv_lib_sunperf_cblas_sgemm+set}" = set; then :
25877   $as_echo_n "(cached) " >&6
25878 else
25879   ac_check_lib_save_LIBS=$LIBS
25880 LIBS="-lsunperf -lsunmath $LIBS"
25881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25882 /* end confdefs.h.  */
25883
25884 /* Override any GCC internal prototype to avoid an error.
25885    Use char because int might match the return type of a GCC
25886    builtin and then its argument prototype would still apply.  */
25887 #ifdef __cplusplus
25888 extern "C"
25889 #endif
25890 char cblas_sgemm ();
25891 int
25892 main ()
25893 {
25894 return cblas_sgemm ();
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 if ac_fn_c_try_link "$LINENO"; then :
25900   ac_cv_lib_sunperf_cblas_sgemm=yes
25901 else
25902   ac_cv_lib_sunperf_cblas_sgemm=no
25903 fi
25904 rm -f core conftest.err conftest.$ac_objext \
25905     conftest$ac_exeext conftest.$ac_ext
25906 LIBS=$ac_check_lib_save_LIBS
25907 fi
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunperf_cblas_sgemm" >&5
25909 $as_echo "$ac_cv_lib_sunperf_cblas_sgemm" >&6; }
25910 if test "x$ac_cv_lib_sunperf_cblas_sgemm" = x""yes; then :
25911   CBLAS_LIBS="-xlic_lib=sunperf -lsunmath"
25912                                  acx_cblas_ok=yes
25913 fi
25914
25915 fi
25916
25917         fi
25918 fi
25919
25920 # CBLAS in SCSL library?  (SGI/Cray Scientific Library)
25921 if test $acx_cblas_ok = no; then
25922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lscs" >&5
25923 $as_echo_n "checking for cblas_sgemm in -lscs... " >&6; }
25924 if test "${ac_cv_lib_scs_cblas_sgemm+set}" = set; then :
25925   $as_echo_n "(cached) " >&6
25926 else
25927   ac_check_lib_save_LIBS=$LIBS
25928 LIBS="-lscs  $LIBS"
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h.  */
25931
25932 /* Override any GCC internal prototype to avoid an error.
25933    Use char because int might match the return type of a GCC
25934    builtin and then its argument prototype would still apply.  */
25935 #ifdef __cplusplus
25936 extern "C"
25937 #endif
25938 char cblas_sgemm ();
25939 int
25940 main ()
25941 {
25942 return cblas_sgemm ();
25943   ;
25944   return 0;
25945 }
25946 _ACEOF
25947 if ac_fn_c_try_link "$LINENO"; then :
25948   ac_cv_lib_scs_cblas_sgemm=yes
25949 else
25950   ac_cv_lib_scs_cblas_sgemm=no
25951 fi
25952 rm -f core conftest.err conftest.$ac_objext \
25953     conftest$ac_exeext conftest.$ac_ext
25954 LIBS=$ac_check_lib_save_LIBS
25955 fi
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scs_cblas_sgemm" >&5
25957 $as_echo "$ac_cv_lib_scs_cblas_sgemm" >&6; }
25958 if test "x$ac_cv_lib_scs_cblas_sgemm" = x""yes; then :
25959   acx_cblas_ok=yes; CBLAS_LIBS="-lscs"
25960 fi
25961
25962 fi
25963
25964 # CBLAS in SGIMATH library?
25965 if test $acx_cblas_ok = no; then
25966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcomplib.sgimath" >&5
25967 $as_echo_n "checking for cblas_sgemm in -lcomplib.sgimath... " >&6; }
25968 if test "${ac_cv_lib_complib_sgimath_cblas_sgemm+set}" = set; then :
25969   $as_echo_n "(cached) " >&6
25970 else
25971   ac_check_lib_save_LIBS=$LIBS
25972 LIBS="-lcomplib.sgimath  $LIBS"
25973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h.  */
25975
25976 /* Override any GCC internal prototype to avoid an error.
25977    Use char because int might match the return type of a GCC
25978    builtin and then its argument prototype would still apply.  */
25979 #ifdef __cplusplus
25980 extern "C"
25981 #endif
25982 char cblas_sgemm ();
25983 int
25984 main ()
25985 {
25986 return cblas_sgemm ();
25987   ;
25988   return 0;
25989 }
25990 _ACEOF
25991 if ac_fn_c_try_link "$LINENO"; then :
25992   ac_cv_lib_complib_sgimath_cblas_sgemm=yes
25993 else
25994   ac_cv_lib_complib_sgimath_cblas_sgemm=no
25995 fi
25996 rm -f core conftest.err conftest.$ac_objext \
25997     conftest$ac_exeext conftest.$ac_ext
25998 LIBS=$ac_check_lib_save_LIBS
25999 fi
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_complib_sgimath_cblas_sgemm" >&5
26001 $as_echo "$ac_cv_lib_complib_sgimath_cblas_sgemm" >&6; }
26002 if test "x$ac_cv_lib_complib_sgimath_cblas_sgemm" = x""yes; then :
26003   acx_cblas_ok=yes; CBLAS_LIBS="-lcomplib.sgimath"
26004 fi
26005
26006 fi
26007
26008 # CBLAS in IBM ESSL library? (requires generic CBLAS lib, too)
26009 if test $acx_cblas_ok = no; then
26010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
26011 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
26012 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
26013   $as_echo_n "(cached) " >&6
26014 else
26015   ac_check_lib_save_LIBS=$LIBS
26016 LIBS="-lcblas  $LIBS"
26017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26018 /* end confdefs.h.  */
26019
26020 /* Override any GCC internal prototype to avoid an error.
26021    Use char because int might match the return type of a GCC
26022    builtin and then its argument prototype would still apply.  */
26023 #ifdef __cplusplus
26024 extern "C"
26025 #endif
26026 char cblas_sgemm ();
26027 int
26028 main ()
26029 {
26030 return cblas_sgemm ();
26031   ;
26032   return 0;
26033 }
26034 _ACEOF
26035 if ac_fn_c_try_link "$LINENO"; then :
26036   ac_cv_lib_cblas_cblas_sgemm=yes
26037 else
26038   ac_cv_lib_cblas_cblas_sgemm=no
26039 fi
26040 rm -f core conftest.err conftest.$ac_objext \
26041     conftest$ac_exeext conftest.$ac_ext
26042 LIBS=$ac_check_lib_save_LIBS
26043 fi
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
26045 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
26046 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
26047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lessl" >&5
26048 $as_echo_n "checking for cblas_sgemm in -lessl... " >&6; }
26049 if test "${ac_cv_lib_essl_cblas_sgemm+set}" = set; then :
26050   $as_echo_n "(cached) " >&6
26051 else
26052   ac_check_lib_save_LIBS=$LIBS
26053 LIBS="-lessl -lblas $FLIBS $LIBS"
26054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h.  */
26056
26057 /* Override any GCC internal prototype to avoid an error.
26058    Use char because int might match the return type of a GCC
26059    builtin and then its argument prototype would still apply.  */
26060 #ifdef __cplusplus
26061 extern "C"
26062 #endif
26063 char cblas_sgemm ();
26064 int
26065 main ()
26066 {
26067 return cblas_sgemm ();
26068   ;
26069   return 0;
26070 }
26071 _ACEOF
26072 if ac_fn_c_try_link "$LINENO"; then :
26073   ac_cv_lib_essl_cblas_sgemm=yes
26074 else
26075   ac_cv_lib_essl_cblas_sgemm=no
26076 fi
26077 rm -f core conftest.err conftest.$ac_objext \
26078     conftest$ac_exeext conftest.$ac_ext
26079 LIBS=$ac_check_lib_save_LIBS
26080 fi
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_essl_cblas_sgemm" >&5
26082 $as_echo "$ac_cv_lib_essl_cblas_sgemm" >&6; }
26083 if test "x$ac_cv_lib_essl_cblas_sgemm" = x""yes; then :
26084   acx_cblas_ok=yes; CBLAS_LIBS="-lessl -lblas"
26085 fi
26086
26087 fi
26088
26089 fi
26090
26091 # Generic CBLAS library?
26092 if test $acx_cblas_ok = no; then
26093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lcblas" >&5
26094 $as_echo_n "checking for cblas_sgemm in -lcblas... " >&6; }
26095 if test "${ac_cv_lib_cblas_cblas_sgemm+set}" = set; then :
26096   $as_echo_n "(cached) " >&6
26097 else
26098   ac_check_lib_save_LIBS=$LIBS
26099 LIBS="-lcblas  $LIBS"
26100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26101 /* end confdefs.h.  */
26102
26103 /* Override any GCC internal prototype to avoid an error.
26104    Use char because int might match the return type of a GCC
26105    builtin and then its argument prototype would still apply.  */
26106 #ifdef __cplusplus
26107 extern "C"
26108 #endif
26109 char cblas_sgemm ();
26110 int
26111 main ()
26112 {
26113 return cblas_sgemm ();
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 if ac_fn_c_try_link "$LINENO"; then :
26119   ac_cv_lib_cblas_cblas_sgemm=yes
26120 else
26121   ac_cv_lib_cblas_cblas_sgemm=no
26122 fi
26123 rm -f core conftest.err conftest.$ac_objext \
26124     conftest$ac_exeext conftest.$ac_ext
26125 LIBS=$ac_check_lib_save_LIBS
26126 fi
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_sgemm" >&5
26128 $as_echo "$ac_cv_lib_cblas_cblas_sgemm" >&6; }
26129 if test "x$ac_cv_lib_cblas_cblas_sgemm" = x""yes; then :
26130   acx_cblas_ok=yes; CBLAS_LIBS="-lcblas"
26131 fi
26132
26133 fi
26134
26135 # Generic BLAS library?
26136 if test $acx_cblas_ok = no; then
26137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lblas" >&5
26138 $as_echo_n "checking for cblas_sgemm in -lblas... " >&6; }
26139 if test "${ac_cv_lib_blas_cblas_sgemm+set}" = set; then :
26140   $as_echo_n "(cached) " >&6
26141 else
26142   ac_check_lib_save_LIBS=$LIBS
26143 LIBS="-lblas  $LIBS"
26144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26145 /* end confdefs.h.  */
26146
26147 /* Override any GCC internal prototype to avoid an error.
26148    Use char because int might match the return type of a GCC
26149    builtin and then its argument prototype would still apply.  */
26150 #ifdef __cplusplus
26151 extern "C"
26152 #endif
26153 char cblas_sgemm ();
26154 int
26155 main ()
26156 {
26157 return cblas_sgemm ();
26158   ;
26159   return 0;
26160 }
26161 _ACEOF
26162 if ac_fn_c_try_link "$LINENO"; then :
26163   ac_cv_lib_blas_cblas_sgemm=yes
26164 else
26165   ac_cv_lib_blas_cblas_sgemm=no
26166 fi
26167 rm -f core conftest.err conftest.$ac_objext \
26168     conftest$ac_exeext conftest.$ac_ext
26169 LIBS=$ac_check_lib_save_LIBS
26170 fi
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_cblas_sgemm" >&5
26172 $as_echo "$ac_cv_lib_blas_cblas_sgemm" >&6; }
26173 if test "x$ac_cv_lib_blas_cblas_sgemm" = x""yes; then :
26174   acx_cblas_ok=yes; CBLAS_LIBS="-lblas"
26175 fi
26176
26177 fi
26178
26179 # GSL generic CBLAS library?
26180 if test $acx_cblas_ok = no; then
26181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_sgemm in -lgslcblas" >&5
26182 $as_echo_n "checking for cblas_sgemm in -lgslcblas... " >&6; }
26183 if test "${ac_cv_lib_gslcblas_cblas_sgemm+set}" = set; then :
26184   $as_echo_n "(cached) " >&6
26185 else
26186   ac_check_lib_save_LIBS=$LIBS
26187 LIBS="-lgslcblas  $LIBS"
26188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h.  */
26190
26191 /* Override any GCC internal prototype to avoid an error.
26192    Use char because int might match the return type of a GCC
26193    builtin and then its argument prototype would still apply.  */
26194 #ifdef __cplusplus
26195 extern "C"
26196 #endif
26197 char cblas_sgemm ();
26198 int
26199 main ()
26200 {
26201 return cblas_sgemm ();
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 if ac_fn_c_try_link "$LINENO"; then :
26207   ac_cv_lib_gslcblas_cblas_sgemm=yes
26208 else
26209   ac_cv_lib_gslcblas_cblas_sgemm=no
26210 fi
26211 rm -f core conftest.err conftest.$ac_objext \
26212     conftest$ac_exeext conftest.$ac_ext
26213 LIBS=$ac_check_lib_save_LIBS
26214 fi
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_sgemm" >&5
26216 $as_echo "$ac_cv_lib_gslcblas_cblas_sgemm" >&6; }
26217 if test "x$ac_cv_lib_gslcblas_cblas_sgemm" = x""yes; then :
26218   acx_cblas_ok=yes; CBLAS_LIBS="-lgslcblas"
26219 fi
26220
26221 fi
26222
26223
26224
26225 LIBS="$acx_cblas_save_LIBS"
26226
26227 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26228 if test x"$acx_cblas_ok" = xyes; then
26229
26230 $as_echo "#define HAVE_CBLAS 1" >>confdefs.h
26231
26232         :
26233 else
26234         acx_cblas_ok=no
26235
26236 fi
26237
26238
26239
26240
26241 pkg_failed=no
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL" >&5
26243 $as_echo_n "checking for GSL... " >&6; }
26244
26245 if test -n "$PKG_CONFIG"; then
26246     if test -n "$GSL_CFLAGS"; then
26247         pkg_cv_GSL_CFLAGS="$GSL_CFLAGS"
26248     else
26249         if test -n "$PKG_CONFIG" && \
26250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
26251   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
26252   ac_status=$?
26253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26254   test $ac_status = 0; }; then
26255   pkg_cv_GSL_CFLAGS=`$PKG_CONFIG --cflags "gsl >= 1.10" 2>/dev/null`
26256 else
26257   pkg_failed=yes
26258 fi
26259     fi
26260 else
26261         pkg_failed=untried
26262 fi
26263
26264 if test x$cross_compiling = xyes
26265 then
26266     if test -n "$PKG_CONFIG"; then
26267     if test -n "$GSL_LIBS"; then
26268         pkg_cv_GSL_LIBS="$GSL_LIBS"
26269     else
26270         if test -n "$PKG_CONFIG" && \
26271     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
26272   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
26273   ac_status=$?
26274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275   test $ac_status = 0; }; then
26276   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
26277 else
26278   pkg_failed=yes
26279 fi
26280     fi
26281 else
26282         pkg_failed=untried
26283 fi
26284     _pkg_tmp=
26285   for flag in $pkg_cv_GSL_LIBS; do
26286     case $flag in
26287     (-L/lib* | -L/usr/lib* )       ;; # ignore
26288     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
26289     esac
26290   done
26291   pkg_cv_GSL_LIBS="$_pkg_tmp"
26292 else
26293   if test -n "$PKG_CONFIG"; then
26294     if test -n "$GSL_LIBS"; then
26295         pkg_cv_GSL_LIBS="$GSL_LIBS"
26296     else
26297         if test -n "$PKG_CONFIG" && \
26298     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
26299   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
26300   ac_status=$?
26301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26302   test $ac_status = 0; }; then
26303   pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs --static "gsl >= 1.10" 2>/dev/null`
26304 else
26305   pkg_failed=yes
26306 fi
26307     fi
26308 else
26309         pkg_failed=untried
26310 fi
26311 fi
26312
26313 if test -n "$PKG_CONFIG"; then
26314     if test -n "$GSL_INCLUDEDIR"; then
26315         pkg_cv_GSL_INCLUDEDIR="$GSL_INCLUDEDIR"
26316     else
26317         if test -n "$PKG_CONFIG" && \
26318     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl >= 1.10\""; } >&5
26319   ($PKG_CONFIG --exists --print-errors "gsl >= 1.10") 2>&5
26320   ac_status=$?
26321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322   test $ac_status = 0; }; then
26323   pkg_cv_GSL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "gsl >= 1.10" 2>/dev/null`
26324 else
26325   pkg_failed=yes
26326 fi
26327     fi
26328 else
26329         pkg_failed=untried
26330 fi
26331
26332
26333
26334
26335 if test $pkg_failed = yes; then
26336
26337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26338         _pkg_short_errors_supported=yes
26339 else
26340         _pkg_short_errors_supported=no
26341 fi
26342         if test $_pkg_short_errors_supported = yes; then
26343                 GSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gsl >= 1.10"`
26344         else
26345                 GSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gsl >= 1.10"`
26346         fi
26347         # Put the nasty error message in config.log where it belongs
26348         echo "$GSL_PKG_ERRORS" >&5
26349
26350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26351 $as_echo "no" >&6; }
26352                             passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
26353 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
26354 elif test $pkg_failed = untried; then
26355                     passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gnuradio-core requires package gsl >= 1.10, not found." >&5
26356 $as_echo "gnuradio-core requires package gsl >= 1.10, not found." >&6; }
26357 else
26358         GSL_CFLAGS=$pkg_cv_GSL_CFLAGS
26359         GSL_LIBS=$pkg_cv_GSL_LIBS
26360         GSL_INCLUDEDIR=$pkg_cv_GSL_INCLUDEDIR
26361
26362         GSL_CPPFLAGS=""
26363         for flag in $GSL_CFLAGS; do
26364           case $flag in
26365           -I* | -D* | -U*) GSL_CPPFLAGS="$GSL_CPPFLAGS $flag" ;;
26366           esac
26367         done
26368         pkg_cv_GSL_CPPFLAGS=$GSL_CPPFLAGS
26369
26370
26371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26372 $as_echo "yes" >&6; }
26373         :
26374 fi
26375     fi
26376
26377     if test $passed != with; then
26378                 gnuradio_core_INCLUDES="\
26379 -I\${abs_top_srcdir}/gnuradio-core/src/lib/runtime \
26380 -I\${abs_top_srcdir}/gnuradio-core/src/lib/general \
26381 -I\${abs_top_builddir}/gnuradio-core/src/lib/general \
26382 -I\${abs_top_srcdir}/gnuradio-core/src/lib/gengen \
26383 -I\${abs_top_builddir}/gnuradio-core/src/lib/gengen \
26384 -I\${abs_top_srcdir}/gnuradio-core/src/lib/filter \
26385 -I\${abs_top_builddir}/gnuradio-core/src/lib/filter \
26386 -I\${abs_top_srcdir}/gnuradio-core/src/lib/missing \
26387 -I\${abs_top_srcdir}/gnuradio-core/src/lib/reed-solomon \
26388 -I\${abs_top_srcdir}/gnuradio-core/src/lib/viterbi \
26389 -I\${abs_top_srcdir}/gnuradio-core/src/lib/io \
26390 -I\${abs_top_srcdir}/gnuradio-core/src/lib/g72x \
26391 -I\${abs_top_srcdir}/gnuradio-core/src/lib/swig \
26392 -I\${abs_top_srcdir}/gnuradio-core/src/lib/hier \
26393 -I\${abs_top_builddir}/gnuradio-core/src/lib/swig \
26394 \$(FFTW3F_CFLAGS) \
26395 \$(GSL_CFLAGS)"
26396         gnuradio_core_LA="\${abs_top_builddir}/gnuradio-core/src/lib/libgnuradio-core.la"
26397                 gnuradio_core_LIBDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib:\${abs_top_builddir}/gnuradio-core/src/lib/.libs"
26398         gnuradio_core_SWIGDIRPATH="\${abs_top_builddir}/gnuradio-core/src/lib/swig:\${abs_top_builddir}/gnuradio-core/src/lib/swig/.libs:\${abs_top_srcdir}/gnuradio-core/src/lib/swig"
26399         gnuradio_core_PYDIRPATH="\${abs_top_srcdir}/gnuradio-core/src/python"
26400     fi
26401
26402
26403
26404
26405
26406     ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_prefix.cc gnuradio-core/src/lib/gengen/Makefile gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/viterbi/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/hier/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks2/Makefile gnuradio-core/src/python/gnuradio/blks2impl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/python/gnuradio/vocoder/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
26407
26408
26409
26410
26411     gnuradio_core_with=no
26412     if test $passed = no; then
26413         if test x$enable_gnuradio_core = xyes; then
26414             as_fn_error "Component gnuradio-core has errors; stopping." "$LINENO" 5
26415         else
26416             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gnuradio-core." >&5
26417 $as_echo "Not building component gnuradio-core." >&6; }
26418         fi
26419     else
26420         if test $passed = with; then
26421             with_dirs="$with_dirs gnuradio-core"
26422
26423     if test "x${gnuradio_core_INCLUDES}" != "x"; then
26424         if test "x$with_INCLUDES" = "x"; then
26425             with_INCLUDES="${gnuradio_core_INCLUDES}"
26426         else
26427             with_INCLUDES="${gnuradio_core_INCLUDES}"" ""$with_INCLUDES"
26428         fi
26429         gnuradio_core_INCLUDES=
26430     fi
26431
26432
26433     if test "x${gnuradio_core_SWIG_INCLUDES}" != "x"; then
26434         if test "x$with_SWIG_INCLUDES" = "x"; then
26435             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"
26436         else
26437             with_SWIG_INCLUDES="${gnuradio_core_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26438         fi
26439         gnuradio_core_SWIG_INCLUDES=
26440     fi
26441
26442
26443     if test "x${gnuradio_core_PYDIRPATH}" != "x"; then
26444         if test "x$with_PYDIRPATH" = "x"; then
26445             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"
26446         else
26447             with_PYDIRPATH="${gnuradio_core_PYDIRPATH}"":""$with_PYDIRPATH"
26448         fi
26449         gnuradio_core_PYDIRPATH=
26450     fi
26451
26452
26453     if test "x${gnuradio_core_SWIGDIRPATH}" != "x"; then
26454         if test "x$with_SWIGDIRPATH" = "x"; then
26455             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"
26456         else
26457             with_SWIGDIRPATH="${gnuradio_core_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26458         fi
26459         gnuradio_core_SWIGDIRPATH=
26460     fi
26461
26462
26463     if test "x${gnuradio_core_LIBDIRPATH}" != "x"; then
26464         if test "x$with_LIBDIRPATH" = "x"; then
26465             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"
26466         else
26467             with_LIBDIRPATH="${gnuradio_core_LIBDIRPATH}"":""$with_LIBDIRPATH"
26468         fi
26469         gnuradio_core_LIBDIRPATH=
26470     fi
26471
26472             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core will be included from a pre-installed library and includes." >&5
26473 $as_echo "Component gnuradio-core will be included from a pre-installed library and includes." >&6; }
26474             gnuradio_core_with=yes
26475         else
26476             gnuradio_core_LDFLAG=
26477             if test x$enable_gnuradio_core != xno; then
26478                         ac_config_commands="$ac_config_commands run_tests_core"
26479
26480
26481                 build_dirs="$build_dirs gnuradio-core"
26482                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core passed configuration checks; building." >&5
26483 $as_echo "Component gnuradio-core passed configuration checks; building." >&6; }
26484             else
26485                 passed=no
26486                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-core passed configuration checks; but not building." >&5
26487 $as_echo "Component gnuradio-core passed configuration checks; but not building." >&6; }
26488             fi
26489         fi
26490     fi
26491     if test $passed = no; then
26492         skipped_dirs="$skipped_dirs gnuradio-core"
26493         gnuradio_core_skipped=yes
26494     else
26495         gnuradio_core_skipped=no
26496     fi
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508     passed=yes
26509     # Check whether --enable-pmt was given.
26510 if test "${enable_pmt+set}" = set; then :
26511   enableval=$enable_pmt;
26512 else
26513
26514         enable_pmt=$enable_all_components
26515         if test x$enable_all_components = xno; then
26516             passed=no
26517         fi
26518
26519 fi
26520
26521
26522
26523
26524     if test x = x; then
26525         pc_comp_name="pmt"
26526     else
26527         pc_comp_name=""
26528     fi
26529
26530
26531 # Check whether --with-pmt was given.
26532 if test "${with_pmt+set}" = set; then :
26533   withval=$with_pmt; if test "x$withval" != "xyes"; then
26534                     with_pmt_val=$withval
26535                     with_pmt=yes
26536                  fi
26537 fi
26538
26539     if test x$with_pmt = xyes; then
26540         if test x$enable_pmt = xyes; then
26541             as_fn_error "Component pmt: Cannot use both --enable and --with" "$LINENO" 5
26542         else
26543
26544         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
26545
26546             l_PKG_CONFIG_PATH=$with_pmt_val
26547     if test "x$l_PKG_CONFIG_PATH" != "x"; then
26548         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
26549
26550                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
26551             as_fn_error "Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
26552         fi
26553     fi
26554
26555         if test -n "$PKG_CONFIG" && \
26556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
26557   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
26558   ac_status=$?
26559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560   test $ac_status = 0; }; then
26561   passed=with; check1=yes
26562 else
26563
26564         check1=no
26565                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
26566             if test "x$s_PKG_CONFIG_PATH" != "x"; then
26567                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
26568                 if test -n "$PKG_CONFIG" && \
26569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
26570   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
26571   ac_status=$?
26572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26573   test $ac_status = 0; }; then
26574   passed=with
26575 else
26576   passed=no
26577 fi
26578             fi
26579         fi
26580         if test $passed != with; then
26581             as_fn_error "Component pmt: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
26582         fi
26583                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
26584
26585 fi
26586
26587                 pmt_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
26588     pmt_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
26589     pmt_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
26590
26591     if test x$check1 = xyes; then
26592                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
26593             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
26594         fi
26595     fi
26596
26597             :
26598         fi
26599     fi
26600
26601
26602
26603
26604     if test $passed != no; then
26605         if test $passed = yes; then
26606                         if test x$omnithread_skipped = xyes; then
26607                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component pmt requires omnithread, which is not being built or specified via pre-installed files." >&5
26608 $as_echo "Component pmt requires omnithread, which is not being built or specified via pre-installed files." >&6; }
26609                 passed=no
26610             fi
26611         else
26612                         if test x$omnithread_with = xno; then
26613                 as_fn_error "Component pmt requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
26614             fi
26615         fi
26616     fi
26617
26618
26619                     if test $passed = yes; then
26620
26621     if test x"$GUILE" = x; then
26622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component pmt requires guile, which was not found." >&5
26623 $as_echo "Component pmt requires guile, which was not found." >&6; }
26624         passed=no
26625     fi
26626
26627     fi
26628     if test $passed != with; then
26629                 pmt_INCLUDES="-I\${abs_top_srcdir}/pmt/src/lib"
26630         pmt_LA="\${abs_top_builddir}/pmt/src/lib/libpmt.la"
26631     fi
26632
26633     ac_config_files="$ac_config_files pmt/Makefile pmt/pmt.pc pmt/doc/Makefile pmt/src/Makefile pmt/src/lib/Makefile pmt/src/scheme/Makefile pmt/src/scheme/gnuradio/Makefile"
26634
26635
26636
26637
26638     pmt_with=no
26639     if test $passed = no; then
26640         if test x$enable_pmt = xyes; then
26641             as_fn_error "Component pmt has errors; stopping." "$LINENO" 5
26642         else
26643             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component pmt." >&5
26644 $as_echo "Not building component pmt." >&6; }
26645         fi
26646     else
26647         if test $passed = with; then
26648             with_dirs="$with_dirs pmt"
26649
26650     if test "x${pmt_INCLUDES}" != "x"; then
26651         if test "x$with_INCLUDES" = "x"; then
26652             with_INCLUDES="${pmt_INCLUDES}"
26653         else
26654             with_INCLUDES="${pmt_INCLUDES}"" ""$with_INCLUDES"
26655         fi
26656         pmt_INCLUDES=
26657     fi
26658
26659
26660     if test "x${pmt_SWIG_INCLUDES}" != "x"; then
26661         if test "x$with_SWIG_INCLUDES" = "x"; then
26662             with_SWIG_INCLUDES="${pmt_SWIG_INCLUDES}"
26663         else
26664             with_SWIG_INCLUDES="${pmt_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26665         fi
26666         pmt_SWIG_INCLUDES=
26667     fi
26668
26669
26670     if test "x${pmt_PYDIRPATH}" != "x"; then
26671         if test "x$with_PYDIRPATH" = "x"; then
26672             with_PYDIRPATH="${pmt_PYDIRPATH}"
26673         else
26674             with_PYDIRPATH="${pmt_PYDIRPATH}"":""$with_PYDIRPATH"
26675         fi
26676         pmt_PYDIRPATH=
26677     fi
26678
26679
26680     if test "x${pmt_SWIGDIRPATH}" != "x"; then
26681         if test "x$with_SWIGDIRPATH" = "x"; then
26682             with_SWIGDIRPATH="${pmt_SWIGDIRPATH}"
26683         else
26684             with_SWIGDIRPATH="${pmt_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26685         fi
26686         pmt_SWIGDIRPATH=
26687     fi
26688
26689
26690     if test "x${pmt_LIBDIRPATH}" != "x"; then
26691         if test "x$with_LIBDIRPATH" = "x"; then
26692             with_LIBDIRPATH="${pmt_LIBDIRPATH}"
26693         else
26694             with_LIBDIRPATH="${pmt_LIBDIRPATH}"":""$with_LIBDIRPATH"
26695         fi
26696         pmt_LIBDIRPATH=
26697     fi
26698
26699             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component pmt will be included from a pre-installed library and includes." >&5
26700 $as_echo "Component pmt will be included from a pre-installed library and includes." >&6; }
26701             pmt_with=yes
26702         else
26703             pmt_LDFLAG=
26704             if test x$enable_pmt != xno; then
26705
26706                 build_dirs="$build_dirs pmt"
26707                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component pmt passed configuration checks; building." >&5
26708 $as_echo "Component pmt passed configuration checks; building." >&6; }
26709             else
26710                 passed=no
26711                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component pmt passed configuration checks; but not building." >&5
26712 $as_echo "Component pmt passed configuration checks; but not building." >&6; }
26713             fi
26714         fi
26715     fi
26716     if test $passed = no; then
26717         skipped_dirs="$skipped_dirs pmt"
26718         pmt_skipped=yes
26719     else
26720         pmt_skipped=no
26721     fi
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733     passed=yes
26734     # Check whether --enable-mblock was given.
26735 if test "${enable_mblock+set}" = set; then :
26736   enableval=$enable_mblock;
26737 else
26738
26739         enable_mblock=$enable_all_components
26740         if test x$enable_all_components = xno; then
26741             passed=no
26742         fi
26743
26744 fi
26745
26746
26747
26748
26749
26750     if test x = x; then
26751         pc_comp_name="mblock"
26752     else
26753         pc_comp_name=""
26754     fi
26755
26756
26757 # Check whether --with-mblock was given.
26758 if test "${with_mblock+set}" = set; then :
26759   withval=$with_mblock; if test "x$withval" != "xyes"; then
26760                     with_mblock_val=$withval
26761                     with_mblock=yes
26762                  fi
26763 fi
26764
26765     if test x$with_mblock = xyes; then
26766         if test x$enable_mblock = xyes; then
26767             as_fn_error "Component mblock: Cannot use both --enable and --with" "$LINENO" 5
26768         else
26769
26770         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
26771
26772             l_PKG_CONFIG_PATH=$with_mblock_val
26773     if test "x$l_PKG_CONFIG_PATH" != "x"; then
26774         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
26775
26776                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
26777             as_fn_error "Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
26778         fi
26779     fi
26780
26781         if test -n "$PKG_CONFIG" && \
26782     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
26783   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
26784   ac_status=$?
26785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786   test $ac_status = 0; }; then
26787   passed=with; check1=yes
26788 else
26789
26790         check1=no
26791                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
26792             if test "x$s_PKG_CONFIG_PATH" != "x"; then
26793                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
26794                 if test -n "$PKG_CONFIG" && \
26795     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
26796   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
26797   ac_status=$?
26798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799   test $ac_status = 0; }; then
26800   passed=with
26801 else
26802   passed=no
26803 fi
26804             fi
26805         fi
26806         if test $passed != with; then
26807             as_fn_error "Component mblock: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
26808         fi
26809                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
26810
26811 fi
26812
26813                 mblock_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
26814     mblock_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
26815     mblock_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
26816
26817     if test x$check1 = xyes; then
26818                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
26819             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
26820         fi
26821     fi
26822
26823             :
26824         fi
26825     fi
26826
26827
26828
26829
26830     if test $passed != no; then
26831         if test $passed = yes; then
26832                         if test x$pmt_skipped = xyes; then
26833                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock requires pmt, which is not being built or specified via pre-installed files." >&5
26834 $as_echo "Component mblock requires pmt, which is not being built or specified via pre-installed files." >&6; }
26835                 passed=no
26836             fi
26837         else
26838                         if test x$pmt_with = xno; then
26839                 as_fn_error "Component mblock requires pmt to be included as --with-pmt[=arg]" "$LINENO" 5
26840             fi
26841         fi
26842     fi
26843
26844
26845     if test $passed != no; then
26846         if test $passed = yes; then
26847                         if test x$omnithread_skipped = xyes; then
26848                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock requires omnithread, which is not being built or specified via pre-installed files." >&5
26849 $as_echo "Component mblock requires omnithread, which is not being built or specified via pre-installed files." >&6; }
26850                 passed=no
26851             fi
26852         else
26853                         if test x$omnithread_with = xno; then
26854                 as_fn_error "Component mblock requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
26855             fi
26856         fi
26857     fi
26858
26859
26860                     if test $passed = yes; then
26861
26862     if test x"$GUILE" = x; then
26863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock requires guile, which was not found." >&5
26864 $as_echo "Component mblock requires guile, which was not found." >&6; }
26865         passed=no
26866     fi
26867
26868     fi
26869     if test $passed != with; then
26870                 mblock_INCLUDES="-I\${abs_top_srcdir}/mblock/src/include"
26871         mblock_LA="\${abs_top_builddir}/mblock/src/lib/libmblock.la"
26872     fi
26873
26874     ac_config_files="$ac_config_files mblock/Makefile mblock/mblock.pc mblock/doc/Makefile mblock/src/Makefile mblock/src/include/Makefile mblock/src/include/mblock/Makefile mblock/src/lib/Makefile mblock/src/scheme/Makefile mblock/src/scheme/gnuradio/Makefile"
26875
26876
26877
26878
26879     mblock_with=no
26880     if test $passed = no; then
26881         if test x$enable_mblock = xyes; then
26882             as_fn_error "Component mblock has errors; stopping." "$LINENO" 5
26883         else
26884             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component mblock." >&5
26885 $as_echo "Not building component mblock." >&6; }
26886         fi
26887     else
26888         if test $passed = with; then
26889             with_dirs="$with_dirs mblock"
26890
26891     if test "x${mblock_INCLUDES}" != "x"; then
26892         if test "x$with_INCLUDES" = "x"; then
26893             with_INCLUDES="${mblock_INCLUDES}"
26894         else
26895             with_INCLUDES="${mblock_INCLUDES}"" ""$with_INCLUDES"
26896         fi
26897         mblock_INCLUDES=
26898     fi
26899
26900
26901     if test "x${mblock_SWIG_INCLUDES}" != "x"; then
26902         if test "x$with_SWIG_INCLUDES" = "x"; then
26903             with_SWIG_INCLUDES="${mblock_SWIG_INCLUDES}"
26904         else
26905             with_SWIG_INCLUDES="${mblock_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
26906         fi
26907         mblock_SWIG_INCLUDES=
26908     fi
26909
26910
26911     if test "x${mblock_PYDIRPATH}" != "x"; then
26912         if test "x$with_PYDIRPATH" = "x"; then
26913             with_PYDIRPATH="${mblock_PYDIRPATH}"
26914         else
26915             with_PYDIRPATH="${mblock_PYDIRPATH}"":""$with_PYDIRPATH"
26916         fi
26917         mblock_PYDIRPATH=
26918     fi
26919
26920
26921     if test "x${mblock_SWIGDIRPATH}" != "x"; then
26922         if test "x$with_SWIGDIRPATH" = "x"; then
26923             with_SWIGDIRPATH="${mblock_SWIGDIRPATH}"
26924         else
26925             with_SWIGDIRPATH="${mblock_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
26926         fi
26927         mblock_SWIGDIRPATH=
26928     fi
26929
26930
26931     if test "x${mblock_LIBDIRPATH}" != "x"; then
26932         if test "x$with_LIBDIRPATH" = "x"; then
26933             with_LIBDIRPATH="${mblock_LIBDIRPATH}"
26934         else
26935             with_LIBDIRPATH="${mblock_LIBDIRPATH}"":""$with_LIBDIRPATH"
26936         fi
26937         mblock_LIBDIRPATH=
26938     fi
26939
26940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock will be included from a pre-installed library and includes." >&5
26941 $as_echo "Component mblock will be included from a pre-installed library and includes." >&6; }
26942             mblock_with=yes
26943         else
26944             mblock_LDFLAG=
26945             if test x$enable_mblock != xno; then
26946
26947                 build_dirs="$build_dirs mblock"
26948                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock passed configuration checks; building." >&5
26949 $as_echo "Component mblock passed configuration checks; building." >&6; }
26950             else
26951                 passed=no
26952                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component mblock passed configuration checks; but not building." >&5
26953 $as_echo "Component mblock passed configuration checks; but not building." >&6; }
26954             fi
26955         fi
26956     fi
26957     if test $passed = no; then
26958         skipped_dirs="$skipped_dirs mblock"
26959         mblock_skipped=yes
26960     else
26961         mblock_skipped=no
26962     fi
26963
26964
26965
26966
26967
26968
26969
26970                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26971 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26972 if test "${ac_cv_header_stat_broken+set}" = set; then :
26973   $as_echo_n "(cached) " >&6
26974 else
26975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h.  */
26977 #include <sys/types.h>
26978 #include <sys/stat.h>
26979
26980 #if defined S_ISBLK && defined S_IFDIR
26981 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26982 #endif
26983
26984 #if defined S_ISBLK && defined S_IFCHR
26985 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26986 #endif
26987
26988 #if defined S_ISLNK && defined S_IFREG
26989 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26990 #endif
26991
26992 #if defined S_ISSOCK && defined S_IFREG
26993 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26994 #endif
26995
26996 _ACEOF
26997 if ac_fn_c_try_compile "$LINENO"; then :
26998   ac_cv_header_stat_broken=no
26999 else
27000   ac_cv_header_stat_broken=yes
27001 fi
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 fi
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
27005 $as_echo "$ac_cv_header_stat_broken" >&6; }
27006 if test $ac_cv_header_stat_broken = yes; then
27007
27008 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
27009
27010 fi
27011
27012
27013       for ac_header in fcntl.h
27014 do :
27015   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
27016 if test "x$ac_cv_header_fcntl_h" = x""yes; then :
27017   cat >>confdefs.h <<_ACEOF
27018 #define HAVE_FCNTL_H 1
27019 _ACEOF
27020
27021 fi
27022
27023 done
27024
27025
27026
27027       for ac_header in sys/time.h
27028 do :
27029   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
27030 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
27031   cat >>confdefs.h <<_ACEOF
27032 #define HAVE_SYS_TIME_H 1
27033 _ACEOF
27034
27035 fi
27036
27037 done
27038
27039
27040
27041       for ac_header in unistd.h
27042 do :
27043   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
27044 if test "x$ac_cv_header_unistd_h" = x""yes; then :
27045   cat >>confdefs.h <<_ACEOF
27046 #define HAVE_UNISTD_H 1
27047 _ACEOF
27048
27049 fi
27050
27051 done
27052
27053
27054
27055       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
27056 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
27057   ac_have_decl=1
27058 else
27059   ac_have_decl=0
27060 fi
27061
27062 cat >>confdefs.h <<_ACEOF
27063 #define HAVE_DECL_GETENV $ac_have_decl
27064 _ACEOF
27065
27066
27067
27068
27069
27070     passed=yes
27071     # Check whether --enable-usrp was given.
27072 if test "${enable_usrp+set}" = set; then :
27073   enableval=$enable_usrp;
27074 else
27075
27076         enable_usrp=$enable_all_components
27077         if test x$enable_all_components = xno; then
27078             passed=no
27079         fi
27080
27081 fi
27082
27083
27084
27085
27086
27087     if test x = x; then
27088         pc_comp_name="usrp"
27089     else
27090         pc_comp_name=""
27091     fi
27092
27093
27094 # Check whether --with-usrp was given.
27095 if test "${with_usrp+set}" = set; then :
27096   withval=$with_usrp; if test "x$withval" != "xyes"; then
27097                     with_usrp_val=$withval
27098                     with_usrp=yes
27099                  fi
27100 fi
27101
27102     if test x$with_usrp = xyes; then
27103         if test x$enable_usrp = xyes; then
27104             as_fn_error "Component usrp: Cannot use both --enable and --with" "$LINENO" 5
27105         else
27106
27107         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
27108
27109             l_PKG_CONFIG_PATH=$with_usrp_val
27110     if test "x$l_PKG_CONFIG_PATH" != "x"; then
27111         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
27112
27113                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
27114             as_fn_error "Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
27115         fi
27116     fi
27117
27118         if test -n "$PKG_CONFIG" && \
27119     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
27120   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
27121   ac_status=$?
27122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27123   test $ac_status = 0; }; then
27124   passed=with; check1=yes
27125 else
27126
27127         check1=no
27128                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
27129             if test "x$s_PKG_CONFIG_PATH" != "x"; then
27130                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
27131                 if test -n "$PKG_CONFIG" && \
27132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
27133   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
27134   ac_status=$?
27135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136   test $ac_status = 0; }; then
27137   passed=with
27138 else
27139   passed=no
27140 fi
27141             fi
27142         fi
27143         if test $passed != with; then
27144             as_fn_error "Component usrp: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
27145         fi
27146                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
27147
27148 fi
27149
27150                 usrp_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
27151     usrp_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
27152     usrp_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
27153
27154     if test x$check1 = xyes; then
27155                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
27156             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
27157         fi
27158     fi
27159
27160             :
27161         fi
27162     fi
27163
27164
27165
27166
27167     if test $passed != no; then
27168         if test $passed = yes; then
27169                         if test x$omnithread_skipped = xyes; then
27170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp requires omnithread, which is not being built or specified via pre-installed files." >&5
27171 $as_echo "Component usrp requires omnithread, which is not being built or specified via pre-installed files." >&6; }
27172                 passed=no
27173             fi
27174         else
27175                         if test x$omnithread_with = xno; then
27176                 as_fn_error "Component usrp requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
27177             fi
27178         fi
27179     fi
27180
27181
27182
27183
27184 # Check whether --with-fusb-tech was given.
27185 if test "${with_fusb_tech+set}" = set; then :
27186   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
27187 else
27188   cf_with_fusb_tech="$host_os"
27189 fi
27190
27191   if test x${enable_usrp} != xno; then
27192       case "$cf_with_fusb_tech" in
27193         linux*)
27194           ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
27195 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
27196   x_have_usbdevice_fs_h=yes
27197 else
27198   x_have_usbdevice_fs_h=no
27199 fi
27200
27201
27202           if test x${x_have_usbdevice_fs_h} = xyes; then
27203               FUSB_TECH=linux
27204           else
27205               FUSB_TECH=generic
27206           fi
27207           ;;
27208         darwin*)
27209           FUSB_TECH=darwin
27210           ;;
27211         cygwin*|win*|mingw*)
27212           FUSB_TECH=win32
27213           ;;
27214         *bsd*)
27215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RA/WB" >&5
27216 $as_echo_n "checking for RA/WB... " >&6; }
27217           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27218 /* end confdefs.h.  */
27219 #include <dev/usb/usb.h>
27220 int
27221 main ()
27222 {
27223 struct usb_bulk_ra_wb_opt o;
27224                                                ioctl(0, USB_SET_BULK_RA, &o);
27225   ;
27226   return 0;
27227 }
27228 _ACEOF
27229 if ac_fn_c_try_compile "$LINENO"; then :
27230   FUSB_TECH=ra_wb
27231 else
27232   FUSB_TECH=generic
27233 fi
27234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235           ;;
27236         *)
27237           FUSB_TECH=generic
27238           ;;
27239       esac
27240
27241       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fast usb technique to use" >&5
27242 $as_echo_n "checking for fast usb technique to use... " >&6; }
27243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSB_TECH" >&5
27244 $as_echo "$FUSB_TECH" >&6; }
27245
27246   fi
27247
27248    if test x$FUSB_TECH = xdarwin; then
27249   FUSB_TECH_darwin_TRUE=
27250   FUSB_TECH_darwin_FALSE='#'
27251 else
27252   FUSB_TECH_darwin_TRUE='#'
27253   FUSB_TECH_darwin_FALSE=
27254 fi
27255
27256    if test x$FUSB_TECH = xwin32; then
27257   FUSB_TECH_win32_TRUE=
27258   FUSB_TECH_win32_FALSE='#'
27259 else
27260   FUSB_TECH_win32_TRUE='#'
27261   FUSB_TECH_win32_FALSE=
27262 fi
27263
27264    if test x$FUSB_TECH = xgeneric; then
27265   FUSB_TECH_generic_TRUE=
27266   FUSB_TECH_generic_FALSE='#'
27267 else
27268   FUSB_TECH_generic_TRUE='#'
27269   FUSB_TECH_generic_FALSE=
27270 fi
27271
27272    if test x$FUSB_TECH = xlinux; then
27273   FUSB_TECH_linux_TRUE=
27274   FUSB_TECH_linux_FALSE='#'
27275 else
27276   FUSB_TECH_linux_TRUE='#'
27277   FUSB_TECH_linux_FALSE=
27278 fi
27279
27280    if test x$FUSB_TECH = xra_wb; then
27281   FUSB_TECH_ra_wb_TRUE=
27282   FUSB_TECH_ra_wb_FALSE='#'
27283 else
27284   FUSB_TECH_ra_wb_TRUE='#'
27285   FUSB_TECH_ra_wb_FALSE=
27286 fi
27287
27288
27289
27290                     if test $passed = yes; then
27291                           for ac_func in mkstemp
27292 do :
27293   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
27294 if test "x$ac_cv_func_mkstemp" = x""yes; then :
27295   cat >>confdefs.h <<_ACEOF
27296 #define HAVE_MKSTEMP 1
27297 _ACEOF
27298
27299 else
27300   case " $LIBOBJS " in
27301   *" $ac_func.$ac_objext "* ) ;;
27302   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27303  ;;
27304 esac
27305
27306 fi
27307 done
27308
27309
27310   if test $ac_cv_func_mkstemp = no; then
27311     utils_cv_func_mkstemp_limitations=yes
27312   else
27313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp limitations" >&5
27314 $as_echo_n "checking for mkstemp limitations... " >&6; }
27315 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then :
27316   $as_echo_n "(cached) " >&6
27317 else
27318
27319         if test "$cross_compiling" = yes; then :
27320   utils_cv_func_mkstemp_limitations=yes
27321
27322 else
27323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324 /* end confdefs.h.  */
27325
27326 #         include <stdlib.h>
27327           int main ()
27328           {
27329             int i;
27330             for (i = 0; i < 70; i++)
27331               {
27332                 char template[] = "conftestXXXXXX";
27333                 int fd = mkstemp (template);
27334                 if (fd == -1)
27335                   exit (1);
27336                 close (fd);
27337               }
27338             exit (0);
27339           }
27340
27341 _ACEOF
27342 if ac_fn_c_try_run "$LINENO"; then :
27343   utils_cv_func_mkstemp_limitations=no
27344 else
27345   utils_cv_func_mkstemp_limitations=yes
27346 fi
27347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27348   conftest.$ac_objext conftest.beam conftest.$ac_ext
27349 fi
27350
27351
27352
27353 fi
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $utils_cv_func_mkstemp_limitations" >&5
27355 $as_echo "$utils_cv_func_mkstemp_limitations" >&6; }
27356   fi
27357
27358   if test $utils_cv_func_mkstemp_limitations = yes; then
27359     case " $LIBOBJS " in
27360   *" mkstemp.$ac_objext "* ) ;;
27361   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27362  ;;
27363 esac
27364
27365     case " $LIBOBJS " in
27366   *" tempname.$ac_objext "* ) ;;
27367   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
27368  ;;
27369 esac
27370
27371
27372 $as_echo "#define mkstemp rpl_mkstemp" >>confdefs.h
27373
27374
27375
27376
27377
27378
27379
27380   :
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392   for ac_header in stdint.h
27393 do :
27394   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27395 if test "x$ac_cv_header_stdint_h" = x""yes; then :
27396   cat >>confdefs.h <<_ACEOF
27397 #define HAVE_STDINT_H 1
27398 _ACEOF
27399
27400 fi
27401
27402 done
27403
27404   for ac_func in __secure_getenv gettimeofday lstat
27405 do :
27406   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27408 eval as_val=\$$as_ac_var
27409    if test "x$as_val" = x""yes; then :
27410   cat >>confdefs.h <<_ACEOF
27411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27412 _ACEOF
27413
27414 fi
27415 done
27416
27417
27418   :
27419
27420
27421
27422
27423
27424   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
27425
27426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir accepts only one arg" >&5
27427 $as_echo_n "checking whether mkdir accepts only one arg... " >&6; }
27428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27429 /* end confdefs.h.  */
27430 #include <sys/types.h>
27431        #include <sys/stat.h>
27432        #include <fcntl.h>
27433 int
27434 main ()
27435 {
27436
27437        mkdir("")
27438
27439   ;
27440   return 0;
27441 }
27442 _ACEOF
27443 if ac_fn_c_try_compile "$LINENO"; then :
27444    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27445 $as_echo "yes" >&6; }
27446
27447 $as_echo "#define MKDIR_TAKES_ONE_ARG /**/" >>confdefs.h
27448
27449 else
27450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27451 $as_echo "no" >&6; }
27452
27453 fi
27454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27455
27456   fi
27457
27458
27459                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
27460 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
27461 if test "${ac_cv_c_bigendian+set}" = set; then :
27462   $as_echo_n "(cached) " >&6
27463 else
27464   ac_cv_c_bigendian=unknown
27465     # See if we're dealing with a universal compiler.
27466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27467 /* end confdefs.h.  */
27468 #ifndef __APPLE_CC__
27469                not a universal capable compiler
27470              #endif
27471              typedef int dummy;
27472
27473 _ACEOF
27474 if ac_fn_c_try_compile "$LINENO"; then :
27475
27476         # Check for potential -arch flags.  It is not universal unless
27477         # there are at least two -arch flags with different values.
27478         ac_arch=
27479         ac_prev=
27480         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27481          if test -n "$ac_prev"; then
27482            case $ac_word in
27483              i?86 | x86_64 | ppc | ppc64)
27484                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
27485                  ac_arch=$ac_word
27486                else
27487                  ac_cv_c_bigendian=universal
27488                  break
27489                fi
27490                ;;
27491            esac
27492            ac_prev=
27493          elif test "x$ac_word" = "x-arch"; then
27494            ac_prev=arch
27495          fi
27496        done
27497 fi
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499     if test $ac_cv_c_bigendian = unknown; then
27500       # See if sys/param.h defines the BYTE_ORDER macro.
27501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27502 /* end confdefs.h.  */
27503 #include <sys/types.h>
27504              #include <sys/param.h>
27505
27506 int
27507 main ()
27508 {
27509 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27510                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27511                      && LITTLE_ENDIAN)
27512               bogus endian macros
27513              #endif
27514
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 if ac_fn_c_try_compile "$LINENO"; then :
27520   # It does; now see whether it defined to BIG_ENDIAN or not.
27521          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h.  */
27523 #include <sys/types.h>
27524                 #include <sys/param.h>
27525
27526 int
27527 main ()
27528 {
27529 #if BYTE_ORDER != BIG_ENDIAN
27530                  not big endian
27531                 #endif
27532
27533   ;
27534   return 0;
27535 }
27536 _ACEOF
27537 if ac_fn_c_try_compile "$LINENO"; then :
27538   ac_cv_c_bigendian=yes
27539 else
27540   ac_cv_c_bigendian=no
27541 fi
27542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27543 fi
27544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27545     fi
27546     if test $ac_cv_c_bigendian = unknown; then
27547       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27549 /* end confdefs.h.  */
27550 #include <limits.h>
27551
27552 int
27553 main ()
27554 {
27555 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27556               bogus endian macros
27557              #endif
27558
27559   ;
27560   return 0;
27561 }
27562 _ACEOF
27563 if ac_fn_c_try_compile "$LINENO"; then :
27564   # It does; now see whether it defined to _BIG_ENDIAN or not.
27565          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h.  */
27567 #include <limits.h>
27568
27569 int
27570 main ()
27571 {
27572 #ifndef _BIG_ENDIAN
27573                  not big endian
27574                 #endif
27575
27576   ;
27577   return 0;
27578 }
27579 _ACEOF
27580 if ac_fn_c_try_compile "$LINENO"; then :
27581   ac_cv_c_bigendian=yes
27582 else
27583   ac_cv_c_bigendian=no
27584 fi
27585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27586 fi
27587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27588     fi
27589     if test $ac_cv_c_bigendian = unknown; then
27590       # Compile a test program.
27591       if test "$cross_compiling" = yes; then :
27592   # Try to guess by grepping values from an object file.
27593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27594 /* end confdefs.h.  */
27595 short int ascii_mm[] =
27596                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27597                 short int ascii_ii[] =
27598                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27599                 int use_ascii (int i) {
27600                   return ascii_mm[i] + ascii_ii[i];
27601                 }
27602                 short int ebcdic_ii[] =
27603                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27604                 short int ebcdic_mm[] =
27605                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27606                 int use_ebcdic (int i) {
27607                   return ebcdic_mm[i] + ebcdic_ii[i];
27608                 }
27609                 extern int foo;
27610
27611 int
27612 main ()
27613 {
27614 return use_ascii (foo) == use_ebcdic (foo);
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 if ac_fn_c_try_compile "$LINENO"; then :
27620   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
27621               ac_cv_c_bigendian=yes
27622             fi
27623             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27624               if test "$ac_cv_c_bigendian" = unknown; then
27625                 ac_cv_c_bigendian=no
27626               else
27627                 # finding both strings is unlikely to happen, but who knows?
27628                 ac_cv_c_bigendian=unknown
27629               fi
27630             fi
27631 fi
27632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27633 else
27634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27635 /* end confdefs.h.  */
27636 $ac_includes_default
27637 int
27638 main ()
27639 {
27640
27641              /* Are we little or big endian?  From Harbison&Steele.  */
27642              union
27643              {
27644                long int l;
27645                char c[sizeof (long int)];
27646              } u;
27647              u.l = 1;
27648              return u.c[sizeof (long int) - 1] == 1;
27649
27650   ;
27651   return 0;
27652 }
27653 _ACEOF
27654 if ac_fn_c_try_run "$LINENO"; then :
27655   ac_cv_c_bigendian=no
27656 else
27657   ac_cv_c_bigendian=yes
27658 fi
27659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27660   conftest.$ac_objext conftest.beam conftest.$ac_ext
27661 fi
27662
27663     fi
27664 fi
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27666 $as_echo "$ac_cv_c_bigendian" >&6; }
27667  case $ac_cv_c_bigendian in #(
27668    yes)
27669      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
27670 ;; #(
27671    no)
27672       ;; #(
27673    universal)
27674
27675 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27676
27677      ;; #(
27678    *)
27679      as_fn_error "unknown endianness
27680  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27681  esac
27682
27683         for ac_header in byteswap.h linux/compiler.h
27684 do :
27685   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27686 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27687 eval as_val=\$$as_ac_Header
27688    if test "x$as_val" = x""yes; then :
27689   cat >>confdefs.h <<_ACEOF
27690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27691 _ACEOF
27692
27693 fi
27694
27695 done
27696
27697         for ac_func in getrusage sched_setscheduler pthread_setschedparam
27698 do :
27699   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27701 eval as_val=\$$as_ac_var
27702    if test "x$as_val" = x""yes; then :
27703   cat >>confdefs.h <<_ACEOF
27704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27705 _ACEOF
27706
27707 fi
27708 done
27709
27710         for ac_func in sigaction snprintf
27711 do :
27712   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27714 eval as_val=\$$as_ac_var
27715    if test "x$as_val" = x""yes; then :
27716   cat >>confdefs.h <<_ACEOF
27717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27718 _ACEOF
27719
27720 fi
27721 done
27722
27723
27724
27725     libusbok=yes
27726
27727
27728
27729 pkg_failed=no
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
27731 $as_echo_n "checking for USB... " >&6; }
27732
27733 if test -n "$PKG_CONFIG"; then
27734     if test -n "$USB_CFLAGS"; then
27735         pkg_cv_USB_CFLAGS="$USB_CFLAGS"
27736     else
27737         if test -n "$PKG_CONFIG" && \
27738     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
27739   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
27740   ac_status=$?
27741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27742   test $ac_status = 0; }; then
27743   pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
27744 else
27745   pkg_failed=yes
27746 fi
27747     fi
27748 else
27749         pkg_failed=untried
27750 fi
27751
27752 if test x$cross_compiling = xyes
27753 then
27754     if test -n "$PKG_CONFIG"; then
27755     if test -n "$USB_LIBS"; then
27756         pkg_cv_USB_LIBS="$USB_LIBS"
27757     else
27758         if test -n "$PKG_CONFIG" && \
27759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
27760   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
27761   ac_status=$?
27762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763   test $ac_status = 0; }; then
27764   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
27765 else
27766   pkg_failed=yes
27767 fi
27768     fi
27769 else
27770         pkg_failed=untried
27771 fi
27772     _pkg_tmp=
27773   for flag in $pkg_cv_USB_LIBS; do
27774     case $flag in
27775     (-L/lib* | -L/usr/lib* )       ;; # ignore
27776     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
27777     esac
27778   done
27779   pkg_cv_USB_LIBS="$_pkg_tmp"
27780 else
27781   if test -n "$PKG_CONFIG"; then
27782     if test -n "$USB_LIBS"; then
27783         pkg_cv_USB_LIBS="$USB_LIBS"
27784     else
27785         if test -n "$PKG_CONFIG" && \
27786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
27787   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
27788   ac_status=$?
27789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27790   test $ac_status = 0; }; then
27791   pkg_cv_USB_LIBS=`$PKG_CONFIG --libs --static "libusb" 2>/dev/null`
27792 else
27793   pkg_failed=yes
27794 fi
27795     fi
27796 else
27797         pkg_failed=untried
27798 fi
27799 fi
27800
27801 if test -n "$PKG_CONFIG"; then
27802     if test -n "$USB_INCLUDEDIR"; then
27803         pkg_cv_USB_INCLUDEDIR="$USB_INCLUDEDIR"
27804     else
27805         if test -n "$PKG_CONFIG" && \
27806     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
27807   ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
27808   ac_status=$?
27809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27810   test $ac_status = 0; }; then
27811   pkg_cv_USB_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "libusb" 2>/dev/null`
27812 else
27813   pkg_failed=yes
27814 fi
27815     fi
27816 else
27817         pkg_failed=untried
27818 fi
27819
27820
27821
27822
27823 if test $pkg_failed = yes; then
27824
27825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27826         _pkg_short_errors_supported=yes
27827 else
27828         _pkg_short_errors_supported=no
27829 fi
27830         if test $_pkg_short_errors_supported = yes; then
27831                 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
27832         else
27833                 USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
27834         fi
27835         # Put the nasty error message in config.log where it belongs
27836         echo "$USB_PKG_ERRORS" >&5
27837
27838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27839 $as_echo "no" >&6; }
27840
27841         ac_ext=c
27842 ac_cpp='$CPP $CPPFLAGS'
27843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27846
27847
27848         for ac_header in usb.h
27849 do :
27850   ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
27851 if test "x$ac_cv_header_usb_h" = x""yes; then :
27852   cat >>confdefs.h <<_ACEOF
27853 #define HAVE_USB_H 1
27854 _ACEOF
27855
27856 else
27857   libusbok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
27858 $as_echo "USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
27859 fi
27860
27861 done
27862
27863
27864         save_LIBS="$LIBS"
27865         case "$host_os" in
27866           darwin*)
27867             LIBS="$LIBS -lIOKit"
27868             ;;
27869           *) ;;
27870         esac
27871
27872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing usb_bulk_write" >&5
27873 $as_echo_n "checking for library containing usb_bulk_write... " >&6; }
27874 if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
27875   $as_echo_n "(cached) " >&6
27876 else
27877   ac_func_search_save_LIBS=$LIBS
27878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879 /* end confdefs.h.  */
27880
27881 /* Override any GCC internal prototype to avoid an error.
27882    Use char because int might match the return type of a GCC
27883    builtin and then its argument prototype would still apply.  */
27884 #ifdef __cplusplus
27885 extern "C"
27886 #endif
27887 char usb_bulk_write ();
27888 int
27889 main ()
27890 {
27891 return usb_bulk_write ();
27892   ;
27893   return 0;
27894 }
27895 _ACEOF
27896 for ac_lib in '' usb; do
27897   if test -z "$ac_lib"; then
27898     ac_res="none required"
27899   else
27900     ac_res=-l$ac_lib
27901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27902   fi
27903   if ac_fn_c_try_link "$LINENO"; then :
27904   ac_cv_search_usb_bulk_write=$ac_res
27905 fi
27906 rm -f core conftest.err conftest.$ac_objext \
27907     conftest$ac_exeext
27908   if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
27909   break
27910 fi
27911 done
27912 if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
27913
27914 else
27915   ac_cv_search_usb_bulk_write=no
27916 fi
27917 rm conftest.$ac_ext
27918 LIBS=$ac_func_search_save_LIBS
27919 fi
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_usb_bulk_write" >&5
27921 $as_echo "$ac_cv_search_usb_bulk_write" >&6; }
27922 ac_res=$ac_cv_search_usb_bulk_write
27923 if test "$ac_res" != no; then :
27924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27925   USB_LIBS="$LIBS"
27926 else
27927   libusbok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
27928 $as_echo "USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
27929 fi
27930
27931
27932         LIBS="$save_LIBS"
27933
27934         ac_ext=c
27935 ac_cpp='$CPP $CPPFLAGS'
27936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27939
27940
27941 elif test $pkg_failed = untried; then
27942
27943         ac_ext=c
27944 ac_cpp='$CPP $CPPFLAGS'
27945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27948
27949
27950         for ac_header in usb.h
27951 do :
27952   ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
27953 if test "x$ac_cv_header_usb_h" = x""yes; then :
27954   cat >>confdefs.h <<_ACEOF
27955 #define HAVE_USB_H 1
27956 _ACEOF
27957
27958 else
27959   libusbok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
27960 $as_echo "USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
27961 fi
27962
27963 done
27964
27965
27966         save_LIBS="$LIBS"
27967         case "$host_os" in
27968           darwin*)
27969             LIBS="$LIBS -lIOKit"
27970             ;;
27971           *) ;;
27972         esac
27973
27974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing usb_bulk_write" >&5
27975 $as_echo_n "checking for library containing usb_bulk_write... " >&6; }
27976 if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
27977   $as_echo_n "(cached) " >&6
27978 else
27979   ac_func_search_save_LIBS=$LIBS
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h.  */
27982
27983 /* Override any GCC internal prototype to avoid an error.
27984    Use char because int might match the return type of a GCC
27985    builtin and then its argument prototype would still apply.  */
27986 #ifdef __cplusplus
27987 extern "C"
27988 #endif
27989 char usb_bulk_write ();
27990 int
27991 main ()
27992 {
27993 return usb_bulk_write ();
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 for ac_lib in '' usb; do
27999   if test -z "$ac_lib"; then
28000     ac_res="none required"
28001   else
28002     ac_res=-l$ac_lib
28003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28004   fi
28005   if ac_fn_c_try_link "$LINENO"; then :
28006   ac_cv_search_usb_bulk_write=$ac_res
28007 fi
28008 rm -f core conftest.err conftest.$ac_objext \
28009     conftest$ac_exeext
28010   if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
28011   break
28012 fi
28013 done
28014 if test "${ac_cv_search_usb_bulk_write+set}" = set; then :
28015
28016 else
28017   ac_cv_search_usb_bulk_write=no
28018 fi
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28021 fi
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_usb_bulk_write" >&5
28023 $as_echo "$ac_cv_search_usb_bulk_write" >&6; }
28024 ac_res=$ac_cv_search_usb_bulk_write
28025 if test "$ac_res" != no; then :
28026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28027   USB_LIBS="$LIBS"
28028 else
28029   libusbok=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
28030 $as_echo "USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
28031 fi
28032
28033
28034         LIBS="$save_LIBS"
28035
28036         ac_ext=c
28037 ac_cpp='$CPP $CPPFLAGS'
28038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28041
28042
28043 else
28044         USB_CFLAGS=$pkg_cv_USB_CFLAGS
28045         USB_LIBS=$pkg_cv_USB_LIBS
28046         USB_INCLUDEDIR=$pkg_cv_USB_INCLUDEDIR
28047
28048         USB_CPPFLAGS=""
28049         for flag in $USB_CFLAGS; do
28050           case $flag in
28051           -I* | -D* | -U*) USB_CPPFLAGS="$USB_CPPFLAGS $flag" ;;
28052           esac
28053         done
28054         pkg_cv_USB_CPPFLAGS=$USB_CPPFLAGS
28055
28056
28057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28058 $as_echo "yes" >&6; }
28059         :
28060 fi
28061
28062     if test x$libusbok = xyes; then
28063
28064         :
28065     else
28066         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find dependency libusb." >&5
28067 $as_echo "Unable to find dependency libusb." >&6; }
28068     fi
28069
28070
28071
28072         sdccok=yes
28073         # Extract the first word of "sdcc", so it can be a program name with args.
28074 set dummy sdcc; ac_word=$2
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28076 $as_echo_n "checking for $ac_word... " >&6; }
28077 if test "${ac_cv_prog_XCC+set}" = set; then :
28078   $as_echo_n "(cached) " >&6
28079 else
28080   if test -n "$XCC"; then
28081   ac_cv_prog_XCC="$XCC" # Let the user override the test.
28082 else
28083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28084 for as_dir in $PATH
28085 do
28086   IFS=$as_save_IFS
28087   test -z "$as_dir" && as_dir=.
28088     for ac_exec_ext in '' $ac_executable_extensions; do
28089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28090     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
28091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28092     break 2
28093   fi
28094 done
28095   done
28096 IFS=$as_save_IFS
28097
28098   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
28099 fi
28100 fi
28101 XCC=$ac_cv_prog_XCC
28102 if test -n "$XCC"; then
28103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCC" >&5
28104 $as_echo "$XCC" >&6; }
28105 else
28106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28107 $as_echo "no" >&6; }
28108 fi
28109
28110
28111         # Extract the first word of "asx8051", so it can be a program name with args.
28112 set dummy asx8051; ac_word=$2
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28114 $as_echo_n "checking for $ac_word... " >&6; }
28115 if test "${ac_cv_prog_XAS+set}" = set; then :
28116   $as_echo_n "(cached) " >&6
28117 else
28118   if test -n "$XAS"; then
28119   ac_cv_prog_XAS="$XAS" # Let the user override the test.
28120 else
28121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28122 for as_dir in $PATH
28123 do
28124   IFS=$as_save_IFS
28125   test -z "$as_dir" && as_dir=.
28126     for ac_exec_ext in '' $ac_executable_extensions; do
28127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28128     ac_cv_prog_XAS="asx8051 -plosgff"
28129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28130     break 2
28131   fi
28132 done
28133   done
28134 IFS=$as_save_IFS
28135
28136   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
28137 fi
28138 fi
28139 XAS=$ac_cv_prog_XAS
28140 if test -n "$XAS"; then
28141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAS" >&5
28142 $as_echo "$XAS" >&6; }
28143 else
28144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28145 $as_echo "no" >&6; }
28146 fi
28147
28148
28149
28150         if test "$XCC" = "no" -o "$XAS" = "no" ; then
28151                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
28152 $as_echo "USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
28153                 sdccok=no
28154         else
28155                 sdcc_version_min=2.4.0
28156
28157                 sdcc_version=`sdcc --version 2>&1 | \
28158                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
28159
28160                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdcc_version \"$sdcc_version\"" >&5
28161 $as_echo_n "checking sdcc_version \"$sdcc_version\"... " >&6; }
28162
28163                 sdcc_major_version=`echo $sdcc_version | \
28164                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28165                 sdcc_minor_version=`echo $sdcc_version | \
28166                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28167                 sdcc_micro_version=`echo $sdcc_version | \
28168                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28169
28170                 sdcc_major_min=`echo $sdcc_version_min | \
28171                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28172                 sdcc_minor_min=`echo $sdcc_version_min | \
28173                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28174                 sdcc_micro_min=`echo $sdcc_version_min | \
28175                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28176
28177                 sdcc_version_proper=`expr \
28178                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
28179                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
28180                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
28181                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
28182                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
28183                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
28184
28185                 if test "$sdcc_version_proper" = "1" ; then
28186                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
28187 $as_echo "$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
28188                 else
28189                         sdccok=no
28190                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&5
28191 $as_echo "USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net" >&6; }
28192                 fi
28193
28194
28195
28196         fi
28197
28198         if test $sdccok = yes; then
28199                 :
28200         else
28201                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find firmware compiler SDCC." >&5
28202 $as_echo "Unable to find firmware compiler SDCC." >&6; }
28203         fi
28204
28205     fi
28206     if test $passed != with; then
28207                 usrp_INCLUDES="-I\${abs_top_srcdir}/usrp/host/lib/legacy \
28208                 -I\${abs_top_srcdir}/usrp/firmware/include \
28209                 -I\${abs_top_builddir}/usrp/host/lib/legacy"
28210         usrp_LA="\${abs_top_builddir}/usrp/host/lib/legacy/libusrp.la"
28211     fi
28212
28213                 case "$host_os" in
28214       darwin*)
28215         usrp_darwin_omnithread_pc_requires="gnuradio-omnithread"
28216         ;;
28217       *)         usrp_darwin_omnithread_pc_requires=""
28218         ;;
28219     esac
28220
28221
28222     ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/legacy/Makefile usrp/host/lib/legacy/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile usrp/fpga/rbf/rev2/Makefile usrp/fpga/rbf/rev4/Makefile"
28223
28224
28225
28226
28227     usrp_with=no
28228     if test $passed = no; then
28229         if test x$enable_usrp = xyes; then
28230             as_fn_error "Component usrp has errors; stopping." "$LINENO" 5
28231         else
28232             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component usrp." >&5
28233 $as_echo "Not building component usrp." >&6; }
28234         fi
28235     else
28236         if test $passed = with; then
28237             with_dirs="$with_dirs usrp"
28238
28239     if test "x${usrp_INCLUDES}" != "x"; then
28240         if test "x$with_INCLUDES" = "x"; then
28241             with_INCLUDES="${usrp_INCLUDES}"
28242         else
28243             with_INCLUDES="${usrp_INCLUDES}"" ""$with_INCLUDES"
28244         fi
28245         usrp_INCLUDES=
28246     fi
28247
28248
28249     if test "x${usrp_SWIG_INCLUDES}" != "x"; then
28250         if test "x$with_SWIG_INCLUDES" = "x"; then
28251             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"
28252         else
28253             with_SWIG_INCLUDES="${usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28254         fi
28255         usrp_SWIG_INCLUDES=
28256     fi
28257
28258
28259     if test "x${usrp_PYDIRPATH}" != "x"; then
28260         if test "x$with_PYDIRPATH" = "x"; then
28261             with_PYDIRPATH="${usrp_PYDIRPATH}"
28262         else
28263             with_PYDIRPATH="${usrp_PYDIRPATH}"":""$with_PYDIRPATH"
28264         fi
28265         usrp_PYDIRPATH=
28266     fi
28267
28268
28269     if test "x${usrp_SWIGDIRPATH}" != "x"; then
28270         if test "x$with_SWIGDIRPATH" = "x"; then
28271             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"
28272         else
28273             with_SWIGDIRPATH="${usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28274         fi
28275         usrp_SWIGDIRPATH=
28276     fi
28277
28278
28279     if test "x${usrp_LIBDIRPATH}" != "x"; then
28280         if test "x$with_LIBDIRPATH" = "x"; then
28281             with_LIBDIRPATH="${usrp_LIBDIRPATH}"
28282         else
28283             with_LIBDIRPATH="${usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
28284         fi
28285         usrp_LIBDIRPATH=
28286     fi
28287
28288             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp will be included from a pre-installed library and includes." >&5
28289 $as_echo "Component usrp will be included from a pre-installed library and includes." >&6; }
28290             usrp_with=yes
28291         else
28292             usrp_LDFLAG=
28293             if test x$enable_usrp != xno; then
28294                 :
28295                 build_dirs="$build_dirs usrp"
28296                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp passed configuration checks; building." >&5
28297 $as_echo "Component usrp passed configuration checks; building." >&6; }
28298             else
28299                 passed=no
28300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp passed configuration checks; but not building." >&5
28301 $as_echo "Component usrp passed configuration checks; but not building." >&6; }
28302             fi
28303         fi
28304     fi
28305     if test $passed = no; then
28306         skipped_dirs="$skipped_dirs usrp"
28307         usrp_skipped=yes
28308     else
28309         usrp_skipped=no
28310     fi
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324     passed=yes
28325     # Check whether --enable-usrp2 was given.
28326 if test "${enable_usrp2+set}" = set; then :
28327   enableval=$enable_usrp2;
28328 else
28329
28330         enable_usrp2=$enable_all_components
28331         if test x$enable_all_components = xno; then
28332             passed=no
28333         fi
28334
28335 fi
28336
28337
28338
28339
28340         subdirs="$subdirs usrp2/firmware"
28341
28342
28343
28344     if test $passed != no; then
28345         if test $passed = yes; then
28346                         if test x$gruel_skipped = xyes; then
28347                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&5
28348 $as_echo "Component usrp2 requires gruel, which is not being built or specified via pre-installed files." >&6; }
28349                 passed=no
28350             fi
28351         else
28352                         if test x$gruel_with = xno; then
28353                 as_fn_error "Component usrp2 requires gruel to be included as --with-gruel[=arg]" "$LINENO" 5
28354             fi
28355         fi
28356     fi
28357
28358
28359     if test $passed != no; then
28360         if test $passed = yes; then
28361                         if test x$omnithread_skipped = xyes; then
28362                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 requires omnithread, which is not being built or specified via pre-installed files." >&5
28363 $as_echo "Component usrp2 requires omnithread, which is not being built or specified via pre-installed files." >&6; }
28364                 passed=no
28365             fi
28366         else
28367                         if test x$omnithread_with = xno; then
28368                 as_fn_error "Component usrp2 requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
28369             fi
28370         fi
28371     fi
28372
28373
28374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host_os is linux*" >&5
28375 $as_echo_n "checking whether host_os is linux*... " >&6; }
28376     case "$host_os" in
28377       linux*)
28378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28379 $as_echo "yes" >&6; }
28380         ;;
28381       *)
28382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28383 $as_echo "no" >&6; }
28384         { $as_echo "$as_me:${as_lineno-$LINENO}: USRP2 currently requires Linux host OS, not found" >&5
28385 $as_echo "$as_me: USRP2 currently requires Linux host OS, not found" >&6;}
28386         passed="no"
28387         ;;
28388     esac
28389
28390                     if test $passed = yes; then
28391                 for ac_header in arpa/inet.h byteswap.h linux/if_packet.h sys/socket.h sys/un.h
28392 do :
28393   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28394 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28395 eval as_val=\$$as_ac_Header
28396    if test "x$as_val" = x""yes; then :
28397   cat >>confdefs.h <<_ACEOF
28398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28399 _ACEOF
28400
28401 fi
28402
28403 done
28404
28405         ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#define __USE_GNU 1
28406                           #include <sys/types.h>
28407                           #include <sys/socket.h>
28408                           #include <sys/un.h>
28409 "
28410 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
28411
28412 cat >>confdefs.h <<_ACEOF
28413 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
28414 _ACEOF
28415
28416
28417 fi
28418 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#define __USE_GNU 1
28419                           #include <sys/types.h>
28420                           #include <sys/socket.h>
28421                           #include <sys/un.h>
28422 "
28423 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
28424
28425 cat >>confdefs.h <<_ACEOF
28426 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
28427 _ACEOF
28428
28429
28430 fi
28431 ac_fn_c_check_member "$LINENO" "struct cmsgcred" "cmcred_uid" "ac_cv_member_struct_cmsgcred_cmcred_uid" "#define __USE_GNU 1
28432                           #include <sys/types.h>
28433                           #include <sys/socket.h>
28434                           #include <sys/un.h>
28435 "
28436 if test "x$ac_cv_member_struct_cmsgcred_cmcred_uid" = x""yes; then :
28437
28438 cat >>confdefs.h <<_ACEOF
28439 #define HAVE_STRUCT_CMSGCRED_CMCRED_UID 1
28440 _ACEOF
28441
28442
28443 fi
28444 ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#define __USE_GNU 1
28445                           #include <sys/types.h>
28446                           #include <sys/socket.h>
28447                           #include <sys/un.h>
28448 "
28449 if test "x$ac_cv_member_struct_ucred_uid" = x""yes; then :
28450
28451 cat >>confdefs.h <<_ACEOF
28452 #define HAVE_STRUCT_UCRED_UID 1
28453 _ACEOF
28454
28455
28456 fi
28457
28458     fi
28459     if test $passed != with; then
28460                 USRP2_INCLUDES="-I\${abs_top_srcdir}/usrp2/host/include \
28461                 -I\${abs_top_srcdir}/usrp2/firmware/include"
28462         USRP2_LA="\${abs_top_builddir}/usrp2/host/lib/libusrp2.la"
28463     fi
28464
28465
28466
28467
28468     ac_config_files="$ac_config_files usrp2/Makefile usrp2/host/Makefile usrp2/host/usrp2.pc usrp2/host/include/Makefile usrp2/host/include/usrp2/Makefile usrp2/host/lib/Makefile usrp2/host/apps/Makefile"
28469
28470
28471
28472
28473     usrp2_with=no
28474     if test $passed = no; then
28475         if test x$enable_usrp2 = xyes; then
28476             as_fn_error "Component usrp2 has errors; stopping." "$LINENO" 5
28477         else
28478             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component usrp2." >&5
28479 $as_echo "Not building component usrp2." >&6; }
28480         fi
28481     else
28482         if test $passed = with; then
28483             with_dirs="$with_dirs usrp2"
28484
28485     if test "x${usrp2_INCLUDES}" != "x"; then
28486         if test "x$with_INCLUDES" = "x"; then
28487             with_INCLUDES="${usrp2_INCLUDES}"
28488         else
28489             with_INCLUDES="${usrp2_INCLUDES}"" ""$with_INCLUDES"
28490         fi
28491         usrp2_INCLUDES=
28492     fi
28493
28494
28495     if test "x${usrp2_SWIG_INCLUDES}" != "x"; then
28496         if test "x$with_SWIG_INCLUDES" = "x"; then
28497             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"
28498         else
28499             with_SWIG_INCLUDES="${usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28500         fi
28501         usrp2_SWIG_INCLUDES=
28502     fi
28503
28504
28505     if test "x${usrp2_PYDIRPATH}" != "x"; then
28506         if test "x$with_PYDIRPATH" = "x"; then
28507             with_PYDIRPATH="${usrp2_PYDIRPATH}"
28508         else
28509             with_PYDIRPATH="${usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
28510         fi
28511         usrp2_PYDIRPATH=
28512     fi
28513
28514
28515     if test "x${usrp2_SWIGDIRPATH}" != "x"; then
28516         if test "x$with_SWIGDIRPATH" = "x"; then
28517             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"
28518         else
28519             with_SWIGDIRPATH="${usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28520         fi
28521         usrp2_SWIGDIRPATH=
28522     fi
28523
28524
28525     if test "x${usrp2_LIBDIRPATH}" != "x"; then
28526         if test "x$with_LIBDIRPATH" = "x"; then
28527             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"
28528         else
28529             with_LIBDIRPATH="${usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
28530         fi
28531         usrp2_LIBDIRPATH=
28532     fi
28533
28534             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 will be included from a pre-installed library and includes." >&5
28535 $as_echo "Component usrp2 will be included from a pre-installed library and includes." >&6; }
28536             usrp2_with=yes
28537         else
28538             usrp2_LDFLAG=
28539             if test x$enable_usrp2 != xno; then
28540                 :
28541                 build_dirs="$build_dirs usrp2"
28542                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 passed configuration checks; building." >&5
28543 $as_echo "Component usrp2 passed configuration checks; building." >&6; }
28544             else
28545                 passed=no
28546                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component usrp2 passed configuration checks; but not building." >&5
28547 $as_echo "Component usrp2 passed configuration checks; but not building." >&6; }
28548             fi
28549         fi
28550     fi
28551     if test $passed = no; then
28552         skipped_dirs="$skipped_dirs usrp2"
28553         usrp2_skipped=yes
28554     else
28555         usrp2_skipped=no
28556     fi
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568     passed=yes
28569     # Check whether --enable-gr-usrp was given.
28570 if test "${enable_gr_usrp+set}" = set; then :
28571   enableval=$enable_gr_usrp;
28572 else
28573
28574         enable_gr_usrp=$enable_all_components
28575         if test x$enable_all_components = xno; then
28576             passed=no
28577         fi
28578
28579 fi
28580
28581
28582
28583
28584
28585     if test $passed != no; then
28586         if test $passed = yes; then
28587                         if test x$usrp_skipped = xyes; then
28588                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&5
28589 $as_echo "Component gr-usrp requires usrp, which is not being built or specified via pre-installed files." >&6; }
28590                 passed=no
28591             fi
28592         else
28593                         if test x$usrp_with = xno; then
28594                 as_fn_error "Component gr-usrp requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
28595             fi
28596         fi
28597     fi
28598
28599
28600     if test $passed != no; then
28601         if test $passed = yes; then
28602                         if test x$gnuradio_core_skipped = xyes; then
28603                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28604 $as_echo "Component gr-usrp requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28605                 passed=no
28606             fi
28607         else
28608                         if test x$gnuradio_core_with = xno; then
28609                 as_fn_error "Component gr-usrp requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28610             fi
28611         fi
28612     fi
28613
28614
28615     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/gnuradio-usrp.pc gr-usrp/src/Makefile gr-usrp/src/run_tests gr-usrp/apps/Makefile"
28616
28617
28618
28619
28620     gr_usrp_with=no
28621     if test $passed = no; then
28622         if test x$enable_gr_usrp = xyes; then
28623             as_fn_error "Component gr-usrp has errors; stopping." "$LINENO" 5
28624         else
28625             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-usrp." >&5
28626 $as_echo "Not building component gr-usrp." >&6; }
28627         fi
28628     else
28629         if test $passed = with; then
28630             with_dirs="$with_dirs gr-usrp"
28631
28632     if test "x${gr_usrp_INCLUDES}" != "x"; then
28633         if test "x$with_INCLUDES" = "x"; then
28634             with_INCLUDES="${gr_usrp_INCLUDES}"
28635         else
28636             with_INCLUDES="${gr_usrp_INCLUDES}"" ""$with_INCLUDES"
28637         fi
28638         gr_usrp_INCLUDES=
28639     fi
28640
28641
28642     if test "x${gr_usrp_SWIG_INCLUDES}" != "x"; then
28643         if test "x$with_SWIG_INCLUDES" = "x"; then
28644             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"
28645         else
28646             with_SWIG_INCLUDES="${gr_usrp_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28647         fi
28648         gr_usrp_SWIG_INCLUDES=
28649     fi
28650
28651
28652     if test "x${gr_usrp_PYDIRPATH}" != "x"; then
28653         if test "x$with_PYDIRPATH" = "x"; then
28654             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"
28655         else
28656             with_PYDIRPATH="${gr_usrp_PYDIRPATH}"":""$with_PYDIRPATH"
28657         fi
28658         gr_usrp_PYDIRPATH=
28659     fi
28660
28661
28662     if test "x${gr_usrp_SWIGDIRPATH}" != "x"; then
28663         if test "x$with_SWIGDIRPATH" = "x"; then
28664             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"
28665         else
28666             with_SWIGDIRPATH="${gr_usrp_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28667         fi
28668         gr_usrp_SWIGDIRPATH=
28669     fi
28670
28671
28672     if test "x${gr_usrp_LIBDIRPATH}" != "x"; then
28673         if test "x$with_LIBDIRPATH" = "x"; then
28674             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"
28675         else
28676             with_LIBDIRPATH="${gr_usrp_LIBDIRPATH}"":""$with_LIBDIRPATH"
28677         fi
28678         gr_usrp_LIBDIRPATH=
28679     fi
28680
28681             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp will be included from a pre-installed library and includes." >&5
28682 $as_echo "Component gr-usrp will be included from a pre-installed library and includes." >&6; }
28683             gr_usrp_with=yes
28684         else
28685             gr_usrp_LDFLAG=
28686             if test x$enable_gr_usrp != xno; then
28687                         ac_config_commands="$ac_config_commands run_tests_usrp"
28688
28689
28690                 build_dirs="$build_dirs gr-usrp"
28691                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp passed configuration checks; building." >&5
28692 $as_echo "Component gr-usrp passed configuration checks; building." >&6; }
28693             else
28694                 passed=no
28695                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp passed configuration checks; but not building." >&5
28696 $as_echo "Component gr-usrp passed configuration checks; but not building." >&6; }
28697             fi
28698         fi
28699     fi
28700     if test $passed = no; then
28701         skipped_dirs="$skipped_dirs gr-usrp"
28702         gr_usrp_skipped=yes
28703     else
28704         gr_usrp_skipped=no
28705     fi
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716     passed=yes
28717     # Check whether --enable-gr-usrp2 was given.
28718 if test "${enable_gr_usrp2+set}" = set; then :
28719   enableval=$enable_gr_usrp2;
28720 else
28721
28722         enable_gr_usrp2=$enable_all_components
28723         if test x$enable_all_components = xno; then
28724             passed=no
28725         fi
28726
28727 fi
28728
28729
28730
28731
28732
28733     if test $passed != no; then
28734         if test $passed = yes; then
28735                         if test x$usrp2_skipped = xyes; then
28736                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&5
28737 $as_echo "Component gr-usrp2 requires usrp2, which is not being built or specified via pre-installed files." >&6; }
28738                 passed=no
28739             fi
28740         else
28741                         if test x$usrp2_with = xno; then
28742                 as_fn_error "Component gr-usrp2 requires usrp2 to be included as --with-usrp2[=arg]" "$LINENO" 5
28743             fi
28744         fi
28745     fi
28746
28747
28748     if test $passed != no; then
28749         if test $passed = yes; then
28750                         if test x$gnuradio_core_skipped = xyes; then
28751                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28752 $as_echo "Component gr-usrp2 requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28753                 passed=no
28754             fi
28755         else
28756                         if test x$gnuradio_core_with = xno; then
28757                 as_fn_error "Component gr-usrp2 requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28758             fi
28759         fi
28760     fi
28761
28762
28763     ac_config_files="$ac_config_files gr-usrp2/Makefile gr-usrp2/gnuradio-usrp2.pc gr-usrp2/src/Makefile gr-usrp2/src/run_tests"
28764
28765
28766
28767
28768     gr_usrp2_with=no
28769     if test $passed = no; then
28770         if test x$enable_gr_usrp2 = xyes; then
28771             as_fn_error "Component gr-usrp2 has errors; stopping." "$LINENO" 5
28772         else
28773             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-usrp2." >&5
28774 $as_echo "Not building component gr-usrp2." >&6; }
28775         fi
28776     else
28777         if test $passed = with; then
28778             with_dirs="$with_dirs gr-usrp2"
28779
28780     if test "x${gr_usrp2_INCLUDES}" != "x"; then
28781         if test "x$with_INCLUDES" = "x"; then
28782             with_INCLUDES="${gr_usrp2_INCLUDES}"
28783         else
28784             with_INCLUDES="${gr_usrp2_INCLUDES}"" ""$with_INCLUDES"
28785         fi
28786         gr_usrp2_INCLUDES=
28787     fi
28788
28789
28790     if test "x${gr_usrp2_SWIG_INCLUDES}" != "x"; then
28791         if test "x$with_SWIG_INCLUDES" = "x"; then
28792             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"
28793         else
28794             with_SWIG_INCLUDES="${gr_usrp2_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28795         fi
28796         gr_usrp2_SWIG_INCLUDES=
28797     fi
28798
28799
28800     if test "x${gr_usrp2_PYDIRPATH}" != "x"; then
28801         if test "x$with_PYDIRPATH" = "x"; then
28802             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"
28803         else
28804             with_PYDIRPATH="${gr_usrp2_PYDIRPATH}"":""$with_PYDIRPATH"
28805         fi
28806         gr_usrp2_PYDIRPATH=
28807     fi
28808
28809
28810     if test "x${gr_usrp2_SWIGDIRPATH}" != "x"; then
28811         if test "x$with_SWIGDIRPATH" = "x"; then
28812             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"
28813         else
28814             with_SWIGDIRPATH="${gr_usrp2_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28815         fi
28816         gr_usrp2_SWIGDIRPATH=
28817     fi
28818
28819
28820     if test "x${gr_usrp2_LIBDIRPATH}" != "x"; then
28821         if test "x$with_LIBDIRPATH" = "x"; then
28822             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"
28823         else
28824             with_LIBDIRPATH="${gr_usrp2_LIBDIRPATH}"":""$with_LIBDIRPATH"
28825         fi
28826         gr_usrp2_LIBDIRPATH=
28827     fi
28828
28829             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 will be included from a pre-installed library and includes." >&5
28830 $as_echo "Component gr-usrp2 will be included from a pre-installed library and includes." >&6; }
28831             gr_usrp2_with=yes
28832         else
28833             gr_usrp2_LDFLAG=
28834             if test x$enable_gr_usrp2 != xno; then
28835                         ac_config_commands="$ac_config_commands run_tests_usrp2"
28836
28837
28838                 build_dirs="$build_dirs gr-usrp2"
28839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 passed configuration checks; building." >&5
28840 $as_echo "Component gr-usrp2 passed configuration checks; building." >&6; }
28841             else
28842                 passed=no
28843                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-usrp2 passed configuration checks; but not building." >&5
28844 $as_echo "Component gr-usrp2 passed configuration checks; but not building." >&6; }
28845             fi
28846         fi
28847     fi
28848     if test $passed = no; then
28849         skipped_dirs="$skipped_dirs gr-usrp2"
28850         gr_usrp2_skipped=yes
28851     else
28852         gr_usrp2_skipped=no
28853     fi
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865     passed=yes
28866     # Check whether --enable-gr-gcell was given.
28867 if test "${enable_gr_gcell+set}" = set; then :
28868   enableval=$enable_gr_gcell;
28869 else
28870
28871         enable_gr_gcell=$enable_all_components
28872         if test x$enable_all_components = xno; then
28873             passed=no
28874         fi
28875
28876 fi
28877
28878
28879
28880
28881
28882     if test $passed != no; then
28883         if test $passed = yes; then
28884                         if test x$gcell_skipped = xyes; then
28885                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&5
28886 $as_echo "Component gr-gcell requires gcell, which is not being built or specified via pre-installed files." >&6; }
28887                 passed=no
28888             fi
28889         else
28890                         if test x$gcell_with = xno; then
28891                 as_fn_error "Component gr-gcell requires gcell to be included as --with-gcell[=arg]" "$LINENO" 5
28892             fi
28893         fi
28894     fi
28895
28896
28897     if test $passed != no; then
28898         if test $passed = yes; then
28899                         if test x$gnuradio_core_skipped = xyes; then
28900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
28901 $as_echo "Component gr-gcell requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
28902                 passed=no
28903             fi
28904         else
28905                         if test x$gnuradio_core_with = xno; then
28906                 as_fn_error "Component gr-gcell requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
28907             fi
28908         fi
28909     fi
28910
28911
28912     ac_config_files="$ac_config_files gr-gcell/Makefile gr-gcell/src/Makefile gr-gcell/src/examples/Makefile gr-gcell/src/run_tests"
28913
28914
28915
28916
28917     gr_gcell_with=no
28918     if test $passed = no; then
28919         if test x$enable_gr_gcell = xyes; then
28920             as_fn_error "Component gr-gcell has errors; stopping." "$LINENO" 5
28921         else
28922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gcell." >&5
28923 $as_echo "Not building component gr-gcell." >&6; }
28924         fi
28925     else
28926         if test $passed = with; then
28927             with_dirs="$with_dirs gr-gcell"
28928
28929     if test "x${gr_gcell_INCLUDES}" != "x"; then
28930         if test "x$with_INCLUDES" = "x"; then
28931             with_INCLUDES="${gr_gcell_INCLUDES}"
28932         else
28933             with_INCLUDES="${gr_gcell_INCLUDES}"" ""$with_INCLUDES"
28934         fi
28935         gr_gcell_INCLUDES=
28936     fi
28937
28938
28939     if test "x${gr_gcell_SWIG_INCLUDES}" != "x"; then
28940         if test "x$with_SWIG_INCLUDES" = "x"; then
28941             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"
28942         else
28943             with_SWIG_INCLUDES="${gr_gcell_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
28944         fi
28945         gr_gcell_SWIG_INCLUDES=
28946     fi
28947
28948
28949     if test "x${gr_gcell_PYDIRPATH}" != "x"; then
28950         if test "x$with_PYDIRPATH" = "x"; then
28951             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"
28952         else
28953             with_PYDIRPATH="${gr_gcell_PYDIRPATH}"":""$with_PYDIRPATH"
28954         fi
28955         gr_gcell_PYDIRPATH=
28956     fi
28957
28958
28959     if test "x${gr_gcell_SWIGDIRPATH}" != "x"; then
28960         if test "x$with_SWIGDIRPATH" = "x"; then
28961             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"
28962         else
28963             with_SWIGDIRPATH="${gr_gcell_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
28964         fi
28965         gr_gcell_SWIGDIRPATH=
28966     fi
28967
28968
28969     if test "x${gr_gcell_LIBDIRPATH}" != "x"; then
28970         if test "x$with_LIBDIRPATH" = "x"; then
28971             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"
28972         else
28973             with_LIBDIRPATH="${gr_gcell_LIBDIRPATH}"":""$with_LIBDIRPATH"
28974         fi
28975         gr_gcell_LIBDIRPATH=
28976     fi
28977
28978             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell will be included from a pre-installed library and includes." >&5
28979 $as_echo "Component gr-gcell will be included from a pre-installed library and includes." >&6; }
28980             gr_gcell_with=yes
28981         else
28982             gr_gcell_LDFLAG=
28983             if test x$enable_gr_gcell != xno; then
28984                         ac_config_commands="$ac_config_commands run_tests_gcell"
28985
28986
28987                 build_dirs="$build_dirs gr-gcell"
28988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell passed configuration checks; building." >&5
28989 $as_echo "Component gr-gcell passed configuration checks; building." >&6; }
28990             else
28991                 passed=no
28992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gcell passed configuration checks; but not building." >&5
28993 $as_echo "Component gr-gcell passed configuration checks; but not building." >&6; }
28994             fi
28995         fi
28996     fi
28997     if test $passed = no; then
28998         skipped_dirs="$skipped_dirs gr-gcell"
28999         gr_gcell_skipped=yes
29000     else
29001         gr_gcell_skipped=no
29002     fi
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013     passed=yes
29014     # Check whether --enable-gr-audio-alsa was given.
29015 if test "${enable_gr_audio_alsa+set}" = set; then :
29016   enableval=$enable_gr_audio_alsa;
29017 else
29018
29019         enable_gr_audio_alsa=$enable_all_components
29020         if test x$enable_all_components = xno; then
29021             passed=no
29022         fi
29023
29024 fi
29025
29026
29027
29028
29029
29030     if test $passed != no; then
29031         if test $passed = yes; then
29032                         if test x$gnuradio_core_skipped = xyes; then
29033                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29034 $as_echo "Component gr-audio-alsa requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29035                 passed=no
29036             fi
29037         else
29038                         if test x$gnuradio_core_with = xno; then
29039                 as_fn_error "Component gr-audio-alsa requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29040             fi
29041         fi
29042     fi
29043
29044
29045                     if test $passed = yes; then
29046
29047
29048
29049 pkg_failed=no
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
29051 $as_echo_n "checking for ALSA... " >&6; }
29052
29053 if test -n "$PKG_CONFIG"; then
29054     if test -n "$ALSA_CFLAGS"; then
29055         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
29056     else
29057         if test -n "$PKG_CONFIG" && \
29058     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
29059   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
29060   ac_status=$?
29061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29062   test $ac_status = 0; }; then
29063   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9" 2>/dev/null`
29064 else
29065   pkg_failed=yes
29066 fi
29067     fi
29068 else
29069         pkg_failed=untried
29070 fi
29071
29072 if test x$cross_compiling = xyes
29073 then
29074     if test -n "$PKG_CONFIG"; then
29075     if test -n "$ALSA_LIBS"; then
29076         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
29077     else
29078         if test -n "$PKG_CONFIG" && \
29079     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
29080   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
29081   ac_status=$?
29082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29083   test $ac_status = 0; }; then
29084   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
29085 else
29086   pkg_failed=yes
29087 fi
29088     fi
29089 else
29090         pkg_failed=untried
29091 fi
29092     _pkg_tmp=
29093   for flag in $pkg_cv_ALSA_LIBS; do
29094     case $flag in
29095     (-L/lib* | -L/usr/lib* )       ;; # ignore
29096     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
29097     esac
29098   done
29099   pkg_cv_ALSA_LIBS="$_pkg_tmp"
29100 else
29101   if test -n "$PKG_CONFIG"; then
29102     if test -n "$ALSA_LIBS"; then
29103         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
29104     else
29105         if test -n "$PKG_CONFIG" && \
29106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
29107   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
29108   ac_status=$?
29109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110   test $ac_status = 0; }; then
29111   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs --static "alsa >= 0.9" 2>/dev/null`
29112 else
29113   pkg_failed=yes
29114 fi
29115     fi
29116 else
29117         pkg_failed=untried
29118 fi
29119 fi
29120
29121 if test -n "$PKG_CONFIG"; then
29122     if test -n "$ALSA_INCLUDEDIR"; then
29123         pkg_cv_ALSA_INCLUDEDIR="$ALSA_INCLUDEDIR"
29124     else
29125         if test -n "$PKG_CONFIG" && \
29126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9\""; } >&5
29127   ($PKG_CONFIG --exists --print-errors "alsa >= 0.9") 2>&5
29128   ac_status=$?
29129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29130   test $ac_status = 0; }; then
29131   pkg_cv_ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9" 2>/dev/null`
29132 else
29133   pkg_failed=yes
29134 fi
29135     fi
29136 else
29137         pkg_failed=untried
29138 fi
29139
29140
29141
29142
29143 if test $pkg_failed = yes; then
29144
29145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29146         _pkg_short_errors_supported=yes
29147 else
29148         _pkg_short_errors_supported=no
29149 fi
29150         if test $_pkg_short_errors_supported = yes; then
29151                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 0.9"`
29152         else
29153                 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
29154         fi
29155         # Put the nasty error message in config.log where it belongs
29156         echo "$ALSA_PKG_ERRORS" >&5
29157
29158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29159 $as_echo "no" >&6; }
29160                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-alsa requires package alsa, not found." >&5
29161 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
29162 elif test $pkg_failed = untried; then
29163         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-alsa requires package alsa, not found." >&5
29164 $as_echo "gr-audio-alsa requires package alsa, not found." >&6; }
29165 else
29166         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
29167         ALSA_LIBS=$pkg_cv_ALSA_LIBS
29168         ALSA_INCLUDEDIR=$pkg_cv_ALSA_INCLUDEDIR
29169
29170         ALSA_CPPFLAGS=""
29171         for flag in $ALSA_CFLAGS; do
29172           case $flag in
29173           -I* | -D* | -U*) ALSA_CPPFLAGS="$ALSA_CPPFLAGS $flag" ;;
29174           esac
29175         done
29176         pkg_cv_ALSA_CPPFLAGS=$ALSA_CPPFLAGS
29177
29178
29179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29180 $as_echo "yes" >&6; }
29181         :
29182 fi
29183     fi
29184
29185     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/gr-audio-alsa.pc gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
29186
29187
29188
29189
29190     gr_audio_alsa_with=no
29191     if test $passed = no; then
29192         if test x$enable_gr_audio_alsa = xyes; then
29193             as_fn_error "Component gr-audio-alsa has errors; stopping." "$LINENO" 5
29194         else
29195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-alsa." >&5
29196 $as_echo "Not building component gr-audio-alsa." >&6; }
29197         fi
29198     else
29199         if test $passed = with; then
29200             with_dirs="$with_dirs gr-audio-alsa"
29201
29202     if test "x${gr_audio_alsa_INCLUDES}" != "x"; then
29203         if test "x$with_INCLUDES" = "x"; then
29204             with_INCLUDES="${gr_audio_alsa_INCLUDES}"
29205         else
29206             with_INCLUDES="${gr_audio_alsa_INCLUDES}"" ""$with_INCLUDES"
29207         fi
29208         gr_audio_alsa_INCLUDES=
29209     fi
29210
29211
29212     if test "x${gr_audio_alsa_SWIG_INCLUDES}" != "x"; then
29213         if test "x$with_SWIG_INCLUDES" = "x"; then
29214             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"
29215         else
29216             with_SWIG_INCLUDES="${gr_audio_alsa_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29217         fi
29218         gr_audio_alsa_SWIG_INCLUDES=
29219     fi
29220
29221
29222     if test "x${gr_audio_alsa_PYDIRPATH}" != "x"; then
29223         if test "x$with_PYDIRPATH" = "x"; then
29224             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"
29225         else
29226             with_PYDIRPATH="${gr_audio_alsa_PYDIRPATH}"":""$with_PYDIRPATH"
29227         fi
29228         gr_audio_alsa_PYDIRPATH=
29229     fi
29230
29231
29232     if test "x${gr_audio_alsa_SWIGDIRPATH}" != "x"; then
29233         if test "x$with_SWIGDIRPATH" = "x"; then
29234             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"
29235         else
29236             with_SWIGDIRPATH="${gr_audio_alsa_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29237         fi
29238         gr_audio_alsa_SWIGDIRPATH=
29239     fi
29240
29241
29242     if test "x${gr_audio_alsa_LIBDIRPATH}" != "x"; then
29243         if test "x$with_LIBDIRPATH" = "x"; then
29244             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"
29245         else
29246             with_LIBDIRPATH="${gr_audio_alsa_LIBDIRPATH}"":""$with_LIBDIRPATH"
29247         fi
29248         gr_audio_alsa_LIBDIRPATH=
29249     fi
29250
29251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa will be included from a pre-installed library and includes." >&5
29252 $as_echo "Component gr-audio-alsa will be included from a pre-installed library and includes." >&6; }
29253             gr_audio_alsa_with=yes
29254         else
29255             gr_audio_alsa_LDFLAG=
29256             if test x$enable_gr_audio_alsa != xno; then
29257                         ac_config_commands="$ac_config_commands run_tests_alsa"
29258
29259
29260                 build_dirs="$build_dirs gr-audio-alsa"
29261                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa passed configuration checks; building." >&5
29262 $as_echo "Component gr-audio-alsa passed configuration checks; building." >&6; }
29263             else
29264                 passed=no
29265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-alsa passed configuration checks; but not building." >&5
29266 $as_echo "Component gr-audio-alsa passed configuration checks; but not building." >&6; }
29267             fi
29268         fi
29269     fi
29270     if test $passed = no; then
29271         skipped_dirs="$skipped_dirs gr-audio-alsa"
29272         gr_audio_alsa_skipped=yes
29273     else
29274         gr_audio_alsa_skipped=no
29275     fi
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287     passed=yes
29288     # Check whether --enable-gr-audio-jack was given.
29289 if test "${enable_gr_audio_jack+set}" = set; then :
29290   enableval=$enable_gr_audio_jack;
29291 else
29292
29293         enable_gr_audio_jack=$enable_all_components
29294         if test x$enable_all_components = xno; then
29295             passed=no
29296         fi
29297
29298 fi
29299
29300
29301
29302
29303
29304     if test $passed != no; then
29305         if test $passed = yes; then
29306                         if test x$gnuradio_core_skipped = xyes; then
29307                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29308 $as_echo "Component gr-audio-jack requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29309                 passed=no
29310             fi
29311         else
29312                         if test x$gnuradio_core_with = xno; then
29313                 as_fn_error "Component gr-audio-jack requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29314             fi
29315         fi
29316     fi
29317
29318
29319                     if test $passed = yes; then
29320
29321
29322
29323 pkg_failed=no
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
29325 $as_echo_n "checking for JACK... " >&6; }
29326
29327 if test -n "$PKG_CONFIG"; then
29328     if test -n "$JACK_CFLAGS"; then
29329         pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
29330     else
29331         if test -n "$PKG_CONFIG" && \
29332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
29333   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
29334   ac_status=$?
29335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29336   test $ac_status = 0; }; then
29337   pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8" 2>/dev/null`
29338 else
29339   pkg_failed=yes
29340 fi
29341     fi
29342 else
29343         pkg_failed=untried
29344 fi
29345
29346 if test x$cross_compiling = xyes
29347 then
29348     if test -n "$PKG_CONFIG"; then
29349     if test -n "$JACK_LIBS"; then
29350         pkg_cv_JACK_LIBS="$JACK_LIBS"
29351     else
29352         if test -n "$PKG_CONFIG" && \
29353     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
29354   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
29355   ac_status=$?
29356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29357   test $ac_status = 0; }; then
29358   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
29359 else
29360   pkg_failed=yes
29361 fi
29362     fi
29363 else
29364         pkg_failed=untried
29365 fi
29366     _pkg_tmp=
29367   for flag in $pkg_cv_JACK_LIBS; do
29368     case $flag in
29369     (-L/lib* | -L/usr/lib* )       ;; # ignore
29370     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
29371     esac
29372   done
29373   pkg_cv_JACK_LIBS="$_pkg_tmp"
29374 else
29375   if test -n "$PKG_CONFIG"; then
29376     if test -n "$JACK_LIBS"; then
29377         pkg_cv_JACK_LIBS="$JACK_LIBS"
29378     else
29379         if test -n "$PKG_CONFIG" && \
29380     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
29381   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
29382   ac_status=$?
29383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29384   test $ac_status = 0; }; then
29385   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs --static "jack >= 0.8" 2>/dev/null`
29386 else
29387   pkg_failed=yes
29388 fi
29389     fi
29390 else
29391         pkg_failed=untried
29392 fi
29393 fi
29394
29395 if test -n "$PKG_CONFIG"; then
29396     if test -n "$JACK_INCLUDEDIR"; then
29397         pkg_cv_JACK_INCLUDEDIR="$JACK_INCLUDEDIR"
29398     else
29399         if test -n "$PKG_CONFIG" && \
29400     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.8\""; } >&5
29401   ($PKG_CONFIG --exists --print-errors "jack >= 0.8") 2>&5
29402   ac_status=$?
29403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29404   test $ac_status = 0; }; then
29405   pkg_cv_JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8" 2>/dev/null`
29406 else
29407   pkg_failed=yes
29408 fi
29409     fi
29410 else
29411         pkg_failed=untried
29412 fi
29413
29414
29415
29416
29417 if test $pkg_failed = yes; then
29418
29419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29420         _pkg_short_errors_supported=yes
29421 else
29422         _pkg_short_errors_supported=no
29423 fi
29424         if test $_pkg_short_errors_supported = yes; then
29425                 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.8"`
29426         else
29427                 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
29428         fi
29429         # Put the nasty error message in config.log where it belongs
29430         echo "$JACK_PKG_ERRORS" >&5
29431
29432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29433 $as_echo "no" >&6; }
29434                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-jack requires package jack, not found." >&5
29435 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
29436 elif test $pkg_failed = untried; then
29437         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-jack requires package jack, not found." >&5
29438 $as_echo "gr-audio-jack requires package jack, not found." >&6; }
29439 else
29440         JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
29441         JACK_LIBS=$pkg_cv_JACK_LIBS
29442         JACK_INCLUDEDIR=$pkg_cv_JACK_INCLUDEDIR
29443
29444         JACK_CPPFLAGS=""
29445         for flag in $JACK_CFLAGS; do
29446           case $flag in
29447           -I* | -D* | -U*) JACK_CPPFLAGS="$JACK_CPPFLAGS $flag" ;;
29448           esac
29449         done
29450         pkg_cv_JACK_CPPFLAGS=$JACK_CPPFLAGS
29451
29452
29453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29454 $as_echo "yes" >&6; }
29455         :
29456 fi
29457     fi
29458
29459     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
29460
29461
29462
29463
29464     gr_audio_jack_with=no
29465     if test $passed = no; then
29466         if test x$enable_gr_audio_jack = xyes; then
29467             as_fn_error "Component gr-audio-jack has errors; stopping." "$LINENO" 5
29468         else
29469             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-jack." >&5
29470 $as_echo "Not building component gr-audio-jack." >&6; }
29471         fi
29472     else
29473         if test $passed = with; then
29474             with_dirs="$with_dirs gr-audio-jack"
29475
29476     if test "x${gr_audio_jack_INCLUDES}" != "x"; then
29477         if test "x$with_INCLUDES" = "x"; then
29478             with_INCLUDES="${gr_audio_jack_INCLUDES}"
29479         else
29480             with_INCLUDES="${gr_audio_jack_INCLUDES}"" ""$with_INCLUDES"
29481         fi
29482         gr_audio_jack_INCLUDES=
29483     fi
29484
29485
29486     if test "x${gr_audio_jack_SWIG_INCLUDES}" != "x"; then
29487         if test "x$with_SWIG_INCLUDES" = "x"; then
29488             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"
29489         else
29490             with_SWIG_INCLUDES="${gr_audio_jack_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29491         fi
29492         gr_audio_jack_SWIG_INCLUDES=
29493     fi
29494
29495
29496     if test "x${gr_audio_jack_PYDIRPATH}" != "x"; then
29497         if test "x$with_PYDIRPATH" = "x"; then
29498             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"
29499         else
29500             with_PYDIRPATH="${gr_audio_jack_PYDIRPATH}"":""$with_PYDIRPATH"
29501         fi
29502         gr_audio_jack_PYDIRPATH=
29503     fi
29504
29505
29506     if test "x${gr_audio_jack_SWIGDIRPATH}" != "x"; then
29507         if test "x$with_SWIGDIRPATH" = "x"; then
29508             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"
29509         else
29510             with_SWIGDIRPATH="${gr_audio_jack_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29511         fi
29512         gr_audio_jack_SWIGDIRPATH=
29513     fi
29514
29515
29516     if test "x${gr_audio_jack_LIBDIRPATH}" != "x"; then
29517         if test "x$with_LIBDIRPATH" = "x"; then
29518             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"
29519         else
29520             with_LIBDIRPATH="${gr_audio_jack_LIBDIRPATH}"":""$with_LIBDIRPATH"
29521         fi
29522         gr_audio_jack_LIBDIRPATH=
29523     fi
29524
29525             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack will be included from a pre-installed library and includes." >&5
29526 $as_echo "Component gr-audio-jack will be included from a pre-installed library and includes." >&6; }
29527             gr_audio_jack_with=yes
29528         else
29529             gr_audio_jack_LDFLAG=
29530             if test x$enable_gr_audio_jack != xno; then
29531                         ac_config_commands="$ac_config_commands run_tests_jack"
29532
29533
29534                 build_dirs="$build_dirs gr-audio-jack"
29535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack passed configuration checks; building." >&5
29536 $as_echo "Component gr-audio-jack passed configuration checks; building." >&6; }
29537             else
29538                 passed=no
29539                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-jack passed configuration checks; but not building." >&5
29540 $as_echo "Component gr-audio-jack passed configuration checks; but not building." >&6; }
29541             fi
29542         fi
29543     fi
29544     if test $passed = no; then
29545         skipped_dirs="$skipped_dirs gr-audio-jack"
29546         gr_audio_jack_skipped=yes
29547     else
29548         gr_audio_jack_skipped=no
29549     fi
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561     passed=yes
29562     # Check whether --enable-gr-audio-oss was given.
29563 if test "${enable_gr_audio_oss+set}" = set; then :
29564   enableval=$enable_gr_audio_oss;
29565 else
29566
29567         enable_gr_audio_oss=$enable_all_components
29568         if test x$enable_all_components = xno; then
29569             passed=no
29570         fi
29571
29572 fi
29573
29574
29575
29576
29577
29578     if test $passed != no; then
29579         if test $passed = yes; then
29580                         if test x$gnuradio_core_skipped = xyes; then
29581                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29582 $as_echo "Component gr-audio-oss requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29583                 passed=no
29584             fi
29585         else
29586                         if test x$gnuradio_core_with = xno; then
29587                 as_fn_error "Component gr-audio-oss requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29588             fi
29589         fi
29590     fi
29591
29592
29593                     if test $passed = yes; then
29594                 case $host_os in
29595           netbsd*)
29596             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lossaudio" >&5
29597 $as_echo_n "checking for main in -lossaudio... " >&6; }
29598 if test "${ac_cv_lib_ossaudio_main+set}" = set; then :
29599   $as_echo_n "(cached) " >&6
29600 else
29601   ac_check_lib_save_LIBS=$LIBS
29602 LIBS="-lossaudio  $LIBS"
29603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29604 /* end confdefs.h.  */
29605
29606
29607 int
29608 main ()
29609 {
29610 return main ();
29611   ;
29612   return 0;
29613 }
29614 _ACEOF
29615 if ac_fn_c_try_link "$LINENO"; then :
29616   ac_cv_lib_ossaudio_main=yes
29617 else
29618   ac_cv_lib_ossaudio_main=no
29619 fi
29620 rm -f core conftest.err conftest.$ac_objext \
29621     conftest$ac_exeext conftest.$ac_ext
29622 LIBS=$ac_check_lib_save_LIBS
29623 fi
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio_main" >&5
29625 $as_echo "$ac_cv_lib_ossaudio_main" >&6; }
29626 if test "x$ac_cv_lib_ossaudio_main" = x""yes; then :
29627   cat >>confdefs.h <<_ACEOF
29628 #define HAVE_LIBOSSAUDIO 1
29629 _ACEOF
29630
29631   LIBS="-lossaudio $LIBS"
29632
29633 else
29634   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-oss requires library ossaudio, not found." >&5
29635 $as_echo "gr-audio-oss requires library ossaudio, not found." >&6; }
29636 fi
29637 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
29638
29639             if test $passed != no; then
29640                 OSS_LIBS=-lossaudio
29641
29642                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OSS library $OSS_LIBS" >&5
29643 $as_echo "Using OSS library $OSS_LIBS" >&6; }
29644             fi
29645             ;;
29646           darwin*)
29647                     passed=no
29648             ;;
29649           *)
29650             ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
29651 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
29652
29653 else
29654   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
29655 $as_echo "gr-audio-oss requires sys/soundcard.h, not found." >&6; }
29656 fi
29657
29658
29659         esac
29660     fi
29661
29662     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
29663
29664
29665
29666
29667     gr_audio_oss_with=no
29668     if test $passed = no; then
29669         if test x$enable_gr_audio_oss = xyes; then
29670             as_fn_error "Component gr-audio-oss has errors; stopping." "$LINENO" 5
29671         else
29672             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-oss." >&5
29673 $as_echo "Not building component gr-audio-oss." >&6; }
29674         fi
29675     else
29676         if test $passed = with; then
29677             with_dirs="$with_dirs gr-audio-oss"
29678
29679     if test "x${gr_audio_oss_INCLUDES}" != "x"; then
29680         if test "x$with_INCLUDES" = "x"; then
29681             with_INCLUDES="${gr_audio_oss_INCLUDES}"
29682         else
29683             with_INCLUDES="${gr_audio_oss_INCLUDES}"" ""$with_INCLUDES"
29684         fi
29685         gr_audio_oss_INCLUDES=
29686     fi
29687
29688
29689     if test "x${gr_audio_oss_SWIG_INCLUDES}" != "x"; then
29690         if test "x$with_SWIG_INCLUDES" = "x"; then
29691             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"
29692         else
29693             with_SWIG_INCLUDES="${gr_audio_oss_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29694         fi
29695         gr_audio_oss_SWIG_INCLUDES=
29696     fi
29697
29698
29699     if test "x${gr_audio_oss_PYDIRPATH}" != "x"; then
29700         if test "x$with_PYDIRPATH" = "x"; then
29701             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"
29702         else
29703             with_PYDIRPATH="${gr_audio_oss_PYDIRPATH}"":""$with_PYDIRPATH"
29704         fi
29705         gr_audio_oss_PYDIRPATH=
29706     fi
29707
29708
29709     if test "x${gr_audio_oss_SWIGDIRPATH}" != "x"; then
29710         if test "x$with_SWIGDIRPATH" = "x"; then
29711             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"
29712         else
29713             with_SWIGDIRPATH="${gr_audio_oss_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29714         fi
29715         gr_audio_oss_SWIGDIRPATH=
29716     fi
29717
29718
29719     if test "x${gr_audio_oss_LIBDIRPATH}" != "x"; then
29720         if test "x$with_LIBDIRPATH" = "x"; then
29721             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"
29722         else
29723             with_LIBDIRPATH="${gr_audio_oss_LIBDIRPATH}"":""$with_LIBDIRPATH"
29724         fi
29725         gr_audio_oss_LIBDIRPATH=
29726     fi
29727
29728             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss will be included from a pre-installed library and includes." >&5
29729 $as_echo "Component gr-audio-oss will be included from a pre-installed library and includes." >&6; }
29730             gr_audio_oss_with=yes
29731         else
29732             gr_audio_oss_LDFLAG=
29733             if test x$enable_gr_audio_oss != xno; then
29734                         ac_config_commands="$ac_config_commands run_tests_oss"
29735
29736
29737                 build_dirs="$build_dirs gr-audio-oss"
29738                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss passed configuration checks; building." >&5
29739 $as_echo "Component gr-audio-oss passed configuration checks; building." >&6; }
29740             else
29741                 passed=no
29742                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-oss passed configuration checks; but not building." >&5
29743 $as_echo "Component gr-audio-oss passed configuration checks; but not building." >&6; }
29744             fi
29745         fi
29746     fi
29747     if test $passed = no; then
29748         skipped_dirs="$skipped_dirs gr-audio-oss"
29749         gr_audio_oss_skipped=yes
29750     else
29751         gr_audio_oss_skipped=no
29752     fi
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764     passed=yes
29765     # Check whether --enable-gr-audio-osx was given.
29766 if test "${enable_gr_audio_osx+set}" = set; then :
29767   enableval=$enable_gr_audio_osx;
29768 else
29769
29770         enable_gr_audio_osx=$enable_all_components
29771         if test x$enable_all_components = xno; then
29772             passed=no
29773         fi
29774
29775 fi
29776
29777
29778
29779
29780
29781     if test $passed != no; then
29782         if test $passed = yes; then
29783                         if test x$omnithread_skipped = xyes; then
29784                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx requires omnithread, which is not being built or specified via pre-installed files." >&5
29785 $as_echo "Component gr-audio-osx requires omnithread, which is not being built or specified via pre-installed files." >&6; }
29786                 passed=no
29787             fi
29788         else
29789                         if test x$omnithread_with = xno; then
29790                 as_fn_error "Component gr-audio-osx requires omnithread to be included as --with-omnithread[=arg]" "$LINENO" 5
29791             fi
29792         fi
29793     fi
29794
29795
29796     if test $passed != no; then
29797         if test $passed = yes; then
29798                         if test x$gnuradio_core_skipped = xyes; then
29799                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29800 $as_echo "Component gr-audio-osx requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29801                 passed=no
29802             fi
29803         else
29804                         if test x$gnuradio_core_with = xno; then
29805                 as_fn_error "Component gr-audio-osx requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
29806             fi
29807         fi
29808     fi
29809
29810
29811                     if test $passed = yes; then
29812         case "$host_os" in
29813           darwin*)
29814
29815     audiounitok=yes
29816     case "$host_os" in
29817         darwin*);;
29818         *)
29819            audiounitok=no
29820            { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires darwin or MacOS X." >&5
29821 $as_echo "gr-audio-osx requires darwin or MacOS X." >&6; }
29822     esac
29823
29824     for ac_header in AudioUnit/AudioUnit.h
29825 do :
29826   ac_fn_c_check_header_mongrel "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default"
29827 if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = x""yes; then :
29828   cat >>confdefs.h <<_ACEOF
29829 #define HAVE_AUDIOUNIT_AUDIOUNIT_H 1
29830 _ACEOF
29831
29832 else
29833   audiounitok=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
29834 $as_echo "gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
29835 fi
29836
29837 done
29838
29839
29840     for ac_header in AudioToolbox/AudioToolbox.h
29841 do :
29842   ac_fn_c_check_header_mongrel "$LINENO" "AudioToolbox/AudioToolbox.h" "ac_cv_header_AudioToolbox_AudioToolbox_h" "$ac_includes_default"
29843 if test "x$ac_cv_header_AudioToolbox_AudioToolbox_h" = x""yes; then :
29844   cat >>confdefs.h <<_ACEOF
29845 #define HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H 1
29846 _ACEOF
29847
29848 else
29849   audiounitok=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
29850 $as_echo "gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
29851 fi
29852
29853 done
29854
29855
29856     if test $audiounitok = yes; then
29857         :
29858     else
29859         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx requires AudioUnit, not found." >&5
29860 $as_echo "gr-audio-osx requires AudioUnit, not found." >&6; }
29861     fi
29862
29863               ;;
29864           *)
29865               { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-osx will build on Mac OS X and Darwin only." >&5
29866 $as_echo "gr-audio-osx will build on Mac OS X and Darwin only." >&6; }
29867               passed=no
29868               ;;
29869         esac
29870     fi
29871
29872     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
29873
29874
29875
29876
29877     gr_audio_osx_with=no
29878     if test $passed = no; then
29879         if test x$enable_gr_audio_osx = xyes; then
29880             as_fn_error "Component gr-audio-osx has errors; stopping." "$LINENO" 5
29881         else
29882             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-osx." >&5
29883 $as_echo "Not building component gr-audio-osx." >&6; }
29884         fi
29885     else
29886         if test $passed = with; then
29887             with_dirs="$with_dirs gr-audio-osx"
29888
29889     if test "x${gr_audio_osx_INCLUDES}" != "x"; then
29890         if test "x$with_INCLUDES" = "x"; then
29891             with_INCLUDES="${gr_audio_osx_INCLUDES}"
29892         else
29893             with_INCLUDES="${gr_audio_osx_INCLUDES}"" ""$with_INCLUDES"
29894         fi
29895         gr_audio_osx_INCLUDES=
29896     fi
29897
29898
29899     if test "x${gr_audio_osx_SWIG_INCLUDES}" != "x"; then
29900         if test "x$with_SWIG_INCLUDES" = "x"; then
29901             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"
29902         else
29903             with_SWIG_INCLUDES="${gr_audio_osx_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
29904         fi
29905         gr_audio_osx_SWIG_INCLUDES=
29906     fi
29907
29908
29909     if test "x${gr_audio_osx_PYDIRPATH}" != "x"; then
29910         if test "x$with_PYDIRPATH" = "x"; then
29911             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"
29912         else
29913             with_PYDIRPATH="${gr_audio_osx_PYDIRPATH}"":""$with_PYDIRPATH"
29914         fi
29915         gr_audio_osx_PYDIRPATH=
29916     fi
29917
29918
29919     if test "x${gr_audio_osx_SWIGDIRPATH}" != "x"; then
29920         if test "x$with_SWIGDIRPATH" = "x"; then
29921             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"
29922         else
29923             with_SWIGDIRPATH="${gr_audio_osx_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
29924         fi
29925         gr_audio_osx_SWIGDIRPATH=
29926     fi
29927
29928
29929     if test "x${gr_audio_osx_LIBDIRPATH}" != "x"; then
29930         if test "x$with_LIBDIRPATH" = "x"; then
29931             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"
29932         else
29933             with_LIBDIRPATH="${gr_audio_osx_LIBDIRPATH}"":""$with_LIBDIRPATH"
29934         fi
29935         gr_audio_osx_LIBDIRPATH=
29936     fi
29937
29938             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx will be included from a pre-installed library and includes." >&5
29939 $as_echo "Component gr-audio-osx will be included from a pre-installed library and includes." >&6; }
29940             gr_audio_osx_with=yes
29941         else
29942             gr_audio_osx_LDFLAG=
29943             if test x$enable_gr_audio_osx != xno; then
29944                         ac_config_commands="$ac_config_commands run_tests_osx"
29945
29946
29947                 build_dirs="$build_dirs gr-audio-osx"
29948                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx passed configuration checks; building." >&5
29949 $as_echo "Component gr-audio-osx passed configuration checks; building." >&6; }
29950             else
29951                 passed=no
29952                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-osx passed configuration checks; but not building." >&5
29953 $as_echo "Component gr-audio-osx passed configuration checks; but not building." >&6; }
29954             fi
29955         fi
29956     fi
29957     if test $passed = no; then
29958         skipped_dirs="$skipped_dirs gr-audio-osx"
29959         gr_audio_osx_skipped=yes
29960     else
29961         gr_audio_osx_skipped=no
29962     fi
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974     passed=yes
29975     # Check whether --enable-gr-audio-portaudio was given.
29976 if test "${enable_gr_audio_portaudio+set}" = set; then :
29977   enableval=$enable_gr_audio_portaudio;
29978 else
29979
29980         enable_gr_audio_portaudio=$enable_all_components
29981         if test x$enable_all_components = xno; then
29982             passed=no
29983         fi
29984
29985 fi
29986
29987
29988
29989
29990
29991     if test $passed != no; then
29992         if test $passed = yes; then
29993                         if test x$gnuradio_core_skipped = xyes; then
29994                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
29995 $as_echo "Component gr-audio-portaudio requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
29996                 passed=no
29997             fi
29998         else
29999                         if test x$gnuradio_core_with = xno; then
30000                 as_fn_error "Component gr-audio-portaudio requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30001             fi
30002         fi
30003     fi
30004
30005
30006                     if test $passed = yes; then
30007
30008
30009
30010 pkg_failed=no
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PORTAUDIO" >&5
30012 $as_echo_n "checking for PORTAUDIO... " >&6; }
30013
30014 if test -n "$PKG_CONFIG"; then
30015     if test -n "$PORTAUDIO_CFLAGS"; then
30016         pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
30017     else
30018         if test -n "$PKG_CONFIG" && \
30019     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
30020   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
30021   ac_status=$?
30022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30023   test $ac_status = 0; }; then
30024   pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
30025 else
30026   pkg_failed=yes
30027 fi
30028     fi
30029 else
30030         pkg_failed=untried
30031 fi
30032
30033 if test x$cross_compiling = xyes
30034 then
30035     if test -n "$PKG_CONFIG"; then
30036     if test -n "$PORTAUDIO_LIBS"; then
30037         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
30038     else
30039         if test -n "$PKG_CONFIG" && \
30040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
30041   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
30042   ac_status=$?
30043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30044   test $ac_status = 0; }; then
30045   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
30046 else
30047   pkg_failed=yes
30048 fi
30049     fi
30050 else
30051         pkg_failed=untried
30052 fi
30053     _pkg_tmp=
30054   for flag in $pkg_cv_PORTAUDIO_LIBS; do
30055     case $flag in
30056     (-L/lib* | -L/usr/lib* )       ;; # ignore
30057     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
30058     esac
30059   done
30060   pkg_cv_PORTAUDIO_LIBS="$_pkg_tmp"
30061 else
30062   if test -n "$PKG_CONFIG"; then
30063     if test -n "$PORTAUDIO_LIBS"; then
30064         pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
30065     else
30066         if test -n "$PKG_CONFIG" && \
30067     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
30068   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
30069   ac_status=$?
30070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30071   test $ac_status = 0; }; then
30072   pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs --static "portaudio-2.0 >= 19" 2>/dev/null`
30073 else
30074   pkg_failed=yes
30075 fi
30076     fi
30077 else
30078         pkg_failed=untried
30079 fi
30080 fi
30081
30082 if test -n "$PKG_CONFIG"; then
30083     if test -n "$PORTAUDIO_INCLUDEDIR"; then
30084         pkg_cv_PORTAUDIO_INCLUDEDIR="$PORTAUDIO_INCLUDEDIR"
30085     else
30086         if test -n "$PKG_CONFIG" && \
30087     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
30088   ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
30089   ac_status=$?
30090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091   test $ac_status = 0; }; then
30092   pkg_cv_PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19" 2>/dev/null`
30093 else
30094   pkg_failed=yes
30095 fi
30096     fi
30097 else
30098         pkg_failed=untried
30099 fi
30100
30101
30102
30103
30104 if test $pkg_failed = yes; then
30105
30106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30107         _pkg_short_errors_supported=yes
30108 else
30109         _pkg_short_errors_supported=no
30110 fi
30111         if test $_pkg_short_errors_supported = yes; then
30112                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
30113         else
30114                 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
30115         fi
30116         # Put the nasty error message in config.log where it belongs
30117         echo "$PORTAUDIO_PKG_ERRORS" >&5
30118
30119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30120 $as_echo "no" >&6; }
30121                 passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-portaudio requires package portaudio, not found." >&5
30122 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
30123 elif test $pkg_failed = untried; then
30124         passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-portaudio requires package portaudio, not found." >&5
30125 $as_echo "gr-audio-portaudio requires package portaudio, not found." >&6; }
30126 else
30127         PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
30128         PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
30129         PORTAUDIO_INCLUDEDIR=$pkg_cv_PORTAUDIO_INCLUDEDIR
30130
30131         PORTAUDIO_CPPFLAGS=""
30132         for flag in $PORTAUDIO_CFLAGS; do
30133           case $flag in
30134           -I* | -D* | -U*) PORTAUDIO_CPPFLAGS="$PORTAUDIO_CPPFLAGS $flag" ;;
30135           esac
30136         done
30137         pkg_cv_PORTAUDIO_CPPFLAGS=$PORTAUDIO_CPPFLAGS
30138
30139
30140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30141 $as_echo "yes" >&6; }
30142         :
30143 fi
30144     fi
30145
30146     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
30147
30148
30149
30150
30151     gr_audio_portaudio_with=no
30152     if test $passed = no; then
30153         if test x$enable_gr_audio_portaudio = xyes; then
30154             as_fn_error "Component gr-audio-portaudio has errors; stopping." "$LINENO" 5
30155         else
30156             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-portaudio." >&5
30157 $as_echo "Not building component gr-audio-portaudio." >&6; }
30158         fi
30159     else
30160         if test $passed = with; then
30161             with_dirs="$with_dirs gr-audio-portaudio"
30162
30163     if test "x${gr_audio_portaudio_INCLUDES}" != "x"; then
30164         if test "x$with_INCLUDES" = "x"; then
30165             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"
30166         else
30167             with_INCLUDES="${gr_audio_portaudio_INCLUDES}"" ""$with_INCLUDES"
30168         fi
30169         gr_audio_portaudio_INCLUDES=
30170     fi
30171
30172
30173     if test "x${gr_audio_portaudio_SWIG_INCLUDES}" != "x"; then
30174         if test "x$with_SWIG_INCLUDES" = "x"; then
30175             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"
30176         else
30177             with_SWIG_INCLUDES="${gr_audio_portaudio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30178         fi
30179         gr_audio_portaudio_SWIG_INCLUDES=
30180     fi
30181
30182
30183     if test "x${gr_audio_portaudio_PYDIRPATH}" != "x"; then
30184         if test "x$with_PYDIRPATH" = "x"; then
30185             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"
30186         else
30187             with_PYDIRPATH="${gr_audio_portaudio_PYDIRPATH}"":""$with_PYDIRPATH"
30188         fi
30189         gr_audio_portaudio_PYDIRPATH=
30190     fi
30191
30192
30193     if test "x${gr_audio_portaudio_SWIGDIRPATH}" != "x"; then
30194         if test "x$with_SWIGDIRPATH" = "x"; then
30195             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"
30196         else
30197             with_SWIGDIRPATH="${gr_audio_portaudio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30198         fi
30199         gr_audio_portaudio_SWIGDIRPATH=
30200     fi
30201
30202
30203     if test "x${gr_audio_portaudio_LIBDIRPATH}" != "x"; then
30204         if test "x$with_LIBDIRPATH" = "x"; then
30205             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"
30206         else
30207             with_LIBDIRPATH="${gr_audio_portaudio_LIBDIRPATH}"":""$with_LIBDIRPATH"
30208         fi
30209         gr_audio_portaudio_LIBDIRPATH=
30210     fi
30211
30212             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio will be included from a pre-installed library and includes." >&5
30213 $as_echo "Component gr-audio-portaudio will be included from a pre-installed library and includes." >&6; }
30214             gr_audio_portaudio_with=yes
30215         else
30216             gr_audio_portaudio_LDFLAG=
30217             if test x$enable_gr_audio_portaudio != xno; then
30218                         ac_config_commands="$ac_config_commands run_tests_portaudio"
30219
30220
30221                 build_dirs="$build_dirs gr-audio-portaudio"
30222                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio passed configuration checks; building." >&5
30223 $as_echo "Component gr-audio-portaudio passed configuration checks; building." >&6; }
30224             else
30225                 passed=no
30226                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-portaudio passed configuration checks; but not building." >&5
30227 $as_echo "Component gr-audio-portaudio passed configuration checks; but not building." >&6; }
30228             fi
30229         fi
30230     fi
30231     if test $passed = no; then
30232         skipped_dirs="$skipped_dirs gr-audio-portaudio"
30233         gr_audio_portaudio_skipped=yes
30234     else
30235         gr_audio_portaudio_skipped=no
30236     fi
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248     passed=yes
30249     # Check whether --enable-gr-audio-windows was given.
30250 if test "${enable_gr_audio_windows+set}" = set; then :
30251   enableval=$enable_gr_audio_windows;
30252 else
30253
30254         enable_gr_audio_windows=$enable_all_components
30255         if test x$enable_all_components = xno; then
30256             passed=no
30257         fi
30258
30259 fi
30260
30261
30262
30263
30264
30265     if test $passed != no; then
30266         if test $passed = yes; then
30267                         if test x$gnuradio_core_skipped = xyes; then
30268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
30269 $as_echo "Component gr-audio-windows requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
30270                 passed=no
30271             fi
30272         else
30273                         if test x$gnuradio_core_with = xno; then
30274                 as_fn_error "Component gr-audio-windows requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30275             fi
30276         fi
30277     fi
30278
30279
30280                     if test $passed = yes; then
30281         case "$host_os" in
30282           cygwin*|win*|mingw*)
30283                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwinmm" >&5
30284 $as_echo_n "checking for main in -lwinmm... " >&6; }
30285 if test "${ac_cv_lib_winmm_main+set}" = set; then :
30286   $as_echo_n "(cached) " >&6
30287 else
30288   ac_check_lib_save_LIBS=$LIBS
30289 LIBS="-lwinmm  $LIBS"
30290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30291 /* end confdefs.h.  */
30292
30293
30294 int
30295 main ()
30296 {
30297 return main ();
30298   ;
30299   return 0;
30300 }
30301 _ACEOF
30302 if ac_fn_c_try_link "$LINENO"; then :
30303   ac_cv_lib_winmm_main=yes
30304 else
30305   ac_cv_lib_winmm_main=no
30306 fi
30307 rm -f core conftest.err conftest.$ac_objext \
30308     conftest$ac_exeext conftest.$ac_ext
30309 LIBS=$ac_check_lib_save_LIBS
30310 fi
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_main" >&5
30312 $as_echo "$ac_cv_lib_winmm_main" >&6; }
30313 if test "x$ac_cv_lib_winmm_main" = x""yes; then :
30314   cat >>confdefs.h <<_ACEOF
30315 #define HAVE_LIBWINMM 1
30316 _ACEOF
30317
30318   LIBS="-lwinmm $LIBS"
30319
30320 else
30321   passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-windows requires library winmm, not found." >&5
30322 $as_echo "gr-audio-windows requires library winmm, not found." >&6; }
30323 fi
30324 ac_cv_lib_winmm=ac_cv_lib_winmm_main
30325
30326             ;;
30327           *)
30328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-audio-windows will build on a Windows Unix environment only." >&5
30329 $as_echo "gr-audio-windows will build on a Windows Unix environment only." >&6; }
30330           passed=no
30331           ;;
30332         esac
30333     fi
30334
30335     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
30336
30337
30338
30339
30340     gr_audio_windows_with=no
30341     if test $passed = no; then
30342         if test x$enable_gr_audio_windows = xyes; then
30343             as_fn_error "Component gr-audio-windows has errors; stopping." "$LINENO" 5
30344         else
30345             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-audio-windows." >&5
30346 $as_echo "Not building component gr-audio-windows." >&6; }
30347         fi
30348     else
30349         if test $passed = with; then
30350             with_dirs="$with_dirs gr-audio-windows"
30351
30352     if test "x${gr_audio_windows_INCLUDES}" != "x"; then
30353         if test "x$with_INCLUDES" = "x"; then
30354             with_INCLUDES="${gr_audio_windows_INCLUDES}"
30355         else
30356             with_INCLUDES="${gr_audio_windows_INCLUDES}"" ""$with_INCLUDES"
30357         fi
30358         gr_audio_windows_INCLUDES=
30359     fi
30360
30361
30362     if test "x${gr_audio_windows_SWIG_INCLUDES}" != "x"; then
30363         if test "x$with_SWIG_INCLUDES" = "x"; then
30364             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"
30365         else
30366             with_SWIG_INCLUDES="${gr_audio_windows_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30367         fi
30368         gr_audio_windows_SWIG_INCLUDES=
30369     fi
30370
30371
30372     if test "x${gr_audio_windows_PYDIRPATH}" != "x"; then
30373         if test "x$with_PYDIRPATH" = "x"; then
30374             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"
30375         else
30376             with_PYDIRPATH="${gr_audio_windows_PYDIRPATH}"":""$with_PYDIRPATH"
30377         fi
30378         gr_audio_windows_PYDIRPATH=
30379     fi
30380
30381
30382     if test "x${gr_audio_windows_SWIGDIRPATH}" != "x"; then
30383         if test "x$with_SWIGDIRPATH" = "x"; then
30384             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"
30385         else
30386             with_SWIGDIRPATH="${gr_audio_windows_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30387         fi
30388         gr_audio_windows_SWIGDIRPATH=
30389     fi
30390
30391
30392     if test "x${gr_audio_windows_LIBDIRPATH}" != "x"; then
30393         if test "x$with_LIBDIRPATH" = "x"; then
30394             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"
30395         else
30396             with_LIBDIRPATH="${gr_audio_windows_LIBDIRPATH}"":""$with_LIBDIRPATH"
30397         fi
30398         gr_audio_windows_LIBDIRPATH=
30399     fi
30400
30401             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows will be included from a pre-installed library and includes." >&5
30402 $as_echo "Component gr-audio-windows will be included from a pre-installed library and includes." >&6; }
30403             gr_audio_windows_with=yes
30404         else
30405             gr_audio_windows_LDFLAG=
30406             if test x$enable_gr_audio_windows != xno; then
30407                 WINAUDIO_LIBS=-lwinmm
30408
30409                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
30410
30411
30412                 build_dirs="$build_dirs gr-audio-windows"
30413                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows passed configuration checks; building." >&5
30414 $as_echo "Component gr-audio-windows passed configuration checks; building." >&6; }
30415             else
30416                 passed=no
30417                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-audio-windows passed configuration checks; but not building." >&5
30418 $as_echo "Component gr-audio-windows passed configuration checks; but not building." >&6; }
30419             fi
30420         fi
30421     fi
30422     if test $passed = no; then
30423         skipped_dirs="$skipped_dirs gr-audio-windows"
30424         gr_audio_windows_skipped=yes
30425     else
30426         gr_audio_windows_skipped=no
30427     fi
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439     passed=yes
30440     # Check whether --enable-gr-cvsd-vocoder was given.
30441 if test "${enable_gr_cvsd_vocoder+set}" = set; then :
30442   enableval=$enable_gr_cvsd_vocoder;
30443 else
30444
30445         enable_gr_cvsd_vocoder=$enable_all_components
30446         if test x$enable_all_components = xno; then
30447             passed=no
30448         fi
30449
30450 fi
30451
30452
30453
30454
30455
30456     if test $passed != no; then
30457         if test $passed = yes; then
30458                         if test x$gnuradio_core_skipped = xyes; then
30459                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
30460 $as_echo "Component gr-cvsd-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
30461                 passed=no
30462             fi
30463         else
30464                         if test x$gnuradio_core_with = xno; then
30465                 as_fn_error "Component gr-cvsd-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30466             fi
30467         fi
30468     fi
30469
30470
30471     ac_config_files="$ac_config_files gr-cvsd-vocoder/Makefile gr-cvsd-vocoder/src/Makefile gr-cvsd-vocoder/src/lib/Makefile gr-cvsd-vocoder/src/python/Makefile gr-cvsd-vocoder/src/python/run_tests"
30472
30473
30474
30475
30476     gr_cvsd_vocoder_with=no
30477     if test $passed = no; then
30478         if test x$enable_gr_cvsd_vocoder = xyes; then
30479             as_fn_error "Component gr-cvsd-vocoder has errors; stopping." "$LINENO" 5
30480         else
30481             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-cvsd-vocoder." >&5
30482 $as_echo "Not building component gr-cvsd-vocoder." >&6; }
30483         fi
30484     else
30485         if test $passed = with; then
30486             with_dirs="$with_dirs gr-cvsd-vocoder"
30487
30488     if test "x${gr_cvsd_vocoder_INCLUDES}" != "x"; then
30489         if test "x$with_INCLUDES" = "x"; then
30490             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"
30491         else
30492             with_INCLUDES="${gr_cvsd_vocoder_INCLUDES}"" ""$with_INCLUDES"
30493         fi
30494         gr_cvsd_vocoder_INCLUDES=
30495     fi
30496
30497
30498     if test "x${gr_cvsd_vocoder_SWIG_INCLUDES}" != "x"; then
30499         if test "x$with_SWIG_INCLUDES" = "x"; then
30500             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"
30501         else
30502             with_SWIG_INCLUDES="${gr_cvsd_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30503         fi
30504         gr_cvsd_vocoder_SWIG_INCLUDES=
30505     fi
30506
30507
30508     if test "x${gr_cvsd_vocoder_PYDIRPATH}" != "x"; then
30509         if test "x$with_PYDIRPATH" = "x"; then
30510             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"
30511         else
30512             with_PYDIRPATH="${gr_cvsd_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
30513         fi
30514         gr_cvsd_vocoder_PYDIRPATH=
30515     fi
30516
30517
30518     if test "x${gr_cvsd_vocoder_SWIGDIRPATH}" != "x"; then
30519         if test "x$with_SWIGDIRPATH" = "x"; then
30520             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"
30521         else
30522             with_SWIGDIRPATH="${gr_cvsd_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30523         fi
30524         gr_cvsd_vocoder_SWIGDIRPATH=
30525     fi
30526
30527
30528     if test "x${gr_cvsd_vocoder_LIBDIRPATH}" != "x"; then
30529         if test "x$with_LIBDIRPATH" = "x"; then
30530             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"
30531         else
30532             with_LIBDIRPATH="${gr_cvsd_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
30533         fi
30534         gr_cvsd_vocoder_LIBDIRPATH=
30535     fi
30536
30537             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&5
30538 $as_echo "Component gr-cvsd-vocoder will be included from a pre-installed library and includes." >&6; }
30539             gr_cvsd_vocoder_with=yes
30540         else
30541             gr_cvsd_vocoder_LDFLAG=
30542             if test x$enable_gr_cvsd_vocoder != xno; then
30543                         ac_config_commands="$ac_config_commands run_tests_cvsd"
30544
30545
30546                 build_dirs="$build_dirs gr-cvsd-vocoder"
30547                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder passed configuration checks; building." >&5
30548 $as_echo "Component gr-cvsd-vocoder passed configuration checks; building." >&6; }
30549             else
30550                 passed=no
30551                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-cvsd-vocoder passed configuration checks; but not building." >&5
30552 $as_echo "Component gr-cvsd-vocoder passed configuration checks; but not building." >&6; }
30553             fi
30554         fi
30555     fi
30556     if test $passed = no; then
30557         skipped_dirs="$skipped_dirs gr-cvsd-vocoder"
30558         gr_cvsd_vocoder_skipped=yes
30559     else
30560         gr_cvsd_vocoder_skipped=no
30561     fi
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573     passed=yes
30574     # Check whether --enable-gr-gpio was given.
30575 if test "${enable_gr_gpio+set}" = set; then :
30576   enableval=$enable_gr_gpio;
30577 else
30578
30579         enable_gr_gpio=$enable_all_components
30580         if test x$enable_all_components = xno; then
30581             passed=no
30582         fi
30583
30584 fi
30585
30586
30587
30588
30589
30590     if test $passed != no; then
30591         if test $passed = yes; then
30592                         if test x$usrp_skipped = xyes; then
30593                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&5
30594 $as_echo "Component gr-gpio requires usrp, which is not being built or specified via pre-installed files." >&6; }
30595                 passed=no
30596             fi
30597         else
30598                         if test x$usrp_with = xno; then
30599                 as_fn_error "Component gr-gpio requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
30600             fi
30601         fi
30602     fi
30603
30604
30605     ac_config_files="$ac_config_files gr-gpio/Makefile gr-gpio/src/Makefile gr-gpio/src/fpga/Makefile gr-gpio/src/fpga/include/Makefile gr-gpio/src/fpga/top/Makefile gr-gpio/src/fpga/lib/Makefile gr-gpio/src/fpga/rbf/Makefile gr-gpio/src/python/Makefile"
30606
30607
30608
30609
30610     gr_gpio_with=no
30611     if test $passed = no; then
30612         if test x$enable_gr_gpio = xyes; then
30613             as_fn_error "Component gr-gpio has errors; stopping." "$LINENO" 5
30614         else
30615             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gpio." >&5
30616 $as_echo "Not building component gr-gpio." >&6; }
30617         fi
30618     else
30619         if test $passed = with; then
30620             with_dirs="$with_dirs gr-gpio"
30621
30622     if test "x${gr_gpio_INCLUDES}" != "x"; then
30623         if test "x$with_INCLUDES" = "x"; then
30624             with_INCLUDES="${gr_gpio_INCLUDES}"
30625         else
30626             with_INCLUDES="${gr_gpio_INCLUDES}"" ""$with_INCLUDES"
30627         fi
30628         gr_gpio_INCLUDES=
30629     fi
30630
30631
30632     if test "x${gr_gpio_SWIG_INCLUDES}" != "x"; then
30633         if test "x$with_SWIG_INCLUDES" = "x"; then
30634             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"
30635         else
30636             with_SWIG_INCLUDES="${gr_gpio_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30637         fi
30638         gr_gpio_SWIG_INCLUDES=
30639     fi
30640
30641
30642     if test "x${gr_gpio_PYDIRPATH}" != "x"; then
30643         if test "x$with_PYDIRPATH" = "x"; then
30644             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"
30645         else
30646             with_PYDIRPATH="${gr_gpio_PYDIRPATH}"":""$with_PYDIRPATH"
30647         fi
30648         gr_gpio_PYDIRPATH=
30649     fi
30650
30651
30652     if test "x${gr_gpio_SWIGDIRPATH}" != "x"; then
30653         if test "x$with_SWIGDIRPATH" = "x"; then
30654             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"
30655         else
30656             with_SWIGDIRPATH="${gr_gpio_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30657         fi
30658         gr_gpio_SWIGDIRPATH=
30659     fi
30660
30661
30662     if test "x${gr_gpio_LIBDIRPATH}" != "x"; then
30663         if test "x$with_LIBDIRPATH" = "x"; then
30664             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"
30665         else
30666             with_LIBDIRPATH="${gr_gpio_LIBDIRPATH}"":""$with_LIBDIRPATH"
30667         fi
30668         gr_gpio_LIBDIRPATH=
30669     fi
30670
30671             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio will be included from a pre-installed library and includes." >&5
30672 $as_echo "Component gr-gpio will be included from a pre-installed library and includes." >&6; }
30673             gr_gpio_with=yes
30674         else
30675             gr_gpio_LDFLAG=
30676             if test x$enable_gr_gpio != xno; then
30677                 :
30678                 build_dirs="$build_dirs gr-gpio"
30679                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio passed configuration checks; building." >&5
30680 $as_echo "Component gr-gpio passed configuration checks; building." >&6; }
30681             else
30682                 passed=no
30683                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gpio passed configuration checks; but not building." >&5
30684 $as_echo "Component gr-gpio passed configuration checks; but not building." >&6; }
30685             fi
30686         fi
30687     fi
30688     if test $passed = no; then
30689         skipped_dirs="$skipped_dirs gr-gpio"
30690         gr_gpio_skipped=yes
30691     else
30692         gr_gpio_skipped=no
30693     fi
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705     passed=yes
30706     # Check whether --enable-gr-gsm-fr-vocoder was given.
30707 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then :
30708   enableval=$enable_gr_gsm_fr_vocoder;
30709 else
30710
30711         enable_gr_gsm_fr_vocoder=$enable_all_components
30712         if test x$enable_all_components = xno; then
30713             passed=no
30714         fi
30715
30716 fi
30717
30718
30719
30720
30721
30722     if test $passed != no; then
30723         if test $passed = yes; then
30724                         if test x$gnuradio_core_skipped = xyes; then
30725                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
30726 $as_echo "Component gr-gsm-fr-vocoder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
30727                 passed=no
30728             fi
30729         else
30730                         if test x$gnuradio_core_with = xno; then
30731                 as_fn_error "Component gr-gsm-fr-vocoder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30732             fi
30733         fi
30734     fi
30735
30736
30737     ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
30738
30739
30740
30741
30742     gr_gsm_fr_vocoder_with=no
30743     if test $passed = no; then
30744         if test x$enable_gr_gsm_fr_vocoder = xyes; then
30745             as_fn_error "Component gr-gsm-fr-vocoder has errors; stopping." "$LINENO" 5
30746         else
30747             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-gsm-fr-vocoder." >&5
30748 $as_echo "Not building component gr-gsm-fr-vocoder." >&6; }
30749         fi
30750     else
30751         if test $passed = with; then
30752             with_dirs="$with_dirs gr-gsm-fr-vocoder"
30753
30754     if test "x${gr_gsm_fr_vocoder_INCLUDES}" != "x"; then
30755         if test "x$with_INCLUDES" = "x"; then
30756             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"
30757         else
30758             with_INCLUDES="${gr_gsm_fr_vocoder_INCLUDES}"" ""$with_INCLUDES"
30759         fi
30760         gr_gsm_fr_vocoder_INCLUDES=
30761     fi
30762
30763
30764     if test "x${gr_gsm_fr_vocoder_SWIG_INCLUDES}" != "x"; then
30765         if test "x$with_SWIG_INCLUDES" = "x"; then
30766             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"
30767         else
30768             with_SWIG_INCLUDES="${gr_gsm_fr_vocoder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30769         fi
30770         gr_gsm_fr_vocoder_SWIG_INCLUDES=
30771     fi
30772
30773
30774     if test "x${gr_gsm_fr_vocoder_PYDIRPATH}" != "x"; then
30775         if test "x$with_PYDIRPATH" = "x"; then
30776             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"
30777         else
30778             with_PYDIRPATH="${gr_gsm_fr_vocoder_PYDIRPATH}"":""$with_PYDIRPATH"
30779         fi
30780         gr_gsm_fr_vocoder_PYDIRPATH=
30781     fi
30782
30783
30784     if test "x${gr_gsm_fr_vocoder_SWIGDIRPATH}" != "x"; then
30785         if test "x$with_SWIGDIRPATH" = "x"; then
30786             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"
30787         else
30788             with_SWIGDIRPATH="${gr_gsm_fr_vocoder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30789         fi
30790         gr_gsm_fr_vocoder_SWIGDIRPATH=
30791     fi
30792
30793
30794     if test "x${gr_gsm_fr_vocoder_LIBDIRPATH}" != "x"; then
30795         if test "x$with_LIBDIRPATH" = "x"; then
30796             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"
30797         else
30798             with_LIBDIRPATH="${gr_gsm_fr_vocoder_LIBDIRPATH}"":""$with_LIBDIRPATH"
30799         fi
30800         gr_gsm_fr_vocoder_LIBDIRPATH=
30801     fi
30802
30803             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&5
30804 $as_echo "Component gr-gsm-fr-vocoder will be included from a pre-installed library and includes." >&6; }
30805             gr_gsm_fr_vocoder_with=yes
30806         else
30807             gr_gsm_fr_vocoder_LDFLAG=
30808             if test x$enable_gr_gsm_fr_vocoder != xno; then
30809                         ac_config_commands="$ac_config_commands run_tests_gsm"
30810
30811
30812                 build_dirs="$build_dirs gr-gsm-fr-vocoder"
30813                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder passed configuration checks; building." >&5
30814 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; building." >&6; }
30815             else
30816                 passed=no
30817                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&5
30818 $as_echo "Component gr-gsm-fr-vocoder passed configuration checks; but not building." >&6; }
30819             fi
30820         fi
30821     fi
30822     if test $passed = no; then
30823         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
30824         gr_gsm_fr_vocoder_skipped=yes
30825     else
30826         gr_gsm_fr_vocoder_skipped=no
30827     fi
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839     passed=yes
30840     # Check whether --enable-gr-pager was given.
30841 if test "${enable_gr_pager+set}" = set; then :
30842   enableval=$enable_gr_pager;
30843 else
30844
30845         enable_gr_pager=$enable_all_components
30846         if test x$enable_all_components = xno; then
30847             passed=no
30848         fi
30849
30850 fi
30851
30852
30853
30854
30855
30856     if test $passed != no; then
30857         if test $passed = yes; then
30858                         if test x$gnuradio_core_skipped = xyes; then
30859                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
30860 $as_echo "Component gr-pager requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
30861                 passed=no
30862             fi
30863         else
30864                         if test x$gnuradio_core_with = xno; then
30865                 as_fn_error "Component gr-pager requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
30866             fi
30867         fi
30868     fi
30869
30870
30871     ac_config_files="$ac_config_files gr-pager/Makefile gr-pager/src/Makefile gr-pager/src/run_tests"
30872
30873
30874
30875
30876     gr_pager_with=no
30877     if test $passed = no; then
30878         if test x$enable_gr_pager = xyes; then
30879             as_fn_error "Component gr-pager has errors; stopping." "$LINENO" 5
30880         else
30881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-pager." >&5
30882 $as_echo "Not building component gr-pager." >&6; }
30883         fi
30884     else
30885         if test $passed = with; then
30886             with_dirs="$with_dirs gr-pager"
30887
30888     if test "x${gr_pager_INCLUDES}" != "x"; then
30889         if test "x$with_INCLUDES" = "x"; then
30890             with_INCLUDES="${gr_pager_INCLUDES}"
30891         else
30892             with_INCLUDES="${gr_pager_INCLUDES}"" ""$with_INCLUDES"
30893         fi
30894         gr_pager_INCLUDES=
30895     fi
30896
30897
30898     if test "x${gr_pager_SWIG_INCLUDES}" != "x"; then
30899         if test "x$with_SWIG_INCLUDES" = "x"; then
30900             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"
30901         else
30902             with_SWIG_INCLUDES="${gr_pager_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
30903         fi
30904         gr_pager_SWIG_INCLUDES=
30905     fi
30906
30907
30908     if test "x${gr_pager_PYDIRPATH}" != "x"; then
30909         if test "x$with_PYDIRPATH" = "x"; then
30910             with_PYDIRPATH="${gr_pager_PYDIRPATH}"
30911         else
30912             with_PYDIRPATH="${gr_pager_PYDIRPATH}"":""$with_PYDIRPATH"
30913         fi
30914         gr_pager_PYDIRPATH=
30915     fi
30916
30917
30918     if test "x${gr_pager_SWIGDIRPATH}" != "x"; then
30919         if test "x$with_SWIGDIRPATH" = "x"; then
30920             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"
30921         else
30922             with_SWIGDIRPATH="${gr_pager_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
30923         fi
30924         gr_pager_SWIGDIRPATH=
30925     fi
30926
30927
30928     if test "x${gr_pager_LIBDIRPATH}" != "x"; then
30929         if test "x$with_LIBDIRPATH" = "x"; then
30930             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"
30931         else
30932             with_LIBDIRPATH="${gr_pager_LIBDIRPATH}"":""$with_LIBDIRPATH"
30933         fi
30934         gr_pager_LIBDIRPATH=
30935     fi
30936
30937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager will be included from a pre-installed library and includes." >&5
30938 $as_echo "Component gr-pager will be included from a pre-installed library and includes." >&6; }
30939             gr_pager_with=yes
30940         else
30941             gr_pager_LDFLAG=
30942             if test x$enable_gr_pager != xno; then
30943                         ac_config_commands="$ac_config_commands run_tests_pager"
30944
30945
30946                 build_dirs="$build_dirs gr-pager"
30947                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager passed configuration checks; building." >&5
30948 $as_echo "Component gr-pager passed configuration checks; building." >&6; }
30949             else
30950                 passed=no
30951                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-pager passed configuration checks; but not building." >&5
30952 $as_echo "Component gr-pager passed configuration checks; but not building." >&6; }
30953             fi
30954         fi
30955     fi
30956     if test $passed = no; then
30957         skipped_dirs="$skipped_dirs gr-pager"
30958         gr_pager_skipped=yes
30959     else
30960         gr_pager_skipped=no
30961     fi
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973     passed=yes
30974     # Check whether --enable-gr-radar-mono was given.
30975 if test "${enable_gr_radar_mono+set}" = set; then :
30976   enableval=$enable_gr_radar_mono;
30977 else
30978
30979         enable_gr_radar_mono=$enable_all_components
30980         if test x$enable_all_components = xno; then
30981             passed=no
30982         fi
30983
30984 fi
30985
30986
30987
30988
30989
30990     if test $passed != no; then
30991         if test $passed = yes; then
30992                         if test x$usrp_skipped = xyes; then
30993                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&5
30994 $as_echo "Component gr-radar-mono requires usrp, which is not being built or specified via pre-installed files." >&6; }
30995                 passed=no
30996             fi
30997         else
30998                         if test x$usrp_with = xno; then
30999                 as_fn_error "Component gr-radar-mono requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
31000             fi
31001         fi
31002     fi
31003
31004
31005     if test $passed != no; then
31006         if test $passed = yes; then
31007                         if test x$gnuradio_core_skipped = xyes; then
31008                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31009 $as_echo "Component gr-radar-mono requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31010                 passed=no
31011             fi
31012         else
31013                         if test x$gnuradio_core_with = xno; then
31014                 as_fn_error "Component gr-radar-mono requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31015             fi
31016         fi
31017     fi
31018
31019
31020     ac_config_files="$ac_config_files gr-radar-mono/Makefile gr-radar-mono/doc/Makefile gr-radar-mono/src/Makefile gr-radar-mono/src/fpga/Makefile gr-radar-mono/src/fpga/top/Makefile gr-radar-mono/src/fpga/lib/Makefile gr-radar-mono/src/fpga/models/Makefile gr-radar-mono/src/fpga/tb/Makefile gr-radar-mono/src/lib/Makefile gr-radar-mono/src/python/Makefile gr-radar-mono/src/python/run_tests"
31021
31022
31023
31024
31025     gr_radar_mono_with=no
31026     if test $passed = no; then
31027         if test x$enable_gr_radar_mono = xyes; then
31028             as_fn_error "Component gr-radar-mono has errors; stopping." "$LINENO" 5
31029         else
31030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-radar-mono." >&5
31031 $as_echo "Not building component gr-radar-mono." >&6; }
31032         fi
31033     else
31034         if test $passed = with; then
31035             with_dirs="$with_dirs gr-radar-mono"
31036
31037     if test "x${gr_radar_mono_INCLUDES}" != "x"; then
31038         if test "x$with_INCLUDES" = "x"; then
31039             with_INCLUDES="${gr_radar_mono_INCLUDES}"
31040         else
31041             with_INCLUDES="${gr_radar_mono_INCLUDES}"" ""$with_INCLUDES"
31042         fi
31043         gr_radar_mono_INCLUDES=
31044     fi
31045
31046
31047     if test "x${gr_radar_mono_SWIG_INCLUDES}" != "x"; then
31048         if test "x$with_SWIG_INCLUDES" = "x"; then
31049             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"
31050         else
31051             with_SWIG_INCLUDES="${gr_radar_mono_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31052         fi
31053         gr_radar_mono_SWIG_INCLUDES=
31054     fi
31055
31056
31057     if test "x${gr_radar_mono_PYDIRPATH}" != "x"; then
31058         if test "x$with_PYDIRPATH" = "x"; then
31059             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"
31060         else
31061             with_PYDIRPATH="${gr_radar_mono_PYDIRPATH}"":""$with_PYDIRPATH"
31062         fi
31063         gr_radar_mono_PYDIRPATH=
31064     fi
31065
31066
31067     if test "x${gr_radar_mono_SWIGDIRPATH}" != "x"; then
31068         if test "x$with_SWIGDIRPATH" = "x"; then
31069             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"
31070         else
31071             with_SWIGDIRPATH="${gr_radar_mono_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31072         fi
31073         gr_radar_mono_SWIGDIRPATH=
31074     fi
31075
31076
31077     if test "x${gr_radar_mono_LIBDIRPATH}" != "x"; then
31078         if test "x$with_LIBDIRPATH" = "x"; then
31079             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"
31080         else
31081             with_LIBDIRPATH="${gr_radar_mono_LIBDIRPATH}"":""$with_LIBDIRPATH"
31082         fi
31083         gr_radar_mono_LIBDIRPATH=
31084     fi
31085
31086             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono will be included from a pre-installed library and includes." >&5
31087 $as_echo "Component gr-radar-mono will be included from a pre-installed library and includes." >&6; }
31088             gr_radar_mono_with=yes
31089         else
31090             gr_radar_mono_LDFLAG=
31091             if test x$enable_gr_radar_mono != xno; then
31092                         ac_config_commands="$ac_config_commands run_tests_radar_mono"
31093
31094
31095                 build_dirs="$build_dirs gr-radar-mono"
31096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono passed configuration checks; building." >&5
31097 $as_echo "Component gr-radar-mono passed configuration checks; building." >&6; }
31098             else
31099                 passed=no
31100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radar-mono passed configuration checks; but not building." >&5
31101 $as_echo "Component gr-radar-mono passed configuration checks; but not building." >&6; }
31102             fi
31103         fi
31104     fi
31105     if test $passed = no; then
31106         skipped_dirs="$skipped_dirs gr-radar-mono"
31107         gr_radar_mono_skipped=yes
31108     else
31109         gr_radar_mono_skipped=no
31110     fi
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122     passed=yes
31123     # Check whether --enable-gr-radio-astronomy was given.
31124 if test "${enable_gr_radio_astronomy+set}" = set; then :
31125   enableval=$enable_gr_radio_astronomy;
31126 else
31127
31128         enable_gr_radio_astronomy=$enable_all_components
31129         if test x$enable_all_components = xno; then
31130             passed=no
31131         fi
31132
31133 fi
31134
31135
31136
31137
31138
31139     if test $passed != no; then
31140         if test $passed = yes; then
31141                         if test x$gnuradio_core_skipped = xyes; then
31142                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31143 $as_echo "Component gr-radio-astronomy requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31144                 passed=no
31145             fi
31146         else
31147                         if test x$gnuradio_core_with = xno; then
31148                 as_fn_error "Component gr-radio-astronomy requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31149             fi
31150         fi
31151     fi
31152
31153
31154     ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
31155
31156
31157
31158
31159     gr_radio_astronomy_with=no
31160     if test $passed = no; then
31161         if test x$enable_gr_radio_astronomy = xyes; then
31162             as_fn_error "Component gr-radio-astronomy has errors; stopping." "$LINENO" 5
31163         else
31164             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-radio-astronomy." >&5
31165 $as_echo "Not building component gr-radio-astronomy." >&6; }
31166         fi
31167     else
31168         if test $passed = with; then
31169             with_dirs="$with_dirs gr-radio-astronomy"
31170
31171     if test "x${gr_radio_astronomy_INCLUDES}" != "x"; then
31172         if test "x$with_INCLUDES" = "x"; then
31173             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"
31174         else
31175             with_INCLUDES="${gr_radio_astronomy_INCLUDES}"" ""$with_INCLUDES"
31176         fi
31177         gr_radio_astronomy_INCLUDES=
31178     fi
31179
31180
31181     if test "x${gr_radio_astronomy_SWIG_INCLUDES}" != "x"; then
31182         if test "x$with_SWIG_INCLUDES" = "x"; then
31183             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"
31184         else
31185             with_SWIG_INCLUDES="${gr_radio_astronomy_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31186         fi
31187         gr_radio_astronomy_SWIG_INCLUDES=
31188     fi
31189
31190
31191     if test "x${gr_radio_astronomy_PYDIRPATH}" != "x"; then
31192         if test "x$with_PYDIRPATH" = "x"; then
31193             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"
31194         else
31195             with_PYDIRPATH="${gr_radio_astronomy_PYDIRPATH}"":""$with_PYDIRPATH"
31196         fi
31197         gr_radio_astronomy_PYDIRPATH=
31198     fi
31199
31200
31201     if test "x${gr_radio_astronomy_SWIGDIRPATH}" != "x"; then
31202         if test "x$with_SWIGDIRPATH" = "x"; then
31203             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"
31204         else
31205             with_SWIGDIRPATH="${gr_radio_astronomy_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31206         fi
31207         gr_radio_astronomy_SWIGDIRPATH=
31208     fi
31209
31210
31211     if test "x${gr_radio_astronomy_LIBDIRPATH}" != "x"; then
31212         if test "x$with_LIBDIRPATH" = "x"; then
31213             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"
31214         else
31215             with_LIBDIRPATH="${gr_radio_astronomy_LIBDIRPATH}"":""$with_LIBDIRPATH"
31216         fi
31217         gr_radio_astronomy_LIBDIRPATH=
31218     fi
31219
31220             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy will be included from a pre-installed library and includes." >&5
31221 $as_echo "Component gr-radio-astronomy will be included from a pre-installed library and includes." >&6; }
31222             gr_radio_astronomy_with=yes
31223         else
31224             gr_radio_astronomy_LDFLAG=
31225             if test x$enable_gr_radio_astronomy != xno; then
31226                         ac_config_commands="$ac_config_commands run_tests_astronomy"
31227
31228
31229                 build_dirs="$build_dirs gr-radio-astronomy"
31230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy passed configuration checks; building." >&5
31231 $as_echo "Component gr-radio-astronomy passed configuration checks; building." >&6; }
31232             else
31233                 passed=no
31234                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-radio-astronomy passed configuration checks; but not building." >&5
31235 $as_echo "Component gr-radio-astronomy passed configuration checks; but not building." >&6; }
31236             fi
31237         fi
31238     fi
31239     if test $passed = no; then
31240         skipped_dirs="$skipped_dirs gr-radio-astronomy"
31241         gr_radio_astronomy_skipped=yes
31242     else
31243         gr_radio_astronomy_skipped=no
31244     fi
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256     passed=yes
31257     # Check whether --enable-gr-trellis was given.
31258 if test "${enable_gr_trellis+set}" = set; then :
31259   enableval=$enable_gr_trellis;
31260 else
31261
31262         enable_gr_trellis=$enable_all_components
31263         if test x$enable_all_components = xno; then
31264             passed=no
31265         fi
31266
31267 fi
31268
31269
31270
31271
31272
31273     if test $passed != no; then
31274         if test $passed = yes; then
31275                         if test x$gnuradio_core_skipped = xyes; then
31276                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31277 $as_echo "Component gr-trellis requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31278                 passed=no
31279             fi
31280         else
31281                         if test x$gnuradio_core_with = xno; then
31282                 as_fn_error "Component gr-trellis requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31283             fi
31284         fi
31285     fi
31286
31287
31288     ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests gr-trellis/src/examples/Makefile gr-trellis/src/examples/fsm_files/Makefile"
31289
31290
31291
31292
31293     gr_trellis_with=no
31294     if test $passed = no; then
31295         if test x$enable_gr_trellis = xyes; then
31296             as_fn_error "Component gr-trellis has errors; stopping." "$LINENO" 5
31297         else
31298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-trellis." >&5
31299 $as_echo "Not building component gr-trellis." >&6; }
31300         fi
31301     else
31302         if test $passed = with; then
31303             with_dirs="$with_dirs gr-trellis"
31304
31305     if test "x${gr_trellis_INCLUDES}" != "x"; then
31306         if test "x$with_INCLUDES" = "x"; then
31307             with_INCLUDES="${gr_trellis_INCLUDES}"
31308         else
31309             with_INCLUDES="${gr_trellis_INCLUDES}"" ""$with_INCLUDES"
31310         fi
31311         gr_trellis_INCLUDES=
31312     fi
31313
31314
31315     if test "x${gr_trellis_SWIG_INCLUDES}" != "x"; then
31316         if test "x$with_SWIG_INCLUDES" = "x"; then
31317             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"
31318         else
31319             with_SWIG_INCLUDES="${gr_trellis_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
31320         fi
31321         gr_trellis_SWIG_INCLUDES=
31322     fi
31323
31324
31325     if test "x${gr_trellis_PYDIRPATH}" != "x"; then
31326         if test "x$with_PYDIRPATH" = "x"; then
31327             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"
31328         else
31329             with_PYDIRPATH="${gr_trellis_PYDIRPATH}"":""$with_PYDIRPATH"
31330         fi
31331         gr_trellis_PYDIRPATH=
31332     fi
31333
31334
31335     if test "x${gr_trellis_SWIGDIRPATH}" != "x"; then
31336         if test "x$with_SWIGDIRPATH" = "x"; then
31337             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"
31338         else
31339             with_SWIGDIRPATH="${gr_trellis_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
31340         fi
31341         gr_trellis_SWIGDIRPATH=
31342     fi
31343
31344
31345     if test "x${gr_trellis_LIBDIRPATH}" != "x"; then
31346         if test "x$with_LIBDIRPATH" = "x"; then
31347             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"
31348         else
31349             with_LIBDIRPATH="${gr_trellis_LIBDIRPATH}"":""$with_LIBDIRPATH"
31350         fi
31351         gr_trellis_LIBDIRPATH=
31352     fi
31353
31354             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis will be included from a pre-installed library and includes." >&5
31355 $as_echo "Component gr-trellis will be included from a pre-installed library and includes." >&6; }
31356             gr_trellis_with=yes
31357         else
31358             gr_trellis_LDFLAG=
31359             if test x$enable_gr_trellis != xno; then
31360                         ac_config_commands="$ac_config_commands run_tests_gr_trellis"
31361
31362
31363                 build_dirs="$build_dirs gr-trellis"
31364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis passed configuration checks; building." >&5
31365 $as_echo "Component gr-trellis passed configuration checks; building." >&6; }
31366             else
31367                 passed=no
31368                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-trellis passed configuration checks; but not building." >&5
31369 $as_echo "Component gr-trellis passed configuration checks; but not building." >&6; }
31370             fi
31371         fi
31372     fi
31373     if test $passed = no; then
31374         skipped_dirs="$skipped_dirs gr-trellis"
31375         gr_trellis_skipped=yes
31376     else
31377         gr_trellis_skipped=no
31378     fi
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390     passed=yes
31391     # Check whether --enable-gr-video-sdl was given.
31392 if test "${enable_gr_video_sdl+set}" = set; then :
31393   enableval=$enable_gr_video_sdl;
31394 else
31395
31396         enable_gr_video_sdl=$enable_all_components
31397         if test x$enable_all_components = xno; then
31398             passed=no
31399         fi
31400
31401 fi
31402
31403
31404
31405
31406
31407     if test $passed != no; then
31408         if test $passed = yes; then
31409                         if test x$gnuradio_core_skipped = xyes; then
31410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
31411 $as_echo "Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
31412                 passed=no
31413             fi
31414         else
31415                         if test x$gnuradio_core_with = xno; then
31416                 as_fn_error "Component gr-video-sdl requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
31417             fi
31418         fi
31419     fi
31420
31421
31422                     if test $passed = yes; then
31423
31424
31425
31426 pkg_failed=no
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
31428 $as_echo_n "checking for SDL... " >&6; }
31429
31430 if test -n "$PKG_CONFIG"; then
31431     if test -n "$SDL_CFLAGS"; then
31432         pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
31433     else
31434         if test -n "$PKG_CONFIG" && \
31435     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
31436   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
31437   ac_status=$?
31438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31439   test $ac_status = 0; }; then
31440   pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
31441 else
31442   pkg_failed=yes
31443 fi
31444     fi
31445 else
31446         pkg_failed=untried
31447 fi
31448
31449 if test x$cross_compiling = xyes
31450 then
31451     if test -n "$PKG_CONFIG"; then
31452     if test -n "$SDL_LIBS"; then
31453         pkg_cv_SDL_LIBS="$SDL_LIBS"
31454     else
31455         if test -n "$PKG_CONFIG" && \
31456     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
31457   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
31458   ac_status=$?
31459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31460   test $ac_status = 0; }; then
31461   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
31462 else
31463   pkg_failed=yes
31464 fi
31465     fi
31466 else
31467         pkg_failed=untried
31468 fi
31469     _pkg_tmp=
31470   for flag in $pkg_cv_SDL_LIBS; do
31471     case $flag in
31472     (-L/lib* | -L/usr/lib* )       ;; # ignore
31473     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
31474     esac
31475   done
31476   pkg_cv_SDL_LIBS="$_pkg_tmp"
31477 else
31478   if test -n "$PKG_CONFIG"; then
31479     if test -n "$SDL_LIBS"; then
31480         pkg_cv_SDL_LIBS="$SDL_LIBS"
31481     else
31482         if test -n "$PKG_CONFIG" && \
31483     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
31484   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
31485   ac_status=$?
31486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31487   test $ac_status = 0; }; then
31488   pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs --static "sdl >= 1.2.0" 2>/dev/null`
31489 else
31490   pkg_failed=yes
31491 fi
31492     fi
31493 else
31494         pkg_failed=untried
31495 fi
31496 fi
31497
31498 if test -n "$PKG_CONFIG"; then
31499     if test -n "$SDL_INCLUDEDIR"; then
31500         pkg_cv_SDL_INCLUDEDIR="$SDL_INCLUDEDIR"
31501     else
31502         if test -n "$PKG_CONFIG" && \
31503     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
31504   ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
31505   ac_status=$?
31506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31507   test $ac_status = 0; }; then
31508   pkg_cv_SDL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "sdl >= 1.2.0" 2>/dev/null`
31509 else
31510   pkg_failed=yes
31511 fi
31512     fi
31513 else
31514         pkg_failed=untried
31515 fi
31516
31517
31518
31519
31520 if test $pkg_failed = yes; then
31521
31522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31523         _pkg_short_errors_supported=yes
31524 else
31525         _pkg_short_errors_supported=no
31526 fi
31527         if test $_pkg_short_errors_supported = yes; then
31528                 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= 1.2.0"`
31529         else
31530                 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= 1.2.0"`
31531         fi
31532         # Put the nasty error message in config.log where it belongs
31533         echo "$SDL_PKG_ERRORS" >&5
31534
31535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31536 $as_echo "no" >&6; }
31537                 SDL_VERSION=1.2.0
31538
31539 # Check whether --with-sdl-prefix was given.
31540 if test "${with_sdl_prefix+set}" = set; then :
31541   withval=$with_sdl_prefix; sdl_prefix="$withval"
31542 else
31543   sdl_prefix=""
31544 fi
31545
31546
31547 # Check whether --with-sdl-exec-prefix was given.
31548 if test "${with_sdl_exec_prefix+set}" = set; then :
31549   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
31550 else
31551   sdl_exec_prefix=""
31552 fi
31553
31554 # Check whether --enable-sdltest was given.
31555 if test "${enable_sdltest+set}" = set; then :
31556   enableval=$enable_sdltest;
31557 else
31558   enable_sdltest=yes
31559 fi
31560
31561
31562   if test x$sdl_exec_prefix != x ; then
31563      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31564      if test x${SDL_CONFIG+set} != xset ; then
31565         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31566      fi
31567   fi
31568   if test x$sdl_prefix != x ; then
31569      sdl_args="$sdl_args --prefix=$sdl_prefix"
31570      if test x${SDL_CONFIG+set} != xset ; then
31571         SDL_CONFIG=$sdl_prefix/bin/sdl-config
31572      fi
31573   fi
31574
31575
31576   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31577   # Extract the first word of "sdl-config", so it can be a program name with args.
31578 set dummy sdl-config; ac_word=$2
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31580 $as_echo_n "checking for $ac_word... " >&6; }
31581 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
31582   $as_echo_n "(cached) " >&6
31583 else
31584   case $SDL_CONFIG in
31585   [\\/]* | ?:[\\/]*)
31586   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31587   ;;
31588   *)
31589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31590 for as_dir in $TMP_PATH
31591 do
31592   IFS=$as_save_IFS
31593   test -z "$as_dir" && as_dir=.
31594     for ac_exec_ext in '' $ac_executable_extensions; do
31595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31596     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31598     break 2
31599   fi
31600 done
31601   done
31602 IFS=$as_save_IFS
31603
31604   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31605   ;;
31606 esac
31607 fi
31608 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31609 if test -n "$SDL_CONFIG"; then
31610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
31611 $as_echo "$SDL_CONFIG" >&6; }
31612 else
31613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31614 $as_echo "no" >&6; }
31615 fi
31616
31617
31618   min_sdl_version=$SDL_VERSION
31619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
31620 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
31621   no_sdl=""
31622   if test "$SDL_CONFIG" = "no" ; then
31623     no_sdl=yes
31624   else
31625     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31626     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31627
31628     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31629            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31630     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31631            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31632     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31633            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31634     if test "x$enable_sdltest" = "xyes" ; then
31635       ac_save_CFLAGS="$CFLAGS"
31636       ac_save_LIBS="$LIBS"
31637       CFLAGS="$CFLAGS $SDL_CFLAGS"
31638       LIBS="$LIBS $SDL_LIBS"
31639       rm -f conf.sdltest
31640       if test "$cross_compiling" = yes; then :
31641   echo $ac_n "cross compiling; assumed OK... $ac_c"
31642 else
31643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31644 /* end confdefs.h.  */
31645
31646 #include <stdio.h>
31647 #include <stdlib.h>
31648 #include <string.h>
31649 #include "SDL.h"
31650
31651 char*
31652 my_strdup (char *str)
31653 {
31654   char *new_str;
31655
31656   if (str)
31657     {
31658       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31659       strcpy (new_str, str);
31660     }
31661   else
31662     new_str = NULL;
31663
31664   return new_str;
31665 }
31666
31667 int main (int argc, char *argv[])
31668 {
31669   int major, minor, micro;
31670   char *tmp_version;
31671
31672   /* This hangs on some systems (?)
31673   system ("touch conf.sdltest");
31674   */
31675   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31676
31677   /* HP/UX 9 (%@#!) writes to sscanf strings */
31678   tmp_version = my_strdup("$min_sdl_version");
31679   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31680      printf("%s, bad version string\n", "$min_sdl_version");
31681      exit(1);
31682    }
31683
31684    if (($sdl_major_version > major) ||
31685       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31686       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31687     {
31688       return 0;
31689     }
31690   else
31691     {
31692       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31693       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31694       printf("*** best to upgrade to the required version.\n");
31695       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31696       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31697       printf("*** config.cache before re-running configure\n");
31698       return 1;
31699     }
31700 }
31701
31702
31703 _ACEOF
31704 if ac_fn_c_try_run "$LINENO"; then :
31705
31706 else
31707   no_sdl=yes
31708 fi
31709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31710   conftest.$ac_objext conftest.beam conftest.$ac_ext
31711 fi
31712
31713        CFLAGS="$ac_save_CFLAGS"
31714        LIBS="$ac_save_LIBS"
31715      fi
31716   fi
31717   if test "x$no_sdl" = x ; then
31718      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31719 $as_echo "yes" >&6; }
31720      :
31721   else
31722      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31723 $as_echo "no" >&6; }
31724      if test "$SDL_CONFIG" = "no" ; then
31725        echo "*** The sdl-config script installed by SDL could not be found"
31726        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31727        echo "*** your path, or set the SDL_CONFIG environment variable to the"
31728        echo "*** full path to sdl-config."
31729      else
31730        if test -f conf.sdltest ; then
31731         :
31732        else
31733           echo "*** Could not run SDL test program, checking why..."
31734           CFLAGS="$CFLAGS $SDL_CFLAGS"
31735           LIBS="$LIBS $SDL_LIBS"
31736           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31737 /* end confdefs.h.  */
31738
31739 #include <stdio.h>
31740 #include "SDL.h"
31741
31742 int main(int argc, char *argv[])
31743 { return 0; }
31744 #undef  main
31745 #define main K_and_R_C_main
31746
31747 int
31748 main ()
31749 {
31750  return 0;
31751   ;
31752   return 0;
31753 }
31754 _ACEOF
31755 if ac_fn_c_try_link "$LINENO"; then :
31756    echo "*** The test program compiled, but did not run. This usually means"
31757           echo "*** that the run-time linker is not finding SDL or finding the wrong"
31758           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31759           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31760           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31761           echo "*** is required on your system"
31762           echo "***"
31763           echo "*** If you have an old version installed, it is best to remove it, although"
31764           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31765 else
31766    echo "*** The test program failed to compile or link. See the file config.log for the"
31767           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31768           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31769           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
31770 fi
31771 rm -f core conftest.err conftest.$ac_objext \
31772     conftest$ac_exeext conftest.$ac_ext
31773           CFLAGS="$ac_save_CFLAGS"
31774           LIBS="$ac_save_LIBS"
31775        fi
31776      fi
31777      SDL_CFLAGS=""
31778      SDL_LIBS=""
31779
31780              passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-video-sdl requires library sdl, not found or failed test." >&5
31781 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
31782   fi
31783
31784
31785   rm -f conf.sdltest
31786
31787 elif test $pkg_failed = untried; then
31788         SDL_VERSION=1.2.0
31789
31790 # Check whether --with-sdl-prefix was given.
31791 if test "${with_sdl_prefix+set}" = set; then :
31792   withval=$with_sdl_prefix; sdl_prefix="$withval"
31793 else
31794   sdl_prefix=""
31795 fi
31796
31797
31798 # Check whether --with-sdl-exec-prefix was given.
31799 if test "${with_sdl_exec_prefix+set}" = set; then :
31800   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
31801 else
31802   sdl_exec_prefix=""
31803 fi
31804
31805 # Check whether --enable-sdltest was given.
31806 if test "${enable_sdltest+set}" = set; then :
31807   enableval=$enable_sdltest;
31808 else
31809   enable_sdltest=yes
31810 fi
31811
31812
31813   if test x$sdl_exec_prefix != x ; then
31814      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31815      if test x${SDL_CONFIG+set} != xset ; then
31816         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31817      fi
31818   fi
31819   if test x$sdl_prefix != x ; then
31820      sdl_args="$sdl_args --prefix=$sdl_prefix"
31821      if test x${SDL_CONFIG+set} != xset ; then
31822         SDL_CONFIG=$sdl_prefix/bin/sdl-config
31823      fi
31824   fi
31825
31826
31827   TMP_PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31828   # Extract the first word of "sdl-config", so it can be a program name with args.
31829 set dummy sdl-config; ac_word=$2
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31831 $as_echo_n "checking for $ac_word... " >&6; }
31832 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
31833   $as_echo_n "(cached) " >&6
31834 else
31835   case $SDL_CONFIG in
31836   [\\/]* | ?:[\\/]*)
31837   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31838   ;;
31839   *)
31840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31841 for as_dir in $TMP_PATH
31842 do
31843   IFS=$as_save_IFS
31844   test -z "$as_dir" && as_dir=.
31845     for ac_exec_ext in '' $ac_executable_extensions; do
31846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31847     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31849     break 2
31850   fi
31851 done
31852   done
31853 IFS=$as_save_IFS
31854
31855   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31856   ;;
31857 esac
31858 fi
31859 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31860 if test -n "$SDL_CONFIG"; then
31861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
31862 $as_echo "$SDL_CONFIG" >&6; }
31863 else
31864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31865 $as_echo "no" >&6; }
31866 fi
31867
31868
31869   min_sdl_version=$SDL_VERSION
31870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
31871 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
31872   no_sdl=""
31873   if test "$SDL_CONFIG" = "no" ; then
31874     no_sdl=yes
31875   else
31876     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31877     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31878
31879     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31880            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31881     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31882            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31883     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31884            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31885     if test "x$enable_sdltest" = "xyes" ; then
31886       ac_save_CFLAGS="$CFLAGS"
31887       ac_save_LIBS="$LIBS"
31888       CFLAGS="$CFLAGS $SDL_CFLAGS"
31889       LIBS="$LIBS $SDL_LIBS"
31890       rm -f conf.sdltest
31891       if test "$cross_compiling" = yes; then :
31892   echo $ac_n "cross compiling; assumed OK... $ac_c"
31893 else
31894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31895 /* end confdefs.h.  */
31896
31897 #include <stdio.h>
31898 #include <stdlib.h>
31899 #include <string.h>
31900 #include "SDL.h"
31901
31902 char*
31903 my_strdup (char *str)
31904 {
31905   char *new_str;
31906
31907   if (str)
31908     {
31909       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31910       strcpy (new_str, str);
31911     }
31912   else
31913     new_str = NULL;
31914
31915   return new_str;
31916 }
31917
31918 int main (int argc, char *argv[])
31919 {
31920   int major, minor, micro;
31921   char *tmp_version;
31922
31923   /* This hangs on some systems (?)
31924   system ("touch conf.sdltest");
31925   */
31926   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31927
31928   /* HP/UX 9 (%@#!) writes to sscanf strings */
31929   tmp_version = my_strdup("$min_sdl_version");
31930   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31931      printf("%s, bad version string\n", "$min_sdl_version");
31932      exit(1);
31933    }
31934
31935    if (($sdl_major_version > major) ||
31936       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31937       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31938     {
31939       return 0;
31940     }
31941   else
31942     {
31943       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31944       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31945       printf("*** best to upgrade to the required version.\n");
31946       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31947       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31948       printf("*** config.cache before re-running configure\n");
31949       return 1;
31950     }
31951 }
31952
31953
31954 _ACEOF
31955 if ac_fn_c_try_run "$LINENO"; then :
31956
31957 else
31958   no_sdl=yes
31959 fi
31960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31961   conftest.$ac_objext conftest.beam conftest.$ac_ext
31962 fi
31963
31964        CFLAGS="$ac_save_CFLAGS"
31965        LIBS="$ac_save_LIBS"
31966      fi
31967   fi
31968   if test "x$no_sdl" = x ; then
31969      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31970 $as_echo "yes" >&6; }
31971      :
31972   else
31973      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31974 $as_echo "no" >&6; }
31975      if test "$SDL_CONFIG" = "no" ; then
31976        echo "*** The sdl-config script installed by SDL could not be found"
31977        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31978        echo "*** your path, or set the SDL_CONFIG environment variable to the"
31979        echo "*** full path to sdl-config."
31980      else
31981        if test -f conf.sdltest ; then
31982         :
31983        else
31984           echo "*** Could not run SDL test program, checking why..."
31985           CFLAGS="$CFLAGS $SDL_CFLAGS"
31986           LIBS="$LIBS $SDL_LIBS"
31987           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31988 /* end confdefs.h.  */
31989
31990 #include <stdio.h>
31991 #include "SDL.h"
31992
31993 int main(int argc, char *argv[])
31994 { return 0; }
31995 #undef  main
31996 #define main K_and_R_C_main
31997
31998 int
31999 main ()
32000 {
32001  return 0;
32002   ;
32003   return 0;
32004 }
32005 _ACEOF
32006 if ac_fn_c_try_link "$LINENO"; then :
32007    echo "*** The test program compiled, but did not run. This usually means"
32008           echo "*** that the run-time linker is not finding SDL or finding the wrong"
32009           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
32010           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32011           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32012           echo "*** is required on your system"
32013           echo "***"
32014           echo "*** If you have an old version installed, it is best to remove it, although"
32015           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32016 else
32017    echo "*** The test program failed to compile or link. See the file config.log for the"
32018           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
32019           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
32020           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
32021 fi
32022 rm -f core conftest.err conftest.$ac_objext \
32023     conftest$ac_exeext conftest.$ac_ext
32024           CFLAGS="$ac_save_CFLAGS"
32025           LIBS="$ac_save_LIBS"
32026        fi
32027      fi
32028      SDL_CFLAGS=""
32029      SDL_LIBS=""
32030
32031              passed=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-video-sdl requires library sdl, not found or failed test." >&5
32032 $as_echo "gr-video-sdl requires library sdl, not found or failed test." >&6; }
32033   fi
32034
32035
32036   rm -f conf.sdltest
32037
32038 else
32039         SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
32040         SDL_LIBS=$pkg_cv_SDL_LIBS
32041         SDL_INCLUDEDIR=$pkg_cv_SDL_INCLUDEDIR
32042
32043         SDL_CPPFLAGS=""
32044         for flag in $SDL_CFLAGS; do
32045           case $flag in
32046           -I* | -D* | -U*) SDL_CPPFLAGS="$SDL_CPPFLAGS $flag" ;;
32047           esac
32048         done
32049         pkg_cv_SDL_CPPFLAGS=$SDL_CPPFLAGS
32050
32051
32052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32053 $as_echo "yes" >&6; }
32054         :
32055 fi
32056     fi
32057
32058     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
32059
32060
32061
32062
32063     gr_video_sdl_with=no
32064     if test $passed = no; then
32065         if test x$enable_gr_video_sdl = xyes; then
32066             as_fn_error "Component gr-video-sdl has errors; stopping." "$LINENO" 5
32067         else
32068             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-video-sdl." >&5
32069 $as_echo "Not building component gr-video-sdl." >&6; }
32070         fi
32071     else
32072         if test $passed = with; then
32073             with_dirs="$with_dirs gr-video-sdl"
32074
32075     if test "x${gr_video_sdl_INCLUDES}" != "x"; then
32076         if test "x$with_INCLUDES" = "x"; then
32077             with_INCLUDES="${gr_video_sdl_INCLUDES}"
32078         else
32079             with_INCLUDES="${gr_video_sdl_INCLUDES}"" ""$with_INCLUDES"
32080         fi
32081         gr_video_sdl_INCLUDES=
32082     fi
32083
32084
32085     if test "x${gr_video_sdl_SWIG_INCLUDES}" != "x"; then
32086         if test "x$with_SWIG_INCLUDES" = "x"; then
32087             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"
32088         else
32089             with_SWIG_INCLUDES="${gr_video_sdl_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
32090         fi
32091         gr_video_sdl_SWIG_INCLUDES=
32092     fi
32093
32094
32095     if test "x${gr_video_sdl_PYDIRPATH}" != "x"; then
32096         if test "x$with_PYDIRPATH" = "x"; then
32097             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"
32098         else
32099             with_PYDIRPATH="${gr_video_sdl_PYDIRPATH}"":""$with_PYDIRPATH"
32100         fi
32101         gr_video_sdl_PYDIRPATH=
32102     fi
32103
32104
32105     if test "x${gr_video_sdl_SWIGDIRPATH}" != "x"; then
32106         if test "x$with_SWIGDIRPATH" = "x"; then
32107             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"
32108         else
32109             with_SWIGDIRPATH="${gr_video_sdl_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
32110         fi
32111         gr_video_sdl_SWIGDIRPATH=
32112     fi
32113
32114
32115     if test "x${gr_video_sdl_LIBDIRPATH}" != "x"; then
32116         if test "x$with_LIBDIRPATH" = "x"; then
32117             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"
32118         else
32119             with_LIBDIRPATH="${gr_video_sdl_LIBDIRPATH}"":""$with_LIBDIRPATH"
32120         fi
32121         gr_video_sdl_LIBDIRPATH=
32122     fi
32123
32124             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl will be included from a pre-installed library and includes." >&5
32125 $as_echo "Component gr-video-sdl will be included from a pre-installed library and includes." >&6; }
32126             gr_video_sdl_with=yes
32127         else
32128             gr_video_sdl_LDFLAG=
32129             if test x$enable_gr_video_sdl != xno; then
32130                         ac_config_commands="$ac_config_commands run_tests_sdl"
32131
32132
32133                 build_dirs="$build_dirs gr-video-sdl"
32134                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl passed configuration checks; building." >&5
32135 $as_echo "Component gr-video-sdl passed configuration checks; building." >&6; }
32136             else
32137                 passed=no
32138                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-video-sdl passed configuration checks; but not building." >&5
32139 $as_echo "Component gr-video-sdl passed configuration checks; but not building." >&6; }
32140             fi
32141         fi
32142     fi
32143     if test $passed = no; then
32144         skipped_dirs="$skipped_dirs gr-video-sdl"
32145         gr_video_sdl_skipped=yes
32146     else
32147         gr_video_sdl_skipped=no
32148     fi
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160     passed=yes
32161     # Check whether --enable-gr-wxgui was given.
32162 if test "${enable_gr_wxgui+set}" = set; then :
32163   enableval=$enable_gr_wxgui;
32164 else
32165
32166         enable_gr_wxgui=$enable_all_components
32167         if test x$enable_all_components = xno; then
32168             passed=no
32169         fi
32170
32171 fi
32172
32173
32174
32175
32176     if test x = x; then
32177         pc_comp_name="gr-wxgui"
32178     else
32179         pc_comp_name=""
32180     fi
32181
32182
32183 # Check whether --with-gr-wxgui was given.
32184 if test "${with_gr_wxgui+set}" = set; then :
32185   withval=$with_gr_wxgui; if test "x$withval" != "xyes"; then
32186                     with_gr_wxgui_val=$withval
32187                     with_gr_wxgui=yes
32188                  fi
32189 fi
32190
32191     if test x$with_gr_wxgui = xyes; then
32192         if test x$enable_gr_wxgui = xyes; then
32193             as_fn_error "Component gr-wxgui: Cannot use both --enable and --with" "$LINENO" 5
32194         else
32195
32196         s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
32197
32198             l_PKG_CONFIG_PATH=$with_gr_wxgui_val
32199     if test "x$l_PKG_CONFIG_PATH" != "x"; then
32200         export PKG_CONFIG_PATH=$l_PKG_CONFIG_PATH
32201
32202                 if ! test -r ${l_PKG_CONFIG_PATH}/${pc_comp_name}.pc; then
32203             as_fn_error "Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with provided PKG_CONFIG_PATH = [ $l_PKG_CONFIG_PATH ] ." "$LINENO" 5
32204         fi
32205     fi
32206
32207         if test -n "$PKG_CONFIG" && \
32208     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
32209   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
32210   ac_status=$?
32211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32212   test $ac_status = 0; }; then
32213   passed=with; check1=yes
32214 else
32215
32216         check1=no
32217                                         if test "x$l_PKG_CONFIG_PATH" != "x"; then
32218             if test "x$s_PKG_CONFIG_PATH" != "x"; then
32219                 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
32220                 if test -n "$PKG_CONFIG" && \
32221     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${pc_comp_name}\""; } >&5
32222   ($PKG_CONFIG --exists --print-errors "${pc_comp_name}") 2>&5
32223   ac_status=$?
32224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32225   test $ac_status = 0; }; then
32226   passed=with
32227 else
32228   passed=no
32229 fi
32230             fi
32231         fi
32232         if test $passed != with; then
32233             as_fn_error "Component gr-wxgui: PKGCONFIG cannot find info for ${pc_comp_name}, with PKG_CONFIG_PATH = [ $PKG_CONFIG_PATH ] ." "$LINENO" 5
32234         fi
32235                 s_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
32236
32237 fi
32238
32239                 gr_wxgui_INCLUDES=`$PKG_CONFIG --cflags-only-I ${pc_comp_name}`
32240     gr_wxgui_LA=`$PKG_CONFIG --libs ${pc_comp_name}`
32241     gr_wxgui_INCLUDEDIR=`$PKG_CONFIG --variable=includedir ${pc_comp_name}`
32242
32243     if test x$check1 = xyes; then
32244                         if test "x$s_PKG_CONFIG_PATH" != "x"; then
32245             export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${s_PKG_CONFIG_PATH}
32246         fi
32247     fi
32248
32249             :
32250         fi
32251     fi
32252
32253
32254
32255
32256     if test $passed != no; then
32257         if test $passed = yes; then
32258                         if test x$gnuradio_core_skipped = xyes; then
32259                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
32260 $as_echo "Component gr-wxgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
32261                 passed=no
32262             fi
32263         else
32264                         if test x$gnuradio_core_with = xno; then
32265                 as_fn_error "Component gr-wxgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
32266             fi
32267         fi
32268     fi
32269
32270
32271                     if test $passed = yes; then
32272
32273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python wxWidgets wrappers >= 2.8" >&5
32274 $as_echo_n "checking for Python wxWidgets wrappers >= 2.8... " >&6; }
32275                 if test "wx.version().split()[0] >= "2.8""; then
32276         python_cmd='
32277 try:
32278     import wx
32279     assert wx.version().split()[0] >= "2.8"
32280 except: exit(1)'
32281                 else
32282         python_cmd='
32283 try: import wx
32284 except: exit(1)'
32285     fi
32286     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
32287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32288 $as_echo "no" >&6; }
32289         passed=no
32290     else
32291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32292 $as_echo "yes" >&6; }
32293
32294     fi
32295
32296
32297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Numeric Python extensions" >&5
32298 $as_echo_n "checking for Numeric Python extensions... " >&6; }
32299                 if test ""; then
32300         python_cmd='
32301 try:
32302     import numpy
32303     assert
32304 except: exit(1)'
32305                 else
32306         python_cmd='
32307 try: import numpy
32308 except: exit(1)'
32309     fi
32310     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
32311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32312 $as_echo "no" >&6; }
32313         passed=no
32314     else
32315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32316 $as_echo "yes" >&6; }
32317
32318     fi
32319
32320     fi
32321
32322     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/gr-wxgui.pc gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile gr-wxgui/src/python/plotter/Makefile"
32323
32324
32325
32326
32327     gr_wxgui_with=no
32328     if test $passed = no; then
32329         if test x$enable_gr_wxgui = xyes; then
32330             as_fn_error "Component gr-wxgui has errors; stopping." "$LINENO" 5
32331         else
32332             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-wxgui." >&5
32333 $as_echo "Not building component gr-wxgui." >&6; }
32334         fi
32335     else
32336         if test $passed = with; then
32337             with_dirs="$with_dirs gr-wxgui"
32338
32339     if test "x${gr_wxgui_INCLUDES}" != "x"; then
32340         if test "x$with_INCLUDES" = "x"; then
32341             with_INCLUDES="${gr_wxgui_INCLUDES}"
32342         else
32343             with_INCLUDES="${gr_wxgui_INCLUDES}"" ""$with_INCLUDES"
32344         fi
32345         gr_wxgui_INCLUDES=
32346     fi
32347
32348
32349     if test "x${gr_wxgui_SWIG_INCLUDES}" != "x"; then
32350         if test "x$with_SWIG_INCLUDES" = "x"; then
32351             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"
32352         else
32353             with_SWIG_INCLUDES="${gr_wxgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
32354         fi
32355         gr_wxgui_SWIG_INCLUDES=
32356     fi
32357
32358
32359     if test "x${gr_wxgui_PYDIRPATH}" != "x"; then
32360         if test "x$with_PYDIRPATH" = "x"; then
32361             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"
32362         else
32363             with_PYDIRPATH="${gr_wxgui_PYDIRPATH}"":""$with_PYDIRPATH"
32364         fi
32365         gr_wxgui_PYDIRPATH=
32366     fi
32367
32368
32369     if test "x${gr_wxgui_SWIGDIRPATH}" != "x"; then
32370         if test "x$with_SWIGDIRPATH" = "x"; then
32371             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"
32372         else
32373             with_SWIGDIRPATH="${gr_wxgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
32374         fi
32375         gr_wxgui_SWIGDIRPATH=
32376     fi
32377
32378
32379     if test "x${gr_wxgui_LIBDIRPATH}" != "x"; then
32380         if test "x$with_LIBDIRPATH" = "x"; then
32381             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"
32382         else
32383             with_LIBDIRPATH="${gr_wxgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
32384         fi
32385         gr_wxgui_LIBDIRPATH=
32386     fi
32387
32388             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui will be included from a pre-installed library and includes." >&5
32389 $as_echo "Component gr-wxgui will be included from a pre-installed library and includes." >&6; }
32390             gr_wxgui_with=yes
32391         else
32392             gr_wxgui_LDFLAG=
32393             if test x$enable_gr_wxgui != xno; then
32394                 :
32395                 build_dirs="$build_dirs gr-wxgui"
32396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui passed configuration checks; building." >&5
32397 $as_echo "Component gr-wxgui passed configuration checks; building." >&6; }
32398             else
32399                 passed=no
32400                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-wxgui passed configuration checks; but not building." >&5
32401 $as_echo "Component gr-wxgui passed configuration checks; but not building." >&6; }
32402             fi
32403         fi
32404     fi
32405     if test $passed = no; then
32406         skipped_dirs="$skipped_dirs gr-wxgui"
32407         gr_wxgui_skipped=yes
32408     else
32409         gr_wxgui_skipped=no
32410     fi
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423     passed=yes
32424     # Check whether --enable-gr-qtgui was given.
32425 if test "${enable_gr_qtgui+set}" = set; then :
32426   enableval=$enable_gr_qtgui;
32427 else
32428
32429         enable_gr_qtgui=$enable_all_components
32430         if test x$enable_all_components = xno; then
32431             passed=no
32432         fi
32433
32434 fi
32435
32436
32437
32438
32439
32440     if test $passed != no; then
32441         if test $passed = yes; then
32442                         if test x$gnuradio_core_skipped = xyes; then
32443                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
32444 $as_echo "Component gr-qtgui requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
32445                 passed=no
32446             fi
32447         else
32448                         if test x$gnuradio_core_with = xno; then
32449                 as_fn_error "Component gr-qtgui requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
32450             fi
32451         fi
32452     fi
32453
32454
32455
32456
32457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PyQt4 for Qt4" >&5
32458 $as_echo_n "checking for PyQt4 for Qt4... " >&6; }
32459                 if test "\
32460         PyQt4.QtCore.PYQT_VERSION >= 260000"; then
32461         python_cmd='
32462 try:
32463     import PyQt4.QtCore
32464     assert \
32465         PyQt4.QtCore.PYQT_VERSION >= 260000
32466 except: exit(1)'
32467                 else
32468         python_cmd='
32469 try: import PyQt4.QtCore
32470 except: exit(1)'
32471     fi
32472     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
32473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32474 $as_echo "no" >&6; }
32475         passed=no
32476     else
32477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32478 $as_echo "yes" >&6; }
32479         \
32480         passed=yes
32481     fi
32482
32483
32484     # Enable this if we want to test for PyQwt, too
32485     #PYTHON_CHECK_MODULE([PyQt4.Qwt5], [PyQwt5 for Qt4], \
32486     #   [passed=yes], [passed=no], \
32487     #   [PyQt4.Qwt5.QWT_VERSION >= 327000])
32488
32489 # Check for:
32490 #       QtOpenGL
32491 #       QtGui
32492 #       QtCore
32493 #       qwt
32494 #       qwtplot3d
32495 #       qt4
32496
32497 # qt4-core, qt4-gui, qwt5-qt4, qwt5-qt4-dev, libqwtplot3d-qt4, libqwtplot3d-qt4-dev, qt4-dev-tools
32498
32499     if test $passed = yes; then
32500
32501
32502
32503 pkg_failed=no
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTCORE" >&5
32505 $as_echo_n "checking for QTCORE... " >&6; }
32506
32507 if test -n "$PKG_CONFIG"; then
32508     if test -n "$QTCORE_CFLAGS"; then
32509         pkg_cv_QTCORE_CFLAGS="$QTCORE_CFLAGS"
32510     else
32511         if test -n "$PKG_CONFIG" && \
32512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
32513   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
32514   ac_status=$?
32515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32516   test $ac_status = 0; }; then
32517   pkg_cv_QTCORE_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.2" 2>/dev/null`
32518 else
32519   pkg_failed=yes
32520 fi
32521     fi
32522 else
32523         pkg_failed=untried
32524 fi
32525
32526 if test x$cross_compiling = xyes
32527 then
32528     if test -n "$PKG_CONFIG"; then
32529     if test -n "$QTCORE_LIBS"; then
32530         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
32531     else
32532         if test -n "$PKG_CONFIG" && \
32533     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
32534   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
32535   ac_status=$?
32536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32537   test $ac_status = 0; }; then
32538   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
32539 else
32540   pkg_failed=yes
32541 fi
32542     fi
32543 else
32544         pkg_failed=untried
32545 fi
32546     _pkg_tmp=
32547   for flag in $pkg_cv_QTCORE_LIBS; do
32548     case $flag in
32549     (-L/lib* | -L/usr/lib* )       ;; # ignore
32550     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
32551     esac
32552   done
32553   pkg_cv_QTCORE_LIBS="$_pkg_tmp"
32554 else
32555   if test -n "$PKG_CONFIG"; then
32556     if test -n "$QTCORE_LIBS"; then
32557         pkg_cv_QTCORE_LIBS="$QTCORE_LIBS"
32558     else
32559         if test -n "$PKG_CONFIG" && \
32560     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
32561   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
32562   ac_status=$?
32563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32564   test $ac_status = 0; }; then
32565   pkg_cv_QTCORE_LIBS=`$PKG_CONFIG --libs --static "QtCore >= 4.2" 2>/dev/null`
32566 else
32567   pkg_failed=yes
32568 fi
32569     fi
32570 else
32571         pkg_failed=untried
32572 fi
32573 fi
32574
32575 if test -n "$PKG_CONFIG"; then
32576     if test -n "$QTCORE_INCLUDEDIR"; then
32577         pkg_cv_QTCORE_INCLUDEDIR="$QTCORE_INCLUDEDIR"
32578     else
32579         if test -n "$PKG_CONFIG" && \
32580     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.2\""; } >&5
32581   ($PKG_CONFIG --exists --print-errors "QtCore >= 4.2") 2>&5
32582   ac_status=$?
32583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32584   test $ac_status = 0; }; then
32585   pkg_cv_QTCORE_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtCore >= 4.2" 2>/dev/null`
32586 else
32587   pkg_failed=yes
32588 fi
32589     fi
32590 else
32591         pkg_failed=untried
32592 fi
32593
32594
32595
32596
32597 if test $pkg_failed = yes; then
32598
32599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32600         _pkg_short_errors_supported=yes
32601 else
32602         _pkg_short_errors_supported=no
32603 fi
32604         if test $_pkg_short_errors_supported = yes; then
32605                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore >= 4.2"`
32606         else
32607                 QTCORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore >= 4.2"`
32608         fi
32609         # Put the nasty error message in config.log where it belongs
32610         echo "$QTCORE_PKG_ERRORS" >&5
32611
32612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613 $as_echo "no" >&6; }
32614                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtCore >= 4.2." >&5
32615 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
32616 elif test $pkg_failed = untried; then
32617         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtCore >= 4.2." >&5
32618 $as_echo "gr-qtgui requires libQtCore >= 4.2." >&6; }
32619 else
32620         QTCORE_CFLAGS=$pkg_cv_QTCORE_CFLAGS
32621         QTCORE_LIBS=$pkg_cv_QTCORE_LIBS
32622         QTCORE_INCLUDEDIR=$pkg_cv_QTCORE_INCLUDEDIR
32623
32624         QTCORE_CPPFLAGS=""
32625         for flag in $QTCORE_CFLAGS; do
32626           case $flag in
32627           -I* | -D* | -U*) QTCORE_CPPFLAGS="$QTCORE_CPPFLAGS $flag" ;;
32628           esac
32629         done
32630         pkg_cv_QTCORE_CPPFLAGS=$QTCORE_CPPFLAGS
32631
32632
32633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32634 $as_echo "yes" >&6; }
32635         :
32636 fi
32637
32638
32639
32640 pkg_failed=no
32641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTGUI" >&5
32642 $as_echo_n "checking for QTGUI... " >&6; }
32643
32644 if test -n "$PKG_CONFIG"; then
32645     if test -n "$QTGUI_CFLAGS"; then
32646         pkg_cv_QTGUI_CFLAGS="$QTGUI_CFLAGS"
32647     else
32648         if test -n "$PKG_CONFIG" && \
32649     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
32650   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
32651   ac_status=$?
32652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32653   test $ac_status = 0; }; then
32654   pkg_cv_QTGUI_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.2" 2>/dev/null`
32655 else
32656   pkg_failed=yes
32657 fi
32658     fi
32659 else
32660         pkg_failed=untried
32661 fi
32662
32663 if test x$cross_compiling = xyes
32664 then
32665     if test -n "$PKG_CONFIG"; then
32666     if test -n "$QTGUI_LIBS"; then
32667         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
32668     else
32669         if test -n "$PKG_CONFIG" && \
32670     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
32671   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
32672   ac_status=$?
32673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32674   test $ac_status = 0; }; then
32675   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
32676 else
32677   pkg_failed=yes
32678 fi
32679     fi
32680 else
32681         pkg_failed=untried
32682 fi
32683     _pkg_tmp=
32684   for flag in $pkg_cv_QTGUI_LIBS; do
32685     case $flag in
32686     (-L/lib* | -L/usr/lib* )       ;; # ignore
32687     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
32688     esac
32689   done
32690   pkg_cv_QTGUI_LIBS="$_pkg_tmp"
32691 else
32692   if test -n "$PKG_CONFIG"; then
32693     if test -n "$QTGUI_LIBS"; then
32694         pkg_cv_QTGUI_LIBS="$QTGUI_LIBS"
32695     else
32696         if test -n "$PKG_CONFIG" && \
32697     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
32698   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
32699   ac_status=$?
32700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32701   test $ac_status = 0; }; then
32702   pkg_cv_QTGUI_LIBS=`$PKG_CONFIG --libs --static "QtGui >= 4.2" 2>/dev/null`
32703 else
32704   pkg_failed=yes
32705 fi
32706     fi
32707 else
32708         pkg_failed=untried
32709 fi
32710 fi
32711
32712 if test -n "$PKG_CONFIG"; then
32713     if test -n "$QTGUI_INCLUDEDIR"; then
32714         pkg_cv_QTGUI_INCLUDEDIR="$QTGUI_INCLUDEDIR"
32715     else
32716         if test -n "$PKG_CONFIG" && \
32717     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtGui >= 4.2\""; } >&5
32718   ($PKG_CONFIG --exists --print-errors "QtGui >= 4.2") 2>&5
32719   ac_status=$?
32720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32721   test $ac_status = 0; }; then
32722   pkg_cv_QTGUI_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtGui >= 4.2" 2>/dev/null`
32723 else
32724   pkg_failed=yes
32725 fi
32726     fi
32727 else
32728         pkg_failed=untried
32729 fi
32730
32731
32732
32733
32734 if test $pkg_failed = yes; then
32735
32736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32737         _pkg_short_errors_supported=yes
32738 else
32739         _pkg_short_errors_supported=no
32740 fi
32741         if test $_pkg_short_errors_supported = yes; then
32742                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtGui >= 4.2"`
32743         else
32744                 QTGUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.2"`
32745         fi
32746         # Put the nasty error message in config.log where it belongs
32747         echo "$QTGUI_PKG_ERRORS" >&5
32748
32749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32750 $as_echo "no" >&6; }
32751                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtGui >= 4.2." >&5
32752 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
32753 elif test $pkg_failed = untried; then
32754         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtGui >= 4.2." >&5
32755 $as_echo "gr-qtgui requires libQtGui >= 4.2." >&6; }
32756 else
32757         QTGUI_CFLAGS=$pkg_cv_QTGUI_CFLAGS
32758         QTGUI_LIBS=$pkg_cv_QTGUI_LIBS
32759         QTGUI_INCLUDEDIR=$pkg_cv_QTGUI_INCLUDEDIR
32760
32761         QTGUI_CPPFLAGS=""
32762         for flag in $QTGUI_CFLAGS; do
32763           case $flag in
32764           -I* | -D* | -U*) QTGUI_CPPFLAGS="$QTGUI_CPPFLAGS $flag" ;;
32765           esac
32766         done
32767         pkg_cv_QTGUI_CPPFLAGS=$QTGUI_CPPFLAGS
32768
32769
32770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32771 $as_echo "yes" >&6; }
32772         :
32773 fi
32774
32775
32776
32777 pkg_failed=no
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QTOPENGL" >&5
32779 $as_echo_n "checking for QTOPENGL... " >&6; }
32780
32781 if test -n "$PKG_CONFIG"; then
32782     if test -n "$QTOPENGL_CFLAGS"; then
32783         pkg_cv_QTOPENGL_CFLAGS="$QTOPENGL_CFLAGS"
32784     else
32785         if test -n "$PKG_CONFIG" && \
32786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
32787   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
32788   ac_status=$?
32789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32790   test $ac_status = 0; }; then
32791   pkg_cv_QTOPENGL_CFLAGS=`$PKG_CONFIG --cflags "QtOpenGL >= 4.2" 2>/dev/null`
32792 else
32793   pkg_failed=yes
32794 fi
32795     fi
32796 else
32797         pkg_failed=untried
32798 fi
32799
32800 if test x$cross_compiling = xyes
32801 then
32802     if test -n "$PKG_CONFIG"; then
32803     if test -n "$QTOPENGL_LIBS"; then
32804         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
32805     else
32806         if test -n "$PKG_CONFIG" && \
32807     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
32808   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
32809   ac_status=$?
32810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32811   test $ac_status = 0; }; then
32812   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
32813 else
32814   pkg_failed=yes
32815 fi
32816     fi
32817 else
32818         pkg_failed=untried
32819 fi
32820     _pkg_tmp=
32821   for flag in $pkg_cv_QTOPENGL_LIBS; do
32822     case $flag in
32823     (-L/lib* | -L/usr/lib* )       ;; # ignore
32824     (*) _pkg_tmp="$_pkg_tmp $flag" ;;
32825     esac
32826   done
32827   pkg_cv_QTOPENGL_LIBS="$_pkg_tmp"
32828 else
32829   if test -n "$PKG_CONFIG"; then
32830     if test -n "$QTOPENGL_LIBS"; then
32831         pkg_cv_QTOPENGL_LIBS="$QTOPENGL_LIBS"
32832     else
32833         if test -n "$PKG_CONFIG" && \
32834     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
32835   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
32836   ac_status=$?
32837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32838   test $ac_status = 0; }; then
32839   pkg_cv_QTOPENGL_LIBS=`$PKG_CONFIG --libs --static "QtOpenGL >= 4.2" 2>/dev/null`
32840 else
32841   pkg_failed=yes
32842 fi
32843     fi
32844 else
32845         pkg_failed=untried
32846 fi
32847 fi
32848
32849 if test -n "$PKG_CONFIG"; then
32850     if test -n "$QTOPENGL_INCLUDEDIR"; then
32851         pkg_cv_QTOPENGL_INCLUDEDIR="$QTOPENGL_INCLUDEDIR"
32852     else
32853         if test -n "$PKG_CONFIG" && \
32854     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtOpenGL >= 4.2\""; } >&5
32855   ($PKG_CONFIG --exists --print-errors "QtOpenGL >= 4.2") 2>&5
32856   ac_status=$?
32857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32858   test $ac_status = 0; }; then
32859   pkg_cv_QTOPENGL_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "QtOpenGL >= 4.2" 2>/dev/null`
32860 else
32861   pkg_failed=yes
32862 fi
32863     fi
32864 else
32865         pkg_failed=untried
32866 fi
32867
32868
32869
32870
32871 if test $pkg_failed = yes; then
32872
32873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32874         _pkg_short_errors_supported=yes
32875 else
32876         _pkg_short_errors_supported=no
32877 fi
32878         if test $_pkg_short_errors_supported = yes; then
32879                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
32880         else
32881                 QTOPENGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtOpenGL >= 4.2"`
32882         fi
32883         # Put the nasty error message in config.log where it belongs
32884         echo "$QTOPENGL_PKG_ERRORS" >&5
32885
32886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32887 $as_echo "no" >&6; }
32888                 passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
32889 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
32890 elif test $pkg_failed = untried; then
32891         passed=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: gr-qtgui requires libQtOpenGL >- 4.2." >&5
32892 $as_echo "gr-qtgui requires libQtOpenGL >- 4.2." >&6; }
32893 else
32894         QTOPENGL_CFLAGS=$pkg_cv_QTOPENGL_CFLAGS
32895         QTOPENGL_LIBS=$pkg_cv_QTOPENGL_LIBS
32896         QTOPENGL_INCLUDEDIR=$pkg_cv_QTOPENGL_INCLUDEDIR
32897
32898         QTOPENGL_CPPFLAGS=""
32899         for flag in $QTOPENGL_CFLAGS; do
32900           case $flag in
32901           -I* | -D* | -U*) QTOPENGL_CPPFLAGS="$QTOPENGL_CPPFLAGS $flag" ;;
32902           esac
32903         done
32904         pkg_cv_QTOPENGL_CPPFLAGS=$QTOPENGL_CPPFLAGS
32905
32906
32907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32908 $as_echo "yes" >&6; }
32909         :
32910 fi
32911
32912
32913         QWT_LIBRARY1=-lqwt-qt4
32914     QWT_LIBRARY2=-lqwt
32915
32916         ac_ext=cpp
32917 ac_cpp='$CXXCPP $CPPFLAGS'
32918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32921
32922     qwt_save_CPPFLAGS="$CPPFLAGS"
32923     qwt_save_LIBS="$LIBS"
32924     libqwt_ok=yes
32925
32926
32927 # Check whether --with-qwt-libdir was given.
32928 if test "${with_qwt_libdir+set}" = set; then :
32929   withval=$with_qwt_libdir; qwt_libdir="$withval"
32930 else
32931   qwt_libdir=""
32932 fi
32933
32934
32935
32936 # Check whether --with-qwt-incdir was given.
32937 if test "${with_qwt_incdir+set}" = set; then :
32938   withval=$with_qwt_incdir; qwt_incdir="$withval"
32939 else
32940   qwt_incdir=""
32941 fi
32942
32943
32944 # Check whether --with-qwt-lib was given.
32945 if test "${with_qwt_lib+set}" = set; then :
32946   withval=$with_qwt_lib; qwt_lib="$withval"
32947 else
32948   qwt_lib=""
32949 fi
32950
32951
32952                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS"
32953
32954         if test "$qwt_incdir" = "" ; then
32955                 ac_fn_cxx_check_header_mongrel "$LINENO" "qwt/qwt.h" "ac_cv_header_qwt_qwt_h" "$ac_includes_default"
32956 if test "x$ac_cv_header_qwt_qwt_h" = x""yes; then :
32957   qwt_qwt_h=yes
32958 else
32959   qwt_qwt_h=no
32960
32961 fi
32962
32963
32964                 if test "$qwt_qwt_h" = "yes" ; then
32965             QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt"
32966         else
32967                         ac_fn_cxx_check_header_mongrel "$LINENO" "qwt-qt4/qwt.h" "ac_cv_header_qwt_qt4_qwt_h" "$ac_includes_default"
32968 if test "x$ac_cv_header_qwt_qt4_qwt_h" = x""yes; then :
32969   qwt_qt4_qwt_h=yes
32970 else
32971   qwt_qt4_qwt_h=no
32972
32973 fi
32974
32975
32976                         if test "$qwt_qt4_qwt_h" = "yes" ; then
32977                 QWT_CFLAGS="$QWT_CFLAGS -I/usr/include/qwt-qt4"
32978             else
32979                                 libqwt_ok=no
32980             fi
32981         fi
32982     else
32983                 QWT_CFLAGS="$QWT_CFLAGS -I$qwt_incdir"
32984         as_ac_Header=`$as_echo "ac_cv_header_$qwt_incdir/qwt.h" | $as_tr_sh`
32985 ac_fn_cxx_check_header_mongrel "$LINENO" "$qwt_incdir/qwt.h" "$as_ac_Header" "$ac_includes_default"
32986 eval as_val=\$$as_ac_Header
32987    if test "x$as_val" = x""yes; then :
32988
32989 else
32990   libqwt_ok=no
32991 fi
32992
32993
32994     fi
32995
32996         if test "$libqwt_ok" = "yes" ; then
32997
32998
32999                 if test "$qwt_libdir" != "" ; then
33000             QWT_LIBS="-L$qwt_libdir $QWT_LIBS"
33001         fi
33002
33003                 CPPFLAGS="$CPPFLAGS $QWT_CFLAGS"
33004         LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt"
33005
33006                 if test "$qwt_lib" != "" ; then
33007             as_ac_Lib=`$as_echo "ac_cv_lib_$qwt_lib''_main" | $as_tr_sh`
33008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$qwt_lib" >&5
33009 $as_echo_n "checking for main in -l$qwt_lib... " >&6; }
33010 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
33011   $as_echo_n "(cached) " >&6
33012 else
33013   ac_check_lib_save_LIBS=$LIBS
33014 LIBS="-l$qwt_lib  $LIBS"
33015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33016 /* end confdefs.h.  */
33017
33018
33019 int
33020 main ()
33021 {
33022 return main ();
33023   ;
33024   return 0;
33025 }
33026 _ACEOF
33027 if ac_fn_cxx_try_link "$LINENO"; then :
33028   eval "$as_ac_Lib=yes"
33029 else
33030   eval "$as_ac_Lib=no"
33031 fi
33032 rm -f core conftest.err conftest.$ac_objext \
33033     conftest$ac_exeext conftest.$ac_ext
33034 LIBS=$ac_check_lib_save_LIBS
33035 fi
33036 eval ac_res=\$$as_ac_Lib
33037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33038 $as_echo "$ac_res" >&6; }
33039 eval as_val=\$$as_ac_Lib
33040    if test "x$as_val" = x""yes; then :
33041   libqwt_ok=yes
33042 else
33043   libqwt_ok=no
33044 fi
33045
33046
33047         else
33048                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwt" >&5
33049 $as_echo_n "checking for main in -lqwt... " >&6; }
33050 if test "${ac_cv_lib_qwt_main+set}" = set; then :
33051   $as_echo_n "(cached) " >&6
33052 else
33053   ac_check_lib_save_LIBS=$LIBS
33054 LIBS="-lqwt  $LIBS"
33055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33056 /* end confdefs.h.  */
33057
33058
33059 int
33060 main ()
33061 {
33062 return main ();
33063   ;
33064   return 0;
33065 }
33066 _ACEOF
33067 if ac_fn_cxx_try_link "$LINENO"; then :
33068   ac_cv_lib_qwt_main=yes
33069 else
33070   ac_cv_lib_qwt_main=no
33071 fi
33072 rm -f core conftest.err conftest.$ac_objext \
33073     conftest$ac_exeext conftest.$ac_ext
33074 LIBS=$ac_check_lib_save_LIBS
33075 fi
33076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwt_main" >&5
33077 $as_echo "$ac_cv_lib_qwt_main" >&6; }
33078 if test "x$ac_cv_lib_qwt_main" = x""yes; then :
33079   libqwt_ok=yes
33080 else
33081   libqwt_ok=no
33082 fi
33083
33084
33085                         if test "$libqwt_ok" = "yes" ; then
33086                 QWT_LIBS="$QWT_LIBS -lqwt"
33087             else
33088                                 LIBS="$qwt_save_LIBS $QT_LIBS $QWT_LIBS -lqwt-qt4"
33089                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwt-qt4" >&5
33090 $as_echo_n "checking for main in -lqwt-qt4... " >&6; }
33091 if test "${ac_cv_lib_qwt_qt4_main+set}" = set; then :
33092   $as_echo_n "(cached) " >&6
33093 else
33094   ac_check_lib_save_LIBS=$LIBS
33095 LIBS="-lqwt-qt4  $LIBS"
33096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33097 /* end confdefs.h.  */
33098
33099
33100 int
33101 main ()
33102 {
33103 return main ();
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 if ac_fn_cxx_try_link "$LINENO"; then :
33109   ac_cv_lib_qwt_qt4_main=yes
33110 else
33111   ac_cv_lib_qwt_qt4_main=no
33112 fi
33113 rm -f core conftest.err conftest.$ac_objext \
33114     conftest$ac_exeext conftest.$ac_ext
33115 LIBS=$ac_check_lib_save_LIBS
33116 fi
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwt_qt4_main" >&5
33118 $as_echo "$ac_cv_lib_qwt_qt4_main" >&6; }
33119 if test "x$ac_cv_lib_qwt_qt4_main" = x""yes; then :
33120   libqwt_ok=yes
33121 else
33122   libqwt_ok=no
33123 fi
33124
33125                 if test "$libqwt_ok" = "yes" ; then
33126                     QWT_LIBS="$QWT_LIBS -lqwt-qt4"
33127                 else
33128                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not link to libqwt.so" >&5
33129 $as_echo "Could not link to libqwt.so" >&6; }
33130                 fi
33131             fi
33132         fi
33133     else
33134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find qwt headers" >&5
33135 $as_echo "Could not find qwt headers" >&6; }
33136     fi
33137
33138         LIBS="$qwt_save_LIBS"
33139     CPPFLAGS="$qwt_save_CPPFLAGS"
33140     ac_ext=c
33141 ac_cpp='$CPP $CPPFLAGS'
33142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33145
33146
33147         if test "x$libqwt_ok" = "xyes" ; then
33148         :
33149     else
33150         QWT_CFLAGS=""
33151         QWT_LIBDIRS=""
33152         passed=no
33153     fi
33154
33155
33156
33157
33158
33159                 if test "$passed" = "yes"; then
33160
33161
33162         ac_ext=cpp
33163 ac_cpp='$CXXCPP $CPPFLAGS'
33164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33167
33168     qwtplot3d_save_CPPFLAGS="$CPPFLAGS"
33169     qwtplot3d_save_LIBS="$LIBS"
33170     libqwtplot3d_ok=yes
33171
33172
33173 # Check whether --with-qwtplot3d-libdir was given.
33174 if test "${with_qwtplot3d_libdir+set}" = set; then :
33175   withval=$with_qwtplot3d_libdir; qwtplot3d_libdir="$withval"
33176 else
33177   qwtplot3d_libdir=""
33178 fi
33179
33180
33181
33182 # Check whether --with-qwtplot3d-incdir was given.
33183 if test "${with_qwtplot3d_incdir+set}" = set; then :
33184   withval=$with_qwtplot3d_incdir; qwtplot3d_incdir="$withval"
33185 else
33186   qwtplot3d_incdir=""
33187 fi
33188
33189
33190
33191 # Check whether --with-qwtplot3d-lib was given.
33192 if test "${with_qwtplot3d_lib+set}" = set; then :
33193   withval=$with_qwtplot3d_lib; qwtplot3d_lib="$withval"
33194 else
33195   qwtplot3d_lib=""
33196 fi
33197
33198
33199
33200                 CPPFLAGS="$CPPFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS $QWT_CFLAGS"
33201
33202         if test "$qwtplot3d_incdir" = "" ; then
33203                 ac_fn_cxx_check_header_mongrel "$LINENO" "qwtplot3d/qwt3d_plot.h" "ac_cv_header_qwtplot3d_qwt3d_plot_h" "$ac_includes_default"
33204 if test "x$ac_cv_header_qwtplot3d_qwt3d_plot_h" = x""yes; then :
33205   qwtplot3d_qwtplot3d_h=yes
33206 else
33207   qwtplot3d_qwtplot3d_h=no
33208
33209 fi
33210
33211
33212                 if test "$qwtplot3d_qwtplot3d_h" = "yes" ; then
33213             QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d"
33214         else
33215                         ac_fn_cxx_check_header_mongrel "$LINENO" "qwtplot3d-qt4/qwt3d_plot.h" "ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" "$ac_includes_default"
33216 if test "x$ac_cv_header_qwtplot3d_qt4_qwt3d_plot_h" = x""yes; then :
33217   qwtplot3d_qt4_qwtplot3d_h=yes
33218 else
33219   qwtplot3d_qt4_qwtplot3d_h=no
33220
33221 fi
33222
33223
33224                         if test "$qwtplot3d_qt4_qwtplot3d_h" = "yes" ; then
33225                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I/usr/include/qwtplot3d-qt4"
33226             else
33227                                 libqwtplot3d_ok=no
33228             fi
33229         fi
33230     else
33231                 QWTPLOT3D_CFLAGS="$QWTPLOT3D_CFLAGS -I$qwtplot3d_incdir"
33232         as_ac_Header=`$as_echo "ac_cv_header_$qwtplot3d_incdir/qwt3d_plot.h" | $as_tr_sh`
33233 ac_fn_cxx_check_header_mongrel "$LINENO" "$qwtplot3d_incdir/qwt3d_plot.h" "$as_ac_Header" "$ac_includes_default"
33234 eval as_val=\$$as_ac_Header
33235    if test "x$as_val" = x""yes; then :
33236
33237 else
33238   libqwtplot3d_ok=no
33239 fi
33240
33241
33242     fi
33243
33244         if test "$libqwtplot3d_ok" = "yes" ; then
33245
33246
33247                 if test "$qwtplot3d_libdir" != "" ; then
33248             QWTPLOT3D_LIBS="-L$qwtplot3d_libdir $QWTPLOT3D_LIBS"
33249         fi
33250
33251                 CPPFLAGS="$CPPFLAGS $QWTPLOT3D_CFLAGS"
33252         LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d-qt4"
33253
33254                 if test "$qwtplot3d_lib" != "" ; then
33255             as_ac_Lib=`$as_echo "ac_cv_lib_$qwtplot3d_lib''_main" | $as_tr_sh`
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$qwtplot3d_lib" >&5
33257 $as_echo_n "checking for main in -l$qwtplot3d_lib... " >&6; }
33258 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
33259   $as_echo_n "(cached) " >&6
33260 else
33261   ac_check_lib_save_LIBS=$LIBS
33262 LIBS="-l$qwtplot3d_lib  $LIBS"
33263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33264 /* end confdefs.h.  */
33265
33266
33267 int
33268 main ()
33269 {
33270 return main ();
33271   ;
33272   return 0;
33273 }
33274 _ACEOF
33275 if ac_fn_cxx_try_link "$LINENO"; then :
33276   eval "$as_ac_Lib=yes"
33277 else
33278   eval "$as_ac_Lib=no"
33279 fi
33280 rm -f core conftest.err conftest.$ac_objext \
33281     conftest$ac_exeext conftest.$ac_ext
33282 LIBS=$ac_check_lib_save_LIBS
33283 fi
33284 eval ac_res=\$$as_ac_Lib
33285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33286 $as_echo "$ac_res" >&6; }
33287 eval as_val=\$$as_ac_Lib
33288    if test "x$as_val" = x""yes; then :
33289   libqwtplot3d_ok=yes
33290 else
33291   libqwtplot3d_ok=no
33292 fi
33293
33294
33295         else
33296                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwtplot3d-qt4" >&5
33297 $as_echo_n "checking for main in -lqwtplot3d-qt4... " >&6; }
33298 if test "${ac_cv_lib_qwtplot3d_qt4_main+set}" = set; then :
33299   $as_echo_n "(cached) " >&6
33300 else
33301   ac_check_lib_save_LIBS=$LIBS
33302 LIBS="-lqwtplot3d-qt4  $LIBS"
33303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33304 /* end confdefs.h.  */
33305
33306
33307 int
33308 main ()
33309 {
33310 return main ();
33311   ;
33312   return 0;
33313 }
33314 _ACEOF
33315 if ac_fn_cxx_try_link "$LINENO"; then :
33316   ac_cv_lib_qwtplot3d_qt4_main=yes
33317 else
33318   ac_cv_lib_qwtplot3d_qt4_main=no
33319 fi
33320 rm -f core conftest.err conftest.$ac_objext \
33321     conftest$ac_exeext conftest.$ac_ext
33322 LIBS=$ac_check_lib_save_LIBS
33323 fi
33324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwtplot3d_qt4_main" >&5
33325 $as_echo "$ac_cv_lib_qwtplot3d_qt4_main" >&6; }
33326 if test "x$ac_cv_lib_qwtplot3d_qt4_main" = x""yes; then :
33327   libqwtplot3d_ok=yes
33328 else
33329   libqwtplot3d_ok=no
33330 fi
33331
33332
33333                         if test "$libqwtplot3d_ok" = "yes" ; then
33334                 QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d-qt4"
33335             else
33336                                 LIBS="$qwtplot3d_save_LIBS $QT_LIBS $QWTPLOT3D_LIBS -lqwtplot3d"
33337                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lqwtplot3d" >&5
33338 $as_echo_n "checking for main in -lqwtplot3d... " >&6; }
33339 if test "${ac_cv_lib_qwtplot3d_main+set}" = set; then :
33340   $as_echo_n "(cached) " >&6
33341 else
33342   ac_check_lib_save_LIBS=$LIBS
33343 LIBS="-lqwtplot3d  $LIBS"
33344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33345 /* end confdefs.h.  */
33346
33347
33348 int
33349 main ()
33350 {
33351 return main ();
33352   ;
33353   return 0;
33354 }
33355 _ACEOF
33356 if ac_fn_cxx_try_link "$LINENO"; then :
33357   ac_cv_lib_qwtplot3d_main=yes
33358 else
33359   ac_cv_lib_qwtplot3d_main=no
33360 fi
33361 rm -f core conftest.err conftest.$ac_objext \
33362     conftest$ac_exeext conftest.$ac_ext
33363 LIBS=$ac_check_lib_save_LIBS
33364 fi
33365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qwtplot3d_main" >&5
33366 $as_echo "$ac_cv_lib_qwtplot3d_main" >&6; }
33367 if test "x$ac_cv_lib_qwtplot3d_main" = x""yes; then :
33368   libqwtplot3d_ok=yes
33369 else
33370   libqwtplot3d_ok=no
33371 fi
33372
33373                 if test "$libqwtplot3d_ok" = "yes" ; then
33374                     QWTPLOT3D_LIBS="$QWTPLOT3D_LIBS -lqwtplot3d"
33375                 else
33376                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not link to libqwtplot3d.so" >&5
33377 $as_echo "Could not link to libqwtplot3d.so" >&6; }
33378                 fi
33379             fi
33380         fi
33381     else
33382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find qwtplot3d headers" >&5
33383 $as_echo "Could not find qwtplot3d headers" >&6; }
33384     fi
33385
33386         LIBS="$qwtplot3d_save_LIBS"
33387     CPPFLAGS="$qwtplot3d_save_CPPFLAGS"
33388     ac_ext=c
33389 ac_cpp='$CPP $CPPFLAGS'
33390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33393
33394
33395         if test "x$libqwtplot3d_ok" = "xyes" ; then
33396         :
33397     else
33398         QWTPLOT3D_CFLAGS=""
33399         QWTPLOT3D_LIBDIRS=""
33400         passed=no
33401     fi
33402
33403
33404
33405
33406         fi
33407
33408                         QT_INCLUDES="$QWT_CFLAGS $QWTPLOT3D_CFLAGS $QTCORE_CFLAGS $QTGUI_CFLAGS"
33409         QT_LIBS="$QWT_LIBS $QWTPLOT3D_LIBS $QTOPENGL_LIBS"
33410
33411                                 for i in $QWT_CFLAGS $QWTPLOT3D_CFLAGS; do
33412             QMAKE_INCLUDES="$QMAKE_INCLUDES ${i##-I}"
33413         done
33414
33415         QT_MOC_EXEC=`pkg-config --variable=moc_location QtCore`
33416         QT_UIC_EXEC=`pkg-config --variable=uic_location QtCore`
33417
33418
33419
33420
33421
33422
33423     fi
33424
33425     if test "$passed" = "no"; then
33426          if false; then
33427   BUILD_QT_TRUE=
33428   BUILD_QT_FALSE='#'
33429 else
33430   BUILD_QT_TRUE='#'
33431   BUILD_QT_FALSE=
33432 fi
33433
33434     else
33435          if true; then
33436   BUILD_QT_TRUE=
33437   BUILD_QT_FALSE='#'
33438 else
33439   BUILD_QT_TRUE='#'
33440   BUILD_QT_FALSE=
33441 fi
33442
33443     fi
33444
33445     ac_config_files="$ac_config_files gr-qtgui/Makefile gr-qtgui/src/Makefile gr-qtgui/src/lib/Makefile gr-qtgui/src/python/Makefile"
33446
33447
33448
33449
33450     gr_qtgui_with=no
33451     if test $passed = no; then
33452         if test x$enable_gr_qtgui = xyes; then
33453             as_fn_error "Component gr-qtgui has errors; stopping." "$LINENO" 5
33454         else
33455             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-qtgui." >&5
33456 $as_echo "Not building component gr-qtgui." >&6; }
33457         fi
33458     else
33459         if test $passed = with; then
33460             with_dirs="$with_dirs gr-qtgui"
33461
33462     if test "x${gr_qtgui_INCLUDES}" != "x"; then
33463         if test "x$with_INCLUDES" = "x"; then
33464             with_INCLUDES="${gr_qtgui_INCLUDES}"
33465         else
33466             with_INCLUDES="${gr_qtgui_INCLUDES}"" ""$with_INCLUDES"
33467         fi
33468         gr_qtgui_INCLUDES=
33469     fi
33470
33471
33472     if test "x${gr_qtgui_SWIG_INCLUDES}" != "x"; then
33473         if test "x$with_SWIG_INCLUDES" = "x"; then
33474             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"
33475         else
33476             with_SWIG_INCLUDES="${gr_qtgui_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33477         fi
33478         gr_qtgui_SWIG_INCLUDES=
33479     fi
33480
33481
33482     if test "x${gr_qtgui_PYDIRPATH}" != "x"; then
33483         if test "x$with_PYDIRPATH" = "x"; then
33484             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"
33485         else
33486             with_PYDIRPATH="${gr_qtgui_PYDIRPATH}"":""$with_PYDIRPATH"
33487         fi
33488         gr_qtgui_PYDIRPATH=
33489     fi
33490
33491
33492     if test "x${gr_qtgui_SWIGDIRPATH}" != "x"; then
33493         if test "x$with_SWIGDIRPATH" = "x"; then
33494             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"
33495         else
33496             with_SWIGDIRPATH="${gr_qtgui_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33497         fi
33498         gr_qtgui_SWIGDIRPATH=
33499     fi
33500
33501
33502     if test "x${gr_qtgui_LIBDIRPATH}" != "x"; then
33503         if test "x$with_LIBDIRPATH" = "x"; then
33504             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"
33505         else
33506             with_LIBDIRPATH="${gr_qtgui_LIBDIRPATH}"":""$with_LIBDIRPATH"
33507         fi
33508         gr_qtgui_LIBDIRPATH=
33509     fi
33510
33511             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui will be included from a pre-installed library and includes." >&5
33512 $as_echo "Component gr-qtgui will be included from a pre-installed library and includes." >&6; }
33513             gr_qtgui_with=yes
33514         else
33515             gr_qtgui_LDFLAG=
33516             if test x$enable_gr_qtgui != xno; then
33517                 :
33518                 build_dirs="$build_dirs gr-qtgui"
33519                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui passed configuration checks; building." >&5
33520 $as_echo "Component gr-qtgui passed configuration checks; building." >&6; }
33521             else
33522                 passed=no
33523                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-qtgui passed configuration checks; but not building." >&5
33524 $as_echo "Component gr-qtgui passed configuration checks; but not building." >&6; }
33525             fi
33526         fi
33527     fi
33528     if test $passed = no; then
33529         skipped_dirs="$skipped_dirs gr-qtgui"
33530         gr_qtgui_skipped=yes
33531     else
33532         gr_qtgui_skipped=no
33533     fi
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545     passed=yes
33546     # Check whether --enable-gr-sounder was given.
33547 if test "${enable_gr_sounder+set}" = set; then :
33548   enableval=$enable_gr_sounder;
33549 else
33550
33551         enable_gr_sounder=$enable_all_components
33552         if test x$enable_all_components = xno; then
33553             passed=no
33554         fi
33555
33556 fi
33557
33558
33559
33560
33561
33562     if test $passed != no; then
33563         if test $passed = yes; then
33564                         if test x$usrp_skipped = xyes; then
33565                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&5
33566 $as_echo "Component gr-sounder requires usrp, which is not being built or specified via pre-installed files." >&6; }
33567                 passed=no
33568             fi
33569         else
33570                         if test x$usrp_with = xno; then
33571                 as_fn_error "Component gr-sounder requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
33572             fi
33573         fi
33574     fi
33575
33576
33577     if test $passed != no; then
33578         if test $passed = yes; then
33579                         if test x$gnuradio_core_skipped = xyes; then
33580                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
33581 $as_echo "Component gr-sounder requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
33582                 passed=no
33583             fi
33584         else
33585                         if test x$gnuradio_core_with = xno; then
33586                 as_fn_error "Component gr-sounder requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
33587             fi
33588         fi
33589     fi
33590
33591
33592     ac_config_files="$ac_config_files gr-sounder/Makefile gr-sounder/doc/Makefile gr-sounder/src/Makefile gr-sounder/src/fpga/Makefile gr-sounder/src/fpga/top/Makefile gr-sounder/src/fpga/lib/Makefile gr-sounder/src/fpga/tb/Makefile gr-sounder/src/lib/Makefile gr-sounder/src/python/Makefile gr-sounder/src/python/run_tests"
33593
33594
33595
33596
33597     gr_sounder_with=no
33598     if test $passed = no; then
33599         if test x$enable_gr_sounder = xyes; then
33600             as_fn_error "Component gr-sounder has errors; stopping." "$LINENO" 5
33601         else
33602             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-sounder." >&5
33603 $as_echo "Not building component gr-sounder." >&6; }
33604         fi
33605     else
33606         if test $passed = with; then
33607             with_dirs="$with_dirs gr-sounder"
33608
33609     if test "x${gr_sounder_INCLUDES}" != "x"; then
33610         if test "x$with_INCLUDES" = "x"; then
33611             with_INCLUDES="${gr_sounder_INCLUDES}"
33612         else
33613             with_INCLUDES="${gr_sounder_INCLUDES}"" ""$with_INCLUDES"
33614         fi
33615         gr_sounder_INCLUDES=
33616     fi
33617
33618
33619     if test "x${gr_sounder_SWIG_INCLUDES}" != "x"; then
33620         if test "x$with_SWIG_INCLUDES" = "x"; then
33621             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"
33622         else
33623             with_SWIG_INCLUDES="${gr_sounder_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33624         fi
33625         gr_sounder_SWIG_INCLUDES=
33626     fi
33627
33628
33629     if test "x${gr_sounder_PYDIRPATH}" != "x"; then
33630         if test "x$with_PYDIRPATH" = "x"; then
33631             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"
33632         else
33633             with_PYDIRPATH="${gr_sounder_PYDIRPATH}"":""$with_PYDIRPATH"
33634         fi
33635         gr_sounder_PYDIRPATH=
33636     fi
33637
33638
33639     if test "x${gr_sounder_SWIGDIRPATH}" != "x"; then
33640         if test "x$with_SWIGDIRPATH" = "x"; then
33641             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"
33642         else
33643             with_SWIGDIRPATH="${gr_sounder_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33644         fi
33645         gr_sounder_SWIGDIRPATH=
33646     fi
33647
33648
33649     if test "x${gr_sounder_LIBDIRPATH}" != "x"; then
33650         if test "x$with_LIBDIRPATH" = "x"; then
33651             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"
33652         else
33653             with_LIBDIRPATH="${gr_sounder_LIBDIRPATH}"":""$with_LIBDIRPATH"
33654         fi
33655         gr_sounder_LIBDIRPATH=
33656     fi
33657
33658             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder will be included from a pre-installed library and includes." >&5
33659 $as_echo "Component gr-sounder will be included from a pre-installed library and includes." >&6; }
33660             gr_sounder_with=yes
33661         else
33662             gr_sounder_LDFLAG=
33663             if test x$enable_gr_sounder != xno; then
33664                         ac_config_commands="$ac_config_commands run_tests_sounder"
33665
33666
33667                 build_dirs="$build_dirs gr-sounder"
33668                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder passed configuration checks; building." >&5
33669 $as_echo "Component gr-sounder passed configuration checks; building." >&6; }
33670             else
33671                 passed=no
33672                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-sounder passed configuration checks; but not building." >&5
33673 $as_echo "Component gr-sounder passed configuration checks; but not building." >&6; }
33674             fi
33675         fi
33676     fi
33677     if test $passed = no; then
33678         skipped_dirs="$skipped_dirs gr-sounder"
33679         gr_sounder_skipped=yes
33680     else
33681         gr_sounder_skipped=no
33682     fi
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693     passed=yes
33694     # Check whether --enable-gr-utils was given.
33695 if test "${enable_gr_utils+set}" = set; then :
33696   enableval=$enable_gr_utils;
33697 else
33698
33699         enable_gr_utils=$enable_all_components
33700         if test x$enable_all_components = xno; then
33701             passed=no
33702         fi
33703
33704 fi
33705
33706
33707
33708
33709
33710     if test $passed != no; then
33711         if test $passed = yes; then
33712                         if test x$gnuradio_core_skipped = xyes; then
33713                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
33714 $as_echo "Component gr-utils requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
33715                 passed=no
33716             fi
33717         else
33718                         if test x$gnuradio_core_with = xno; then
33719                 as_fn_error "Component gr-utils requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
33720             fi
33721         fi
33722     fi
33723
33724
33725     if test $passed != no; then
33726         if test $passed = yes; then
33727                         if test x$usrp_skipped = xyes; then
33728                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&5
33729 $as_echo "Component gr-utils requires usrp, which is not being built or specified via pre-installed files." >&6; }
33730                 passed=no
33731             fi
33732         else
33733                         if test x$usrp_with = xno; then
33734                 as_fn_error "Component gr-utils requires usrp to be included as --with-usrp[=arg]" "$LINENO" 5
33735             fi
33736         fi
33737     fi
33738
33739
33740     if test $passed != no; then
33741         if test $passed = yes; then
33742                         if test x$gr_wxgui_skipped = xyes; then
33743                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
33744 $as_echo "Component gr-utils requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
33745                 passed=no
33746             fi
33747         else
33748                         if test x$gr_wxgui_with = xno; then
33749                 as_fn_error "Component gr-utils requires gr-wxgui to be included as --with-gr-wxgui[=arg]" "$LINENO" 5
33750             fi
33751         fi
33752     fi
33753
33754
33755     ac_config_files="$ac_config_files gr-utils/Makefile gr-utils/src/Makefile gr-utils/src/lib/Makefile gr-utils/src/python/Makefile"
33756
33757
33758
33759
33760     gr_utils_with=no
33761     if test $passed = no; then
33762         if test x$enable_gr_utils = xyes; then
33763             as_fn_error "Component gr-utils has errors; stopping." "$LINENO" 5
33764         else
33765             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gr-utils." >&5
33766 $as_echo "Not building component gr-utils." >&6; }
33767         fi
33768     else
33769         if test $passed = with; then
33770             with_dirs="$with_dirs gr-utils"
33771
33772     if test "x${gr_utils_INCLUDES}" != "x"; then
33773         if test "x$with_INCLUDES" = "x"; then
33774             with_INCLUDES="${gr_utils_INCLUDES}"
33775         else
33776             with_INCLUDES="${gr_utils_INCLUDES}"" ""$with_INCLUDES"
33777         fi
33778         gr_utils_INCLUDES=
33779     fi
33780
33781
33782     if test "x${gr_utils_SWIG_INCLUDES}" != "x"; then
33783         if test "x$with_SWIG_INCLUDES" = "x"; then
33784             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"
33785         else
33786             with_SWIG_INCLUDES="${gr_utils_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33787         fi
33788         gr_utils_SWIG_INCLUDES=
33789     fi
33790
33791
33792     if test "x${gr_utils_PYDIRPATH}" != "x"; then
33793         if test "x$with_PYDIRPATH" = "x"; then
33794             with_PYDIRPATH="${gr_utils_PYDIRPATH}"
33795         else
33796             with_PYDIRPATH="${gr_utils_PYDIRPATH}"":""$with_PYDIRPATH"
33797         fi
33798         gr_utils_PYDIRPATH=
33799     fi
33800
33801
33802     if test "x${gr_utils_SWIGDIRPATH}" != "x"; then
33803         if test "x$with_SWIGDIRPATH" = "x"; then
33804             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"
33805         else
33806             with_SWIGDIRPATH="${gr_utils_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33807         fi
33808         gr_utils_SWIGDIRPATH=
33809     fi
33810
33811
33812     if test "x${gr_utils_LIBDIRPATH}" != "x"; then
33813         if test "x$with_LIBDIRPATH" = "x"; then
33814             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"
33815         else
33816             with_LIBDIRPATH="${gr_utils_LIBDIRPATH}"":""$with_LIBDIRPATH"
33817         fi
33818         gr_utils_LIBDIRPATH=
33819     fi
33820
33821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils will be included from a pre-installed library and includes." >&5
33822 $as_echo "Component gr-utils will be included from a pre-installed library and includes." >&6; }
33823             gr_utils_with=yes
33824         else
33825             gr_utils_LDFLAG=
33826             if test x$enable_gr_utils != xno; then
33827                 :
33828                 build_dirs="$build_dirs gr-utils"
33829                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils passed configuration checks; building." >&5
33830 $as_echo "Component gr-utils passed configuration checks; building." >&6; }
33831             else
33832                 passed=no
33833                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gr-utils passed configuration checks; but not building." >&5
33834 $as_echo "Component gr-utils passed configuration checks; but not building." >&6; }
33835             fi
33836         fi
33837     fi
33838     if test $passed = no; then
33839         skipped_dirs="$skipped_dirs gr-utils"
33840         gr_utils_skipped=yes
33841     else
33842         gr_utils_skipped=no
33843     fi
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854     passed=yes
33855     # Check whether --enable-gnuradio-examples was given.
33856 if test "${enable_gnuradio_examples+set}" = set; then :
33857   enableval=$enable_gnuradio_examples;
33858 else
33859
33860         enable_gnuradio_examples=$enable_all_components
33861         if test x$enable_all_components = xno; then
33862             passed=no
33863         fi
33864
33865 fi
33866
33867
33868
33869
33870
33871     if test $passed != no; then
33872         if test $passed = yes; then
33873                         if test x$gnuradio_core_skipped = xyes; then
33874                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&5
33875 $as_echo "Component gnuradio-examples requires gnuradio-core, which is not being built or specified via pre-installed files." >&6; }
33876                 passed=no
33877             fi
33878         else
33879                         if test x$gnuradio_core_with = xno; then
33880                 as_fn_error "Component gnuradio-examples requires gnuradio-core to be included as --with-gnuradio-core[=arg]" "$LINENO" 5
33881             fi
33882         fi
33883     fi
33884
33885
33886     ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/c++/Makefile gnuradio-examples/python/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/digital-bert/Makefile gnuradio-examples/python/mp-sched/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/network/Makefile gnuradio-examples/python/ofdm/Makefile gnuradio-examples/python/usrp/Makefile gnuradio-examples/python/usrp2/Makefile"
33887
33888
33889
33890
33891     gnuradio_examples_with=no
33892     if test $passed = no; then
33893         if test x$enable_gnuradio_examples = xyes; then
33894             as_fn_error "Component gnuradio-examples has errors; stopping." "$LINENO" 5
33895         else
33896             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component gnuradio-examples." >&5
33897 $as_echo "Not building component gnuradio-examples." >&6; }
33898         fi
33899     else
33900         if test $passed = with; then
33901             with_dirs="$with_dirs gnuradio-examples"
33902
33903     if test "x${gnuradio_examples_INCLUDES}" != "x"; then
33904         if test "x$with_INCLUDES" = "x"; then
33905             with_INCLUDES="${gnuradio_examples_INCLUDES}"
33906         else
33907             with_INCLUDES="${gnuradio_examples_INCLUDES}"" ""$with_INCLUDES"
33908         fi
33909         gnuradio_examples_INCLUDES=
33910     fi
33911
33912
33913     if test "x${gnuradio_examples_SWIG_INCLUDES}" != "x"; then
33914         if test "x$with_SWIG_INCLUDES" = "x"; then
33915             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"
33916         else
33917             with_SWIG_INCLUDES="${gnuradio_examples_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
33918         fi
33919         gnuradio_examples_SWIG_INCLUDES=
33920     fi
33921
33922
33923     if test "x${gnuradio_examples_PYDIRPATH}" != "x"; then
33924         if test "x$with_PYDIRPATH" = "x"; then
33925             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"
33926         else
33927             with_PYDIRPATH="${gnuradio_examples_PYDIRPATH}"":""$with_PYDIRPATH"
33928         fi
33929         gnuradio_examples_PYDIRPATH=
33930     fi
33931
33932
33933     if test "x${gnuradio_examples_SWIGDIRPATH}" != "x"; then
33934         if test "x$with_SWIGDIRPATH" = "x"; then
33935             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"
33936         else
33937             with_SWIGDIRPATH="${gnuradio_examples_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
33938         fi
33939         gnuradio_examples_SWIGDIRPATH=
33940     fi
33941
33942
33943     if test "x${gnuradio_examples_LIBDIRPATH}" != "x"; then
33944         if test "x$with_LIBDIRPATH" = "x"; then
33945             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"
33946         else
33947             with_LIBDIRPATH="${gnuradio_examples_LIBDIRPATH}"":""$with_LIBDIRPATH"
33948         fi
33949         gnuradio_examples_LIBDIRPATH=
33950     fi
33951
33952             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples will be included from a pre-installed library and includes." >&5
33953 $as_echo "Component gnuradio-examples will be included from a pre-installed library and includes." >&6; }
33954             gnuradio_examples_with=yes
33955         else
33956             gnuradio_examples_LDFLAG=
33957             if test x$enable_gnuradio_examples != xno; then
33958                 :
33959                 build_dirs="$build_dirs gnuradio-examples"
33960                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples passed configuration checks; building." >&5
33961 $as_echo "Component gnuradio-examples passed configuration checks; building." >&6; }
33962             else
33963                 passed=no
33964                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component gnuradio-examples passed configuration checks; but not building." >&5
33965 $as_echo "Component gnuradio-examples passed configuration checks; but not building." >&6; }
33966             fi
33967         fi
33968     fi
33969     if test $passed = no; then
33970         skipped_dirs="$skipped_dirs gnuradio-examples"
33971         gnuradio_examples_skipped=yes
33972     else
33973         gnuradio_examples_skipped=no
33974     fi
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985     passed=yes
33986     # Check whether --enable-grc was given.
33987 if test "${enable_grc+set}" = set; then :
33988   enableval=$enable_grc;
33989 else
33990
33991         enable_grc=$enable_all_components
33992         if test x$enable_all_components = xno; then
33993             passed=no
33994         fi
33995
33996 fi
33997
33998
33999
34000
34001
34002     if test $passed != no; then
34003         if test $passed = yes; then
34004                         if test x$gr_wxgui_skipped = xyes; then
34005                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&5
34006 $as_echo "Component grc requires gr-wxgui, which is not being built or specified via pre-installed files." >&6; }
34007                 passed=no
34008             fi
34009         else
34010                         if test x$gr_wxgui_with = xno; then
34011                 as_fn_error "Component grc requires gr-wxgui to be included as --with-gr-wxgui[=arg]" "$LINENO" 5
34012             fi
34013         fi
34014     fi
34015
34016
34017     # Extract the first word of "xdg-mime", so it can be a program name with args.
34018 set dummy xdg-mime; ac_word=$2
34019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34020 $as_echo_n "checking for $ac_word... " >&6; }
34021 if test "${ac_cv_prog_XDG_UTILS+set}" = set; then :
34022   $as_echo_n "(cached) " >&6
34023 else
34024   if test -n "$XDG_UTILS"; then
34025   ac_cv_prog_XDG_UTILS="$XDG_UTILS" # Let the user override the test.
34026 else
34027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34028 for as_dir in $PATH
34029 do
34030   IFS=$as_save_IFS
34031   test -z "$as_dir" && as_dir=.
34032     for ac_exec_ext in '' $ac_executable_extensions; do
34033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34034     ac_cv_prog_XDG_UTILS="true"
34035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34036     break 2
34037   fi
34038 done
34039   done
34040 IFS=$as_save_IFS
34041
34042   test -z "$ac_cv_prog_XDG_UTILS" && ac_cv_prog_XDG_UTILS="false"
34043 fi
34044 fi
34045 XDG_UTILS=$ac_cv_prog_XDG_UTILS
34046 if test -n "$XDG_UTILS"; then
34047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDG_UTILS" >&5
34048 $as_echo "$XDG_UTILS" >&6; }
34049 else
34050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34051 $as_echo "no" >&6; }
34052 fi
34053
34054
34055      if $XDG_UTILS; then
34056   XDG_UTILS_TRUE=
34057   XDG_UTILS_FALSE='#'
34058 else
34059   XDG_UTILS_TRUE='#'
34060   XDG_UTILS_FALSE=
34061 fi
34062
34063
34064                 if test $passed = yes; then
34065
34066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 2.5" >&5
34067 $as_echo_n "checking for Python >= 2.5... " >&6; }
34068                 if test "sys.version.split()[0] >= "2.5""; then
34069         python_cmd='
34070 try:
34071     import sys
34072     assert sys.version.split()[0] >= "2.5"
34073 except: exit(1)'
34074                 else
34075         python_cmd='
34076 try: import sys
34077 except: exit(1)'
34078     fi
34079     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
34080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34081 $as_echo "no" >&6; }
34082         passed=no
34083     else
34084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34085 $as_echo "yes" >&6; }
34086
34087     fi
34088
34089
34090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python Cheetah templates >= 2.0.0" >&5
34091 $as_echo_n "checking for Python Cheetah templates >= 2.0.0... " >&6; }
34092                 if test "Cheetah.Version >= "2.0.0""; then
34093         python_cmd='
34094 try:
34095     import Cheetah
34096     assert Cheetah.Version >= "2.0.0"
34097 except: exit(1)'
34098                 else
34099         python_cmd='
34100 try: import Cheetah
34101 except: exit(1)'
34102     fi
34103     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
34104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34105 $as_echo "no" >&6; }
34106         passed=no
34107     else
34108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34109 $as_echo "yes" >&6; }
34110
34111     fi
34112
34113
34114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python lxml wrappers >= 2.0.0" >&5
34115 $as_echo_n "checking for Python lxml wrappers >= 2.0.0... " >&6; }
34116                 if test "lxml.etree.LXML_VERSION >= (2, 0, 0, 0)"; then
34117         python_cmd='
34118 try:
34119     import lxml.etree
34120     assert lxml.etree.LXML_VERSION >= (2, 0, 0, 0)
34121 except: exit(1)'
34122                 else
34123         python_cmd='
34124 try: import lxml.etree
34125 except: exit(1)'
34126     fi
34127     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
34128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34129 $as_echo "no" >&6; }
34130         passed=no
34131     else
34132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133 $as_echo "yes" >&6; }
34134
34135     fi
34136
34137
34138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python gtk wrappers >= 2.10.0" >&5
34139 $as_echo_n "checking for Python gtk wrappers >= 2.10.0... " >&6; }
34140                 if test "gtk.pygtk_version >= (2, 10, 0)"; then
34141         python_cmd='
34142 try:
34143     import gtk
34144     assert gtk.pygtk_version >= (2, 10, 0)
34145 except: exit(1)'
34146                 else
34147         python_cmd='
34148 try: import gtk
34149 except: exit(1)'
34150     fi
34151     if ! $PYTHON -c "$python_cmd" 2> /dev/null; then
34152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34153 $as_echo "no" >&6; }
34154         passed=no
34155     else
34156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34157 $as_echo "yes" >&6; }
34158
34159     fi
34160
34161     fi
34162
34163                     if test `${PYTHON} -c "import sys; print sys.platform"` = 'darwin'; then
34164         PYTHONW=pythonw
34165     else
34166         PYTHONW=python
34167     fi
34168
34169
34170     ac_config_files="$ac_config_files grc/Makefile grc/base/Makefile grc/blocks/Makefile grc/examples/Makefile grc/freedesktop/Makefile grc/grc_gnuradio/Makefile grc/gui/Makefile grc/python/Makefile grc/scripts/Makefile"
34171
34172
34173
34174
34175     grc_with=no
34176     if test $passed = no; then
34177         if test x$enable_grc = xyes; then
34178             as_fn_error "Component grc has errors; stopping." "$LINENO" 5
34179         else
34180             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component grc." >&5
34181 $as_echo "Not building component grc." >&6; }
34182         fi
34183     else
34184         if test $passed = with; then
34185             with_dirs="$with_dirs grc"
34186
34187     if test "x${grc_INCLUDES}" != "x"; then
34188         if test "x$with_INCLUDES" = "x"; then
34189             with_INCLUDES="${grc_INCLUDES}"
34190         else
34191             with_INCLUDES="${grc_INCLUDES}"" ""$with_INCLUDES"
34192         fi
34193         grc_INCLUDES=
34194     fi
34195
34196
34197     if test "x${grc_SWIG_INCLUDES}" != "x"; then
34198         if test "x$with_SWIG_INCLUDES" = "x"; then
34199             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"
34200         else
34201             with_SWIG_INCLUDES="${grc_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
34202         fi
34203         grc_SWIG_INCLUDES=
34204     fi
34205
34206
34207     if test "x${grc_PYDIRPATH}" != "x"; then
34208         if test "x$with_PYDIRPATH" = "x"; then
34209             with_PYDIRPATH="${grc_PYDIRPATH}"
34210         else
34211             with_PYDIRPATH="${grc_PYDIRPATH}"":""$with_PYDIRPATH"
34212         fi
34213         grc_PYDIRPATH=
34214     fi
34215
34216
34217     if test "x${grc_SWIGDIRPATH}" != "x"; then
34218         if test "x$with_SWIGDIRPATH" = "x"; then
34219             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"
34220         else
34221             with_SWIGDIRPATH="${grc_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
34222         fi
34223         grc_SWIGDIRPATH=
34224     fi
34225
34226
34227     if test "x${grc_LIBDIRPATH}" != "x"; then
34228         if test "x$with_LIBDIRPATH" = "x"; then
34229             with_LIBDIRPATH="${grc_LIBDIRPATH}"
34230         else
34231             with_LIBDIRPATH="${grc_LIBDIRPATH}"":""$with_LIBDIRPATH"
34232         fi
34233         grc_LIBDIRPATH=
34234     fi
34235
34236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc will be included from a pre-installed library and includes." >&5
34237 $as_echo "Component grc will be included from a pre-installed library and includes." >&6; }
34238             grc_with=yes
34239         else
34240             grc_LDFLAG=
34241             if test x$enable_grc != xno; then
34242                 :
34243                 build_dirs="$build_dirs grc"
34244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc passed configuration checks; building." >&5
34245 $as_echo "Component grc passed configuration checks; building." >&6; }
34246             else
34247                 passed=no
34248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component grc passed configuration checks; but not building." >&5
34249 $as_echo "Component grc passed configuration checks; but not building." >&6; }
34250             fi
34251         fi
34252     fi
34253     if test $passed = no; then
34254         skipped_dirs="$skipped_dirs grc"
34255         grc_skipped=yes
34256     else
34257         grc_skipped=no
34258     fi
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270     passed=yes
34271     # Check whether --enable-docs was given.
34272 if test "${enable_docs+set}" = set; then :
34273   enableval=$enable_docs;
34274 else
34275
34276         enable_docs=$enable_all_components
34277         if test x$enable_all_components = xno; then
34278             passed=no
34279         fi
34280
34281 fi
34282
34283
34284
34285
34286     ac_config_files="$ac_config_files docs/Makefile docs/doxygen/Doxyfile docs/doxygen/Makefile docs/doxygen/other/Makefile docs/doxygen/xml-swig/Makefile"
34287
34288
34289
34290
34291     docs_with=no
34292     if test $passed = no; then
34293         if test x$enable_docs = xyes; then
34294             as_fn_error "Component docs has errors; stopping." "$LINENO" 5
34295         else
34296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building component docs." >&5
34297 $as_echo "Not building component docs." >&6; }
34298         fi
34299     else
34300         if test $passed = with; then
34301             with_dirs="$with_dirs docs"
34302
34303     if test "x${docs_INCLUDES}" != "x"; then
34304         if test "x$with_INCLUDES" = "x"; then
34305             with_INCLUDES="${docs_INCLUDES}"
34306         else
34307             with_INCLUDES="${docs_INCLUDES}"" ""$with_INCLUDES"
34308         fi
34309         docs_INCLUDES=
34310     fi
34311
34312
34313     if test "x${docs_SWIG_INCLUDES}" != "x"; then
34314         if test "x$with_SWIG_INCLUDES" = "x"; then
34315             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"
34316         else
34317             with_SWIG_INCLUDES="${docs_SWIG_INCLUDES}"" ""$with_SWIG_INCLUDES"
34318         fi
34319         docs_SWIG_INCLUDES=
34320     fi
34321
34322
34323     if test "x${docs_PYDIRPATH}" != "x"; then
34324         if test "x$with_PYDIRPATH" = "x"; then
34325             with_PYDIRPATH="${docs_PYDIRPATH}"
34326         else
34327             with_PYDIRPATH="${docs_PYDIRPATH}"":""$with_PYDIRPATH"
34328         fi
34329         docs_PYDIRPATH=
34330     fi
34331
34332
34333     if test "x${docs_SWIGDIRPATH}" != "x"; then
34334         if test "x$with_SWIGDIRPATH" = "x"; then
34335             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"
34336         else
34337             with_SWIGDIRPATH="${docs_SWIGDIRPATH}"":""$with_SWIGDIRPATH"
34338         fi
34339         docs_SWIGDIRPATH=
34340     fi
34341
34342
34343     if test "x${docs_LIBDIRPATH}" != "x"; then
34344         if test "x$with_LIBDIRPATH" = "x"; then
34345             with_LIBDIRPATH="${docs_LIBDIRPATH}"
34346         else
34347             with_LIBDIRPATH="${docs_LIBDIRPATH}"":""$with_LIBDIRPATH"
34348         fi
34349         docs_LIBDIRPATH=
34350     fi
34351
34352             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs will be included from a pre-installed library and includes." >&5
34353 $as_echo "Component docs will be included from a pre-installed library and includes." >&6; }
34354             docs_with=yes
34355         else
34356             docs_LDFLAG=
34357             if test x$enable_docs != xno; then
34358                 :
34359                 build_dirs="$build_dirs docs"
34360                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs passed configuration checks; building." >&5
34361 $as_echo "Component docs passed configuration checks; building." >&6; }
34362             else
34363                 passed=no
34364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Component docs passed configuration checks; but not building." >&5
34365 $as_echo "Component docs passed configuration checks; but not building." >&6; }
34366             fi
34367         fi
34368     fi
34369     if test $passed = no; then
34370         skipped_dirs="$skipped_dirs docs"
34371         docs_skipped=yes
34372     else
34373         docs_skipped=no
34374     fi
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384 # Each component is now either to be built, was skipped, will be
34385 # included from pre-installed libraries and includes, or failed
34386 # dependencies.
34387 build_dirs=$build_dirs
34388
34389 skipped_dirs=$skipped_dirs
34390
34391 with_dirs=$with_dirs
34392
34393
34394 # fix for older autotools that don't define these by default
34395
34396
34397
34398
34399 # 'with' variables - the pre-installed libraries, includes, and paths
34400 # - must always come last in the lists, so they require special
34401 # treatment.
34402
34403
34404
34405
34406
34407
34408 # Local files tweaked by AC
34409 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
34410
34411
34412 ac_config_commands="$ac_config_commands run_tests_build"
34413
34414
34415 cat >confcache <<\_ACEOF
34416 # This file is a shell script that caches the results of configure
34417 # tests run on this system so they can be shared between configure
34418 # scripts and configure runs, see configure's option --config-cache.
34419 # It is not useful on other systems.  If it contains results you don't
34420 # want to keep, you may remove or edit it.
34421 #
34422 # config.status only pays attention to the cache file if you give it
34423 # the --recheck option to rerun configure.
34424 #
34425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34427 # following values.
34428
34429 _ACEOF
34430
34431 # The following way of writing the cache mishandles newlines in values,
34432 # but we know of no workaround that is simple, portable, and efficient.
34433 # So, we kill variables containing newlines.
34434 # Ultrix sh set writes to stderr and can't be redirected directly,
34435 # and sets the high bit in the cache file unless we assign to the vars.
34436 (
34437   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34438     eval ac_val=\$$ac_var
34439     case $ac_val in #(
34440     *${as_nl}*)
34441       case $ac_var in #(
34442       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34444       esac
34445       case $ac_var in #(
34446       _ | IFS | as_nl) ;; #(
34447       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34448       *) { eval $ac_var=; unset $ac_var;} ;;
34449       esac ;;
34450     esac
34451   done
34452
34453   (set) 2>&1 |
34454     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34455     *${as_nl}ac_space=\ *)
34456       # `set' does not quote correctly, so add quotes: double-quote
34457       # substitution turns \\\\ into \\, and sed turns \\ into \.
34458       sed -n \
34459         "s/'/'\\\\''/g;
34460           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34461       ;; #(
34462     *)
34463       # `set' quotes correctly as required by POSIX, so do not add quotes.
34464       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34465       ;;
34466     esac |
34467     sort
34468 ) |
34469   sed '
34470      /^ac_cv_env_/b end
34471      t clear
34472      :clear
34473      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34474      t end
34475      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34476      :end' >>confcache
34477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34478   if test -w "$cache_file"; then
34479     test "x$cache_file" != "x/dev/null" &&
34480       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34481 $as_echo "$as_me: updating cache $cache_file" >&6;}
34482     cat confcache >$cache_file
34483   else
34484     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34485 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34486   fi
34487 fi
34488 rm -f confcache
34489
34490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34491 # Let make expand exec_prefix.
34492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34493
34494 DEFS=-DHAVE_CONFIG_H
34495
34496 ac_libobjs=
34497 ac_ltlibobjs=
34498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34499   # 1. Remove the extension, and $U if already installed.
34500   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34501   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34502   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34503   #    will be set to the directory where LIBOBJS objects are built.
34504   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34505   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34506 done
34507 LIBOBJS=$ac_libobjs
34508
34509 LTLIBOBJS=$ac_ltlibobjs
34510
34511
34512  if test -n "$EXEEXT"; then
34513   am__EXEEXT_TRUE=
34514   am__EXEEXT_FALSE='#'
34515 else
34516   am__EXEEXT_TRUE='#'
34517   am__EXEEXT_FALSE=
34518 fi
34519
34520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34521   as_fn_error "conditional \"AMDEP\" was never defined.
34522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34523 fi
34524 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34525   as_fn_error "conditional \"am__fastdepCC\" was never defined.
34526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34527 fi
34528 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34529   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
34530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34531 fi
34532 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
34533   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
34534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34535 fi
34536 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34537   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
34538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34539 fi
34540 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34541   as_fn_error "conditional \"ENABLE_FORTRAN\" was never defined.
34542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34543 fi
34544 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34545   as_fn_error "conditional \"HAS_XMLTO\" was never defined.
34546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34547 fi
34548 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34549   as_fn_error "conditional \"OMNITHREAD_POSIX\" was never defined.
34550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34551 fi
34552 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34553   as_fn_error "conditional \"OMNITHREAD_NT\" was never defined.
34554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34555 fi
34556
34557 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34558   as_fn_error "conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34560 fi
34561 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34562   as_fn_error "conditional \"DOC\" was never defined.
34563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34564 fi
34565 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34566   as_fn_error "conditional \"MD_CPU_x86\" was never defined.
34567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34568 fi
34569 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34570   as_fn_error "conditional \"MD_SUBCPU_x86_64\" was never defined.
34571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34572 fi
34573 if test -z "${MD_CPU_powerpc_TRUE}" && test -z "${MD_CPU_powerpc_FALSE}"; then
34574   as_fn_error "conditional \"MD_CPU_powerpc\" was never defined.
34575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34576 fi
34577 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34578   as_fn_error "conditional \"MD_CPU_generic\" was never defined.
34579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34580 fi
34581 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34582   as_fn_error "conditional \"FUSB_TECH_darwin\" was never defined.
34583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34584 fi
34585 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34586   as_fn_error "conditional \"FUSB_TECH_win32\" was never defined.
34587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34588 fi
34589 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34590   as_fn_error "conditional \"FUSB_TECH_generic\" was never defined.
34591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34592 fi
34593 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34594   as_fn_error "conditional \"FUSB_TECH_linux\" was never defined.
34595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34596 fi
34597 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34598   as_fn_error "conditional \"FUSB_TECH_ra_wb\" was never defined.
34599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34600 fi
34601
34602 if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
34603   as_fn_error "conditional \"BUILD_QT\" was never defined.
34604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34605 fi
34606 if test -z "${BUILD_QT_TRUE}" && test -z "${BUILD_QT_FALSE}"; then
34607   as_fn_error "conditional \"BUILD_QT\" was never defined.
34608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34609 fi
34610 if test -z "${XDG_UTILS_TRUE}" && test -z "${XDG_UTILS_FALSE}"; then
34611   as_fn_error "conditional \"XDG_UTILS\" was never defined.
34612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34613 fi
34614
34615 : ${CONFIG_STATUS=./config.status}
34616 ac_write_fail=0
34617 ac_clean_files_save=$ac_clean_files
34618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34621 as_write_fail=0
34622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34623 #! $SHELL
34624 # Generated by $as_me.
34625 # Run this file to recreate the current configuration.
34626 # Compiler output produced by configure, useful for debugging
34627 # configure, is in config.log if it exists.
34628
34629 debug=false
34630 ac_cs_recheck=false
34631 ac_cs_silent=false
34632
34633 SHELL=\${CONFIG_SHELL-$SHELL}
34634 export SHELL
34635 _ASEOF
34636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34637 ## -------------------- ##
34638 ## M4sh Initialization. ##
34639 ## -------------------- ##
34640
34641 # Be more Bourne compatible
34642 DUALCASE=1; export DUALCASE # for MKS sh
34643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34644   emulate sh
34645   NULLCMD=:
34646   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34647   # is contrary to our usage.  Disable this feature.
34648   alias -g '${1+"$@"}'='"$@"'
34649   setopt NO_GLOB_SUBST
34650 else
34651   case `(set -o) 2>/dev/null` in #(
34652   *posix*) :
34653     set -o posix ;; #(
34654   *) :
34655      ;;
34656 esac
34657 fi
34658
34659
34660 as_nl='
34661 '
34662 export as_nl
34663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34667 # Prefer a ksh shell builtin over an external printf program on Solaris,
34668 # but without wasting forks for bash or zsh.
34669 if test -z "$BASH_VERSION$ZSH_VERSION" \
34670     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34671   as_echo='print -r --'
34672   as_echo_n='print -rn --'
34673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34674   as_echo='printf %s\n'
34675   as_echo_n='printf %s'
34676 else
34677   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34678     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34679     as_echo_n='/usr/ucb/echo -n'
34680   else
34681     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34682     as_echo_n_body='eval
34683       arg=$1;
34684       case $arg in #(
34685       *"$as_nl"*)
34686         expr "X$arg" : "X\\(.*\\)$as_nl";
34687         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34688       esac;
34689       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34690     '
34691     export as_echo_n_body
34692     as_echo_n='sh -c $as_echo_n_body as_echo'
34693   fi
34694   export as_echo_body
34695   as_echo='sh -c $as_echo_body as_echo'
34696 fi
34697
34698 # The user is always right.
34699 if test "${PATH_SEPARATOR+set}" != set; then
34700   PATH_SEPARATOR=:
34701   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34702     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34703       PATH_SEPARATOR=';'
34704   }
34705 fi
34706
34707
34708 # IFS
34709 # We need space, tab and new line, in precisely that order.  Quoting is
34710 # there to prevent editors from complaining about space-tab.
34711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34712 # splitting by setting IFS to empty value.)
34713 IFS=" ""        $as_nl"
34714
34715 # Find who we are.  Look in the path if we contain no directory separator.
34716 case $0 in #((
34717   *[\\/]* ) as_myself=$0 ;;
34718   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34719 for as_dir in $PATH
34720 do
34721   IFS=$as_save_IFS
34722   test -z "$as_dir" && as_dir=.
34723     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34724   done
34725 IFS=$as_save_IFS
34726
34727      ;;
34728 esac
34729 # We did not find ourselves, most probably we were run as `sh COMMAND'
34730 # in which case we are not to be found in the path.
34731 if test "x$as_myself" = x; then
34732   as_myself=$0
34733 fi
34734 if test ! -f "$as_myself"; then
34735   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34736   exit 1
34737 fi
34738
34739 # Unset variables that we do not need and which cause bugs (e.g. in
34740 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
34741 # suppresses any "Segmentation fault" message there.  '((' could
34742 # trigger a bug in pdksh 5.2.14.
34743 for as_var in BASH_ENV ENV MAIL MAILPATH
34744 do eval test x\${$as_var+set} = xset \
34745   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34746 done
34747 PS1='$ '
34748 PS2='> '
34749 PS4='+ '
34750
34751 # NLS nuisances.
34752 LC_ALL=C
34753 export LC_ALL
34754 LANGUAGE=C
34755 export LANGUAGE
34756
34757 # CDPATH.
34758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34759
34760
34761 # as_fn_error ERROR [LINENO LOG_FD]
34762 # ---------------------------------
34763 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34764 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34765 # script with status $?, using 1 if that was 0.
34766 as_fn_error ()
34767 {
34768   as_status=$?; test $as_status -eq 0 && as_status=1
34769   if test "$3"; then
34770     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34771     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
34772   fi
34773   $as_echo "$as_me: error: $1" >&2
34774   as_fn_exit $as_status
34775 } # as_fn_error
34776
34777
34778 # as_fn_set_status STATUS
34779 # -----------------------
34780 # Set $? to STATUS, without forking.
34781 as_fn_set_status ()
34782 {
34783   return $1
34784 } # as_fn_set_status
34785
34786 # as_fn_exit STATUS
34787 # -----------------
34788 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34789 as_fn_exit ()
34790 {
34791   set +e
34792   as_fn_set_status $1
34793   exit $1
34794 } # as_fn_exit
34795
34796 # as_fn_unset VAR
34797 # ---------------
34798 # Portably unset VAR.
34799 as_fn_unset ()
34800 {
34801   { eval $1=; unset $1;}
34802 }
34803 as_unset=as_fn_unset
34804 # as_fn_append VAR VALUE
34805 # ----------------------
34806 # Append the text in VALUE to the end of the definition contained in VAR. Take
34807 # advantage of any shell optimizations that allow amortized linear growth over
34808 # repeated appends, instead of the typical quadratic growth present in naive
34809 # implementations.
34810 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34811   eval 'as_fn_append ()
34812   {
34813     eval $1+=\$2
34814   }'
34815 else
34816   as_fn_append ()
34817   {
34818     eval $1=\$$1\$2
34819   }
34820 fi # as_fn_append
34821
34822 # as_fn_arith ARG...
34823 # ------------------
34824 # Perform arithmetic evaluation on the ARGs, and store the result in the
34825 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34826 # must be portable across $(()) and expr.
34827 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34828   eval 'as_fn_arith ()
34829   {
34830     as_val=$(( $* ))
34831   }'
34832 else
34833   as_fn_arith ()
34834   {
34835     as_val=`expr "$@" || test $? -eq 1`
34836   }
34837 fi # as_fn_arith
34838
34839
34840 if expr a : '\(a\)' >/dev/null 2>&1 &&
34841    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34842   as_expr=expr
34843 else
34844   as_expr=false
34845 fi
34846
34847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34848   as_basename=basename
34849 else
34850   as_basename=false
34851 fi
34852
34853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34854   as_dirname=dirname
34855 else
34856   as_dirname=false
34857 fi
34858
34859 as_me=`$as_basename -- "$0" ||
34860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34861          X"$0" : 'X\(//\)$' \| \
34862          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34863 $as_echo X/"$0" |
34864     sed '/^.*\/\([^/][^/]*\)\/*$/{
34865             s//\1/
34866             q
34867           }
34868           /^X\/\(\/\/\)$/{
34869             s//\1/
34870             q
34871           }
34872           /^X\/\(\/\).*/{
34873             s//\1/
34874             q
34875           }
34876           s/.*/./; q'`
34877
34878 # Avoid depending upon Character Ranges.
34879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34882 as_cr_digits='0123456789'
34883 as_cr_alnum=$as_cr_Letters$as_cr_digits
34884
34885 ECHO_C= ECHO_N= ECHO_T=
34886 case `echo -n x` in #(((((
34887 -n*)
34888   case `echo 'xy\c'` in
34889   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34890   xy)  ECHO_C='\c';;
34891   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34892        ECHO_T=' ';;
34893   esac;;
34894 *)
34895   ECHO_N='-n';;
34896 esac
34897
34898 rm -f conf$$ conf$$.exe conf$$.file
34899 if test -d conf$$.dir; then
34900   rm -f conf$$.dir/conf$$.file
34901 else
34902   rm -f conf$$.dir
34903   mkdir conf$$.dir 2>/dev/null
34904 fi
34905 if (echo >conf$$.file) 2>/dev/null; then
34906   if ln -s conf$$.file conf$$ 2>/dev/null; then
34907     as_ln_s='ln -s'
34908     # ... but there are two gotchas:
34909     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34910     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34911     # In both cases, we have to default to `cp -p'.
34912     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34913       as_ln_s='cp -p'
34914   elif ln conf$$.file conf$$ 2>/dev/null; then
34915     as_ln_s=ln
34916   else
34917     as_ln_s='cp -p'
34918   fi
34919 else
34920   as_ln_s='cp -p'
34921 fi
34922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34923 rmdir conf$$.dir 2>/dev/null
34924
34925
34926 # as_fn_mkdir_p
34927 # -------------
34928 # Create "$as_dir" as a directory, including parents if necessary.
34929 as_fn_mkdir_p ()
34930 {
34931
34932   case $as_dir in #(
34933   -*) as_dir=./$as_dir;;
34934   esac
34935   test -d "$as_dir" || eval $as_mkdir_p || {
34936     as_dirs=
34937     while :; do
34938       case $as_dir in #(
34939       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34940       *) as_qdir=$as_dir;;
34941       esac
34942       as_dirs="'$as_qdir' $as_dirs"
34943       as_dir=`$as_dirname -- "$as_dir" ||
34944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34945          X"$as_dir" : 'X\(//\)[^/]' \| \
34946          X"$as_dir" : 'X\(//\)$' \| \
34947          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34948 $as_echo X"$as_dir" |
34949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34950             s//\1/
34951             q
34952           }
34953           /^X\(\/\/\)[^/].*/{
34954             s//\1/
34955             q
34956           }
34957           /^X\(\/\/\)$/{
34958             s//\1/
34959             q
34960           }
34961           /^X\(\/\).*/{
34962             s//\1/
34963             q
34964           }
34965           s/.*/./; q'`
34966       test -d "$as_dir" && break
34967     done
34968     test -z "$as_dirs" || eval "mkdir $as_dirs"
34969   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
34970
34971
34972 } # as_fn_mkdir_p
34973 if mkdir -p . 2>/dev/null; then
34974   as_mkdir_p='mkdir -p "$as_dir"'
34975 else
34976   test -d ./-p && rmdir ./-p
34977   as_mkdir_p=false
34978 fi
34979
34980 if test -x / >/dev/null 2>&1; then
34981   as_test_x='test -x'
34982 else
34983   if ls -dL / >/dev/null 2>&1; then
34984     as_ls_L_option=L
34985   else
34986     as_ls_L_option=
34987   fi
34988   as_test_x='
34989     eval sh -c '\''
34990       if test -d "$1"; then
34991         test -d "$1/.";
34992       else
34993         case $1 in #(
34994         -*)set "./$1";;
34995         esac;
34996         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34997         ???[sx]*):;;*)false;;esac;fi
34998     '\'' sh
34999   '
35000 fi
35001 as_executable_p=$as_test_x
35002
35003 # Sed expression to map a string onto a valid CPP name.
35004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35005
35006 # Sed expression to map a string onto a valid variable name.
35007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35008
35009
35010 exec 6>&1
35011 ## ----------------------------------- ##
35012 ## Main body of $CONFIG_STATUS script. ##
35013 ## ----------------------------------- ##
35014 _ASEOF
35015 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35016
35017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35018 # Save the log message, to keep $0 and so on meaningful, and to
35019 # report actual input values of CONFIG_FILES etc. instead of their
35020 # values after options handling.
35021 ac_log="
35022 This file was extended by $as_me, which was
35023 generated by GNU Autoconf 2.65.  Invocation command line was
35024
35025   CONFIG_FILES    = $CONFIG_FILES
35026   CONFIG_HEADERS  = $CONFIG_HEADERS
35027   CONFIG_LINKS    = $CONFIG_LINKS
35028   CONFIG_COMMANDS = $CONFIG_COMMANDS
35029   $ $0 $@
35030
35031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35032 "
35033
35034 _ACEOF
35035
35036 case $ac_config_files in *"
35037 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35038 esac
35039
35040 case $ac_config_headers in *"
35041 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35042 esac
35043
35044
35045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35046 # Files that config.status was made for.
35047 config_files="$ac_config_files"
35048 config_headers="$ac_config_headers"
35049 config_commands="$ac_config_commands"
35050
35051 _ACEOF
35052
35053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35054 ac_cs_usage="\
35055 \`$as_me' instantiates files and other configuration actions
35056 from templates according to the current configuration.  Unless the files
35057 and actions are specified as TAGs, all are instantiated by default.
35058
35059 Usage: $0 [OPTION]... [TAG]...
35060
35061   -h, --help       print this help, then exit
35062   -V, --version    print version number and configuration settings, then exit
35063       --config     print configuration, then exit
35064   -q, --quiet, --silent
35065                    do not print progress messages
35066   -d, --debug      don't remove temporary files
35067       --recheck    update $as_me by reconfiguring in the same conditions
35068       --file=FILE[:TEMPLATE]
35069                    instantiate the configuration file FILE
35070       --header=FILE[:TEMPLATE]
35071                    instantiate the configuration header FILE
35072
35073 Configuration files:
35074 $config_files
35075
35076 Configuration headers:
35077 $config_headers
35078
35079 Configuration commands:
35080 $config_commands
35081
35082 Report bugs to the package provider."
35083
35084 _ACEOF
35085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35086 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35087 ac_cs_version="\\
35088 config.status
35089 configured by $0, generated by GNU Autoconf 2.65,
35090   with options \\"\$ac_cs_config\\"
35091
35092 Copyright (C) 2009 Free Software Foundation, Inc.
35093 This config.status script is free software; the Free Software Foundation
35094 gives unlimited permission to copy, distribute and modify it."
35095
35096 ac_pwd='$ac_pwd'
35097 srcdir='$srcdir'
35098 INSTALL='$INSTALL'
35099 MKDIR_P='$MKDIR_P'
35100 AWK='$AWK'
35101 test -n "\$AWK" || AWK=awk
35102 _ACEOF
35103
35104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35105 # The default lists apply if the user does not specify any file.
35106 ac_need_defaults=:
35107 while test $# != 0
35108 do
35109   case $1 in
35110   --*=*)
35111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35112     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35113     ac_shift=:
35114     ;;
35115   *)
35116     ac_option=$1
35117     ac_optarg=$2
35118     ac_shift=shift
35119     ;;
35120   esac
35121
35122   case $ac_option in
35123   # Handling of the options.
35124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35125     ac_cs_recheck=: ;;
35126   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35127     $as_echo "$ac_cs_version"; exit ;;
35128   --config | --confi | --conf | --con | --co | --c )
35129     $as_echo "$ac_cs_config"; exit ;;
35130   --debug | --debu | --deb | --de | --d | -d )
35131     debug=: ;;
35132   --file | --fil | --fi | --f )
35133     $ac_shift
35134     case $ac_optarg in
35135     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35136     esac
35137     as_fn_append CONFIG_FILES " '$ac_optarg'"
35138     ac_need_defaults=false;;
35139   --header | --heade | --head | --hea )
35140     $ac_shift
35141     case $ac_optarg in
35142     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35143     esac
35144     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35145     ac_need_defaults=false;;
35146   --he | --h)
35147     # Conflict between --help and --header
35148     as_fn_error "ambiguous option: \`$1'
35149 Try \`$0 --help' for more information.";;
35150   --help | --hel | -h )
35151     $as_echo "$ac_cs_usage"; exit ;;
35152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35154     ac_cs_silent=: ;;
35155
35156   # This is an error.
35157   -*) as_fn_error "unrecognized option: \`$1'
35158 Try \`$0 --help' for more information." ;;
35159
35160   *) as_fn_append ac_config_targets " $1"
35161      ac_need_defaults=false ;;
35162
35163   esac
35164   shift
35165 done
35166
35167 ac_configure_extra_args=
35168
35169 if $ac_cs_silent; then
35170   exec 6>/dev/null
35171   ac_configure_extra_args="$ac_configure_extra_args --silent"
35172 fi
35173
35174 _ACEOF
35175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35176 if \$ac_cs_recheck; then
35177   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35178   shift
35179   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35180   CONFIG_SHELL='$SHELL'
35181   export CONFIG_SHELL
35182   exec "\$@"
35183 fi
35184
35185 _ACEOF
35186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35187 exec 5>>config.log
35188 {
35189   echo
35190   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35191 ## Running $as_me. ##
35192 _ASBOX
35193   $as_echo "$ac_log"
35194 } >&5
35195
35196 _ACEOF
35197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35198 #
35199 # INIT-COMMANDS
35200 #
35201 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35202
35203
35204 # The HP-UX ksh and POSIX shell print the target directory to stdout
35205 # if CDPATH is set.
35206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35207
35208 sed_quote_subst='$sed_quote_subst'
35209 double_quote_subst='$double_quote_subst'
35210 delay_variable_subst='$delay_variable_subst'
35211 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
35212 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35213 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
35214 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
35215 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
35216 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
35217 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
35218 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
35219 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
35220 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
35221 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
35222 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
35223 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
35224 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
35225 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
35226 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
35227 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
35228 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
35229 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
35230 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
35231 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
35232 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
35233 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
35234 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
35235 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
35236 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
35237 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
35238 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
35239 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
35240 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
35241 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35242 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
35243 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
35244 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
35245 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35246 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
35247 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
35248 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35249 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35250 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35251 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
35252 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35253 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
35254 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
35255 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
35256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
35257 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"`'
35258 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"`'
35259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
35260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
35261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
35262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
35263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
35264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
35265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
35266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
35267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
35268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
35269 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
35270 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
35271 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
35272 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35273 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
35274 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
35275 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35276 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35277 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
35278 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
35279 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35280 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35281 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
35282 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35283 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35284 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35285 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35286 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35287 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35288 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
35289 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35290 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35291 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35292 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
35293 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
35294 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
35295 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
35296 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
35297 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35298 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
35299 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
35300 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
35301 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
35302 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
35303 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35304 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35305 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35306 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35307 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
35308 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
35309 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
35310 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
35311 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
35312 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35313 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35314 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
35315 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35316 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
35317 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35318 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35319 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35320 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35321 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
35322 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
35323 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35324 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35325 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
35326 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
35327 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
35328 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
35329 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
35330 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
35331 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
35332 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
35333 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
35334 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
35335 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
35336 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
35337 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35338 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
35339 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35340 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35341 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35342 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
35343 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35344 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
35345 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35346 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
35347 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35348 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
35349 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35350 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
35351 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35352 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
35353 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35354 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
35355 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35356 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
35357 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35358 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
35359 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35360 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
35361 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35362 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
35363 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35364 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
35365 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35366 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35367 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35368 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35369 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35370 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35371 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35372 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35373 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35374 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35375 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35376 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35377 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35378 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
35379 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35380 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
35381 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35382 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
35383 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35384 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
35385 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35386 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
35387 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35388 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
35389 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35390 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
35391 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35392 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
35393 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35394 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
35395 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35396 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
35397 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35398 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
35399 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35400 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
35401 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35402 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
35403 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35404 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
35405 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35406 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
35407 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35408 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35409 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35410 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
35411 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35412 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
35413 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35414 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
35415 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35416 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
35417 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35418 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
35419 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35420 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
35421 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35422 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
35423 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35424 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
35425 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35426 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
35427 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35428 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
35429 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
35430 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
35431
35432 LTCC='$LTCC'
35433 LTCFLAGS='$LTCFLAGS'
35434 compiler='$compiler_DEFAULT'
35435
35436 # Quote evaled strings.
35437 for var in SED \
35438 GREP \
35439 EGREP \
35440 FGREP \
35441 LD \
35442 NM \
35443 LN_S \
35444 lt_SP2NL \
35445 lt_NL2SP \
35446 reload_flag \
35447 deplibs_check_method \
35448 file_magic_cmd \
35449 AR \
35450 AR_FLAGS \
35451 STRIP \
35452 RANLIB \
35453 CC \
35454 CFLAGS \
35455 compiler \
35456 lt_cv_sys_global_symbol_pipe \
35457 lt_cv_sys_global_symbol_to_cdecl \
35458 lt_cv_sys_global_symbol_to_c_name_address \
35459 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35460 SHELL \
35461 ECHO \
35462 lt_prog_compiler_no_builtin_flag \
35463 lt_prog_compiler_wl \
35464 lt_prog_compiler_pic \
35465 lt_prog_compiler_static \
35466 lt_cv_prog_compiler_c_o \
35467 need_locks \
35468 DSYMUTIL \
35469 NMEDIT \
35470 LIPO \
35471 OTOOL \
35472 OTOOL64 \
35473 shrext_cmds \
35474 export_dynamic_flag_spec \
35475 whole_archive_flag_spec \
35476 compiler_needs_object \
35477 with_gnu_ld \
35478 allow_undefined_flag \
35479 no_undefined_flag \
35480 hardcode_libdir_flag_spec \
35481 hardcode_libdir_flag_spec_ld \
35482 hardcode_libdir_separator \
35483 fix_srcfile_path \
35484 exclude_expsyms \
35485 include_expsyms \
35486 file_list_spec \
35487 variables_saved_for_relink \
35488 libname_spec \
35489 library_names_spec \
35490 soname_spec \
35491 finish_eval \
35492 old_striplib \
35493 striplib \
35494 compiler_lib_search_dirs \
35495 predep_objects \
35496 postdep_objects \
35497 predeps \
35498 postdeps \
35499 compiler_lib_search_path \
35500 LD_CXX \
35501 LD_F77 \
35502 compiler_CXX \
35503 compiler_F77 \
35504 lt_prog_compiler_no_builtin_flag_CXX \
35505 lt_prog_compiler_no_builtin_flag_F77 \
35506 lt_prog_compiler_wl_CXX \
35507 lt_prog_compiler_wl_F77 \
35508 lt_prog_compiler_pic_CXX \
35509 lt_prog_compiler_pic_F77 \
35510 lt_prog_compiler_static_CXX \
35511 lt_prog_compiler_static_F77 \
35512 lt_cv_prog_compiler_c_o_CXX \
35513 lt_cv_prog_compiler_c_o_F77 \
35514 export_dynamic_flag_spec_CXX \
35515 export_dynamic_flag_spec_F77 \
35516 whole_archive_flag_spec_CXX \
35517 whole_archive_flag_spec_F77 \
35518 compiler_needs_object_CXX \
35519 compiler_needs_object_F77 \
35520 with_gnu_ld_CXX \
35521 with_gnu_ld_F77 \
35522 allow_undefined_flag_CXX \
35523 allow_undefined_flag_F77 \
35524 no_undefined_flag_CXX \
35525 no_undefined_flag_F77 \
35526 hardcode_libdir_flag_spec_CXX \
35527 hardcode_libdir_flag_spec_F77 \
35528 hardcode_libdir_flag_spec_ld_CXX \
35529 hardcode_libdir_flag_spec_ld_F77 \
35530 hardcode_libdir_separator_CXX \
35531 hardcode_libdir_separator_F77 \
35532 fix_srcfile_path_CXX \
35533 fix_srcfile_path_F77 \
35534 exclude_expsyms_CXX \
35535 exclude_expsyms_F77 \
35536 include_expsyms_CXX \
35537 include_expsyms_F77 \
35538 file_list_spec_CXX \
35539 file_list_spec_F77 \
35540 compiler_lib_search_dirs_CXX \
35541 compiler_lib_search_dirs_F77 \
35542 predep_objects_CXX \
35543 predep_objects_F77 \
35544 postdep_objects_CXX \
35545 postdep_objects_F77 \
35546 predeps_CXX \
35547 predeps_F77 \
35548 postdeps_CXX \
35549 postdeps_F77 \
35550 compiler_lib_search_path_CXX \
35551 compiler_lib_search_path_F77; do
35552     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35553     *[\\\\\\\`\\"\\\$]*)
35554       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35555       ;;
35556     *)
35557       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35558       ;;
35559     esac
35560 done
35561
35562 # Double-quote double-evaled strings.
35563 for var in reload_cmds \
35564 old_postinstall_cmds \
35565 old_postuninstall_cmds \
35566 old_archive_cmds \
35567 extract_expsyms_cmds \
35568 old_archive_from_new_cmds \
35569 old_archive_from_expsyms_cmds \
35570 archive_cmds \
35571 archive_expsym_cmds \
35572 module_cmds \
35573 module_expsym_cmds \
35574 export_symbols_cmds \
35575 prelink_cmds \
35576 postinstall_cmds \
35577 postuninstall_cmds \
35578 finish_cmds \
35579 sys_lib_search_path_spec \
35580 sys_lib_dlsearch_path_spec \
35581 old_archive_cmds_CXX \
35582 old_archive_cmds_F77 \
35583 old_archive_from_new_cmds_CXX \
35584 old_archive_from_new_cmds_F77 \
35585 old_archive_from_expsyms_cmds_CXX \
35586 old_archive_from_expsyms_cmds_F77 \
35587 archive_cmds_CXX \
35588 archive_cmds_F77 \
35589 archive_expsym_cmds_CXX \
35590 archive_expsym_cmds_F77 \
35591 module_cmds_CXX \
35592 module_cmds_F77 \
35593 module_expsym_cmds_CXX \
35594 module_expsym_cmds_F77 \
35595 export_symbols_cmds_CXX \
35596 export_symbols_cmds_F77 \
35597 prelink_cmds_CXX \
35598 prelink_cmds_F77; do
35599     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35600     *[\\\\\\\`\\"\\\$]*)
35601       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35602       ;;
35603     *)
35604       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35605       ;;
35606     esac
35607 done
35608
35609 # Fix-up fallback echo if it was mangled by the above quoting rules.
35610 case \$lt_ECHO in
35611 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
35612   ;;
35613 esac
35614
35615 ac_aux_dir='$ac_aux_dir'
35616 xsi_shell='$xsi_shell'
35617 lt_shell_append='$lt_shell_append'
35618
35619 # See if we are running on zsh, and set the options which allow our
35620 # commands through without removal of \ escapes INIT.
35621 if test -n "\${ZSH_VERSION+set}" ; then
35622    setopt NO_GLOB_SUBST
35623 fi
35624
35625
35626     PACKAGE='$PACKAGE'
35627     VERSION='$VERSION'
35628     TIMESTAMP='$TIMESTAMP'
35629     RM='$RM'
35630     ofile='$ofile'
35631
35632
35633
35634
35635
35636
35637
35638
35639 _ACEOF
35640
35641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35642
35643 # Handling of arguments.
35644 for ac_config_target in $ac_config_targets
35645 do
35646   case $ac_config_target in
35647     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35648     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35649     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35650     "gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/Makefile" ;;
35651     "gruel/gruel.pc") CONFIG_FILES="$CONFIG_FILES gruel/gruel.pc" ;;
35652     "gruel/src/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/Makefile" ;;
35653     "gruel/src/include/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/Makefile" ;;
35654     "gruel/src/include/gruel/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/Makefile" ;;
35655     "gruel/src/include/gruel/inet.h") CONFIG_FILES="$CONFIG_FILES gruel/src/include/gruel/inet.h" ;;
35656     "gruel/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gruel/src/lib/Makefile" ;;
35657     "omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES omnithread/Makefile" ;;
35658     "omnithread/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES omnithread/gnuradio/Makefile" ;;
35659     "omnithread/gnuradio-omnithread.pc") CONFIG_FILES="$CONFIG_FILES omnithread/gnuradio-omnithread.pc" ;;
35660     "gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/Makefile" ;;
35661     "gcell/gcell.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell.pc" ;;
35662     "gcell/gcell_spu.pc") CONFIG_FILES="$CONFIG_FILES gcell/gcell_spu.pc" ;;
35663     "gcell/include/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/Makefile" ;;
35664     "gcell/include/gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/Makefile" ;;
35665     "gcell/include/gcell/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/include/gcell/spu/Makefile" ;;
35666     "gcell/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/Makefile" ;;
35667     "gcell/lib/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/spu/Makefile" ;;
35668     "gcell/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/general/Makefile" ;;
35669     "gcell/lib/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/wrapper/Makefile" ;;
35670     "gcell/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/lib/runtime/Makefile" ;;
35671     "gcell/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/Makefile" ;;
35672     "gcell/apps/spu/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/apps/spu/Makefile" ;;
35673     "gcell/ibm/Makefile") CONFIG_FILES="$CONFIG_FILES gcell/ibm/Makefile" ;;
35674     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
35675     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
35676     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
35677     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
35678     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
35679     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
35680     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
35681     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
35682     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
35683     "gnuradio-core/src/lib/gengen/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/gengen/Makefile" ;;
35684     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
35685     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
35686     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
35687     "gnuradio-core/src/lib/viterbi/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/viterbi/Makefile" ;;
35688     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
35689     "gnuradio-core/src/lib/hier/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/hier/Makefile" ;;
35690     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
35691     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
35692     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
35693     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
35694     "gnuradio-core/src/python/gnuradio/blks2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2/Makefile" ;;
35695     "gnuradio-core/src/python/gnuradio/blks2impl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks2impl/Makefile" ;;
35696     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
35697     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
35698     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
35699     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
35700     "gnuradio-core/src/python/gnuradio/vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/vocoder/Makefile" ;;
35701     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
35702     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
35703     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
35704     "pmt/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/Makefile" ;;
35705     "pmt/pmt.pc") CONFIG_FILES="$CONFIG_FILES pmt/pmt.pc" ;;
35706     "pmt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/doc/Makefile" ;;
35707     "pmt/src/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/Makefile" ;;
35708     "pmt/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/lib/Makefile" ;;
35709     "pmt/src/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/scheme/Makefile" ;;
35710     "pmt/src/scheme/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES pmt/src/scheme/gnuradio/Makefile" ;;
35711     "mblock/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/Makefile" ;;
35712     "mblock/mblock.pc") CONFIG_FILES="$CONFIG_FILES mblock/mblock.pc" ;;
35713     "mblock/doc/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/doc/Makefile" ;;
35714     "mblock/src/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/Makefile" ;;
35715     "mblock/src/include/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/include/Makefile" ;;
35716     "mblock/src/include/mblock/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/include/mblock/Makefile" ;;
35717     "mblock/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/lib/Makefile" ;;
35718     "mblock/src/scheme/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/scheme/Makefile" ;;
35719     "mblock/src/scheme/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES mblock/src/scheme/gnuradio/Makefile" ;;
35720     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
35721     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
35722     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
35723     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
35724     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
35725     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
35726     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
35727     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
35728     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
35729     "usrp/host/lib/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/legacy/Makefile" ;;
35730     "usrp/host/lib/legacy/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/legacy/std_paths.h" ;;
35731     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
35732     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
35733     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
35734     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
35735     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
35736     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
35737     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
35738     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
35739     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
35740     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
35741     "usrp/fpga/rbf/rev2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev2/Makefile" ;;
35742     "usrp/fpga/rbf/rev4/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/rev4/Makefile" ;;
35743     "usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/Makefile" ;;
35744     "usrp2/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/Makefile" ;;
35745     "usrp2/host/usrp2.pc") CONFIG_FILES="$CONFIG_FILES usrp2/host/usrp2.pc" ;;
35746     "usrp2/host/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/Makefile" ;;
35747     "usrp2/host/include/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/include/usrp2/Makefile" ;;
35748     "usrp2/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/lib/Makefile" ;;
35749     "usrp2/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp2/host/apps/Makefile" ;;
35750     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
35751     "gr-usrp/gnuradio-usrp.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp/gnuradio-usrp.pc" ;;
35752     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
35753     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
35754     "gr-usrp/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/apps/Makefile" ;;
35755     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
35756     "gr-usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/Makefile" ;;
35757     "gr-usrp2/gnuradio-usrp2.pc") CONFIG_FILES="$CONFIG_FILES gr-usrp2/gnuradio-usrp2.pc" ;;
35758     "gr-usrp2/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/Makefile" ;;
35759     "gr-usrp2/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp2/src/run_tests" ;;
35760     "run_tests_usrp2") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp2" ;;
35761     "gr-gcell/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/Makefile" ;;
35762     "gr-gcell/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/Makefile" ;;
35763     "gr-gcell/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/examples/Makefile" ;;
35764     "gr-gcell/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gcell/src/run_tests" ;;
35765     "run_tests_gcell") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gcell" ;;
35766     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
35767     "gr-audio-alsa/gr-audio-alsa.pc") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/gr-audio-alsa.pc" ;;
35768     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
35769     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
35770     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
35771     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
35772     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
35773     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
35774     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
35775     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
35776     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
35777     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
35778     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
35779     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
35780     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
35781     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
35782     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
35783     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
35784     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
35785     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
35786     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
35787     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
35788     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
35789     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
35790     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
35791     "gr-cvsd-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/Makefile" ;;
35792     "gr-cvsd-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/Makefile" ;;
35793     "gr-cvsd-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/lib/Makefile" ;;
35794     "gr-cvsd-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/Makefile" ;;
35795     "gr-cvsd-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-cvsd-vocoder/src/python/run_tests" ;;
35796     "run_tests_cvsd") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_cvsd" ;;
35797     "gr-gpio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/Makefile" ;;
35798     "gr-gpio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/Makefile" ;;
35799     "gr-gpio/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/Makefile" ;;
35800     "gr-gpio/src/fpga/include/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/include/Makefile" ;;
35801     "gr-gpio/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/top/Makefile" ;;
35802     "gr-gpio/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/lib/Makefile" ;;
35803     "gr-gpio/src/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/fpga/rbf/Makefile" ;;
35804     "gr-gpio/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gpio/src/python/Makefile" ;;
35805     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
35806     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
35807     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
35808     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
35809     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
35810     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
35811     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
35812     "gr-pager/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/Makefile" ;;
35813     "gr-pager/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-pager/src/Makefile" ;;
35814     "gr-pager/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-pager/src/run_tests" ;;
35815     "run_tests_pager") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_pager" ;;
35816     "gr-radar-mono/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/Makefile" ;;
35817     "gr-radar-mono/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/doc/Makefile" ;;
35818     "gr-radar-mono/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/Makefile" ;;
35819     "gr-radar-mono/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/Makefile" ;;
35820     "gr-radar-mono/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/top/Makefile" ;;
35821     "gr-radar-mono/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/lib/Makefile" ;;
35822     "gr-radar-mono/src/fpga/models/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/models/Makefile" ;;
35823     "gr-radar-mono/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/fpga/tb/Makefile" ;;
35824     "gr-radar-mono/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/lib/Makefile" ;;
35825     "gr-radar-mono/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/Makefile" ;;
35826     "gr-radar-mono/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radar-mono/src/python/run_tests" ;;
35827     "run_tests_radar_mono") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_radar_mono" ;;
35828     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
35829     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
35830     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
35831     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
35832     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
35833     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
35834     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
35835     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
35836     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
35837     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
35838     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
35839     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
35840     "gr-trellis/src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/Makefile" ;;
35841     "gr-trellis/src/examples/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/examples/fsm_files/Makefile" ;;
35842     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
35843     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
35844     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
35845     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
35846     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
35847     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
35848     "gr-wxgui/gr-wxgui.pc") CONFIG_FILES="$CONFIG_FILES gr-wxgui/gr-wxgui.pc" ;;
35849     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
35850     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
35851     "gr-wxgui/src/python/plotter/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/plotter/Makefile" ;;
35852     "gr-qtgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/Makefile" ;;
35853     "gr-qtgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/Makefile" ;;
35854     "gr-qtgui/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/lib/Makefile" ;;
35855     "gr-qtgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-qtgui/src/python/Makefile" ;;
35856     "gr-sounder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/Makefile" ;;
35857     "gr-sounder/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/doc/Makefile" ;;
35858     "gr-sounder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/Makefile" ;;
35859     "gr-sounder/src/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/Makefile" ;;
35860     "gr-sounder/src/fpga/top/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/top/Makefile" ;;
35861     "gr-sounder/src/fpga/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/lib/Makefile" ;;
35862     "gr-sounder/src/fpga/tb/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/fpga/tb/Makefile" ;;
35863     "gr-sounder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/lib/Makefile" ;;
35864     "gr-sounder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/Makefile" ;;
35865     "gr-sounder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-sounder/src/python/run_tests" ;;
35866     "run_tests_sounder") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sounder" ;;
35867     "gr-utils/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/Makefile" ;;
35868     "gr-utils/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/Makefile" ;;
35869     "gr-utils/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/lib/Makefile" ;;
35870     "gr-utils/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-utils/src/python/Makefile" ;;
35871     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
35872     "gnuradio-examples/c++/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/c++/Makefile" ;;
35873     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
35874     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
35875     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
35876     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
35877     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
35878     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
35879     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
35880     "gnuradio-examples/python/digital-bert/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital-bert/Makefile" ;;
35881     "gnuradio-examples/python/mp-sched/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/mp-sched/Makefile" ;;
35882     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
35883     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
35884     "gnuradio-examples/python/network/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/network/Makefile" ;;
35885     "gnuradio-examples/python/ofdm/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/ofdm/Makefile" ;;
35886     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
35887     "gnuradio-examples/python/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp2/Makefile" ;;
35888     "grc/Makefile") CONFIG_FILES="$CONFIG_FILES grc/Makefile" ;;
35889     "grc/base/Makefile") CONFIG_FILES="$CONFIG_FILES grc/base/Makefile" ;;
35890     "grc/blocks/Makefile") CONFIG_FILES="$CONFIG_FILES grc/blocks/Makefile" ;;
35891     "grc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES grc/examples/Makefile" ;;
35892     "grc/freedesktop/Makefile") CONFIG_FILES="$CONFIG_FILES grc/freedesktop/Makefile" ;;
35893     "grc/grc_gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES grc/grc_gnuradio/Makefile" ;;
35894     "grc/gui/Makefile") CONFIG_FILES="$CONFIG_FILES grc/gui/Makefile" ;;
35895     "grc/python/Makefile") CONFIG_FILES="$CONFIG_FILES grc/python/Makefile" ;;
35896     "grc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES grc/scripts/Makefile" ;;
35897     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
35898     "docs/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Doxyfile" ;;
35899     "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
35900     "docs/doxygen/other/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/other/Makefile" ;;
35901     "docs/doxygen/xml-swig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/xml-swig/Makefile" ;;
35902     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35903     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
35904     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
35905     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
35906
35907   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35908   esac
35909 done
35910
35911
35912 # If the user did not use the arguments to specify the items to instantiate,
35913 # then the envvar interface is used.  Set only those that are not.
35914 # We use the long form for the default assignment because of an extremely
35915 # bizarre bug on SunOS 4.1.3.
35916 if $ac_need_defaults; then
35917   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35918   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35919   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35920 fi
35921
35922 # Have a temporary directory for convenience.  Make it in the build tree
35923 # simply because there is no reason against having it here, and in addition,
35924 # creating and moving files from /tmp can sometimes cause problems.
35925 # Hook for its removal unless debugging.
35926 # Note that there is a small window in which the directory will not be cleaned:
35927 # after its creation but before its name has been assigned to `$tmp'.
35928 $debug ||
35929 {
35930   tmp=
35931   trap 'exit_status=$?
35932   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35933 ' 0
35934   trap 'as_fn_exit 1' 1 2 13 15
35935 }
35936 # Create a (secure) tmp directory for tmp files.
35937
35938 {
35939   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35940   test -n "$tmp" && test -d "$tmp"
35941 }  ||
35942 {
35943   tmp=./conf$$-$RANDOM
35944   (umask 077 && mkdir "$tmp")
35945 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
35946
35947 # Set up the scripts for CONFIG_FILES section.
35948 # No need to generate them if there are no CONFIG_FILES.
35949 # This happens for instance with `./config.status config.h'.
35950 if test -n "$CONFIG_FILES"; then
35951
35952
35953 ac_cr=`echo X | tr X '\015'`
35954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35955 # But we know of no other shell where ac_cr would be empty at this
35956 # point, so we can use a bashism as a fallback.
35957 if test "x$ac_cr" = x; then
35958   eval ac_cr=\$\'\\r\'
35959 fi
35960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35962   ac_cs_awk_cr='\r'
35963 else
35964   ac_cs_awk_cr=$ac_cr
35965 fi
35966
35967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
35968 _ACEOF
35969
35970
35971 {
35972   echo "cat >conf$$subs.awk <<_ACEOF" &&
35973   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35974   echo "_ACEOF"
35975 } >conf$$subs.sh ||
35976   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
35978 ac_delim='%!_!# '
35979 for ac_last_try in false false false false false :; do
35980   . ./conf$$subs.sh ||
35981     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35982
35983   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35984   if test $ac_delim_n = $ac_delim_num; then
35985     break
35986   elif $ac_last_try; then
35987     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
35988   else
35989     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35990   fi
35991 done
35992 rm -f conf$$subs.sh
35993
35994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35995 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
35996 _ACEOF
35997 sed -n '
35998 h
35999 s/^/S["/; s/!.*/"]=/
36000 p
36001 g
36002 s/^[^!]*!//
36003 :repl
36004 t repl
36005 s/'"$ac_delim"'$//
36006 t delim
36007 :nl
36008 h
36009 s/\(.\{148\}\)..*/\1/
36010 t more1
36011 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36012 p
36013 n
36014 b repl
36015 :more1
36016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36017 p
36018 g
36019 s/.\{148\}//
36020 t nl
36021 :delim
36022 h
36023 s/\(.\{148\}\)..*/\1/
36024 t more2
36025 s/["\\]/\\&/g; s/^/"/; s/$/"/
36026 p
36027 b
36028 :more2
36029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36030 p
36031 g
36032 s/.\{148\}//
36033 t delim
36034 ' <conf$$subs.awk | sed '
36035 /^[^""]/{
36036   N
36037   s/\n//
36038 }
36039 ' >>$CONFIG_STATUS || ac_write_fail=1
36040 rm -f conf$$subs.awk
36041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36042 _ACAWK
36043 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
36044   for (key in S) S_is_set[key] = 1
36045   FS = "\a"
36046
36047 }
36048 {
36049   line = $ 0
36050   nfields = split(line, field, "@")
36051   substed = 0
36052   len = length(field[1])
36053   for (i = 2; i < nfields; i++) {
36054     key = field[i]
36055     keylen = length(key)
36056     if (S_is_set[key]) {
36057       value = S[key]
36058       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36059       len += length(value) + length(field[++i])
36060       substed = 1
36061     } else
36062       len += 1 + keylen
36063   }
36064
36065   print line
36066 }
36067
36068 _ACAWK
36069 _ACEOF
36070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36071 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36072   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36073 else
36074   cat
36075 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36076   || as_fn_error "could not setup config files machinery" "$LINENO" 5
36077 _ACEOF
36078
36079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36081 # trailing colons and then remove the whole line if VPATH becomes empty
36082 # (actually we leave an empty line to preserve line numbers).
36083 if test "x$srcdir" = x.; then
36084   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36085 s/:*\$(srcdir):*/:/
36086 s/:*\${srcdir}:*/:/
36087 s/:*@srcdir@:*/:/
36088 s/^\([^=]*=[     ]*\):*/\1/
36089 s/:*$//
36090 s/^[^=]*=[       ]*$//
36091 }'
36092 fi
36093
36094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36095 fi # test -n "$CONFIG_FILES"
36096
36097 # Set up the scripts for CONFIG_HEADERS section.
36098 # No need to generate them if there are no CONFIG_HEADERS.
36099 # This happens for instance with `./config.status Makefile'.
36100 if test -n "$CONFIG_HEADERS"; then
36101 cat >"$tmp/defines.awk" <<\_ACAWK ||
36102 BEGIN {
36103 _ACEOF
36104
36105 # Transform confdefs.h into an awk script `defines.awk', embedded as
36106 # here-document in config.status, that substitutes the proper values into
36107 # config.h.in to produce config.h.
36108
36109 # Create a delimiter string that does not exist in confdefs.h, to ease
36110 # handling of long lines.
36111 ac_delim='%!_!# '
36112 for ac_last_try in false false :; do
36113   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36114   if test -z "$ac_t"; then
36115     break
36116   elif $ac_last_try; then
36117     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
36118   else
36119     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36120   fi
36121 done
36122
36123 # For the awk script, D is an array of macro values keyed by name,
36124 # likewise P contains macro parameters if any.  Preserve backslash
36125 # newline sequences.
36126
36127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36128 sed -n '
36129 s/.\{148\}/&'"$ac_delim"'/g
36130 t rset
36131 :rset
36132 s/^[     ]*#[    ]*define[       ][      ]*/ /
36133 t def
36134 d
36135 :def
36136 s/\\$//
36137 t bsnl
36138 s/["\\]/\\&/g
36139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36140 D["\1"]=" \3"/p
36141 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36142 d
36143 :bsnl
36144 s/["\\]/\\&/g
36145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36146 D["\1"]=" \3\\\\\\n"\\/p
36147 t cont
36148 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36149 t cont
36150 d
36151 :cont
36152 n
36153 s/.\{148\}/&'"$ac_delim"'/g
36154 t clear
36155 :clear
36156 s/\\$//
36157 t bsnlc
36158 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36159 d
36160 :bsnlc
36161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36162 b cont
36163 ' <confdefs.h | sed '
36164 s/'"$ac_delim"'/"\\\
36165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36166
36167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36168   for (key in D) D_is_set[key] = 1
36169   FS = "\a"
36170 }
36171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36172   line = \$ 0
36173   split(line, arg, " ")
36174   if (arg[1] == "#") {
36175     defundef = arg[2]
36176     mac1 = arg[3]
36177   } else {
36178     defundef = substr(arg[1], 2)
36179     mac1 = arg[2]
36180   }
36181   split(mac1, mac2, "(") #)
36182   macro = mac2[1]
36183   prefix = substr(line, 1, index(line, defundef) - 1)
36184   if (D_is_set[macro]) {
36185     # Preserve the white space surrounding the "#".
36186     print prefix "define", macro P[macro] D[macro]
36187     next
36188   } else {
36189     # Replace #undef with comments.  This is necessary, for example,
36190     # in the case of _POSIX_SOURCE, which is predefined and required
36191     # on some systems where configure will not decide to define it.
36192     if (defundef == "undef") {
36193       print "/*", prefix defundef, macro, "*/"
36194       next
36195     }
36196   }
36197 }
36198 { print }
36199 _ACAWK
36200 _ACEOF
36201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36202   as_fn_error "could not setup config headers machinery" "$LINENO" 5
36203 fi # test -n "$CONFIG_HEADERS"
36204
36205
36206 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36207 shift
36208 for ac_tag
36209 do
36210   case $ac_tag in
36211   :[FHLC]) ac_mode=$ac_tag; continue;;
36212   esac
36213   case $ac_mode$ac_tag in
36214   :[FHL]*:*);;
36215   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
36216   :[FH]-) ac_tag=-:-;;
36217   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36218   esac
36219   ac_save_IFS=$IFS
36220   IFS=:
36221   set x $ac_tag
36222   IFS=$ac_save_IFS
36223   shift
36224   ac_file=$1
36225   shift
36226
36227   case $ac_mode in
36228   :L) ac_source=$1;;
36229   :[FH])
36230     ac_file_inputs=
36231     for ac_f
36232     do
36233       case $ac_f in
36234       -) ac_f="$tmp/stdin";;
36235       *) # Look for the file first in the build tree, then in the source tree
36236          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36237          # because $ac_f cannot contain `:'.
36238          test -f "$ac_f" ||
36239            case $ac_f in
36240            [\\/$]*) false;;
36241            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36242            esac ||
36243            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36244       esac
36245       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36246       as_fn_append ac_file_inputs " '$ac_f'"
36247     done
36248
36249     # Let's still pretend it is `configure' which instantiates (i.e., don't
36250     # use $as_me), people would be surprised to read:
36251     #    /* config.h.  Generated by config.status.  */
36252     configure_input='Generated from '`
36253           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36254         `' by configure.'
36255     if test x"$ac_file" != x-; then
36256       configure_input="$ac_file.  $configure_input"
36257       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36258 $as_echo "$as_me: creating $ac_file" >&6;}
36259     fi
36260     # Neutralize special characters interpreted by sed in replacement strings.
36261     case $configure_input in #(
36262     *\&* | *\|* | *\\* )
36263        ac_sed_conf_input=`$as_echo "$configure_input" |
36264        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36265     *) ac_sed_conf_input=$configure_input;;
36266     esac
36267
36268     case $ac_tag in
36269     *:-:* | *:-) cat >"$tmp/stdin" \
36270       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
36271     esac
36272     ;;
36273   esac
36274
36275   ac_dir=`$as_dirname -- "$ac_file" ||
36276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36277          X"$ac_file" : 'X\(//\)[^/]' \| \
36278          X"$ac_file" : 'X\(//\)$' \| \
36279          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36280 $as_echo X"$ac_file" |
36281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36282             s//\1/
36283             q
36284           }
36285           /^X\(\/\/\)[^/].*/{
36286             s//\1/
36287             q
36288           }
36289           /^X\(\/\/\)$/{
36290             s//\1/
36291             q
36292           }
36293           /^X\(\/\).*/{
36294             s//\1/
36295             q
36296           }
36297           s/.*/./; q'`
36298   as_dir="$ac_dir"; as_fn_mkdir_p
36299   ac_builddir=.
36300
36301 case "$ac_dir" in
36302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36303 *)
36304   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36305   # A ".." for each directory in $ac_dir_suffix.
36306   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36307   case $ac_top_builddir_sub in
36308   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36309   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36310   esac ;;
36311 esac
36312 ac_abs_top_builddir=$ac_pwd
36313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36314 # for backward compatibility:
36315 ac_top_builddir=$ac_top_build_prefix
36316
36317 case $srcdir in
36318   .)  # We are building in place.
36319     ac_srcdir=.
36320     ac_top_srcdir=$ac_top_builddir_sub
36321     ac_abs_top_srcdir=$ac_pwd ;;
36322   [\\/]* | ?:[\\/]* )  # Absolute name.
36323     ac_srcdir=$srcdir$ac_dir_suffix;
36324     ac_top_srcdir=$srcdir
36325     ac_abs_top_srcdir=$srcdir ;;
36326   *) # Relative name.
36327     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36328     ac_top_srcdir=$ac_top_build_prefix$srcdir
36329     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36330 esac
36331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36332
36333
36334   case $ac_mode in
36335   :F)
36336   #
36337   # CONFIG_FILE
36338   #
36339
36340   case $INSTALL in
36341   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36342   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36343   esac
36344   ac_MKDIR_P=$MKDIR_P
36345   case $MKDIR_P in
36346   [\\/$]* | ?:[\\/]* ) ;;
36347   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36348   esac
36349 _ACEOF
36350
36351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36352 # If the template does not know about datarootdir, expand it.
36353 # FIXME: This hack should be removed a few years after 2.60.
36354 ac_datarootdir_hack=; ac_datarootdir_seen=
36355 ac_sed_dataroot='
36356 /datarootdir/ {
36357   p
36358   q
36359 }
36360 /@datadir@/p
36361 /@docdir@/p
36362 /@infodir@/p
36363 /@localedir@/p
36364 /@mandir@/p'
36365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36366 *datarootdir*) ac_datarootdir_seen=yes;;
36367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36368   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36370 _ACEOF
36371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36372   ac_datarootdir_hack='
36373   s&@datadir@&$datadir&g
36374   s&@docdir@&$docdir&g
36375   s&@infodir@&$infodir&g
36376   s&@localedir@&$localedir&g
36377   s&@mandir@&$mandir&g
36378   s&\\\${datarootdir}&$datarootdir&g' ;;
36379 esac
36380 _ACEOF
36381
36382 # Neutralize VPATH when `$srcdir' = `.'.
36383 # Shell code in configure.ac might set extrasub.
36384 # FIXME: do we really want to maintain this feature?
36385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36386 ac_sed_extra="$ac_vpsub
36387 $extrasub
36388 _ACEOF
36389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36390 :t
36391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36392 s|@configure_input@|$ac_sed_conf_input|;t t
36393 s&@top_builddir@&$ac_top_builddir_sub&;t t
36394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36395 s&@srcdir@&$ac_srcdir&;t t
36396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36397 s&@top_srcdir@&$ac_top_srcdir&;t t
36398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36399 s&@builddir@&$ac_builddir&;t t
36400 s&@abs_builddir@&$ac_abs_builddir&;t t
36401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36402 s&@INSTALL@&$ac_INSTALL&;t t
36403 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36404 $ac_datarootdir_hack
36405 "
36406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36407   || as_fn_error "could not create $ac_file" "$LINENO" 5
36408
36409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36410   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36411   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36412   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36413 which seems to be undefined.  Please make sure it is defined." >&5
36414 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36415 which seems to be undefined.  Please make sure it is defined." >&2;}
36416
36417   rm -f "$tmp/stdin"
36418   case $ac_file in
36419   -) cat "$tmp/out" && rm -f "$tmp/out";;
36420   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
36421   esac \
36422   || as_fn_error "could not create $ac_file" "$LINENO" 5
36423  ;;
36424   :H)
36425   #
36426   # CONFIG_HEADER
36427   #
36428   if test x"$ac_file" != x-; then
36429     {
36430       $as_echo "/* $configure_input  */" \
36431       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
36432     } >"$tmp/config.h" \
36433       || as_fn_error "could not create $ac_file" "$LINENO" 5
36434     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36435       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36436 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36437     else
36438       rm -f "$ac_file"
36439       mv "$tmp/config.h" "$ac_file" \
36440         || as_fn_error "could not create $ac_file" "$LINENO" 5
36441     fi
36442   else
36443     $as_echo "/* $configure_input  */" \
36444       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36445       || as_fn_error "could not create -" "$LINENO" 5
36446   fi
36447 # Compute "$ac_file"'s index in $config_headers.
36448 _am_arg="$ac_file"
36449 _am_stamp_count=1
36450 for _am_header in $config_headers :; do
36451   case $_am_header in
36452     $_am_arg | $_am_arg:* )
36453       break ;;
36454     * )
36455       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36456   esac
36457 done
36458 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36459 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36460          X"$_am_arg" : 'X\(//\)[^/]' \| \
36461          X"$_am_arg" : 'X\(//\)$' \| \
36462          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36463 $as_echo X"$_am_arg" |
36464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36465             s//\1/
36466             q
36467           }
36468           /^X\(\/\/\)[^/].*/{
36469             s//\1/
36470             q
36471           }
36472           /^X\(\/\/\)$/{
36473             s//\1/
36474             q
36475           }
36476           /^X\(\/\).*/{
36477             s//\1/
36478             q
36479           }
36480           s/.*/./; q'`/stamp-h$_am_stamp_count
36481  ;;
36482
36483   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36484 $as_echo "$as_me: executing $ac_file commands" >&6;}
36485  ;;
36486   esac
36487
36488
36489   case $ac_file$ac_mode in
36490     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36491   # Autoconf 2.62 quotes --file arguments for eval, but not when files
36492   # are listed without --file.  Let's play safe and only enable the eval
36493   # if we detect the quoting.
36494   case $CONFIG_FILES in
36495   *\'*) eval set x "$CONFIG_FILES" ;;
36496   *)   set x $CONFIG_FILES ;;
36497   esac
36498   shift
36499   for mf
36500   do
36501     # Strip MF so we end up with the name of the file.
36502     mf=`echo "$mf" | sed -e 's/:.*$//'`
36503     # Check whether this is an Automake generated Makefile or not.
36504     # We used to match only the files named `Makefile.in', but
36505     # some people rename them; so instead we look at the file content.
36506     # Grep'ing the first line is not enough: some people post-process
36507     # each Makefile.in and add a new line on top of each file to say so.
36508     # Grep'ing the whole file is not good either: AIX grep has a line
36509     # limit of 2048, but all sed's we know have understand at least 4000.
36510     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36511       dirpart=`$as_dirname -- "$mf" ||
36512 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36513          X"$mf" : 'X\(//\)[^/]' \| \
36514          X"$mf" : 'X\(//\)$' \| \
36515          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36516 $as_echo X"$mf" |
36517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36518             s//\1/
36519             q
36520           }
36521           /^X\(\/\/\)[^/].*/{
36522             s//\1/
36523             q
36524           }
36525           /^X\(\/\/\)$/{
36526             s//\1/
36527             q
36528           }
36529           /^X\(\/\).*/{
36530             s//\1/
36531             q
36532           }
36533           s/.*/./; q'`
36534     else
36535       continue
36536     fi
36537     # Extract the definition of DEPDIR, am__include, and am__quote
36538     # from the Makefile without running `make'.
36539     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36540     test -z "$DEPDIR" && continue
36541     am__include=`sed -n 's/^am__include = //p' < "$mf"`
36542     test -z "am__include" && continue
36543     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36544     # When using ansi2knr, U may be empty or an underscore; expand it
36545     U=`sed -n 's/^U = //p' < "$mf"`
36546     # Find all dependency output files, they are included files with
36547     # $(DEPDIR) in their names.  We invoke sed twice because it is the
36548     # simplest approach to changing $(DEPDIR) to its actual value in the
36549     # expansion.
36550     for file in `sed -n "
36551       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36552          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36553       # Make sure the directory exists.
36554       test -f "$dirpart/$file" && continue
36555       fdir=`$as_dirname -- "$file" ||
36556 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36557          X"$file" : 'X\(//\)[^/]' \| \
36558          X"$file" : 'X\(//\)$' \| \
36559          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36560 $as_echo X"$file" |
36561     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36562             s//\1/
36563             q
36564           }
36565           /^X\(\/\/\)[^/].*/{
36566             s//\1/
36567             q
36568           }
36569           /^X\(\/\/\)$/{
36570             s//\1/
36571             q
36572           }
36573           /^X\(\/\).*/{
36574             s//\1/
36575             q
36576           }
36577           s/.*/./; q'`
36578       as_dir=$dirpart/$fdir; as_fn_mkdir_p
36579       # echo "creating $dirpart/$file"
36580       echo '# dummy' > "$dirpart/$file"
36581     done
36582   done
36583 }
36584  ;;
36585     "libtool":C)
36586
36587     # See if we are running on zsh, and set the options which allow our
36588     # commands through without removal of \ escapes.
36589     if test -n "${ZSH_VERSION+set}" ; then
36590       setopt NO_GLOB_SUBST
36591     fi
36592
36593     cfgfile="${ofile}T"
36594     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36595     $RM "$cfgfile"
36596
36597     cat <<_LT_EOF >> "$cfgfile"
36598 #! $SHELL
36599
36600 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36601 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36602 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36603 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36604 #
36605 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36606 #                 2006, 2007, 2008 Free Software Foundation, Inc.
36607 #   Written by Gordon Matzigkeit, 1996
36608 #
36609 #   This file is part of GNU Libtool.
36610 #
36611 # GNU Libtool is free software; you can redistribute it and/or
36612 # modify it under the terms of the GNU General Public License as
36613 # published by the Free Software Foundation; either version 2 of
36614 # the License, or (at your option) any later version.
36615 #
36616 # As a special exception to the GNU General Public License,
36617 # if you distribute this file as part of a program or library that
36618 # is built using GNU Libtool, you may include this file under the
36619 # same distribution terms that you use for the rest of that program.
36620 #
36621 # GNU Libtool is distributed in the hope that it will be useful,
36622 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36624 # GNU General Public License for more details.
36625 #
36626 # You should have received a copy of the GNU General Public License
36627 # along with GNU Libtool; see the file COPYING.  If not, a copy
36628 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36629 # obtained by writing to the Free Software Foundation, Inc.,
36630 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36631
36632
36633 # The names of the tagged configurations supported by this script.
36634 available_tags="CXX F77 "
36635
36636 # ### BEGIN LIBTOOL CONFIG
36637
36638 # Assembler program.
36639 AS=$AS
36640
36641 # DLL creation program.
36642 DLLTOOL=$DLLTOOL
36643
36644 # Object dumper program.
36645 OBJDUMP=$OBJDUMP
36646
36647 # Whether or not to build shared libraries.
36648 build_libtool_libs=$enable_shared
36649
36650 # Whether or not to build static libraries.
36651 build_old_libs=$enable_static
36652
36653 # Which release of libtool.m4 was used?
36654 macro_version=$macro_version
36655 macro_revision=$macro_revision
36656
36657 # What type of objects to build.
36658 pic_mode=$pic_mode
36659
36660 # Whether or not to optimize for fast installation.
36661 fast_install=$enable_fast_install
36662
36663 # The host system.
36664 host_alias=$host_alias
36665 host=$host
36666 host_os=$host_os
36667
36668 # The build system.
36669 build_alias=$build_alias
36670 build=$build
36671 build_os=$build_os
36672
36673 # A sed program that does not truncate output.
36674 SED=$lt_SED
36675
36676 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36677 Xsed="\$SED -e 1s/^X//"
36678
36679 # A grep program that handles long lines.
36680 GREP=$lt_GREP
36681
36682 # An ERE matcher.
36683 EGREP=$lt_EGREP
36684
36685 # A literal string matcher.
36686 FGREP=$lt_FGREP
36687
36688 # A BSD- or MS-compatible name lister.
36689 NM=$lt_NM
36690
36691 # Whether we need soft or hard links.
36692 LN_S=$lt_LN_S
36693
36694 # What is the maximum length of a command?
36695 max_cmd_len=$max_cmd_len
36696
36697 # Object file suffix (normally "o").
36698 objext=$ac_objext
36699
36700 # Executable file suffix (normally "").
36701 exeext=$exeext
36702
36703 # whether the shell understands "unset".
36704 lt_unset=$lt_unset
36705
36706 # turn spaces into newlines.
36707 SP2NL=$lt_lt_SP2NL
36708
36709 # turn newlines into spaces.
36710 NL2SP=$lt_lt_NL2SP
36711
36712 # How to create reloadable object files.
36713 reload_flag=$lt_reload_flag
36714 reload_cmds=$lt_reload_cmds
36715
36716 # Method to check whether dependent libraries are shared objects.
36717 deplibs_check_method=$lt_deplibs_check_method
36718
36719 # Command to use when deplibs_check_method == "file_magic".
36720 file_magic_cmd=$lt_file_magic_cmd
36721
36722 # The archiver.
36723 AR=$lt_AR
36724 AR_FLAGS=$lt_AR_FLAGS
36725
36726 # A symbol stripping program.
36727 STRIP=$lt_STRIP
36728
36729 # Commands used to install an old-style archive.
36730 RANLIB=$lt_RANLIB
36731 old_postinstall_cmds=$lt_old_postinstall_cmds
36732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36733
36734 # A C compiler.
36735 LTCC=$lt_CC
36736
36737 # LTCC compiler flags.
36738 LTCFLAGS=$lt_CFLAGS
36739
36740 # Take the output of nm and produce a listing of raw symbols and C names.
36741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36742
36743 # Transform the output of nm in a proper C declaration.
36744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36745
36746 # Transform the output of nm in a C name address pair.
36747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36748
36749 # Transform the output of nm in a C name address pair when lib prefix is needed.
36750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36751
36752 # The name of the directory that contains temporary libtool files.
36753 objdir=$objdir
36754
36755 # Shell to use when invoking shell scripts.
36756 SHELL=$lt_SHELL
36757
36758 # An echo program that does not interpret backslashes.
36759 ECHO=$lt_ECHO
36760
36761 # Used to examine libraries when file_magic_cmd begins with "file".
36762 MAGIC_CMD=$MAGIC_CMD
36763
36764 # Must we lock files when doing compilation?
36765 need_locks=$lt_need_locks
36766
36767 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36768 DSYMUTIL=$lt_DSYMUTIL
36769
36770 # Tool to change global to local symbols on Mac OS X.
36771 NMEDIT=$lt_NMEDIT
36772
36773 # Tool to manipulate fat objects and archives on Mac OS X.
36774 LIPO=$lt_LIPO
36775
36776 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36777 OTOOL=$lt_OTOOL
36778
36779 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36780 OTOOL64=$lt_OTOOL64
36781
36782 # Old archive suffix (normally "a").
36783 libext=$libext
36784
36785 # Shared library suffix (normally ".so").
36786 shrext_cmds=$lt_shrext_cmds
36787
36788 # The commands to extract the exported symbol list from a shared archive.
36789 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36790
36791 # Variables whose values should be saved in libtool wrapper scripts and
36792 # restored at link time.
36793 variables_saved_for_relink=$lt_variables_saved_for_relink
36794
36795 # Do we need the "lib" prefix for modules?
36796 need_lib_prefix=$need_lib_prefix
36797
36798 # Do we need a version for libraries?
36799 need_version=$need_version
36800
36801 # Library versioning type.
36802 version_type=$version_type
36803
36804 # Shared library runtime path variable.
36805 runpath_var=$runpath_var
36806
36807 # Shared library path variable.
36808 shlibpath_var=$shlibpath_var
36809
36810 # Is shlibpath searched before the hard-coded library search path?
36811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36812
36813 # Format of library name prefix.
36814 libname_spec=$lt_libname_spec
36815
36816 # List of archive names.  First name is the real one, the rest are links.
36817 # The last name is the one that the linker finds with -lNAME
36818 library_names_spec=$lt_library_names_spec
36819
36820 # The coded name of the library, if different from the real name.
36821 soname_spec=$lt_soname_spec
36822
36823 # Command to use after installation of a shared archive.
36824 postinstall_cmds=$lt_postinstall_cmds
36825
36826 # Command to use after uninstallation of a shared archive.
36827 postuninstall_cmds=$lt_postuninstall_cmds
36828
36829 # Commands used to finish a libtool library installation in a directory.
36830 finish_cmds=$lt_finish_cmds
36831
36832 # As "finish_cmds", except a single script fragment to be evaled but
36833 # not shown.
36834 finish_eval=$lt_finish_eval
36835
36836 # Whether we should hardcode library paths into libraries.
36837 hardcode_into_libs=$hardcode_into_libs
36838
36839 # Compile-time system search path for libraries.
36840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36841
36842 # Run-time system search path for libraries.
36843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36844
36845 # Whether dlopen is supported.
36846 dlopen_support=$enable_dlopen
36847
36848 # Whether dlopen of programs is supported.
36849 dlopen_self=$enable_dlopen_self
36850
36851 # Whether dlopen of statically linked programs is supported.
36852 dlopen_self_static=$enable_dlopen_self_static
36853
36854 # Commands to strip libraries.
36855 old_striplib=$lt_old_striplib
36856 striplib=$lt_striplib
36857
36858
36859 # The linker used to build libraries.
36860 LD=$lt_LD
36861
36862 # Commands used to build an old-style archive.
36863 old_archive_cmds=$lt_old_archive_cmds
36864
36865 # A language specific compiler.
36866 CC=$lt_compiler
36867
36868 # Is the compiler the GNU compiler?
36869 with_gcc=$GCC
36870
36871 # Compiler flag to turn off builtin functions.
36872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36873
36874 # How to pass a linker flag through the compiler.
36875 wl=$lt_lt_prog_compiler_wl
36876
36877 # Additional compiler flags for building library objects.
36878 pic_flag=$lt_lt_prog_compiler_pic
36879
36880 # Compiler flag to prevent dynamic linking.
36881 link_static_flag=$lt_lt_prog_compiler_static
36882
36883 # Does compiler simultaneously support -c and -o options?
36884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36885
36886 # Whether or not to add -lc for building shared libraries.
36887 build_libtool_need_lc=$archive_cmds_need_lc
36888
36889 # Whether or not to disallow shared libs when runtime libs are static.
36890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36891
36892 # Compiler flag to allow reflexive dlopens.
36893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36894
36895 # Compiler flag to generate shared objects directly from archives.
36896 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36897
36898 # Whether the compiler copes with passing no objects directly.
36899 compiler_needs_object=$lt_compiler_needs_object
36900
36901 # Create an old-style archive from a shared archive.
36902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36903
36904 # Create a temporary old-style archive to link instead of a shared archive.
36905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36906
36907 # Commands used to build a shared archive.
36908 archive_cmds=$lt_archive_cmds
36909 archive_expsym_cmds=$lt_archive_expsym_cmds
36910
36911 # Commands used to build a loadable module if different from building
36912 # a shared archive.
36913 module_cmds=$lt_module_cmds
36914 module_expsym_cmds=$lt_module_expsym_cmds
36915
36916 # Whether we are building with GNU ld or not.
36917 with_gnu_ld=$lt_with_gnu_ld
36918
36919 # Flag that allows shared libraries with undefined symbols to be built.
36920 allow_undefined_flag=$lt_allow_undefined_flag
36921
36922 # Flag that enforces no undefined symbols.
36923 no_undefined_flag=$lt_no_undefined_flag
36924
36925 # Flag to hardcode \$libdir into a binary during linking.
36926 # This must work even if \$libdir does not exist
36927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36928
36929 # If ld is used when linking, flag to hardcode \$libdir into a binary
36930 # during linking.  This must work even if \$libdir does not exist.
36931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36932
36933 # Whether we need a single "-rpath" flag with a separated argument.
36934 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36935
36936 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36937 # DIR into the resulting binary.
36938 hardcode_direct=$hardcode_direct
36939
36940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36941 # DIR into the resulting binary and the resulting library dependency is
36942 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36943 # library is relocated.
36944 hardcode_direct_absolute=$hardcode_direct_absolute
36945
36946 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36947 # into the resulting binary.
36948 hardcode_minus_L=$hardcode_minus_L
36949
36950 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36951 # into the resulting binary.
36952 hardcode_shlibpath_var=$hardcode_shlibpath_var
36953
36954 # Set to "yes" if building a shared library automatically hardcodes DIR
36955 # into the library and all subsequent libraries and executables linked
36956 # against it.
36957 hardcode_automatic=$hardcode_automatic
36958
36959 # Set to yes if linker adds runtime paths of dependent libraries
36960 # to runtime path list.
36961 inherit_rpath=$inherit_rpath
36962
36963 # Whether libtool must link a program against all its dependency libraries.
36964 link_all_deplibs=$link_all_deplibs
36965
36966 # Fix the shell variable \$srcfile for the compiler.
36967 fix_srcfile_path=$lt_fix_srcfile_path
36968
36969 # Set to "yes" if exported symbols are required.
36970 always_export_symbols=$always_export_symbols
36971
36972 # The commands to list exported symbols.
36973 export_symbols_cmds=$lt_export_symbols_cmds
36974
36975 # Symbols that should not be listed in the preloaded symbols.
36976 exclude_expsyms=$lt_exclude_expsyms
36977
36978 # Symbols that must always be exported.
36979 include_expsyms=$lt_include_expsyms
36980
36981 # Commands necessary for linking programs (against libraries) with templates.
36982 prelink_cmds=$lt_prelink_cmds
36983
36984 # Specify filename containing input files.
36985 file_list_spec=$lt_file_list_spec
36986
36987 # How to hardcode a shared library path into an executable.
36988 hardcode_action=$hardcode_action
36989
36990 # The directories searched by this compiler when creating a shared library.
36991 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36992
36993 # Dependencies to place before and after the objects being linked to
36994 # create a shared library.
36995 predep_objects=$lt_predep_objects
36996 postdep_objects=$lt_postdep_objects
36997 predeps=$lt_predeps
36998 postdeps=$lt_postdeps
36999
37000 # The library search path used internally by the compiler when linking
37001 # a shared library.
37002 compiler_lib_search_path=$lt_compiler_lib_search_path
37003
37004 # ### END LIBTOOL CONFIG
37005
37006 _LT_EOF
37007
37008   case $host_os in
37009   aix3*)
37010     cat <<\_LT_EOF >> "$cfgfile"
37011 # AIX sometimes has problems with the GCC collect2 program.  For some
37012 # reason, if we set the COLLECT_NAMES environment variable, the problems
37013 # vanish in a puff of smoke.
37014 if test "X${COLLECT_NAMES+set}" != Xset; then
37015   COLLECT_NAMES=
37016   export COLLECT_NAMES
37017 fi
37018 _LT_EOF
37019     ;;
37020   esac
37021
37022
37023 ltmain="$ac_aux_dir/ltmain.sh"
37024
37025
37026   # We use sed instead of cat because bash on DJGPP gets confused if
37027   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37028   # text mode, it properly converts lines to CR/LF.  This bash problem
37029   # is reportedly fixed, but why not run on old versions too?
37030   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
37031     || (rm -f "$cfgfile"; exit 1)
37032
37033   case $xsi_shell in
37034   yes)
37035     cat << \_LT_EOF >> "$cfgfile"
37036
37037 # func_dirname file append nondir_replacement
37038 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37039 # otherwise set result to NONDIR_REPLACEMENT.
37040 func_dirname ()
37041 {
37042   case ${1} in
37043     */*) func_dirname_result="${1%/*}${2}" ;;
37044     *  ) func_dirname_result="${3}" ;;
37045   esac
37046 }
37047
37048 # func_basename file
37049 func_basename ()
37050 {
37051   func_basename_result="${1##*/}"
37052 }
37053
37054 # func_dirname_and_basename file append nondir_replacement
37055 # perform func_basename and func_dirname in a single function
37056 # call:
37057 #   dirname:  Compute the dirname of FILE.  If nonempty,
37058 #             add APPEND to the result, otherwise set result
37059 #             to NONDIR_REPLACEMENT.
37060 #             value returned in "$func_dirname_result"
37061 #   basename: Compute filename of FILE.
37062 #             value retuned in "$func_basename_result"
37063 # Implementation must be kept synchronized with func_dirname
37064 # and func_basename. For efficiency, we do not delegate to
37065 # those functions but instead duplicate the functionality here.
37066 func_dirname_and_basename ()
37067 {
37068   case ${1} in
37069     */*) func_dirname_result="${1%/*}${2}" ;;
37070     *  ) func_dirname_result="${3}" ;;
37071   esac
37072   func_basename_result="${1##*/}"
37073 }
37074
37075 # func_stripname prefix suffix name
37076 # strip PREFIX and SUFFIX off of NAME.
37077 # PREFIX and SUFFIX must not contain globbing or regex special
37078 # characters, hashes, percent signs, but SUFFIX may contain a leading
37079 # dot (in which case that matches only a dot).
37080 func_stripname ()
37081 {
37082   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
37083   # positional parameters, so assign one to ordinary parameter first.
37084   func_stripname_result=${3}
37085   func_stripname_result=${func_stripname_result#"${1}"}
37086   func_stripname_result=${func_stripname_result%"${2}"}
37087 }
37088
37089 # func_opt_split
37090 func_opt_split ()
37091 {
37092   func_opt_split_opt=${1%%=*}
37093   func_opt_split_arg=${1#*=}
37094 }
37095
37096 # func_lo2o object
37097 func_lo2o ()
37098 {
37099   case ${1} in
37100     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
37101     *)    func_lo2o_result=${1} ;;
37102   esac
37103 }
37104
37105 # func_xform libobj-or-source
37106 func_xform ()
37107 {
37108   func_xform_result=${1%.*}.lo
37109 }
37110
37111 # func_arith arithmetic-term...
37112 func_arith ()
37113 {
37114   func_arith_result=$(( $* ))
37115 }
37116
37117 # func_len string
37118 # STRING may not start with a hyphen.
37119 func_len ()
37120 {
37121   func_len_result=${#1}
37122 }
37123
37124 _LT_EOF
37125     ;;
37126   *) # Bourne compatible functions.
37127     cat << \_LT_EOF >> "$cfgfile"
37128
37129 # func_dirname file append nondir_replacement
37130 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
37131 # otherwise set result to NONDIR_REPLACEMENT.
37132 func_dirname ()
37133 {
37134   # Extract subdirectory from the argument.
37135   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
37136   if test "X$func_dirname_result" = "X${1}"; then
37137     func_dirname_result="${3}"
37138   else
37139     func_dirname_result="$func_dirname_result${2}"
37140   fi
37141 }
37142
37143 # func_basename file
37144 func_basename ()
37145 {
37146   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
37147 }
37148
37149
37150 # func_stripname prefix suffix name
37151 # strip PREFIX and SUFFIX off of NAME.
37152 # PREFIX and SUFFIX must not contain globbing or regex special
37153 # characters, hashes, percent signs, but SUFFIX may contain a leading
37154 # dot (in which case that matches only a dot).
37155 # func_strip_suffix prefix name
37156 func_stripname ()
37157 {
37158   case ${2} in
37159     .*) func_stripname_result=`$ECHO "X${3}" \
37160            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
37161     *)  func_stripname_result=`$ECHO "X${3}" \
37162            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
37163   esac
37164 }
37165
37166 # sed scripts:
37167 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
37168 my_sed_long_arg='1s/^-[^=]*=//'
37169
37170 # func_opt_split
37171 func_opt_split ()
37172 {
37173   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
37174   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
37175 }
37176
37177 # func_lo2o object
37178 func_lo2o ()
37179 {
37180   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
37181 }
37182
37183 # func_xform libobj-or-source
37184 func_xform ()
37185 {
37186   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
37187 }
37188
37189 # func_arith arithmetic-term...
37190 func_arith ()
37191 {
37192   func_arith_result=`expr "$@"`
37193 }
37194
37195 # func_len string
37196 # STRING may not start with a hyphen.
37197 func_len ()
37198 {
37199   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
37200 }
37201
37202 _LT_EOF
37203 esac
37204
37205 case $lt_shell_append in
37206   yes)
37207     cat << \_LT_EOF >> "$cfgfile"
37208
37209 # func_append var value
37210 # Append VALUE to the end of shell variable VAR.
37211 func_append ()
37212 {
37213   eval "$1+=\$2"
37214 }
37215 _LT_EOF
37216     ;;
37217   *)
37218     cat << \_LT_EOF >> "$cfgfile"
37219
37220 # func_append var value
37221 # Append VALUE to the end of shell variable VAR.
37222 func_append ()
37223 {
37224   eval "$1=\$$1\$2"
37225 }
37226
37227 _LT_EOF
37228     ;;
37229   esac
37230
37231
37232   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
37233     || (rm -f "$cfgfile"; exit 1)
37234
37235   mv -f "$cfgfile" "$ofile" ||
37236     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37237   chmod +x "$ofile"
37238
37239
37240     cat <<_LT_EOF >> "$ofile"
37241
37242 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37243
37244 # The linker used to build libraries.
37245 LD=$lt_LD_CXX
37246
37247 # Commands used to build an old-style archive.
37248 old_archive_cmds=$lt_old_archive_cmds_CXX
37249
37250 # A language specific compiler.
37251 CC=$lt_compiler_CXX
37252
37253 # Is the compiler the GNU compiler?
37254 with_gcc=$GCC_CXX
37255
37256 # Compiler flag to turn off builtin functions.
37257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37258
37259 # How to pass a linker flag through the compiler.
37260 wl=$lt_lt_prog_compiler_wl_CXX
37261
37262 # Additional compiler flags for building library objects.
37263 pic_flag=$lt_lt_prog_compiler_pic_CXX
37264
37265 # Compiler flag to prevent dynamic linking.
37266 link_static_flag=$lt_lt_prog_compiler_static_CXX
37267
37268 # Does compiler simultaneously support -c and -o options?
37269 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37270
37271 # Whether or not to add -lc for building shared libraries.
37272 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37273
37274 # Whether or not to disallow shared libs when runtime libs are static.
37275 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37276
37277 # Compiler flag to allow reflexive dlopens.
37278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37279
37280 # Compiler flag to generate shared objects directly from archives.
37281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37282
37283 # Whether the compiler copes with passing no objects directly.
37284 compiler_needs_object=$lt_compiler_needs_object_CXX
37285
37286 # Create an old-style archive from a shared archive.
37287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37288
37289 # Create a temporary old-style archive to link instead of a shared archive.
37290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37291
37292 # Commands used to build a shared archive.
37293 archive_cmds=$lt_archive_cmds_CXX
37294 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37295
37296 # Commands used to build a loadable module if different from building
37297 # a shared archive.
37298 module_cmds=$lt_module_cmds_CXX
37299 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37300
37301 # Whether we are building with GNU ld or not.
37302 with_gnu_ld=$lt_with_gnu_ld_CXX
37303
37304 # Flag that allows shared libraries with undefined symbols to be built.
37305 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37306
37307 # Flag that enforces no undefined symbols.
37308 no_undefined_flag=$lt_no_undefined_flag_CXX
37309
37310 # Flag to hardcode \$libdir into a binary during linking.
37311 # This must work even if \$libdir does not exist
37312 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37313
37314 # If ld is used when linking, flag to hardcode \$libdir into a binary
37315 # during linking.  This must work even if \$libdir does not exist.
37316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37317
37318 # Whether we need a single "-rpath" flag with a separated argument.
37319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37320
37321 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37322 # DIR into the resulting binary.
37323 hardcode_direct=$hardcode_direct_CXX
37324
37325 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37326 # DIR into the resulting binary and the resulting library dependency is
37327 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37328 # library is relocated.
37329 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37330
37331 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37332 # into the resulting binary.
37333 hardcode_minus_L=$hardcode_minus_L_CXX
37334
37335 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37336 # into the resulting binary.
37337 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37338
37339 # Set to "yes" if building a shared library automatically hardcodes DIR
37340 # into the library and all subsequent libraries and executables linked
37341 # against it.
37342 hardcode_automatic=$hardcode_automatic_CXX
37343
37344 # Set to yes if linker adds runtime paths of dependent libraries
37345 # to runtime path list.
37346 inherit_rpath=$inherit_rpath_CXX
37347
37348 # Whether libtool must link a program against all its dependency libraries.
37349 link_all_deplibs=$link_all_deplibs_CXX
37350
37351 # Fix the shell variable \$srcfile for the compiler.
37352 fix_srcfile_path=$lt_fix_srcfile_path_CXX
37353
37354 # Set to "yes" if exported symbols are required.
37355 always_export_symbols=$always_export_symbols_CXX
37356
37357 # The commands to list exported symbols.
37358 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37359
37360 # Symbols that should not be listed in the preloaded symbols.
37361 exclude_expsyms=$lt_exclude_expsyms_CXX
37362
37363 # Symbols that must always be exported.
37364 include_expsyms=$lt_include_expsyms_CXX
37365
37366 # Commands necessary for linking programs (against libraries) with templates.
37367 prelink_cmds=$lt_prelink_cmds_CXX
37368
37369 # Specify filename containing input files.
37370 file_list_spec=$lt_file_list_spec_CXX
37371
37372 # How to hardcode a shared library path into an executable.
37373 hardcode_action=$hardcode_action_CXX
37374
37375 # The directories searched by this compiler when creating a shared library.
37376 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37377
37378 # Dependencies to place before and after the objects being linked to
37379 # create a shared library.
37380 predep_objects=$lt_predep_objects_CXX
37381 postdep_objects=$lt_postdep_objects_CXX
37382 predeps=$lt_predeps_CXX
37383 postdeps=$lt_postdeps_CXX
37384
37385 # The library search path used internally by the compiler when linking
37386 # a shared library.
37387 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37388
37389 # ### END LIBTOOL TAG CONFIG: CXX
37390 _LT_EOF
37391
37392
37393     cat <<_LT_EOF >> "$ofile"
37394
37395 # ### BEGIN LIBTOOL TAG CONFIG: F77
37396
37397 # The linker used to build libraries.
37398 LD=$lt_LD_F77
37399
37400 # Commands used to build an old-style archive.
37401 old_archive_cmds=$lt_old_archive_cmds_F77
37402
37403 # A language specific compiler.
37404 CC=$lt_compiler_F77
37405
37406 # Is the compiler the GNU compiler?
37407 with_gcc=$GCC_F77
37408
37409 # Compiler flag to turn off builtin functions.
37410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
37411
37412 # How to pass a linker flag through the compiler.
37413 wl=$lt_lt_prog_compiler_wl_F77
37414
37415 # Additional compiler flags for building library objects.
37416 pic_flag=$lt_lt_prog_compiler_pic_F77
37417
37418 # Compiler flag to prevent dynamic linking.
37419 link_static_flag=$lt_lt_prog_compiler_static_F77
37420
37421 # Does compiler simultaneously support -c and -o options?
37422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
37423
37424 # Whether or not to add -lc for building shared libraries.
37425 build_libtool_need_lc=$archive_cmds_need_lc_F77
37426
37427 # Whether or not to disallow shared libs when runtime libs are static.
37428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
37429
37430 # Compiler flag to allow reflexive dlopens.
37431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
37432
37433 # Compiler flag to generate shared objects directly from archives.
37434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
37435
37436 # Whether the compiler copes with passing no objects directly.
37437 compiler_needs_object=$lt_compiler_needs_object_F77
37438
37439 # Create an old-style archive from a shared archive.
37440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
37441
37442 # Create a temporary old-style archive to link instead of a shared archive.
37443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
37444
37445 # Commands used to build a shared archive.
37446 archive_cmds=$lt_archive_cmds_F77
37447 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
37448
37449 # Commands used to build a loadable module if different from building
37450 # a shared archive.
37451 module_cmds=$lt_module_cmds_F77
37452 module_expsym_cmds=$lt_module_expsym_cmds_F77
37453
37454 # Whether we are building with GNU ld or not.
37455 with_gnu_ld=$lt_with_gnu_ld_F77
37456
37457 # Flag that allows shared libraries with undefined symbols to be built.
37458 allow_undefined_flag=$lt_allow_undefined_flag_F77
37459
37460 # Flag that enforces no undefined symbols.
37461 no_undefined_flag=$lt_no_undefined_flag_F77
37462
37463 # Flag to hardcode \$libdir into a binary during linking.
37464 # This must work even if \$libdir does not exist
37465 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
37466
37467 # If ld is used when linking, flag to hardcode \$libdir into a binary
37468 # during linking.  This must work even if \$libdir does not exist.
37469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
37470
37471 # Whether we need a single "-rpath" flag with a separated argument.
37472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
37473
37474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37475 # DIR into the resulting binary.
37476 hardcode_direct=$hardcode_direct_F77
37477
37478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37479 # DIR into the resulting binary and the resulting library dependency is
37480 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37481 # library is relocated.
37482 hardcode_direct_absolute=$hardcode_direct_absolute_F77
37483
37484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37485 # into the resulting binary.
37486 hardcode_minus_L=$hardcode_minus_L_F77
37487
37488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37489 # into the resulting binary.
37490 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
37491
37492 # Set to "yes" if building a shared library automatically hardcodes DIR
37493 # into the library and all subsequent libraries and executables linked
37494 # against it.
37495 hardcode_automatic=$hardcode_automatic_F77
37496
37497 # Set to yes if linker adds runtime paths of dependent libraries
37498 # to runtime path list.
37499 inherit_rpath=$inherit_rpath_F77
37500
37501 # Whether libtool must link a program against all its dependency libraries.
37502 link_all_deplibs=$link_all_deplibs_F77
37503
37504 # Fix the shell variable \$srcfile for the compiler.
37505 fix_srcfile_path=$lt_fix_srcfile_path_F77
37506
37507 # Set to "yes" if exported symbols are required.
37508 always_export_symbols=$always_export_symbols_F77
37509
37510 # The commands to list exported symbols.
37511 export_symbols_cmds=$lt_export_symbols_cmds_F77
37512
37513 # Symbols that should not be listed in the preloaded symbols.
37514 exclude_expsyms=$lt_exclude_expsyms_F77
37515
37516 # Symbols that must always be exported.
37517 include_expsyms=$lt_include_expsyms_F77
37518
37519 # Commands necessary for linking programs (against libraries) with templates.
37520 prelink_cmds=$lt_prelink_cmds_F77
37521
37522 # Specify filename containing input files.
37523 file_list_spec=$lt_file_list_spec_F77
37524
37525 # How to hardcode a shared library path into an executable.
37526 hardcode_action=$hardcode_action_F77
37527
37528 # The directories searched by this compiler when creating a shared library.
37529 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
37530
37531 # Dependencies to place before and after the objects being linked to
37532 # create a shared library.
37533 predep_objects=$lt_predep_objects_F77
37534 postdep_objects=$lt_postdep_objects_F77
37535 predeps=$lt_predeps_F77
37536 postdeps=$lt_postdeps_F77
37537
37538 # The library search path used internally by the compiler when linking
37539 # a shared library.
37540 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
37541
37542 # ### END LIBTOOL TAG CONFIG: F77
37543 _LT_EOF
37544
37545  ;;
37546     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
37547     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
37548     "run_tests_usrp2":C) chmod +x gr-usrp2/src/run_tests ;;
37549     "run_tests_gcell":C) chmod +x gr-gcell/src/run_tests ;;
37550     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
37551     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
37552     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
37553     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
37554     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
37555     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
37556     "run_tests_cvsd":C) chmod +x gr-cvsd-vocoder/src/python/run_tests ;;
37557     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
37558     "run_tests_pager":C) chmod +x gr-pager/src/run_tests ;;
37559     "run_tests_radar_mono":C) chmod +x gr-radar-mono/src/python/run_tests ;;
37560     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
37561     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
37562     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
37563     "run_tests_sounder":C) chmod +x gr-sounder/src/python/run_tests ;;
37564     "run_tests_build":C) chmod +x run_tests.sh ;;
37565
37566   esac
37567 done # for ac_tag
37568
37569
37570 as_fn_exit 0
37571 _ACEOF
37572 ac_clean_files=$ac_clean_files_save
37573
37574 test $ac_write_fail = 0 ||
37575   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
37576
37577
37578 # configure is writing to config.log, and then calls config.status.
37579 # config.status does its own redirection, appending to config.log.
37580 # Unfortunately, on DOS this fails, as config.log is still kept open
37581 # by configure, so config.status won't be able to write to it; its
37582 # output is simply discarded.  So we exec the FD to /dev/null,
37583 # effectively closing config.log, so it can be properly (re)opened and
37584 # appended to by config.status.  When coming back to configure, we
37585 # need to make the FD available again.
37586 if test "$no_create" != yes; then
37587   ac_cs_success=:
37588   ac_config_status_args=
37589   test "$silent" = yes &&
37590     ac_config_status_args="$ac_config_status_args --quiet"
37591   exec 5>/dev/null
37592   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37593   exec 5>>config.log
37594   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37595   # would make configure fail if this is the last instruction.
37596   $ac_cs_success || as_fn_exit $?
37597 fi
37598
37599 #
37600 # CONFIG_SUBDIRS section.
37601 #
37602 if test "$no_recursion" != yes; then
37603
37604   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
37605   # so they do not pile up.
37606   ac_sub_configure_args=
37607   ac_prev=
37608   eval "set x $ac_configure_args"
37609   shift
37610   for ac_arg
37611   do
37612     if test -n "$ac_prev"; then
37613       ac_prev=
37614       continue
37615     fi
37616     case $ac_arg in
37617     -cache-file | --cache-file | --cache-fil | --cache-fi \
37618     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37619       ac_prev=cache_file ;;
37620     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37621     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37622     | --c=*)
37623       ;;
37624     --config-cache | -C)
37625       ;;
37626     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37627       ac_prev=srcdir ;;
37628     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37629       ;;
37630     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37631       ac_prev=prefix ;;
37632     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37633       ;;
37634     --disable-option-checking)
37635       ;;
37636     *)
37637       case $ac_arg in
37638       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37639       esac
37640       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
37641     esac
37642   done
37643
37644   # Always prepend --prefix to ensure using the same prefix
37645   # in subdir configurations.
37646   ac_arg="--prefix=$prefix"
37647   case $ac_arg in
37648   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37649   esac
37650   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
37651
37652   # Pass --silent
37653   if test "$silent" = yes; then
37654     ac_sub_configure_args="--silent $ac_sub_configure_args"
37655   fi
37656
37657   # Always prepend --disable-option-checking to silence warnings, since
37658   # different subdirs can have different --enable and --with options.
37659   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
37660
37661   ac_popdir=`pwd`
37662   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37663
37664     # Do not complain, so a configure script can configure whichever
37665     # parts of a large source tree are present.
37666     test -d "$srcdir/$ac_dir" || continue
37667
37668     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
37669     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
37670     $as_echo "$ac_msg" >&6
37671     as_dir="$ac_dir"; as_fn_mkdir_p
37672     ac_builddir=.
37673
37674 case "$ac_dir" in
37675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37676 *)
37677   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37678   # A ".." for each directory in $ac_dir_suffix.
37679   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37680   case $ac_top_builddir_sub in
37681   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37682   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37683   esac ;;
37684 esac
37685 ac_abs_top_builddir=$ac_pwd
37686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37687 # for backward compatibility:
37688 ac_top_builddir=$ac_top_build_prefix
37689
37690 case $srcdir in
37691   .)  # We are building in place.
37692     ac_srcdir=.
37693     ac_top_srcdir=$ac_top_builddir_sub
37694     ac_abs_top_srcdir=$ac_pwd ;;
37695   [\\/]* | ?:[\\/]* )  # Absolute name.
37696     ac_srcdir=$srcdir$ac_dir_suffix;
37697     ac_top_srcdir=$srcdir
37698     ac_abs_top_srcdir=$srcdir ;;
37699   *) # Relative name.
37700     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37701     ac_top_srcdir=$ac_top_build_prefix$srcdir
37702     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37703 esac
37704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37705
37706
37707     cd "$ac_dir"
37708
37709     # Check for guested configure; otherwise get Cygnus style configure.
37710     if test -f "$ac_srcdir/configure.gnu"; then
37711       ac_sub_configure=$ac_srcdir/configure.gnu
37712     elif test -f "$ac_srcdir/configure"; then
37713       ac_sub_configure=$ac_srcdir/configure
37714     elif test -f "$ac_srcdir/configure.in"; then
37715       # This should be Cygnus configure.
37716       ac_sub_configure=$ac_aux_dir/configure
37717     else
37718       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
37719 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37720       ac_sub_configure=
37721     fi
37722
37723     # The recursion is here.
37724     if test -n "$ac_sub_configure"; then
37725       # Make the cache file name correct relative to the subdirectory.
37726       case $cache_file in
37727       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37728       *) # Relative name.
37729         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
37730       esac
37731
37732       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37733 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37734       # The eval makes quoting arguments work.
37735       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
37736            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
37737         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
37738     fi
37739
37740     cd "$ac_popdir"
37741   done
37742 fi
37743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37744   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37746 fi
37747
37748
37749 echo
37750 echo "*********************************************************************"
37751 echo The following GNU Radio components have been successfully configured:
37752 echo
37753 for dir in $build_dirs
37754 do
37755     echo $dir
37756 done
37757 echo
37758 echo You my now run the 'make' command to build these components.
37759 echo
37760 if test "$skipped_dirs" != ""; then
37761     echo "*********************************************************************"
37762     echo The following components were skipped either because you asked not
37763     echo to build them or they didn\'t pass configuration checks:
37764     echo
37765     for dir in $skipped_dirs
37766     do
37767         echo $dir
37768     done
37769     echo
37770     echo These components will not be built.
37771     echo
37772 fi
37773 if test "$with_dirs" != ""; then
37774     echo "*********************************************************************"
37775     echo The following components will be included from pre-installed
37776     echo libraries and includes:
37777     echo
37778     for dir in $with_dirs
37779     do
37780         echo $dir
37781     done
37782     echo
37783     echo These components will not be built.
37784     echo
37785 fi