[multiple changes]
[platform/upstream/gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='GNU OpenMP Runtime Library'
697 PACKAGE_TARNAME='libgomp'
698 PACKAGE_VERSION='1.0'
699 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
702
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 #  include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 #  include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
738
739 ac_subst_vars='am__EXEEXT_FALSE
740 am__EXEEXT_TRUE
741 LTLIBOBJS
742 LIBOBJS
743 OMP_NEST_LOCK_25_KIND
744 OMP_LOCK_25_KIND
745 OMP_NEST_LOCK_25_ALIGN
746 OMP_NEST_LOCK_25_SIZE
747 OMP_LOCK_25_ALIGN
748 OMP_LOCK_25_SIZE
749 OMP_NEST_LOCK_KIND
750 OMP_LOCK_KIND
751 OMP_NEST_LOCK_ALIGN
752 OMP_NEST_LOCK_SIZE
753 OMP_LOCK_ALIGN
754 OMP_LOCK_SIZE
755 USE_FORTRAN_FALSE
756 USE_FORTRAN_TRUE
757 link_gomp
758 XLDFLAGS
759 XCFLAGS
760 config_path
761 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
762 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
763 OPT_LDFLAGS
764 SECTION_LDFLAGS
765 libtool_VERSION
766 ac_ct_FC
767 FCFLAGS
768 FC
769 MAINT
770 MAINTAINER_MODE_FALSE
771 MAINTAINER_MODE_TRUE
772 enable_static
773 enable_shared
774 CPP
775 OTOOL64
776 OTOOL
777 LIPO
778 NMEDIT
779 DSYMUTIL
780 lt_ECHO
781 OBJDUMP
782 LN_S
783 NM
784 ac_ct_DUMPBIN
785 DUMPBIN
786 LD
787 FGREP
788 EGREP
789 GREP
790 SED
791 LIBTOOL
792 BUILD_INFO_FALSE
793 BUILD_INFO_TRUE
794 PERL
795 RANLIB
796 AR
797 am__fastdepCC_FALSE
798 am__fastdepCC_TRUE
799 CCDEPMODE
800 AMDEPBACKSLASH
801 AMDEP_FALSE
802 AMDEP_TRUE
803 am__quote
804 am__include
805 DEPDIR
806 OBJEXT
807 EXEEXT
808 ac_ct_CC
809 CPPFLAGS
810 LDFLAGS
811 CFLAGS
812 CC
813 toolexeclibdir
814 toolexecdir
815 multi_basedir
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_os
840 target_vendor
841 target_cpu
842 target
843 host_os
844 host_vendor
845 host_cpu
846 host
847 build_os
848 build_vendor
849 build_cpu
850 build
851 GENINSRC_FALSE
852 GENINSRC_TRUE
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 localstatedir
873 sharedstatedir
874 sysconfdir
875 datadir
876 datarootdir
877 libexecdir
878 sbindir
879 bindir
880 program_transform_name
881 prefix
882 exec_prefix
883 PACKAGE_URL
884 PACKAGE_BUGREPORT
885 PACKAGE_STRING
886 PACKAGE_VERSION
887 PACKAGE_TARNAME
888 PACKAGE_NAME
889 PATH_SEPARATOR
890 SHELL'
891 ac_subst_files=''
892 ac_user_opts='
893 enable_option_checking
894 enable_version_specific_runtime_libs
895 enable_generated_files_in_srcdir
896 enable_multilib
897 enable_dependency_tracking
898 enable_shared
899 enable_static
900 with_pic
901 enable_fast_install
902 with_gnu_ld
903 enable_libtool_lock
904 enable_maintainer_mode
905 enable_linux_futex
906 enable_tls
907 enable_symvers
908 '
909       ac_precious_vars='build_alias
910 host_alias
911 target_alias
912 CPP
913 CPPFLAGS
914 FC
915 FCFLAGS
916 LDFLAGS
917 LIBS'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *)    ac_optarg=yes ;;
982   esac
983
984   # Accept the important Cygnus configure options, so we can diagnose typos.
985
986   case $ac_dashdash$ac_option in
987   --)
988     ac_dashdash=yes ;;
989
990   -bindir | --bindir | --bindi | --bind | --bin | --bi)
991     ac_prev=bindir ;;
992   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993     bindir=$ac_optarg ;;
994
995   -build | --build | --buil | --bui | --bu)
996     ac_prev=build_alias ;;
997   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998     build_alias=$ac_optarg ;;
999
1000   -cache-file | --cache-file | --cache-fil | --cache-fi \
1001   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002     ac_prev=cache_file ;;
1003   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005     cache_file=$ac_optarg ;;
1006
1007   --config-cache | -C)
1008     cache_file=config.cache ;;
1009
1010   -datadir | --datadir | --datadi | --datad)
1011     ac_prev=datadir ;;
1012   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013     datadir=$ac_optarg ;;
1014
1015   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016   | --dataroo | --dataro | --datar)
1017     ac_prev=datarootdir ;;
1018   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020     datarootdir=$ac_optarg ;;
1021
1022   -disable-* | --disable-*)
1023     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026       as_fn_error "invalid feature name: $ac_useropt"
1027     ac_useropt_orig=$ac_useropt
1028     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029     case $ac_user_opts in
1030       *"
1031 "enable_$ac_useropt"
1032 "*) ;;
1033       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034          ac_unrecognized_sep=', ';;
1035     esac
1036     eval enable_$ac_useropt=no ;;
1037
1038   -docdir | --docdir | --docdi | --doc | --do)
1039     ac_prev=docdir ;;
1040   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041     docdir=$ac_optarg ;;
1042
1043   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044     ac_prev=dvidir ;;
1045   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046     dvidir=$ac_optarg ;;
1047
1048   -enable-* | --enable-*)
1049     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052       as_fn_error "invalid feature name: $ac_useropt"
1053     ac_useropt_orig=$ac_useropt
1054     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055     case $ac_user_opts in
1056       *"
1057 "enable_$ac_useropt"
1058 "*) ;;
1059       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060          ac_unrecognized_sep=', ';;
1061     esac
1062     eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066   | --exec | --exe | --ex)
1067     ac_prev=exec_prefix ;;
1068   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070   | --exec=* | --exe=* | --ex=*)
1071     exec_prefix=$ac_optarg ;;
1072
1073   -gas | --gas | --ga | --g)
1074     # Obsolete; use --with-gas.
1075     with_gas=yes ;;
1076
1077   -help | --help | --hel | --he | -h)
1078     ac_init_help=long ;;
1079   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080     ac_init_help=recursive ;;
1081   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082     ac_init_help=short ;;
1083
1084   -host | --host | --hos | --ho)
1085     ac_prev=host_alias ;;
1086   -host=* | --host=* | --hos=* | --ho=*)
1087     host_alias=$ac_optarg ;;
1088
1089   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090     ac_prev=htmldir ;;
1091   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092   | --ht=*)
1093     htmldir=$ac_optarg ;;
1094
1095   -includedir | --includedir | --includedi | --included | --include \
1096   | --includ | --inclu | --incl | --inc)
1097     ac_prev=includedir ;;
1098   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099   | --includ=* | --inclu=* | --incl=* | --inc=*)
1100     includedir=$ac_optarg ;;
1101
1102   -infodir | --infodir | --infodi | --infod | --info | --inf)
1103     ac_prev=infodir ;;
1104   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105     infodir=$ac_optarg ;;
1106
1107   -libdir | --libdir | --libdi | --libd)
1108     ac_prev=libdir ;;
1109   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110     libdir=$ac_optarg ;;
1111
1112   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113   | --libexe | --libex | --libe)
1114     ac_prev=libexecdir ;;
1115   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116   | --libexe=* | --libex=* | --libe=*)
1117     libexecdir=$ac_optarg ;;
1118
1119   -localedir | --localedir | --localedi | --localed | --locale)
1120     ac_prev=localedir ;;
1121   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122     localedir=$ac_optarg ;;
1123
1124   -localstatedir | --localstatedir | --localstatedi | --localstated \
1125   | --localstate | --localstat | --localsta | --localst | --locals)
1126     ac_prev=localstatedir ;;
1127   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129     localstatedir=$ac_optarg ;;
1130
1131   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132     ac_prev=mandir ;;
1133   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134     mandir=$ac_optarg ;;
1135
1136   -nfp | --nfp | --nf)
1137     # Obsolete; use --without-fp.
1138     with_fp=no ;;
1139
1140   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141   | --no-cr | --no-c | -n)
1142     no_create=yes ;;
1143
1144   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146     no_recursion=yes ;;
1147
1148   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150   | --oldin | --oldi | --old | --ol | --o)
1151     ac_prev=oldincludedir ;;
1152   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155     oldincludedir=$ac_optarg ;;
1156
1157   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158     ac_prev=prefix ;;
1159   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160     prefix=$ac_optarg ;;
1161
1162   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163   | --program-pre | --program-pr | --program-p)
1164     ac_prev=program_prefix ;;
1165   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167     program_prefix=$ac_optarg ;;
1168
1169   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170   | --program-suf | --program-su | --program-s)
1171     ac_prev=program_suffix ;;
1172   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174     program_suffix=$ac_optarg ;;
1175
1176   -program-transform-name | --program-transform-name \
1177   | --program-transform-nam | --program-transform-na \
1178   | --program-transform-n | --program-transform- \
1179   | --program-transform | --program-transfor \
1180   | --program-transfo | --program-transf \
1181   | --program-trans | --program-tran \
1182   | --progr-tra | --program-tr | --program-t)
1183     ac_prev=program_transform_name ;;
1184   -program-transform-name=* | --program-transform-name=* \
1185   | --program-transform-nam=* | --program-transform-na=* \
1186   | --program-transform-n=* | --program-transform-=* \
1187   | --program-transform=* | --program-transfor=* \
1188   | --program-transfo=* | --program-transf=* \
1189   | --program-trans=* | --program-tran=* \
1190   | --progr-tra=* | --program-tr=* | --program-t=*)
1191     program_transform_name=$ac_optarg ;;
1192
1193   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194     ac_prev=pdfdir ;;
1195   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196     pdfdir=$ac_optarg ;;
1197
1198   -psdir | --psdir | --psdi | --psd | --ps)
1199     ac_prev=psdir ;;
1200   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201     psdir=$ac_optarg ;;
1202
1203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204   | -silent | --silent | --silen | --sile | --sil)
1205     silent=yes ;;
1206
1207   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208     ac_prev=sbindir ;;
1209   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210   | --sbi=* | --sb=*)
1211     sbindir=$ac_optarg ;;
1212
1213   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215   | --sharedst | --shareds | --shared | --share | --shar \
1216   | --sha | --sh)
1217     ac_prev=sharedstatedir ;;
1218   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221   | --sha=* | --sh=*)
1222     sharedstatedir=$ac_optarg ;;
1223
1224   -site | --site | --sit)
1225     ac_prev=site ;;
1226   -site=* | --site=* | --sit=*)
1227     site=$ac_optarg ;;
1228
1229   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230     ac_prev=srcdir ;;
1231   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232     srcdir=$ac_optarg ;;
1233
1234   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235   | --syscon | --sysco | --sysc | --sys | --sy)
1236     ac_prev=sysconfdir ;;
1237   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239     sysconfdir=$ac_optarg ;;
1240
1241   -target | --target | --targe | --targ | --tar | --ta | --t)
1242     ac_prev=target_alias ;;
1243   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244     target_alias=$ac_optarg ;;
1245
1246   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247     verbose=yes ;;
1248
1249   -version | --version | --versio | --versi | --vers | -V)
1250     ac_init_version=: ;;
1251
1252   -with-* | --with-*)
1253     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256       as_fn_error "invalid package name: $ac_useropt"
1257     ac_useropt_orig=$ac_useropt
1258     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259     case $ac_user_opts in
1260       *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264          ac_unrecognized_sep=', ';;
1265     esac
1266     eval with_$ac_useropt=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272       as_fn_error "invalid package name: $ac_useropt"
1273     ac_useropt_orig=$ac_useropt
1274     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275     case $ac_user_opts in
1276       *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280          ac_unrecognized_sep=', ';;
1281     esac
1282     eval with_$ac_useropt=no ;;
1283
1284   --x)
1285     # Obsolete; use --with-x.
1286     with_x=yes ;;
1287
1288   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289   | --x-incl | --x-inc | --x-in | --x-i)
1290     ac_prev=x_includes ;;
1291   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293     x_includes=$ac_optarg ;;
1294
1295   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297     ac_prev=x_libraries ;;
1298   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300     x_libraries=$ac_optarg ;;
1301
1302   -*) as_fn_error "unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information."
1304     ;;
1305
1306   *=*)
1307     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308     # Reject names that are not valid shell variable names.
1309     case $ac_envvar in #(
1310       '' | [0-9]* | *[!_$as_cr_alnum]* )
1311       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1312     esac
1313     eval $ac_envvar=\$ac_optarg
1314     export $ac_envvar ;;
1315
1316   *)
1317     # FIXME: should be removed in autoconf 3.0.
1318     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322     ;;
1323
1324   esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329   as_fn_error "missing argument to $ac_option"
1330 fi
1331
1332 if test -n "$ac_unrecognized_opts"; then
1333   case $enable_option_checking in
1334     no) ;;
1335     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1336     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337   esac
1338 fi
1339
1340 # Check all directory arguments for consistency.
1341 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342                 datadir sysconfdir sharedstatedir localstatedir includedir \
1343                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344                 libdir localedir mandir
1345 do
1346   eval ac_val=\$$ac_var
1347   # Remove trailing slashes.
1348   case $ac_val in
1349     */ )
1350       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351       eval $ac_var=\$ac_val;;
1352   esac
1353   # Be sure to have absolute directory names.
1354   case $ac_val in
1355     [\\/$]* | ?:[\\/]* )  continue;;
1356     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357   esac
1358   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1359 done
1360
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370   if test "x$build_alias" = x; then
1371     cross_compiling=maybe
1372     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373     If a cross compiler is detected then cross compile mode will be used." >&2
1374   elif test "x$build_alias" != "x$host_alias"; then
1375     cross_compiling=yes
1376   fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388   as_fn_error "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390   as_fn_error "pwd does not report name of working directory"
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395   ac_srcdir_defaulted=yes
1396   # Try the directory containing this script, then the parent directory.
1397   ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399          X"$as_myself" : 'X\(//\)[^/]' \| \
1400          X"$as_myself" : 'X\(//\)$' \| \
1401          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)[^/].*/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\).*/{
1416             s//\1/
1417             q
1418           }
1419           s/.*/./; q'`
1420   srcdir=$ac_confdir
1421   if test ! -r "$srcdir/$ac_unique_file"; then
1422     srcdir=..
1423   fi
1424 else
1425   ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493   --bindir=DIR            user executables [EPREFIX/bin]
1494   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR        program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1499   --libdir=DIR            object code libraries [EPREFIX/lib]
1500   --includedir=DIR        C header files [PREFIX/include]
1501   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1502   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1503   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1504   --infodir=DIR           info documentation [DATAROOTDIR/info]
1505   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1506   --mandir=DIR            man documentation [DATAROOTDIR/man]
1507   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1508   --htmldir=DIR           html documentation [DOCDIR]
1509   --dvidir=DIR            dvi documentation [DOCDIR]
1510   --pdfdir=DIR            pdf documentation [DOCDIR]
1511   --psdir=DIR             ps documentation [DOCDIR]
1512 _ACEOF
1513
1514   cat <<\_ACEOF
1515
1516 Program names:
1517   --program-prefix=PREFIX            prepend PREFIX to installed program names
1518   --program-suffix=SUFFIX            append SUFFIX to installed program names
1519   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1520
1521 System types:
1522   --build=BUILD     configure for building on BUILD [guessed]
1523   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1524   --target=TARGET   configure for building compilers for TARGET [HOST]
1525 _ACEOF
1526 fi
1527
1528 if test -n "$ac_init_help"; then
1529   case $ac_init_help in
1530      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1531    esac
1532   cat <<\_ACEOF
1533
1534 Optional Features:
1535   --disable-option-checking  ignore unrecognized --enable/--with options
1536   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538   --enable-version-specific-runtime-libs
1539                           Specify that runtime libraries should be installed
1540                           in a compiler-specific directory [default=no]
1541   --enable-generated-files-in-srcdir
1542                           put copies of generated files in source dir intended
1543                           for creating source tarballs for users without
1544                           texinfo bison or flex. [default=no]
1545   --enable-multilib       build many library versions (default)
1546   --disable-dependency-tracking  speeds up one-time build
1547   --enable-dependency-tracking   do not reject slow dependency extractors
1548   --enable-shared[=PKGS]  build shared libraries [default=yes]
1549   --enable-static[=PKGS]  build static libraries [default=yes]
1550   --enable-fast-install[=PKGS]
1551                           optimize for fast installation [default=yes]
1552   --disable-libtool-lock  avoid locking (might break parallel builds)
1553   --enable-maintainer-mode  enable make rules and dependencies not useful
1554                           (and sometimes confusing) to the casual installer
1555   --enable-linux-futex    use the Linux futex system call [default=default]
1556   --enable-tls            Use thread-local storage [default=yes]
1557   --enable-symvers=STYLE  enables symbol versioning of the shared library
1558                           [default=yes]
1559
1560 Optional Packages:
1561   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1562   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1563   --with-pic              try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CPP         C preprocessor
1576   FC          Fortran compiler command
1577   FCFLAGS     Fortran compiler flags
1578
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1581
1582 Report bugs to the package provider.
1583 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1584 General help using GNU software: <http://www.gnu.org/gethelp/>.
1585 _ACEOF
1586 ac_status=$?
1587 fi
1588
1589 if test "$ac_init_help" = "recursive"; then
1590   # If there are subdirs, report their specific --help.
1591   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592     test -d "$ac_dir" ||
1593       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594       continue
1595     ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601   # A ".." for each directory in $ac_dir_suffix.
1602   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603   case $ac_top_builddir_sub in
1604   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606   esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614   .)  # We are building in place.
1615     ac_srcdir=.
1616     ac_top_srcdir=$ac_top_builddir_sub
1617     ac_abs_top_srcdir=$ac_pwd ;;
1618   [\\/]* | ?:[\\/]* )  # Absolute name.
1619     ac_srcdir=$srcdir$ac_dir_suffix;
1620     ac_top_srcdir=$srcdir
1621     ac_abs_top_srcdir=$srcdir ;;
1622   *) # Relative name.
1623     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624     ac_top_srcdir=$ac_top_build_prefix$srcdir
1625     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629     cd "$ac_dir" || { ac_status=$?; continue; }
1630     # Check for guested configure.
1631     if test -f "$ac_srcdir/configure.gnu"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634     elif test -f "$ac_srcdir/configure"; then
1635       echo &&
1636       $SHELL "$ac_srcdir/configure" --help=recursive
1637     else
1638       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639     fi || ac_status=$?
1640     cd "$ac_pwd" || { ac_status=$?; break; }
1641   done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646   cat <<\_ACEOF
1647 GNU OpenMP Runtime Library configure 1.0
1648 generated by GNU Autoconf 2.64
1649
1650 Copyright (C) 2009 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654   exit
1655 fi
1656
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1660
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext
1668   if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_compile") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest.$ac_objext; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692         ac_retval=1
1693 fi
1694   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695   return $ac_retval
1696
1697 } # ac_fn_c_try_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext conftest$ac_exeext
1706   if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_link") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest$ac_exeext && {
1725          test "$cross_compiling" = yes ||
1726          $as_test_x conftest$ac_exeext
1727        }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733         ac_retval=1
1734 fi
1735   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737   # interfere with the next link command; also delete a directory that is
1738   # left behind by Apple's compiler.  We do this before executing the actions.
1739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741   return $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h.  */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763   eval "$3=yes"
1764 else
1765   eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773
1774 } # ac_fn_c_check_header_compile
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } >/dev/null && {
1798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806     ac_retval=1
1807 fi
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809   return $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_try_run LINENO
1814 # ----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816 # that executables *can* be run.
1817 ac_fn_c_try_run ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_link") 2>&5
1828   ac_status=$?
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831   { { case "(($ac_try" in
1832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833   *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837   (eval "$ac_try") 2>&5
1838   ac_status=$?
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; }; }; then :
1841   ac_retval=0
1842 else
1843   $as_echo "$as_me: program exited with status $ac_status" >&5
1844        $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847        ac_retval=$ac_status
1848 fi
1849   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851   return $ac_retval
1852
1853 } # ac_fn_c_try_run
1854
1855 # ac_fn_c_check_func LINENO FUNC VAR
1856 # ----------------------------------
1857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1858 ac_fn_c_check_func ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1870 #define $2 innocuous_$2
1871
1872 /* System header to define __stub macros and hopefully few prototypes,
1873     which can conflict with char $2 (); below.
1874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875     <limits.h> exists even on freestanding compilers.  */
1876
1877 #ifdef __STDC__
1878 # include <limits.h>
1879 #else
1880 # include <assert.h>
1881 #endif
1882
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886    Use char because int might match the return type of a GCC
1887    builtin and then its argument prototype would still apply.  */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 ();
1892 /* The GNU C library defines this for functions which it implements
1893     to always fail with ENOSYS.  Some functions are actually named
1894     something starting with __ and the normal name is an alias.  */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main ()
1901 {
1902 return $2 ();
1903   ;
1904   return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"; then :
1908   eval "$3=yes"
1909 else
1910   eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext \
1913     conftest$ac_exeext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_func
1921
1922 # ac_fn_fc_try_compile LINENO
1923 # ---------------------------
1924 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1925 ac_fn_fc_try_compile ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   rm -f conftest.$ac_objext
1929   if { { ac_try="$ac_compile"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_compile") 2>conftest.err
1937   ac_status=$?
1938   if test -s conftest.err; then
1939     grep -v '^ *+' conftest.err >conftest.er1
1940     cat conftest.er1 >&5
1941     mv -f conftest.er1 conftest.err
1942   fi
1943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944   test $ac_status = 0; } && {
1945          test -z "$ac_fc_werror_flag" ||
1946          test ! -s conftest.err
1947        } && test -s conftest.$ac_objext; then :
1948   ac_retval=0
1949 else
1950   $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953         ac_retval=1
1954 fi
1955   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956   return $ac_retval
1957
1958 } # ac_fn_fc_try_compile
1959
1960 # ac_fn_fc_try_link LINENO
1961 # ------------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_fc_try_link ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   rm -f conftest.$ac_objext conftest$ac_exeext
1967   if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970   *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974   (eval "$ac_link") 2>conftest.err
1975   ac_status=$?
1976   if test -s conftest.err; then
1977     grep -v '^ *+' conftest.err >conftest.er1
1978     cat conftest.er1 >&5
1979     mv -f conftest.er1 conftest.err
1980   fi
1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982   test $ac_status = 0; } && {
1983          test -z "$ac_fc_werror_flag" ||
1984          test ! -s conftest.err
1985        } && test -s conftest$ac_exeext && {
1986          test "$cross_compiling" = yes ||
1987          $as_test_x conftest$ac_exeext
1988        }; then :
1989   ac_retval=0
1990 else
1991   $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994         ac_retval=1
1995 fi
1996   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998   # interfere with the next link command; also delete a directory that is
1999   # left behind by Apple's compiler.  We do this before executing the actions.
2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002   return $ac_retval
2003
2004 } # ac_fn_fc_try_link
2005
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_header_mongrel ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 else
2024   # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   ac_header_compiler=yes
2034 else
2035   ac_header_compiler=no
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2040
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h.  */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049   ac_header_preproc=yes
2050 else
2051   ac_header_preproc=no
2052 fi
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2056
2057 # So?  What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059   yes:no: )
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064     ;;
2065   no:yes:* )
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076     ;;
2077 esac
2078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081   $as_echo_n "(cached) " >&6
2082 else
2083   eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
2091 } # ac_fn_c_check_header_mongrel
2092
2093 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2094 # -------------------------------------------
2095 # Tests whether TYPE exists after having included INCLUDES, setting cache
2096 # variable VAR accordingly.
2097 ac_fn_c_check_type ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103   $as_echo_n "(cached) " >&6
2104 else
2105   eval "$3=no"
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main ()
2111 {
2112 if (sizeof ($2))
2113          return 0;
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 int
2123 main ()
2124 {
2125 if (sizeof (($2)))
2126             return 0;
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132
2133 else
2134   eval "$3=yes"
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144
2145 } # ac_fn_c_check_type
2146
2147 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2148 # --------------------------------------------
2149 # Tries to find the compile-time value of EXPR in a program that includes
2150 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2151 # computed
2152 ac_fn_c_compute_int ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   if test "$cross_compiling" = yes; then
2156     # Depending upon the size, compute the lo and hi bounds.
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(($2) >= 0)];
2164 test_array [0] = 0
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171   ac_lo=0 ac_mid=0
2172   while :; do
2173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 test_array [0] = 0
2181
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187   ac_hi=$ac_mid; break
2188 else
2189   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2190                         if test $ac_lo -le $ac_mid; then
2191                           ac_lo= ac_hi=
2192                           break
2193                         fi
2194                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197   done
2198 else
2199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) < 0)];
2206 test_array [0] = 0
2207
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213   ac_hi=-1 ac_mid=-1
2214   while :; do
2215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main ()
2220 {
2221 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222 test_array [0] = 0
2223
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   ac_lo=$ac_mid; break
2230 else
2231   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2232                         if test $ac_mid -le $ac_hi; then
2233                           ac_lo= ac_hi=
2234                           break
2235                         fi
2236                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239   done
2240 else
2241   ac_lo= ac_hi=
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 # Binary search between lo and hi bounds.
2247 while test "x$ac_lo" != "x$ac_hi"; do
2248   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h.  */
2251 $4
2252 int
2253 main ()
2254 {
2255 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 test_array [0] = 0
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263   ac_hi=$ac_mid
2264 else
2265   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 case $ac_lo in #((
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271 '') ac_retval=1 ;;
2272 esac
2273   else
2274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h.  */
2276 $4
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2279 #include <stdio.h>
2280 #include <stdlib.h>
2281 int
2282 main ()
2283 {
2284
2285   FILE *f = fopen ("conftest.val", "w");
2286   if (! f)
2287     return 1;
2288   if (($2) < 0)
2289     {
2290       long int i = longval ();
2291       if (i != ($2))
2292         return 1;
2293       fprintf (f, "%ld", i);
2294     }
2295   else
2296     {
2297       unsigned long int i = ulongval ();
2298       if (i != ($2))
2299         return 1;
2300       fprintf (f, "%lu", i);
2301     }
2302   /* Do not output a trailing newline, as this causes \r\n confusion
2303      on some platforms.  */
2304   return ferror (f) || fclose (f) != 0;
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_run "$LINENO"; then :
2311   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312 else
2313   ac_retval=1
2314 fi
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316   conftest.$ac_objext conftest.beam conftest.$ac_ext
2317 rm -f conftest.val
2318
2319   fi
2320   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321   return $ac_retval
2322
2323 } # ac_fn_c_compute_int
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2327
2328 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2329 generated by GNU Autoconf 2.64.  Invocation command line was
2330
2331   $ $0 $@
2332
2333 _ACEOF
2334 exec 5>>config.log
2335 {
2336 cat <<_ASUNAME
2337 ## --------- ##
2338 ## Platform. ##
2339 ## --------- ##
2340
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2349
2350 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2351 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2354 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2355 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2356 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2357
2358 _ASUNAME
2359
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363   IFS=$as_save_IFS
2364   test -z "$as_dir" && as_dir=.
2365     $as_echo "PATH: $as_dir"
2366   done
2367 IFS=$as_save_IFS
2368
2369 } >&5
2370
2371 cat >&5 <<_ACEOF
2372
2373
2374 ## ----------- ##
2375 ## Core tests. ##
2376 ## ----------- ##
2377
2378 _ACEOF
2379
2380
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2386 ac_configure_args=
2387 ac_configure_args0=
2388 ac_configure_args1=
2389 ac_must_keep_next=false
2390 for ac_pass in 1 2
2391 do
2392   for ac_arg
2393   do
2394     case $ac_arg in
2395     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397     | -silent | --silent | --silen | --sile | --sil)
2398       continue ;;
2399     *\'*)
2400       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401     esac
2402     case $ac_pass in
2403     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404     2)
2405       as_fn_append ac_configure_args1 " '$ac_arg'"
2406       if test $ac_must_keep_next = true; then
2407         ac_must_keep_next=false # Got value, back to normal.
2408       else
2409         case $ac_arg in
2410           *=* | --config-cache | -C | -disable-* | --disable-* \
2411           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413           | -with-* | --with-* | -without-* | --without-* | --x)
2414             case "$ac_configure_args0 " in
2415               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416             esac
2417             ;;
2418           -* ) ac_must_keep_next=true ;;
2419         esac
2420       fi
2421       as_fn_append ac_configure_args " '$ac_arg'"
2422       ;;
2423     esac
2424   done
2425 done
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2428
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log.  We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435   # Save into config.log some information that might help in debugging.
2436   {
2437     echo
2438
2439     cat <<\_ASBOX
2440 ## ---------------- ##
2441 ## Cache variables. ##
2442 ## ---------------- ##
2443 _ASBOX
2444     echo
2445     # The following way of writing the cache mishandles newlines in values,
2446 (
2447   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2448     eval ac_val=\$$ac_var
2449     case $ac_val in #(
2450     *${as_nl}*)
2451       case $ac_var in #(
2452       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454       esac
2455       case $ac_var in #(
2456       _ | IFS | as_nl) ;; #(
2457       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2458       *) { eval $ac_var=; unset $ac_var;} ;;
2459       esac ;;
2460     esac
2461   done
2462   (set) 2>&1 |
2463     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2464     *${as_nl}ac_space=\ *)
2465       sed -n \
2466         "s/'\''/'\''\\\\'\'''\''/g;
2467           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468       ;; #(
2469     *)
2470       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471       ;;
2472     esac |
2473     sort
2474 )
2475     echo
2476
2477     cat <<\_ASBOX
2478 ## ----------------- ##
2479 ## Output variables. ##
2480 ## ----------------- ##
2481 _ASBOX
2482     echo
2483     for ac_var in $ac_subst_vars
2484     do
2485       eval ac_val=\$$ac_var
2486       case $ac_val in
2487       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488       esac
2489       $as_echo "$ac_var='\''$ac_val'\''"
2490     done | sort
2491     echo
2492
2493     if test -n "$ac_subst_files"; then
2494       cat <<\_ASBOX
2495 ## ------------------- ##
2496 ## File substitutions. ##
2497 ## ------------------- ##
2498 _ASBOX
2499       echo
2500       for ac_var in $ac_subst_files
2501       do
2502         eval ac_val=\$$ac_var
2503         case $ac_val in
2504         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505         esac
2506         $as_echo "$ac_var='\''$ac_val'\''"
2507       done | sort
2508       echo
2509     fi
2510
2511     if test -s confdefs.h; then
2512       cat <<\_ASBOX
2513 ## ----------- ##
2514 ## confdefs.h. ##
2515 ## ----------- ##
2516 _ASBOX
2517       echo
2518       cat confdefs.h
2519       echo
2520     fi
2521     test "$ac_signal" != 0 &&
2522       $as_echo "$as_me: caught signal $ac_signal"
2523     $as_echo "$as_me: exit $exit_status"
2524   } >&5
2525   rm -f core *.core core.conftest.* &&
2526     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527     exit $exit_status
2528 ' 0
2529 for ac_signal in 1 2 13 15; do
2530   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531 done
2532 ac_signal=0
2533
2534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2535 rm -f -r conftest* confdefs.h
2536
2537 $as_echo "/* confdefs.h */" > confdefs.h
2538
2539 # Predefined preprocessor variables.
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_NAME "$PACKAGE_NAME"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_STRING "$PACKAGE_STRING"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_URL "$PACKAGE_URL"
2563 _ACEOF
2564
2565
2566 # Let the site file select an alternate cache file if it wants to.
2567 # Prefer an explicitly selected file to automatically selected ones.
2568 ac_site_file1=NONE
2569 ac_site_file2=NONE
2570 if test -n "$CONFIG_SITE"; then
2571   ac_site_file1=$CONFIG_SITE
2572 elif test "x$prefix" != xNONE; then
2573   ac_site_file1=$prefix/share/config.site
2574   ac_site_file2=$prefix/etc/config.site
2575 else
2576   ac_site_file1=$ac_default_prefix/share/config.site
2577   ac_site_file2=$ac_default_prefix/etc/config.site
2578 fi
2579 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2580 do
2581   test "x$ac_site_file" = xNONE && continue
2582   if test -r "$ac_site_file"; then
2583     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2584 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2585     sed 's/^/| /' "$ac_site_file" >&5
2586     . "$ac_site_file"
2587   fi
2588 done
2589
2590 if test -r "$cache_file"; then
2591   # Some versions of bash will fail to source /dev/null (special
2592   # files actually), so we avoid doing that.
2593   if test -f "$cache_file"; then
2594     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595 $as_echo "$as_me: loading cache $cache_file" >&6;}
2596     case $cache_file in
2597       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598       *)                      . "./$cache_file";;
2599     esac
2600   fi
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604   >$cache_file
2605 fi
2606
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612   eval ac_new_set=\$ac_env_${ac_var}_set
2613   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614   eval ac_new_val=\$ac_env_${ac_var}_value
2615   case $ac_old_set,$ac_new_set in
2616     set,)
2617       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619       ac_cache_corrupted=: ;;
2620     ,set)
2621       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623       ac_cache_corrupted=: ;;
2624     ,);;
2625     *)
2626       if test "x$ac_old_val" != "x$ac_new_val"; then
2627         # differences in whitespace do not lead to failure.
2628         ac_old_val_w=`echo x $ac_old_val`
2629         ac_new_val_w=`echo x $ac_new_val`
2630         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633           ac_cache_corrupted=:
2634         else
2635           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637           eval $ac_var=\$ac_old_val
2638         fi
2639         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2640 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2641         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2643       fi;;
2644   esac
2645   # Pass precious variables to config.status.
2646   if test "$ac_new_set" = set; then
2647     case $ac_new_val in
2648     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649     *) ac_arg=$ac_var=$ac_new_val ;;
2650     esac
2651     case " $ac_configure_args " in
2652       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2653       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654     esac
2655   fi
2656 done
2657 if $ac_cache_corrupted; then
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2663 fi
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2667
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676
2677
2678 ac_config_headers="$ac_config_headers config.h"
2679
2680
2681 # -------
2682 # Options
2683 # -------
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2686 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2687  # Check whether --enable-version-specific-runtime-libs was given.
2688 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2689   enableval=$enable_version_specific_runtime_libs;
2690       case "$enableval" in
2691        yes|no) ;;
2692        *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2693                           esac
2694
2695 else
2696   enable_version_specific_runtime_libs=no
2697 fi
2698
2699
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2701 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2702
2703 # We would like our source tree to be readonly. However when releases or
2704 # pre-releases are generated, the flex/bison generated files as well as the
2705 # various formats of manuals need to be included along with the rest of the
2706 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2707 # just that.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2709 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2710  # Check whether --enable-generated-files-in-srcdir was given.
2711 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2712   enableval=$enable_generated_files_in_srcdir;
2713       case "$enableval" in
2714        yes|no) ;;
2715        *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2716                           esac
2717
2718 else
2719   enable_generated_files_in_srcdir=no
2720 fi
2721
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2724 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2725  if test "$enable_generated_files_in_srcdir" = yes; then
2726   GENINSRC_TRUE=
2727   GENINSRC_FALSE='#'
2728 else
2729   GENINSRC_TRUE='#'
2730   GENINSRC_FALSE=
2731 fi
2732
2733
2734
2735 # -------
2736 # -------
2737
2738 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2739 #
2740 # You will slowly go insane if you do not grok the following fact:  when
2741 # building this library, the top-level /target/ becomes the library's /host/.
2742 #
2743 # configure then causes --target to default to --host, exactly like any
2744 # other package using autoconf.  Therefore, 'target' and 'host' will
2745 # always be the same.  This makes sense both for native and cross compilers
2746 # just think about it for a little while.  :-)
2747 #
2748 # Also, if this library is being configured as part of a cross compiler, the
2749 # top-level configure script will pass the "real" host as $with_cross_host.
2750 #
2751 # Do not delete or change the following two lines.  For why, see
2752 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2753 ac_aux_dir=
2754 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2755   for ac_t in install-sh install.sh shtool; do
2756     if test -f "$ac_dir/$ac_t"; then
2757       ac_aux_dir=$ac_dir
2758       ac_install_sh="$ac_aux_dir/$ac_t -c"
2759       break 2
2760     fi
2761   done
2762 done
2763 if test -z "$ac_aux_dir"; then
2764   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2765 fi
2766
2767 # These three variables are undocumented and unsupported,
2768 # and are intended to be withdrawn in a future Autoconf release.
2769 # They can cause serious problems if a builder's source tree is in a directory
2770 # whose full name contains unusual characters.
2771 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2772 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2773 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2774
2775
2776 # Make sure we can run config.sub.
2777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781 $as_echo_n "checking build system type... " >&6; }
2782 if test "${ac_cv_build+set}" = set; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2790 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795 $as_echo "$ac_cv_build" >&6; }
2796 case $ac_cv_build in
2797 *-*-*) ;;
2798 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2815 $as_echo_n "checking host system type... " >&6; }
2816 if test "${ac_cv_host+set}" = set; then :
2817   $as_echo_n "(cached) " >&6
2818 else
2819   if test "x$host_alias" = x; then
2820   ac_cv_host=$ac_cv_build
2821 else
2822   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824 fi
2825
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2828 $as_echo "$ac_cv_host" >&6; }
2829 case $ac_cv_host in
2830 *-*-*) ;;
2831 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2832 esac
2833 host=$ac_cv_host
2834 ac_save_IFS=$IFS; IFS='-'
2835 set x $ac_cv_host
2836 shift
2837 host_cpu=$1
2838 host_vendor=$2
2839 shift; shift
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2842 host_os=$*
2843 IFS=$ac_save_IFS
2844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2848 $as_echo_n "checking target system type... " >&6; }
2849 if test "${ac_cv_target+set}" = set; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test "x$target_alias" = x; then
2853   ac_cv_target=$ac_cv_host
2854 else
2855   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2856     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2857 fi
2858
2859 fi
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2861 $as_echo "$ac_cv_target" >&6; }
2862 case $ac_cv_target in
2863 *-*-*) ;;
2864 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2865 esac
2866 target=$ac_cv_target
2867 ac_save_IFS=$IFS; IFS='-'
2868 set x $ac_cv_target
2869 shift
2870 target_cpu=$1
2871 target_vendor=$2
2872 shift; shift
2873 # Remember, the first character of IFS is used to create $*,
2874 # except with old shells:
2875 target_os=$*
2876 IFS=$ac_save_IFS
2877 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2878
2879
2880 # The aliases save the names the user supplied, while $host etc.
2881 # will get canonicalized.
2882 test -n "$target_alias" &&
2883   test "$program_prefix$program_suffix$program_transform_name" = \
2884     NONENONEs,x,x, &&
2885   program_prefix=${target_alias}-
2886
2887 target_alias=${target_alias-$host_alias}
2888
2889 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2890 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2891 #  1.9.0:  minimum required version
2892 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2893 #              of other PACKAGE_* variables will, however, and there's nothing
2894 #              we can do about that; they come from AC_INIT).
2895 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2896 #            file in the top srcdir, etc, etc), so stop complaining.
2897 #  -Wall:  turns on all automake warnings...
2898 #  -Wno-portability:  ...except this one, since GNU make is required.
2899 #  -Wno-override: ... and this one, since we do want this in testsuite.
2900 am__api_version='1.11'
2901
2902 # Find a good install program.  We prefer a C program (faster),
2903 # so one script is as good as another.  But avoid the broken or
2904 # incompatible versions:
2905 # SysV /etc/install, /usr/sbin/install
2906 # SunOS /usr/etc/install
2907 # IRIX /sbin/install
2908 # AIX /bin/install
2909 # AmigaOS /C/install, which installs bootblocks on floppy discs
2910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2913 # OS/2's system install, which has a completely different semantic
2914 # ./install, which can be erroneously created by make from ./install.sh.
2915 # Reject install programs that cannot install multiple files.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2917 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2918 if test -z "$INSTALL"; then
2919 if test "${ac_cv_path_install+set}" = set; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     # Account for people who put trailing slashes in PATH elements.
2928 case $as_dir/ in #((
2929   ./ | .// | /[cC]/* | \
2930   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2931   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2932   /usr/ucb/* ) ;;
2933   *)
2934     # OSF1 and SCO ODT 3.0 have their own names for install.
2935     # Don't use installbsd from OSF since it installs stuff as root
2936     # by default.
2937     for ac_prog in ginstall scoinst install; do
2938       for ac_exec_ext in '' $ac_executable_extensions; do
2939         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2940           if test $ac_prog = install &&
2941             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942             # AIX install.  It has an incompatible calling convention.
2943             :
2944           elif test $ac_prog = install &&
2945             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946             # program-specific install script used by HP pwplus--don't use.
2947             :
2948           else
2949             rm -rf conftest.one conftest.two conftest.dir
2950             echo one > conftest.one
2951             echo two > conftest.two
2952             mkdir conftest.dir
2953             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2954               test -s conftest.one && test -s conftest.two &&
2955               test -s conftest.dir/conftest.one &&
2956               test -s conftest.dir/conftest.two
2957             then
2958               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2959               break 3
2960             fi
2961           fi
2962         fi
2963       done
2964     done
2965     ;;
2966 esac
2967
2968   done
2969 IFS=$as_save_IFS
2970
2971 rm -rf conftest.one conftest.two conftest.dir
2972
2973 fi
2974   if test "${ac_cv_path_install+set}" = set; then
2975     INSTALL=$ac_cv_path_install
2976   else
2977     # As a last resort, use the slow shell script.  Don't cache a
2978     # value for INSTALL within a source directory, because that will
2979     # break other packages using the cache if that directory is
2980     # removed, or if the value is a relative name.
2981     INSTALL=$ac_install_sh
2982   fi
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2985 $as_echo "$INSTALL" >&6; }
2986
2987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2988 # It thinks the first close brace ends the variable substitution.
2989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2990
2991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2992
2993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2996 $as_echo_n "checking whether build environment is sane... " >&6; }
2997 # Just in case
2998 sleep 1
2999 echo timestamp > conftest.file
3000 # Reject unsafe characters in $srcdir or the absolute working directory
3001 # name.  Accept space and tab only in the latter.
3002 am_lf='
3003 '
3004 case `pwd` in
3005   *[\\\"\#\$\&\'\`$am_lf]*)
3006     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3007 esac
3008 case $srcdir in
3009   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3010     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3011 esac
3012
3013 # Do `set' in a subshell so we don't clobber the current shell's
3014 # arguments.  Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3017 # directory).
3018 if (
3019    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3020    if test "$*" = "X"; then
3021       # -L didn't work.
3022       set X `ls -t "$srcdir/configure" conftest.file`
3023    fi
3024    rm -f conftest.file
3025    if test "$*" != "X $srcdir/configure conftest.file" \
3026       && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028       # If neither matched, then we have a broken ls.  This can happen
3029       # if, for instance, CONFIG_SHELL is bash and it inherits a
3030       # broken ls alias from the environment.  This has actually
3031       # happened.  Such a system could not be considered "sane".
3032       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3033 alias in your environment" "$LINENO" 5
3034    fi
3035
3036    test "$2" = conftest.file
3037    )
3038 then
3039    # Ok.
3040    :
3041 else
3042    as_fn_error "newly created file is older than distributed files!
3043 Check your system clock" "$LINENO" 5
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046 $as_echo "yes" >&6; }
3047 test "$program_prefix" != NONE &&
3048   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3049 # Use a double $ so make ignores it.
3050 test "$program_suffix" != NONE &&
3051   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3052 # Double any \ or $.
3053 # By default was `s,x,x', remove it if useless.
3054 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3055 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3056
3057 # expand $ac_aux_dir to an absolute path
3058 am_aux_dir=`cd $ac_aux_dir && pwd`
3059
3060 if test x"${MISSING+set}" != xset; then
3061   case $am_aux_dir in
3062   *\ * | *\     *)
3063     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3064   *)
3065     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3066   esac
3067 fi
3068 # Use eval to expand $SHELL
3069 if eval "$MISSING --run true"; then
3070   am_missing_run="$MISSING --run "
3071 else
3072   am_missing_run=
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3074 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3075 fi
3076
3077 if test x"${install_sh}" != xset; then
3078   case $am_aux_dir in
3079   *\ * | *\     *)
3080     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3081   *)
3082     install_sh="\${SHELL} $am_aux_dir/install-sh"
3083   esac
3084 fi
3085
3086 # Installed binaries are usually stripped using `strip' when the user
3087 # run `make install-strip'.  However `strip' might not be the right
3088 # tool to use in cross-compilation environments, therefore Automake
3089 # will honor the `STRIP' environment variable to overrule this program.
3090 if test "$cross_compiling" != no; then
3091   if test -n "$ac_tool_prefix"; then
3092   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3093 set dummy ${ac_tool_prefix}strip; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_STRIP+set}" = set; then :
3097   $as_echo_n "(cached) " >&6
3098 else
3099   if test -n "$STRIP"; then
3100   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105   IFS=$as_save_IFS
3106   test -z "$as_dir" && as_dir=.
3107     for ac_exec_ext in '' $ac_executable_extensions; do
3108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111     break 2
3112   fi
3113 done
3114   done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 STRIP=$ac_cv_prog_STRIP
3120 if test -n "$STRIP"; then
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3122 $as_echo "$STRIP" >&6; }
3123 else
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 fi
3130 if test -z "$ac_cv_prog_STRIP"; then
3131   ac_ct_STRIP=$STRIP
3132   # Extract the first word of "strip", so it can be a program name with args.
3133 set dummy strip; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$ac_ct_STRIP"; then
3140   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_ac_ct_STRIP="strip"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3160 if test -n "$ac_ct_STRIP"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3162 $as_echo "$ac_ct_STRIP" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168   if test "x$ac_ct_STRIP" = x; then
3169     STRIP=":"
3170   else
3171     case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177     STRIP=$ac_ct_STRIP
3178   fi
3179 else
3180   STRIP="$ac_cv_prog_STRIP"
3181 fi
3182
3183 fi
3184 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3187 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3188 if test -z "$MKDIR_P"; then
3189   if test "${ac_cv_path_mkdir+set}" = set; then :
3190   $as_echo_n "(cached) " >&6
3191 else
3192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_prog in mkdir gmkdir; do
3198          for ac_exec_ext in '' $ac_executable_extensions; do
3199            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3200            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3201              'mkdir (GNU coreutils) '* | \
3202              'mkdir (coreutils) '* | \
3203              'mkdir (fileutils) '4.1*)
3204                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3205                break 3;;
3206            esac
3207          done
3208        done
3209   done
3210 IFS=$as_save_IFS
3211
3212 fi
3213
3214   if test "${ac_cv_path_mkdir+set}" = set; then
3215     MKDIR_P="$ac_cv_path_mkdir -p"
3216   else
3217     # As a last resort, use the slow shell script.  Don't cache a
3218     # value for MKDIR_P within a source directory, because that will
3219     # break other packages using the cache if that directory is
3220     # removed, or if the value is a relative name.
3221     test -d ./--version && rmdir ./--version
3222     MKDIR_P="$ac_install_sh -d"
3223   fi
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3226 $as_echo "$MKDIR_P" >&6; }
3227
3228 mkdir_p="$MKDIR_P"
3229 case $mkdir_p in
3230   [\\/$]* | ?:[\\/]*) ;;
3231   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3232 esac
3233
3234 for ac_prog in gawk mawk nawk awk
3235 do
3236   # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_AWK+set}" = set; then :
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$AWK"; then
3244   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251     for ac_exec_ext in '' $ac_executable_extensions; do
3252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253     ac_cv_prog_AWK="$ac_prog"
3254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258   done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 AWK=$ac_cv_prog_AWK
3264 if test -n "$AWK"; then
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266 $as_echo "$AWK" >&6; }
3267 else
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273   test -n "$AWK" && break
3274 done
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3278 set x ${MAKE-make}
3279 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   cat >conftest.make <<\_ACEOF
3284 SHELL = /bin/sh
3285 all:
3286         @echo '@@@%%%=$(MAKE)=@@@%%%'
3287 _ACEOF
3288 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3290   *@@@%%%=?*=@@@%%%*)
3291     eval ac_cv_prog_make_${ac_make}_set=yes;;
3292   *)
3293     eval ac_cv_prog_make_${ac_make}_set=no;;
3294 esac
3295 rm -f conftest.make
3296 fi
3297 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300   SET_MAKE=
3301 else
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304   SET_MAKE="MAKE=${MAKE-make}"
3305 fi
3306
3307 rm -rf .tst 2>/dev/null
3308 mkdir .tst 2>/dev/null
3309 if test -d .tst; then
3310   am__leading_dot=.
3311 else
3312   am__leading_dot=_
3313 fi
3314 rmdir .tst 2>/dev/null
3315
3316 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3317   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3318   # is not polluted with repeated "-I."
3319   am__isrc=' -I$(srcdir)'
3320   # test to see if srcdir already configured
3321   if test -f $srcdir/config.status; then
3322     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3323   fi
3324 fi
3325
3326 # test whether we have cygpath
3327 if test -z "$CYGPATH_W"; then
3328   if (cygpath --version) >/dev/null 2>/dev/null; then
3329     CYGPATH_W='cygpath -w'
3330   else
3331     CYGPATH_W=echo
3332   fi
3333 fi
3334
3335
3336 # Define the identity of the package.
3337  PACKAGE='libgomp'
3338  VERSION='1.0'
3339
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define PACKAGE "$PACKAGE"
3343 _ACEOF
3344
3345
3346 cat >>confdefs.h <<_ACEOF
3347 #define VERSION "$VERSION"
3348 _ACEOF
3349
3350 # Some tools Automake needs.
3351
3352 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3353
3354
3355 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3356
3357
3358 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3359
3360
3361 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3362
3363
3364 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3365
3366 # We need awk for the "check" target.  The system "awk" is bad on
3367 # some platforms.
3368 # Always define AMTAR for backward compatibility.
3369
3370 AMTAR=${AMTAR-"${am_missing_run}tar"}
3371
3372 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3373
3374
3375
3376
3377
3378 # Default to --enable-multilib
3379 # Check whether --enable-multilib was given.
3380 if test "${enable_multilib+set}" = set; then :
3381   enableval=$enable_multilib; case "$enableval" in
3382   yes) multilib=yes ;;
3383   no)  multilib=no ;;
3384   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3385  esac
3386 else
3387   multilib=yes
3388 fi
3389
3390
3391 # We may get other options which we leave undocumented:
3392 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3393 # See config-ml.in if you want the gory details.
3394
3395 if test "$srcdir" = "."; then
3396   if test "$with_target_subdir" != "."; then
3397     multi_basedir="$srcdir/$with_multisrctop../.."
3398   else
3399     multi_basedir="$srcdir/$with_multisrctop.."
3400   fi
3401 else
3402   multi_basedir="$srcdir/.."
3403 fi
3404
3405
3406 # Even if the default multilib is not a cross compilation,
3407 # it may be that some of the other multilibs are.
3408 if test $cross_compiling = no && test $multilib = yes \
3409    && test "x${with_multisubdir}" != x ; then
3410    cross_compiling=maybe
3411 fi
3412
3413 ac_config_commands="$ac_config_commands default-1"
3414
3415
3416 # Calculate toolexeclibdir
3417 # Also toolexecdir, though it's only used in toolexeclibdir
3418 case ${enable_version_specific_runtime_libs} in
3419   yes)
3420     # Need the gcc compiler version to know where to install libraries
3421     # and header files if --enable-version-specific-runtime-libs option
3422     # is selected.
3423     toolexecdir='$(libdir)/gcc/$(target_alias)'
3424     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3425     ;;
3426   no)
3427     if test -n "$with_cross_host" &&
3428        test x"$with_cross_host" != x"no"; then
3429       # Install a library built with a cross compiler in tooldir, not libdir.
3430       toolexecdir='$(exec_prefix)/$(target_alias)'
3431       toolexeclibdir='$(toolexecdir)/lib'
3432     else
3433       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3434       toolexeclibdir='$(libdir)'
3435     fi
3436     multi_os_directory=`$CC -print-multi-os-directory`
3437     case $multi_os_directory in
3438       .) ;; # Avoid trailing /.
3439       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3440     esac
3441     ;;
3442 esac
3443
3444
3445
3446 # Check the compiler.
3447 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3448 # We must force CC to /not/ be precious variables; otherwise
3449 # the wrong, non-multilib-adjusted value will be used in multilibs.
3450 # As a side effect, we have to subst CFLAGS ourselves.
3451
3452
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -n "$ac_tool_prefix"; then
3460   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   if test -n "$CC"; then
3468   ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475     for ac_exec_ext in '' $ac_executable_extensions; do
3476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482   done
3483 IFS=$as_save_IFS
3484
3485 fi
3486 fi
3487 CC=$ac_cv_prog_CC
3488 if test -n "$CC"; then
3489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 $as_echo "$CC" >&6; }
3491 else
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 fi
3495
3496
3497 fi
3498 if test -z "$ac_cv_prog_CC"; then
3499   ac_ct_CC=$CC
3500   # Extract the first word of "gcc", so it can be a program name with args.
3501 set dummy gcc; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test -n "$ac_ct_CC"; then
3508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     ac_cv_prog_ac_ct_CC="gcc"
3518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522   done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536   if test "x$ac_ct_CC" = x; then
3537     CC=""
3538   else
3539     case $cross_compiling:$ac_tool_warned in
3540 yes:)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3544 esac
3545     CC=$ac_ct_CC
3546   fi
3547 else
3548   CC="$ac_cv_prog_CC"
3549 fi
3550
3551 if test -z "$CC"; then
3552           if test -n "$ac_tool_prefix"; then
3553     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}cc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CC+set}" = set; then :
3558   $as_echo_n "(cached) " >&6
3559 else
3560   if test -n "$CC"; then
3561   ac_cv_prog_CC="$CC" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566   IFS=$as_save_IFS
3567   test -z "$as_dir" && as_dir=.
3568     for ac_exec_ext in '' $ac_executable_extensions; do
3569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570     ac_cv_prog_CC="${ac_tool_prefix}cc"
3571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572     break 2
3573   fi
3574 done
3575   done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 $as_echo "$CC" >&6; }
3584 else
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589
3590   fi
3591 fi
3592 if test -z "$CC"; then
3593   # Extract the first word of "cc", so it can be a program name with args.
3594 set dummy cc; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if test "${ac_cv_prog_CC+set}" = set; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   if test -n "$CC"; then
3601   ac_cv_prog_CC="$CC" # Let the user override the test.
3602 else
3603   ac_prog_rejected=no
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607   IFS=$as_save_IFS
3608   test -z "$as_dir" && as_dir=.
3609     for ac_exec_ext in '' $ac_executable_extensions; do
3610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612        ac_prog_rejected=yes
3613        continue
3614      fi
3615     ac_cv_prog_CC="cc"
3616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3622
3623 if test $ac_prog_rejected = yes; then
3624   # We found a bogon in the path, so make sure we never use it.
3625   set dummy $ac_cv_prog_CC
3626   shift
3627   if test $# != 0; then
3628     # We chose a different compiler from the bogus one.
3629     # However, it has the same basename, so the bogon will be chosen
3630     # first if we set CC to just the basename; use the full file name.
3631     shift
3632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3633   fi
3634 fi
3635 fi
3636 fi
3637 CC=$ac_cv_prog_CC
3638 if test -n "$CC"; then
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 $as_echo "$CC" >&6; }
3641 else
3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 fi
3645
3646
3647 fi
3648 if test -z "$CC"; then
3649   if test -n "$ac_tool_prefix"; then
3650   for ac_prog in cl.exe
3651   do
3652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_CC+set}" = set; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   if test -n "$CC"; then
3660   ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667     for ac_exec_ext in '' $ac_executable_extensions; do
3668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674   done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 fi
3687
3688
3689     test -n "$CC" && break
3690   done
3691 fi
3692 if test -z "$CC"; then
3693   ac_ct_CC=$CC
3694   for ac_prog in cl.exe
3695 do
3696   # Extract the first word of "$ac_prog", so it can be a program name with args.
3697 set dummy $ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   if test -n "$ac_ct_CC"; then
3704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713     ac_cv_prog_ac_ct_CC="$ac_prog"
3714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718   done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3727 else
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732
3733   test -n "$ac_ct_CC" && break
3734 done
3735
3736   if test "x$ac_ct_CC" = x; then
3737     CC=""
3738   else
3739     case $cross_compiling:$ac_tool_warned in
3740 yes:)
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743 ac_tool_warned=yes ;;
3744 esac
3745     CC=$ac_ct_CC
3746   fi
3747 fi
3748
3749 fi
3750
3751
3752 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "no acceptable C compiler found in \$PATH
3755 See \`config.log' for more details." "$LINENO" 5; }
3756
3757 # Provide some information about the compiler.
3758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759 set X $ac_compile
3760 ac_compiler=$2
3761 for ac_option in --version -v -V -qversion; do
3762   { { ac_try="$ac_compiler $ac_option >&5"
3763 case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770   ac_status=$?
3771   if test -s conftest.err; then
3772     sed '10a\
3773 ... rest of stderr output deleted ...
3774          10q' conftest.err >conftest.er1
3775     cat conftest.er1 >&5
3776     rm -f conftest.er1 conftest.err
3777   fi
3778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779   test $ac_status = 0; }
3780 done
3781
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 ac_clean_files_save=$ac_clean_files
3794 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3795 # Try to create an executable without -o first, disregard a.out.
3796 # It will help us diagnose broken compilers, and finding out an intuition
3797 # of exeext.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3799 $as_echo_n "checking for C compiler default output file name... " >&6; }
3800 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801
3802 # The possible output files:
3803 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804
3805 ac_rmfiles=
3806 for ac_file in $ac_files
3807 do
3808   case $ac_file in
3809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3810     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3811   esac
3812 done
3813 rm -f $ac_rmfiles
3814
3815 if { { ac_try="$ac_link_default"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822   (eval "$ac_link_default") 2>&5
3823   ac_status=$?
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }; then :
3826   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3827 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3828 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3829 # so that the user can short-circuit this test for compilers unknown to
3830 # Autoconf.
3831 for ac_file in $ac_files ''
3832 do
3833   test -f "$ac_file" || continue
3834   case $ac_file in
3835     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836         ;;
3837     [ab].out )
3838         # We found the default executable, but exeext='' is most
3839         # certainly right.
3840         break;;
3841     *.* )
3842         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3843         then :; else
3844            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845         fi
3846         # We set ac_cv_exeext here because the later test for it is not
3847         # safe: cross compilers may not add the suffix if given an `-o'
3848         # argument, so we may need to know it at that point already.
3849         # Even if this section looks crufty: it has the advantage of
3850         # actually working.
3851         break;;
3852     * )
3853         break;;
3854   esac
3855 done
3856 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857
3858 else
3859   ac_file=''
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3862 $as_echo "$ac_file" >&6; }
3863 if test -z "$ac_file"; then :
3864   $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 { as_fn_set_status 77
3870 as_fn_error "C compiler cannot create executables
3871 See \`config.log' for more details." "$LINENO" 5; }; }
3872 fi
3873 ac_exeext=$ac_cv_exeext
3874
3875 # Check that the compiler produces executables we can run.  If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3878 $as_echo_n "checking whether the C compiler works... " >&6; }
3879 # If not cross compiling, check that we can run a simple program.
3880 if test "$cross_compiling" != yes; then
3881   if { ac_try='./$ac_file'
3882   { { case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888   (eval "$ac_try") 2>&5
3889   ac_status=$?
3890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891   test $ac_status = 0; }; }; then
3892     cross_compiling=no
3893   else
3894     if test "$cross_compiling" = maybe; then
3895         cross_compiling=yes
3896     else
3897         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error "cannot run C compiled programs.
3900 If you meant to cross compile, use \`--host'.
3901 See \`config.log' for more details." "$LINENO" 5; }
3902     fi
3903   fi
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906 $as_echo "yes" >&6; }
3907
3908 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3909 ac_clean_files=$ac_clean_files_save
3910 # Check that the compiler produces executables we can run.  If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3913 $as_echo_n "checking whether we are cross compiling... " >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3915 $as_echo "$cross_compiling" >&6; }
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918 $as_echo_n "checking for suffix of executables... " >&6; }
3919 if { { ac_try="$ac_link"
3920 case "(($ac_try" in
3921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922   *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926   (eval "$ac_link") 2>&5
3927   ac_status=$?
3928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929   test $ac_status = 0; }; then :
3930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3932 # work properly (i.e., refer to `conftest.exe'), while it won't with
3933 # `rm'.
3934 for ac_file in conftest.exe conftest conftest.*; do
3935   test -f "$ac_file" || continue
3936   case $ac_file in
3937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939           break;;
3940     * ) break;;
3941   esac
3942 done
3943 else
3944   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error "cannot compute suffix of executables: cannot compile and link
3947 See \`config.log' for more details." "$LINENO" 5; }
3948 fi
3949 rm -f conftest$ac_cv_exeext
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3951 $as_echo "$ac_cv_exeext" >&6; }
3952
3953 rm -f conftest.$ac_ext
3954 EXEEXT=$ac_cv_exeext
3955 ac_exeext=$EXEEXT
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3957 $as_echo_n "checking for suffix of object files... " >&6; }
3958 if test "${ac_cv_objext+set}" = set; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963
3964 int
3965 main ()
3966 {
3967
3968   ;
3969   return 0;
3970 }
3971 _ACEOF
3972 rm -f conftest.o conftest.obj
3973 if { { ac_try="$ac_compile"
3974 case "(($ac_try" in
3975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976   *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980   (eval "$ac_compile") 2>&5
3981   ac_status=$?
3982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983   test $ac_status = 0; }; then :
3984   for ac_file in conftest.o conftest.obj conftest.*; do
3985   test -f "$ac_file" || continue;
3986   case $ac_file in
3987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3988     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3989        break;;
3990   esac
3991 done
3992 else
3993   $as_echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error "cannot compute suffix of object files: cannot compile
3999 See \`config.log' for more details." "$LINENO" 5; }
4000 fi
4001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4004 $as_echo "$ac_cv_objext" >&6; }
4005 OBJEXT=$ac_cv_objext
4006 ac_objext=$OBJEXT
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4008 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4009 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018 #ifndef __GNUC__
4019        choke me
4020 #endif
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027   ac_compiler_gnu=yes
4028 else
4029   ac_compiler_gnu=no
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4036 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4038   GCC=yes
4039 else
4040   GCC=
4041 fi
4042 ac_test_CFLAGS=${CFLAGS+set}
4043 ac_save_CFLAGS=$CFLAGS
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4045 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4046 if test "${ac_cv_prog_cc_g+set}" = set; then :
4047   $as_echo_n "(cached) " >&6
4048 else
4049   ac_save_c_werror_flag=$ac_c_werror_flag
4050    ac_c_werror_flag=yes
4051    ac_cv_prog_cc_g=no
4052    CFLAGS="-g"
4053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065   ac_cv_prog_cc_g=yes
4066 else
4067   CFLAGS=""
4068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080
4081 else
4082   ac_c_werror_flag=$ac_save_c_werror_flag
4083          CFLAGS="-g"
4084          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096   ac_cv_prog_cc_g=yes
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103    ac_c_werror_flag=$ac_save_c_werror_flag
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4106 $as_echo "$ac_cv_prog_cc_g" >&6; }
4107 if test "$ac_test_CFLAGS" = set; then
4108   CFLAGS=$ac_save_CFLAGS
4109 elif test $ac_cv_prog_cc_g = yes; then
4110   if test "$GCC" = yes; then
4111     CFLAGS="-g -O2"
4112   else
4113     CFLAGS="-g"
4114   fi
4115 else
4116   if test "$GCC" = yes; then
4117     CFLAGS="-O2"
4118   else
4119     CFLAGS=
4120   fi
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4123 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4124 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   ac_cv_prog_cc_c89=no
4128 ac_save_CC=$CC
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h.  */
4131 #include <stdarg.h>
4132 #include <stdio.h>
4133 #include <sys/types.h>
4134 #include <sys/stat.h>
4135 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4136 struct buf { int x; };
4137 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4138 static char *e (p, i)
4139      char **p;
4140      int i;
4141 {
4142   return p[i];
4143 }
4144 static char *f (char * (*g) (char **, int), char **p, ...)
4145 {
4146   char *s;
4147   va_list v;
4148   va_start (v,p);
4149   s = g (p, va_arg (v,int));
4150   va_end (v);
4151   return s;
4152 }
4153
4154 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4155    function prototypes and stuff, but not '\xHH' hex character constants.
4156    These don't provoke an error unfortunately, instead are silently treated
4157    as 'x'.  The following induces an error, until -std is added to get
4158    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4159    array size at least.  It's necessary to write '\x00'==0 to get something
4160    that's true only with -std.  */
4161 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4162
4163 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4164    inside strings and character constants.  */
4165 #define FOO(x) 'x'
4166 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4167
4168 int test (int i, double x);
4169 struct s1 {int (*f) (int a);};
4170 struct s2 {int (*f) (double a);};
4171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4172 int argc;
4173 char **argv;
4174 int
4175 main ()
4176 {
4177 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4183         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4184 do
4185   CC="$ac_save_CC $ac_arg"
4186   if ac_fn_c_try_compile "$LINENO"; then :
4187   ac_cv_prog_cc_c89=$ac_arg
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext
4190   test "x$ac_cv_prog_cc_c89" != "xno" && break
4191 done
4192 rm -f conftest.$ac_ext
4193 CC=$ac_save_CC
4194
4195 fi
4196 # AC_CACHE_VAL
4197 case "x$ac_cv_prog_cc_c89" in
4198   x)
4199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200 $as_echo "none needed" >&6; } ;;
4201   xno)
4202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4203 $as_echo "unsupported" >&6; } ;;
4204   *)
4205     CC="$CC $ac_cv_prog_cc_c89"
4206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4207 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4208 esac
4209 if test "x$ac_cv_prog_cc_c89" != xno; then :
4210
4211 fi
4212
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 DEPDIR="${am__leading_dot}deps"
4219
4220 ac_config_commands="$ac_config_commands depfiles"
4221
4222
4223 am_make=${MAKE-make}
4224 cat > confinc << 'END'
4225 am__doit:
4226         @echo this is the am__doit target
4227 .PHONY: am__doit
4228 END
4229 # If we don't find an include directive, just comment out the code.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4231 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4232 am__include="#"
4233 am__quote=
4234 _am_result=none
4235 # First try GNU make style include.
4236 echo "include confinc" > confmf
4237 # Ignore all kinds of additional output from `make'.
4238 case `$am_make -s -f confmf 2> /dev/null` in #(
4239 *the\ am__doit\ target*)
4240   am__include=include
4241   am__quote=
4242   _am_result=GNU
4243   ;;
4244 esac
4245 # Now try BSD make style include.
4246 if test "$am__include" = "#"; then
4247    echo '.include "confinc"' > confmf
4248    case `$am_make -s -f confmf 2> /dev/null` in #(
4249    *the\ am__doit\ target*)
4250      am__include=.include
4251      am__quote="\""
4252      _am_result=BSD
4253      ;;
4254    esac
4255 fi
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4259 $as_echo "$_am_result" >&6; }
4260 rm -f confinc confmf
4261
4262 # Check whether --enable-dependency-tracking was given.
4263 if test "${enable_dependency_tracking+set}" = set; then :
4264   enableval=$enable_dependency_tracking;
4265 fi
4266
4267 if test "x$enable_dependency_tracking" != xno; then
4268   am_depcomp="$ac_aux_dir/depcomp"
4269   AMDEPBACKSLASH='\'
4270 fi
4271  if test "x$enable_dependency_tracking" != xno; then
4272   AMDEP_TRUE=
4273   AMDEP_FALSE='#'
4274 else
4275   AMDEP_TRUE='#'
4276   AMDEP_FALSE=
4277 fi
4278
4279
4280
4281 depcc="$CC"   am_compiler_list=
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284 $as_echo_n "checking dependency style of $depcc... " >&6; }
4285 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4289   # We make a subdir and do the tests there.  Otherwise we can end up
4290   # making bogus files that we don't know about and never remove.  For
4291   # instance it was reported that on HP-UX the gcc test will end up
4292   # making a dummy file named `D' -- because `-MD' means `put the output
4293   # in D'.
4294   mkdir conftest.dir
4295   # Copy depcomp to subdir because otherwise we won't find it if we're
4296   # using a relative directory.
4297   cp "$am_depcomp" conftest.dir
4298   cd conftest.dir
4299   # We will build objects and dependencies in a subdirectory because
4300   # it helps to detect inapplicable dependency modes.  For instance
4301   # both Tru64's cc and ICC support -MD to output dependencies as a
4302   # side effect of compilation, but ICC will put the dependencies in
4303   # the current directory while Tru64 will put them in the object
4304   # directory.
4305   mkdir sub
4306
4307   am_cv_CC_dependencies_compiler_type=none
4308   if test "$am_compiler_list" = ""; then
4309      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4310   fi
4311   am__universal=false
4312   case " $depcc " in #(
4313      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314      esac
4315
4316   for depmode in $am_compiler_list; do
4317     # Setup a source with many dependencies, because some compilers
4318     # like to wrap large dependency lists on column 80 (with \), and
4319     # we should not choose a depcomp mode which is confused by this.
4320     #
4321     # We need to recreate these files for each test, as the compiler may
4322     # overwrite some of them when testing with obscure command lines.
4323     # This happens at least with the AIX C compiler.
4324     : > sub/conftest.c
4325     for i in 1 2 3 4 5 6; do
4326       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4328       # Solaris 8's {/usr,}/bin/sh.
4329       touch sub/conftst$i.h
4330     done
4331     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4332
4333     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4334     # mode.  It turns out that the SunPro C++ compiler does not properly
4335     # handle `-M -o', and we need to detect this.  Also, some Intel
4336     # versions had trouble with output in subdirs
4337     am__obj=sub/conftest.${OBJEXT-o}
4338     am__minus_obj="-o $am__obj"
4339     case $depmode in
4340     gcc)
4341       # This depmode causes a compiler race in universal mode.
4342       test "$am__universal" = false || continue
4343       ;;
4344     nosideeffect)
4345       # after this tag, mechanisms are not by side-effect, so they'll
4346       # only be used when explicitly requested
4347       if test "x$enable_dependency_tracking" = xyes; then
4348         continue
4349       else
4350         break
4351       fi
4352       ;;
4353     msvisualcpp | msvcmsys)
4354       # This compiler won't grok `-c -o', but also, the minuso test has
4355       # not run yet.  These depmodes are late enough in the game, and
4356       # so weak that their functioning should not be impacted.
4357       am__obj=conftest.${OBJEXT-o}
4358       am__minus_obj=
4359       ;;
4360     none) break ;;
4361     esac
4362     if depmode=$depmode \
4363        source=sub/conftest.c object=$am__obj \
4364        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4365        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4366          >/dev/null 2>conftest.err &&
4367        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4368        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4370        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371       # icc doesn't choke on unknown options, it will just issue warnings
4372       # or remarks (even with -Werror).  So we grep stderr for any message
4373       # that says an option was ignored or not supported.
4374       # When given -MP, icc 7.0 and 7.1 complain thusly:
4375       #   icc: Command line warning: ignoring option '-M'; no argument required
4376       # The diagnosis changed in icc 8.0:
4377       #   icc: Command line remark: option '-MP' not supported
4378       if (grep 'ignoring option' conftest.err ||
4379           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380         am_cv_CC_dependencies_compiler_type=$depmode
4381         break
4382       fi
4383     fi
4384   done
4385
4386   cd ..
4387   rm -rf conftest.dir
4388 else
4389   am_cv_CC_dependencies_compiler_type=none
4390 fi
4391
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4396
4397  if
4398   test "x$enable_dependency_tracking" != xno \
4399   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400   am__fastdepCC_TRUE=
4401   am__fastdepCC_FALSE='#'
4402 else
4403   am__fastdepCC_TRUE='#'
4404   am__fastdepCC_FALSE=
4405 fi
4406
4407
4408
4409
4410
4411
4412 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4413 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4414 # in both places for now and restore CFLAGS at the end of config.
4415 save_CFLAGS="$CFLAGS"
4416
4417 # Add -Wall -Werror if we are using GCC.
4418 if test "x$GCC" = "xyes"; then
4419   XCFLAGS="$XCFLAGS -Wall -Werror"
4420 fi
4421
4422 # Find other programs we need.
4423 if test -n "$ac_tool_prefix"; then
4424   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4425 set dummy ${ac_tool_prefix}ar; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if test "${ac_cv_prog_AR+set}" = set; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   if test -n "$AR"; then
4432   ac_cv_prog_AR="$AR" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_AR="${ac_tool_prefix}ar"
4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 AR=$ac_cv_prog_AR
4452 if test -n "$AR"; then
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4454 $as_echo "$AR" >&6; }
4455 else
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459
4460
4461 fi
4462 if test -z "$ac_cv_prog_AR"; then
4463   ac_ct_AR=$AR
4464   # Extract the first word of "ar", so it can be a program name with args.
4465 set dummy ar; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   if test -n "$ac_ct_AR"; then
4472   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479     for ac_exec_ext in '' $ac_executable_extensions; do
4480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481     ac_cv_prog_ac_ct_AR="ar"
4482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483     break 2
4484   fi
4485 done
4486   done
4487 IFS=$as_save_IFS
4488
4489 fi
4490 fi
4491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4492 if test -n "$ac_ct_AR"; then
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4494 $as_echo "$ac_ct_AR" >&6; }
4495 else
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 fi
4499
4500   if test "x$ac_ct_AR" = x; then
4501     AR=""
4502   else
4503     case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509     AR=$ac_ct_AR
4510   fi
4511 else
4512   AR="$ac_cv_prog_AR"
4513 fi
4514
4515 if test -n "$ac_tool_prefix"; then
4516   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   if test -n "$RANLIB"; then
4524   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531     for ac_exec_ext in '' $ac_executable_extensions; do
4532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535     break 2
4536   fi
4537 done
4538   done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 RANLIB=$ac_cv_prog_RANLIB
4544 if test -n "$RANLIB"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4546 $as_echo "$RANLIB" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551
4552
4553 fi
4554 if test -z "$ac_cv_prog_RANLIB"; then
4555   ac_ct_RANLIB=$RANLIB
4556   # Extract the first word of "ranlib", so it can be a program name with args.
4557 set dummy ranlib; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   if test -n "$ac_ct_RANLIB"; then
4564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571     for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_ac_ct_RANLIB="ranlib"
4574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578   done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584 if test -n "$ac_ct_RANLIB"; then
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4586 $as_echo "$ac_ct_RANLIB" >&6; }
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 fi
4591
4592   if test "x$ac_ct_RANLIB" = x; then
4593     RANLIB="ranlib-not-found-in-path-error"
4594   else
4595     case $cross_compiling:$ac_tool_warned in
4596 yes:)
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599 ac_tool_warned=yes ;;
4600 esac
4601     RANLIB=$ac_ct_RANLIB
4602   fi
4603 else
4604   RANLIB="$ac_cv_prog_RANLIB"
4605 fi
4606
4607 # Extract the first word of "perl", so it can be a program name with args.
4608 set dummy perl; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_path_PERL+set}" = set; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614   case $PERL in
4615   [\\/]* | ?:[\\/]*)
4616   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4617   ;;
4618   *)
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4635   ;;
4636 esac
4637 fi
4638 PERL=$ac_cv_path_PERL
4639 if test -n "$PERL"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4641 $as_echo "$PERL" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4650 set x ${MAKE-make}
4651 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4652 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   cat >conftest.make <<\_ACEOF
4656 SHELL = /bin/sh
4657 all:
4658         @echo '@@@%%%=$(MAKE)=@@@%%%'
4659 _ACEOF
4660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4662   *@@@%%%=?*=@@@%%%*)
4663     eval ac_cv_prog_make_${ac_make}_set=yes;;
4664   *)
4665     eval ac_cv_prog_make_${ac_make}_set=no;;
4666 esac
4667 rm -f conftest.make
4668 fi
4669 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4671 $as_echo "yes" >&6; }
4672   SET_MAKE=
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676   SET_MAKE="MAKE=${MAKE-make}"
4677 fi
4678
4679
4680
4681 # See if makeinfo has been installed and is modern enough
4682 # that we can use it.
4683
4684   # Extract the first word of "makeinfo", so it can be a program name with args.
4685 set dummy makeinfo; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$MAKEINFO"; then
4692   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701     ac_cv_prog_MAKEINFO="makeinfo"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 MAKEINFO=$ac_cv_prog_MAKEINFO
4712 if test -n "$MAKEINFO"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4714 $as_echo "$MAKEINFO" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721   if test -n "$MAKEINFO"; then
4722     # Found it, now check the version.
4723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4724 $as_echo_n "checking for modern makeinfo... " >&6; }
4725 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4729                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4730
4731                     case $ac_prog_version in
4732                       '')  gcc_cv_prog_makeinfo_modern=no;;
4733                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4734                       *)   gcc_cv_prog_makeinfo_modern=no;;
4735                     esac
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4739 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4740   else
4741     gcc_cv_prog_makeinfo_modern=no
4742   fi
4743   if test $gcc_cv_prog_makeinfo_modern = no; then
4744     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4745   fi
4746
4747  if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4748   BUILD_INFO_TRUE=
4749   BUILD_INFO_FALSE='#'
4750 else
4751   BUILD_INFO_TRUE='#'
4752   BUILD_INFO_FALSE=
4753 fi
4754
4755
4756
4757 # Configure libtool
4758 case `pwd` in
4759   *\ * | *\     *)
4760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4761 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4762 esac
4763
4764
4765
4766 macro_version='2.2.6'
4767 macro_revision='1.3012'
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781 ltmain="$ac_aux_dir/ltmain.sh"
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4784 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4785 if test "${ac_cv_path_SED+set}" = set; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4789      for ac_i in 1 2 3 4 5 6 7; do
4790        ac_script="$ac_script$as_nl$ac_script"
4791      done
4792      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4793      { ac_script=; unset ac_script;}
4794      if test -z "$SED"; then
4795   ac_path_SED_found=false
4796   # Loop through the user's path and test for each of PROGNAME-LIST
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     for ac_prog in sed gsed; do
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4805       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4806 # Check for GNU ac_path_SED and select it if it is found.
4807   # Check for GNU $ac_path_SED
4808 case `"$ac_path_SED" --version 2>&1` in
4809 *GNU*)
4810   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4811 *)
4812   ac_count=0
4813   $as_echo_n 0123456789 >"conftest.in"
4814   while :
4815   do
4816     cat "conftest.in" "conftest.in" >"conftest.tmp"
4817     mv "conftest.tmp" "conftest.in"
4818     cp "conftest.in" "conftest.nl"
4819     $as_echo '' >> "conftest.nl"
4820     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822     as_fn_arith $ac_count + 1 && ac_count=$as_val
4823     if test $ac_count -gt ${ac_path_SED_max-0}; then
4824       # Best one so far, save it but keep looking for a better one
4825       ac_cv_path_SED="$ac_path_SED"
4826       ac_path_SED_max=$ac_count
4827     fi
4828     # 10*(2^10) chars as input seems more than enough
4829     test $ac_count -gt 10 && break
4830   done
4831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832 esac
4833
4834       $ac_path_SED_found && break 3
4835     done
4836   done
4837   done
4838 IFS=$as_save_IFS
4839   if test -z "$ac_cv_path_SED"; then
4840     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4841   fi
4842 else
4843   ac_cv_path_SED=$SED
4844 fi
4845
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4848 $as_echo "$ac_cv_path_SED" >&6; }
4849  SED="$ac_cv_path_SED"
4850   rm -f conftest.sed
4851
4852 test -z "$SED" && SED=sed
4853 Xsed="$SED -e 1s/^X//"
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4866 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4867 if test "${ac_cv_path_GREP+set}" = set; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   if test -z "$GREP"; then
4871   ac_path_GREP_found=false
4872   # Loop through the user's path and test for each of PROGNAME-LIST
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_prog in grep ggrep; do
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4881       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4882 # Check for GNU ac_path_GREP and select it if it is found.
4883   # Check for GNU $ac_path_GREP
4884 case `"$ac_path_GREP" --version 2>&1` in
4885 *GNU*)
4886   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887 *)
4888   ac_count=0
4889   $as_echo_n 0123456789 >"conftest.in"
4890   while :
4891   do
4892     cat "conftest.in" "conftest.in" >"conftest.tmp"
4893     mv "conftest.tmp" "conftest.in"
4894     cp "conftest.in" "conftest.nl"
4895     $as_echo 'GREP' >> "conftest.nl"
4896     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898     as_fn_arith $ac_count + 1 && ac_count=$as_val
4899     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4900       # Best one so far, save it but keep looking for a better one
4901       ac_cv_path_GREP="$ac_path_GREP"
4902       ac_path_GREP_max=$ac_count
4903     fi
4904     # 10*(2^10) chars as input seems more than enough
4905     test $ac_count -gt 10 && break
4906   done
4907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 esac
4909
4910       $ac_path_GREP_found && break 3
4911     done
4912   done
4913   done
4914 IFS=$as_save_IFS
4915   if test -z "$ac_cv_path_GREP"; then
4916     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917   fi
4918 else
4919   ac_cv_path_GREP=$GREP
4920 fi
4921
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4924 $as_echo "$ac_cv_path_GREP" >&6; }
4925  GREP="$ac_cv_path_GREP"
4926
4927
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4929 $as_echo_n "checking for egrep... " >&6; }
4930 if test "${ac_cv_path_EGREP+set}" = set; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4934    then ac_cv_path_EGREP="$GREP -E"
4935    else
4936      if test -z "$EGREP"; then
4937   ac_path_EGREP_found=false
4938   # Loop through the user's path and test for each of PROGNAME-LIST
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944     for ac_prog in egrep; do
4945     for ac_exec_ext in '' $ac_executable_extensions; do
4946       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4947       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4948 # Check for GNU ac_path_EGREP and select it if it is found.
4949   # Check for GNU $ac_path_EGREP
4950 case `"$ac_path_EGREP" --version 2>&1` in
4951 *GNU*)
4952   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953 *)
4954   ac_count=0
4955   $as_echo_n 0123456789 >"conftest.in"
4956   while :
4957   do
4958     cat "conftest.in" "conftest.in" >"conftest.tmp"
4959     mv "conftest.tmp" "conftest.in"
4960     cp "conftest.in" "conftest.nl"
4961     $as_echo 'EGREP' >> "conftest.nl"
4962     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964     as_fn_arith $ac_count + 1 && ac_count=$as_val
4965     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4966       # Best one so far, save it but keep looking for a better one
4967       ac_cv_path_EGREP="$ac_path_EGREP"
4968       ac_path_EGREP_max=$ac_count
4969     fi
4970     # 10*(2^10) chars as input seems more than enough
4971     test $ac_count -gt 10 && break
4972   done
4973   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974 esac
4975
4976       $ac_path_EGREP_found && break 3
4977     done
4978   done
4979   done
4980 IFS=$as_save_IFS
4981   if test -z "$ac_cv_path_EGREP"; then
4982     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983   fi
4984 else
4985   ac_cv_path_EGREP=$EGREP
4986 fi
4987
4988    fi
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4991 $as_echo "$ac_cv_path_EGREP" >&6; }
4992  EGREP="$ac_cv_path_EGREP"
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4996 $as_echo_n "checking for fgrep... " >&6; }
4997 if test "${ac_cv_path_FGREP+set}" = set; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5001    then ac_cv_path_FGREP="$GREP -F"
5002    else
5003      if test -z "$FGREP"; then
5004   ac_path_FGREP_found=false
5005   # Loop through the user's path and test for each of PROGNAME-LIST
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_prog in fgrep; do
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5014       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5015 # Check for GNU ac_path_FGREP and select it if it is found.
5016   # Check for GNU $ac_path_FGREP
5017 case `"$ac_path_FGREP" --version 2>&1` in
5018 *GNU*)
5019   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5020 *)
5021   ac_count=0
5022   $as_echo_n 0123456789 >"conftest.in"
5023   while :
5024   do
5025     cat "conftest.in" "conftest.in" >"conftest.tmp"
5026     mv "conftest.tmp" "conftest.in"
5027     cp "conftest.in" "conftest.nl"
5028     $as_echo 'FGREP' >> "conftest.nl"
5029     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031     as_fn_arith $ac_count + 1 && ac_count=$as_val
5032     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5033       # Best one so far, save it but keep looking for a better one
5034       ac_cv_path_FGREP="$ac_path_FGREP"
5035       ac_path_FGREP_max=$ac_count
5036     fi
5037     # 10*(2^10) chars as input seems more than enough
5038     test $ac_count -gt 10 && break
5039   done
5040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043       $ac_path_FGREP_found && break 3
5044     done
5045   done
5046   done
5047 IFS=$as_save_IFS
5048   if test -z "$ac_cv_path_FGREP"; then
5049     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5050   fi
5051 else
5052   ac_cv_path_FGREP=$FGREP
5053 fi
5054
5055    fi
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5058 $as_echo "$ac_cv_path_FGREP" >&6; }
5059  FGREP="$ac_cv_path_FGREP"
5060
5061
5062 test -z "$GREP" && GREP=grep
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082 # Check whether --with-gnu-ld was given.
5083 if test "${with_gnu_ld+set}" = set; then :
5084   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5085 else
5086   with_gnu_ld=no
5087 fi
5088
5089 ac_prog=ld
5090 if test "$GCC" = yes; then
5091   # Check if gcc -print-prog-name=ld gives a path.
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5093 $as_echo_n "checking for ld used by $CC... " >&6; }
5094   case $host in
5095   *-*-mingw*)
5096     # gcc leaves a trailing carriage return which upsets mingw
5097     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5098   *)
5099     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5100   esac
5101   case $ac_prog in
5102     # Accept absolute paths.
5103     [\\/]* | ?:[\\/]*)
5104       re_direlt='/[^/][^/]*/\.\./'
5105       # Canonicalize the pathname of ld
5106       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5107       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5108         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5109       done
5110       test -z "$LD" && LD="$ac_prog"
5111       ;;
5112   "")
5113     # If it fails, then pretend we aren't using GCC.
5114     ac_prog=ld
5115     ;;
5116   *)
5117     # If it is relative, then search for the first ld in PATH.
5118     with_gnu_ld=unknown
5119     ;;
5120   esac
5121 elif test "$with_gnu_ld" = yes; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5123 $as_echo_n "checking for GNU ld... " >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5126 $as_echo_n "checking for non-GNU ld... " >&6; }
5127 fi
5128 if test "${lt_cv_path_LD+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   if test -z "$LD"; then
5132   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5133   for ac_dir in $PATH; do
5134     IFS="$lt_save_ifs"
5135     test -z "$ac_dir" && ac_dir=.
5136     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5137       lt_cv_path_LD="$ac_dir/$ac_prog"
5138       # Check to see if the program is GNU ld.  I'd rather use --version,
5139       # but apparently some variants of GNU ld only accept -v.
5140       # Break only if it was the GNU/non-GNU ld that we prefer.
5141       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5142       *GNU* | *'with BFD'*)
5143         test "$with_gnu_ld" != no && break
5144         ;;
5145       *)
5146         test "$with_gnu_ld" != yes && break
5147         ;;
5148       esac
5149     fi
5150   done
5151   IFS="$lt_save_ifs"
5152 else
5153   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5154 fi
5155 fi
5156
5157 LD="$lt_cv_path_LD"
5158 if test -n "$LD"; then
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5160 $as_echo "$LD" >&6; }
5161 else
5162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5168 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5172 case `$LD -v 2>&1 </dev/null` in
5173 *GNU* | *'with BFD'*)
5174   lt_cv_prog_gnu_ld=yes
5175   ;;
5176 *)
5177   lt_cv_prog_gnu_ld=no
5178   ;;
5179 esac
5180 fi
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5182 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5183 with_gnu_ld=$lt_cv_prog_gnu_ld
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5194 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5195 if test "${lt_cv_path_NM+set}" = set; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   if test -n "$NM"; then
5199   # Let the user override the test.
5200   lt_cv_path_NM="$NM"
5201 else
5202   lt_nm_to_check="${ac_tool_prefix}nm"
5203   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5204     lt_nm_to_check="$lt_nm_to_check nm"
5205   fi
5206   for lt_tmp_nm in $lt_nm_to_check; do
5207     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5208     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5209       IFS="$lt_save_ifs"
5210       test -z "$ac_dir" && ac_dir=.
5211       tmp_nm="$ac_dir/$lt_tmp_nm"
5212       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5213         # Check to see if the nm accepts a BSD-compat flag.
5214         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5215         #   nm: unknown option "B" ignored
5216         # Tru64's nm complains that /dev/null is an invalid object file
5217         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5218         */dev/null* | *'Invalid file or object type'*)
5219           lt_cv_path_NM="$tmp_nm -B"
5220           break
5221           ;;
5222         *)
5223           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5224           */dev/null*)
5225             lt_cv_path_NM="$tmp_nm -p"
5226             break
5227             ;;
5228           *)
5229             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5230             continue # so that we can try to find one that supports BSD flags
5231             ;;
5232           esac
5233           ;;
5234         esac
5235       fi
5236     done
5237     IFS="$lt_save_ifs"
5238   done
5239   : ${lt_cv_path_NM=no}
5240 fi
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5243 $as_echo "$lt_cv_path_NM" >&6; }
5244 if test "$lt_cv_path_NM" != "no"; then
5245   NM="$lt_cv_path_NM"
5246 else
5247   # Didn't find any BSD compatible name lister, look for dumpbin.
5248   if test -n "$ac_tool_prefix"; then
5249   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5250   do
5251     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5256   $as_echo_n "(cached) " >&6
5257 else
5258   if test -n "$DUMPBIN"; then
5259   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264   IFS=$as_save_IFS
5265   test -z "$as_dir" && as_dir=.
5266     for ac_exec_ext in '' $ac_executable_extensions; do
5267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270     break 2
5271   fi
5272 done
5273   done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 DUMPBIN=$ac_cv_prog_DUMPBIN
5279 if test -n "$DUMPBIN"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5281 $as_echo "$DUMPBIN" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287
5288     test -n "$DUMPBIN" && break
5289   done
5290 fi
5291 if test -z "$DUMPBIN"; then
5292   ac_ct_DUMPBIN=$DUMPBIN
5293   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5294 do
5295   # Extract the first word of "$ac_prog", so it can be a program name with args.
5296 set dummy $ac_prog; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5300   $as_echo_n "(cached) " >&6
5301 else
5302   if test -n "$ac_ct_DUMPBIN"; then
5303   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308   IFS=$as_save_IFS
5309   test -z "$as_dir" && as_dir=.
5310     for ac_exec_ext in '' $ac_executable_extensions; do
5311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314     break 2
5315   fi
5316 done
5317   done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5323 if test -n "$ac_ct_DUMPBIN"; then
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5325 $as_echo "$ac_ct_DUMPBIN" >&6; }
5326 else
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330
5331
5332   test -n "$ac_ct_DUMPBIN" && break
5333 done
5334
5335   if test "x$ac_ct_DUMPBIN" = x; then
5336     DUMPBIN=":"
5337   else
5338     case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344     DUMPBIN=$ac_ct_DUMPBIN
5345   fi
5346 fi
5347
5348
5349   if test "$DUMPBIN" != ":"; then
5350     NM="$DUMPBIN"
5351   fi
5352 fi
5353 test -z "$NM" && NM=nm
5354
5355
5356
5357
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5361 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5362 if test "${lt_cv_nm_interface+set}" = set; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   lt_cv_nm_interface="BSD nm"
5366   echo "int some_variable = 0;" > conftest.$ac_ext
5367   (eval echo "\"\$as_me:5367: $ac_compile\"" >&5)
5368   (eval "$ac_compile" 2>conftest.err)
5369   cat conftest.err >&5
5370   (eval echo "\"\$as_me:5370: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5371   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5372   cat conftest.err >&5
5373   (eval echo "\"\$as_me:5373: output\"" >&5)
5374   cat conftest.out >&5
5375   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5376     lt_cv_nm_interface="MS dumpbin"
5377   fi
5378   rm -f conftest*
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5381 $as_echo "$lt_cv_nm_interface" >&6; }
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5384 $as_echo_n "checking whether ln -s works... " >&6; }
5385 LN_S=$as_ln_s
5386 if test "$LN_S" = "ln -s"; then
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }
5389 else
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5391 $as_echo "no, using $LN_S" >&6; }
5392 fi
5393
5394 # find the maximum length of command line arguments
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5396 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5397 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400     i=0
5401   teststring="ABCD"
5402
5403   case $build_os in
5404   msdosdjgpp*)
5405     # On DJGPP, this test can blow up pretty badly due to problems in libc
5406     # (any single argument exceeding 2000 bytes causes a buffer overrun
5407     # during glob expansion).  Even if it were fixed, the result of this
5408     # check would be larger than it should be.
5409     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5410     ;;
5411
5412   gnu*)
5413     # Under GNU Hurd, this test is not required because there is
5414     # no limit to the length of command line arguments.
5415     # Libtool will interpret -1 as no limit whatsoever
5416     lt_cv_sys_max_cmd_len=-1;
5417     ;;
5418
5419   cygwin* | mingw* | cegcc*)
5420     # On Win9x/ME, this test blows up -- it succeeds, but takes
5421     # about 5 minutes as the teststring grows exponentially.
5422     # Worse, since 9x/ME are not pre-emptively multitasking,
5423     # you end up with a "frozen" computer, even though with patience
5424     # the test eventually succeeds (with a max line length of 256k).
5425     # Instead, let's just punt: use the minimum linelength reported by
5426     # all of the supported platforms: 8192 (on NT/2K/XP).
5427     lt_cv_sys_max_cmd_len=8192;
5428     ;;
5429
5430   amigaos*)
5431     # On AmigaOS with pdksh, this test takes hours, literally.
5432     # So we just punt and use a minimum line length of 8192.
5433     lt_cv_sys_max_cmd_len=8192;
5434     ;;
5435
5436   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5437     # This has been around since 386BSD, at least.  Likely further.
5438     if test -x /sbin/sysctl; then
5439       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5440     elif test -x /usr/sbin/sysctl; then
5441       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5442     else
5443       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5444     fi
5445     # And add a safety zone
5446     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5447     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5448     ;;
5449
5450   interix*)
5451     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5452     lt_cv_sys_max_cmd_len=196608
5453     ;;
5454
5455   osf*)
5456     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5457     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5458     # nice to cause kernel panics so lets avoid the loop below.
5459     # First set a reasonable default.
5460     lt_cv_sys_max_cmd_len=16384
5461     #
5462     if test -x /sbin/sysconfig; then
5463       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5464         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5465       esac
5466     fi
5467     ;;
5468   sco3.2v5*)
5469     lt_cv_sys_max_cmd_len=102400
5470     ;;
5471   sysv5* | sco5v6* | sysv4.2uw2*)
5472     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5473     if test -n "$kargmax"; then
5474       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5475     else
5476       lt_cv_sys_max_cmd_len=32768
5477     fi
5478     ;;
5479   *)
5480     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5481     if test -n "$lt_cv_sys_max_cmd_len"; then
5482       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484     else
5485       # Make teststring a little bigger before we do anything with it.
5486       # a 1K string should be a reasonable start.
5487       for i in 1 2 3 4 5 6 7 8 ; do
5488         teststring=$teststring$teststring
5489       done
5490       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5491       # If test is not a shell built-in, we'll probably end up computing a
5492       # maximum length that is only half of the actual maximum length, but
5493       # we can't tell.
5494       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5495                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5496               test $i != 17 # 1/2 MB should be enough
5497       do
5498         i=`expr $i + 1`
5499         teststring=$teststring$teststring
5500       done
5501       # Only check the string length outside the loop.
5502       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5503       teststring=
5504       # Add a significant safety factor because C++ compilers can tack on
5505       # massive amounts of additional arguments before passing them to the
5506       # linker.  It appears as though 1/2 is a usable value.
5507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5508     fi
5509     ;;
5510   esac
5511
5512 fi
5513
5514 if test -n $lt_cv_sys_max_cmd_len ; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5516 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5519 $as_echo "none" >&6; }
5520 fi
5521 max_cmd_len=$lt_cv_sys_max_cmd_len
5522
5523
5524
5525
5526
5527
5528 : ${CP="cp -f"}
5529 : ${MV="mv -f"}
5530 : ${RM="rm -f"}
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5533 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5534 # Try some XSI features
5535 xsi_shell=no
5536 ( _lt_dummy="a/b/c"
5537   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5538       = c,a/b,, \
5539     && eval 'test $(( 1 + 1 )) -eq 2 \
5540     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5541   && xsi_shell=yes
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5543 $as_echo "$xsi_shell" >&6; }
5544
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5547 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5548 lt_shell_append=no
5549 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5550     >/dev/null 2>&1 \
5551   && lt_shell_append=yes
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5553 $as_echo "$lt_shell_append" >&6; }
5554
5555
5556 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5557   lt_unset=unset
5558 else
5559   lt_unset=false
5560 fi
5561
5562
5563
5564
5565
5566 # test EBCDIC or ASCII
5567 case `echo X|tr X '\101'` in
5568  A) # ASCII based system
5569     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5570   lt_SP2NL='tr \040 \012'
5571   lt_NL2SP='tr \015\012 \040\040'
5572   ;;
5573  *) # EBCDIC based system
5574   lt_SP2NL='tr \100 \n'
5575   lt_NL2SP='tr \r\n \100\100'
5576   ;;
5577 esac
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5588 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5589 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   lt_cv_ld_reload_flag='-r'
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5595 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5596 reload_flag=$lt_cv_ld_reload_flag
5597 case $reload_flag in
5598 "" | " "*) ;;
5599 *) reload_flag=" $reload_flag" ;;
5600 esac
5601 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602 case $host_os in
5603   darwin*)
5604     if test "$GCC" = yes; then
5605       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5606     else
5607       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5608     fi
5609     ;;
5610 esac
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620 if test -n "$ac_tool_prefix"; then
5621   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$OBJDUMP"; then
5629   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 OBJDUMP=$ac_cv_prog_OBJDUMP
5649 if test -n "$OBJDUMP"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5651 $as_echo "$OBJDUMP" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658 fi
5659 if test -z "$ac_cv_prog_OBJDUMP"; then
5660   ac_ct_OBJDUMP=$OBJDUMP
5661   # Extract the first word of "objdump", so it can be a program name with args.
5662 set dummy objdump; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$ac_ct_OBJDUMP"; then
5669   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5689 if test -n "$ac_ct_OBJDUMP"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5691 $as_echo "$ac_ct_OBJDUMP" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697   if test "x$ac_ct_OBJDUMP" = x; then
5698     OBJDUMP="false"
5699   else
5700     case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704 ac_tool_warned=yes ;;
5705 esac
5706     OBJDUMP=$ac_ct_OBJDUMP
5707   fi
5708 else
5709   OBJDUMP="$ac_cv_prog_OBJDUMP"
5710 fi
5711
5712 test -z "$OBJDUMP" && OBJDUMP=objdump
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5723 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5724 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   lt_cv_file_magic_cmd='$MAGIC_CMD'
5728 lt_cv_file_magic_test_file=
5729 lt_cv_deplibs_check_method='unknown'
5730 # Need to set the preceding variable on all platforms that support
5731 # interlibrary dependencies.
5732 # 'none' -- dependencies not supported.
5733 # `unknown' -- same as none, but documents that we really don't know.
5734 # 'pass_all' -- all dependencies passed with no checks.
5735 # 'test_compile' -- check by making test program.
5736 # 'file_magic [[regex]]' -- check by looking for files in library path
5737 # which responds to the $file_magic_cmd with a given extended regex.
5738 # If you have `file' or equivalent on your system and you're not sure
5739 # whether `pass_all' will *always* work, you probably want this one.
5740
5741 case $host_os in
5742 aix[4-9]*)
5743   lt_cv_deplibs_check_method=pass_all
5744   ;;
5745
5746 beos*)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 bsdi[45]*)
5751   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5752   lt_cv_file_magic_cmd='/usr/bin/file -L'
5753   lt_cv_file_magic_test_file=/shlib/libc.so
5754   ;;
5755
5756 cygwin*)
5757   # func_win32_libid is a shell function defined in ltmain.sh
5758   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5759   lt_cv_file_magic_cmd='func_win32_libid'
5760   ;;
5761
5762 mingw* | pw32*)
5763   # Base MSYS/MinGW do not provide the 'file' command needed by
5764   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5765   # unless we find 'file', for example because we are cross-compiling.
5766   if ( file / ) >/dev/null 2>&1; then
5767     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5768     lt_cv_file_magic_cmd='func_win32_libid'
5769   else
5770     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5771     lt_cv_file_magic_cmd='$OBJDUMP -f'
5772   fi
5773   ;;
5774
5775 cegcc)
5776   # use the weaker test based on 'objdump'. See mingw*.
5777   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5778   lt_cv_file_magic_cmd='$OBJDUMP -f'
5779   ;;
5780
5781 darwin* | rhapsody*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 freebsd* | dragonfly*)
5786   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5787     case $host_cpu in
5788     i*86 )
5789       # Not sure whether the presence of OpenBSD here was a mistake.
5790       # Let's accept both of them until this is cleared up.
5791       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5792       lt_cv_file_magic_cmd=/usr/bin/file
5793       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5794       ;;
5795     esac
5796   else
5797     lt_cv_deplibs_check_method=pass_all
5798   fi
5799   ;;
5800
5801 gnu*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 hpux10.20* | hpux11*)
5806   lt_cv_file_magic_cmd=/usr/bin/file
5807   case $host_cpu in
5808   ia64*)
5809     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5810     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5811     ;;
5812   hppa*64*)
5813     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]'
5814     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5815     ;;
5816   *)
5817     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5818     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5819     ;;
5820   esac
5821   ;;
5822
5823 interix[3-9]*)
5824   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5825   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5826   ;;
5827
5828 irix5* | irix6* | nonstopux*)
5829   case $LD in
5830   *-32|*"-32 ") libmagic=32-bit;;
5831   *-n32|*"-n32 ") libmagic=N32;;
5832   *-64|*"-64 ") libmagic=64-bit;;
5833   *) libmagic=never-match;;
5834   esac
5835   lt_cv_deplibs_check_method=pass_all
5836   ;;
5837
5838 # This must be Linux ELF.
5839 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5840   lt_cv_deplibs_check_method=pass_all
5841   ;;
5842
5843 netbsd*)
5844   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5845     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5846   else
5847     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5848   fi
5849   ;;
5850
5851 newos6*)
5852   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5853   lt_cv_file_magic_cmd=/usr/bin/file
5854   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5855   ;;
5856
5857 *nto* | *qnx*)
5858   lt_cv_deplibs_check_method=pass_all
5859   ;;
5860
5861 openbsd*)
5862   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5863     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5864   else
5865     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866   fi
5867   ;;
5868
5869 osf3* | osf4* | osf5*)
5870   lt_cv_deplibs_check_method=pass_all
5871   ;;
5872
5873 rdos*)
5874   lt_cv_deplibs_check_method=pass_all
5875   ;;
5876
5877 solaris*)
5878   lt_cv_deplibs_check_method=pass_all
5879   ;;
5880
5881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 sysv4 | sysv4.3*)
5886   case $host_vendor in
5887   motorola)
5888     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]'
5889     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5890     ;;
5891   ncr)
5892     lt_cv_deplibs_check_method=pass_all
5893     ;;
5894   sequent)
5895     lt_cv_file_magic_cmd='/bin/file'
5896     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5897     ;;
5898   sni)
5899     lt_cv_file_magic_cmd='/bin/file'
5900     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5901     lt_cv_file_magic_test_file=/lib/libc.so
5902     ;;
5903   siemens)
5904     lt_cv_deplibs_check_method=pass_all
5905     ;;
5906   pc)
5907     lt_cv_deplibs_check_method=pass_all
5908     ;;
5909   esac
5910   ;;
5911
5912 tpf*)
5913   lt_cv_deplibs_check_method=pass_all
5914   ;;
5915 esac
5916
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5919 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5920 file_magic_cmd=$lt_cv_file_magic_cmd
5921 deplibs_check_method=$lt_cv_deplibs_check_method
5922 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 if test -n "$ac_tool_prefix"; then
5936   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5937 set dummy ${ac_tool_prefix}ar; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_AR+set}" = set; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   if test -n "$AR"; then
5944   ac_cv_prog_AR="$AR" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951     for ac_exec_ext in '' $ac_executable_extensions; do
5952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953     ac_cv_prog_AR="${ac_tool_prefix}ar"
5954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955     break 2
5956   fi
5957 done
5958   done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 AR=$ac_cv_prog_AR
5964 if test -n "$AR"; then
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5966 $as_echo "$AR" >&6; }
5967 else
5968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972
5973 fi
5974 if test -z "$ac_cv_prog_AR"; then
5975   ac_ct_AR=$AR
5976   # Extract the first word of "ar", so it can be a program name with args.
5977 set dummy ar; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -n "$ac_ct_AR"; then
5984   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993     ac_cv_prog_ac_ct_AR="ar"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6004 if test -n "$ac_ct_AR"; then
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6006 $as_echo "$ac_ct_AR" >&6; }
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012   if test "x$ac_ct_AR" = x; then
6013     AR="false"
6014   else
6015     case $cross_compiling:$ac_tool_warned in
6016 yes:)
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019 ac_tool_warned=yes ;;
6020 esac
6021     AR=$ac_ct_AR
6022   fi
6023 else
6024   AR="$ac_cv_prog_AR"
6025 fi
6026
6027 test -z "$AR" && AR=ar
6028 test -z "$AR_FLAGS" && AR_FLAGS=cru
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}strip; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if test "${ac_cv_prog_STRIP+set}" = set; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$STRIP"; then
6049   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 STRIP=$ac_cv_prog_STRIP
6069 if test -n "$STRIP"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6071 $as_echo "$STRIP" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_STRIP"; then
6080   ac_ct_STRIP=$STRIP
6081   # Extract the first word of "strip", so it can be a program name with args.
6082 set dummy strip; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$ac_ct_STRIP"; then
6089   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_STRIP="strip"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6109 if test -n "$ac_ct_STRIP"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6111 $as_echo "$ac_ct_STRIP" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_STRIP" = x; then
6118     STRIP=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     STRIP=$ac_ct_STRIP
6127   fi
6128 else
6129   STRIP="$ac_cv_prog_STRIP"
6130 fi
6131
6132 test -z "$STRIP" && STRIP=:
6133
6134
6135
6136
6137
6138
6139 if test -n "$ac_tool_prefix"; then
6140   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6145   $as_echo_n "(cached) " >&6
6146 else
6147   if test -n "$RANLIB"; then
6148   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162   done
6163 IFS=$as_save_IFS
6164
6165 fi
6166 fi
6167 RANLIB=$ac_cv_prog_RANLIB
6168 if test -n "$RANLIB"; then
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6170 $as_echo "$RANLIB" >&6; }
6171 else
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6174 fi
6175
6176
6177 fi
6178 if test -z "$ac_cv_prog_RANLIB"; then
6179   ac_ct_RANLIB=$RANLIB
6180   # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   if test -n "$ac_ct_RANLIB"; then
6188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_ac_ct_RANLIB="ranlib"
6198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202   done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208 if test -n "$ac_ct_RANLIB"; then
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6210 $as_echo "$ac_ct_RANLIB" >&6; }
6211 else
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216   if test "x$ac_ct_RANLIB" = x; then
6217     RANLIB=":"
6218   else
6219     case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225     RANLIB=$ac_ct_RANLIB
6226   fi
6227 else
6228   RANLIB="$ac_cv_prog_RANLIB"
6229 fi
6230
6231 test -z "$RANLIB" && RANLIB=:
6232
6233
6234
6235
6236
6237
6238 # Determine commands to create old-style static archives.
6239 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6240 old_postinstall_cmds='chmod 644 $oldlib'
6241 old_postuninstall_cmds=
6242
6243 if test -n "$RANLIB"; then
6244   case $host_os in
6245   openbsd*)
6246     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6247     ;;
6248   *)
6249     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6250     ;;
6251   esac
6252   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6253 fi
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 # If no C compiler was specified, use CC.
6289 LTCC=${LTCC-"$CC"}
6290
6291 # If no C compiler flags were specified, use CFLAGS.
6292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6293
6294 # Allow CC to be a program name with arguments.
6295 compiler=$CC
6296
6297
6298 # Check for command to grab the raw symbol name followed by C symbol from nm.
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6300 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304
6305 # These are sane defaults that work on at least a few old systems.
6306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6307
6308 # Character class describing NM global symbol codes.
6309 symcode='[BCDEGRST]'
6310
6311 # Regexp to match symbols that can be accessed directly from C.
6312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6313
6314 # Define system-specific variables.
6315 case $host_os in
6316 aix*)
6317   symcode='[BCDT]'
6318   ;;
6319 cygwin* | mingw* | pw32* | cegcc*)
6320   symcode='[ABCDGISTW]'
6321   ;;
6322 hpux*)
6323   if test "$host_cpu" = ia64; then
6324     symcode='[ABCDEGRST]'
6325   fi
6326   ;;
6327 irix* | nonstopux*)
6328   symcode='[BCDEGRST]'
6329   ;;
6330 osf*)
6331   symcode='[BCDEGQRST]'
6332   ;;
6333 solaris*)
6334   symcode='[BDRT]'
6335   ;;
6336 sco3.2v5*)
6337   symcode='[DT]'
6338   ;;
6339 sysv4.2uw2*)
6340   symcode='[DT]'
6341   ;;
6342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6343   symcode='[ABDT]'
6344   ;;
6345 sysv4)
6346   symcode='[DFNSTU]'
6347   ;;
6348 esac
6349
6350 # If we're using GNU nm, then use its standard symbol codes.
6351 case `$NM -V 2>&1` in
6352 *GNU* | *'with BFD'*)
6353   symcode='[ABCDGIRSTW]' ;;
6354 esac
6355
6356 # Transform an extracted symbol line into a proper C declaration.
6357 # Some systems (esp. on ia64) link data and code symbols differently,
6358 # so use this general approach.
6359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360
6361 # Transform an extracted symbol line into symbol name and symbol address
6362 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6363 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'"
6364
6365 # Handle CRLF in mingw tool chain
6366 opt_cr=
6367 case $build_os in
6368 mingw*)
6369   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6370   ;;
6371 esac
6372
6373 # Try without a prefix underscore, then with it.
6374 for ac_symprfx in "" "_"; do
6375
6376   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377   symxfrm="\\1 $ac_symprfx\\2 \\2"
6378
6379   # Write the raw and C identifiers.
6380   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6381     # Fake it for dumpbin and say T for any non-static function
6382     # and D for any global variable.
6383     # Also find C++ and __fastcall symbols from MSVC++,
6384     # which start with @ or ?.
6385     lt_cv_sys_global_symbol_pipe="$AWK '"\
6386 "     {last_section=section; section=\$ 3};"\
6387 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6388 "     \$ 0!~/External *\|/{next};"\
6389 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6390 "     {if(hide[section]) next};"\
6391 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6392 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6393 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6394 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6395 "     ' prfx=^$ac_symprfx"
6396   else
6397     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6398   fi
6399
6400   # Check to see that the pipe works correctly.
6401   pipe_works=no
6402
6403   rm -f conftest*
6404   cat > conftest.$ac_ext <<_LT_EOF
6405 #ifdef __cplusplus
6406 extern "C" {
6407 #endif
6408 char nm_test_var;
6409 void nm_test_func(void);
6410 void nm_test_func(void){}
6411 #ifdef __cplusplus
6412 }
6413 #endif
6414 int main(){nm_test_var='a';nm_test_func();return(0);}
6415 _LT_EOF
6416
6417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6418   (eval $ac_compile) 2>&5
6419   ac_status=$?
6420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421   test $ac_status = 0; }; then
6422     # Now try to grab the symbols.
6423     nlist=conftest.nm
6424     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6425   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6426   ac_status=$?
6427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428   test $ac_status = 0; } && test -s "$nlist"; then
6429       # Try sorting and uniquifying the output.
6430       if sort "$nlist" | uniq > "$nlist"T; then
6431         mv -f "$nlist"T "$nlist"
6432       else
6433         rm -f "$nlist"T
6434       fi
6435
6436       # Make sure that we snagged all the symbols we need.
6437       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6438         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6439           cat <<_LT_EOF > conftest.$ac_ext
6440 #ifdef __cplusplus
6441 extern "C" {
6442 #endif
6443
6444 _LT_EOF
6445           # Now generate the symbol file.
6446           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6447
6448           cat <<_LT_EOF >> conftest.$ac_ext
6449
6450 /* The mapping between symbol names and symbols.  */
6451 const struct {
6452   const char *name;
6453   void       *address;
6454 }
6455 lt__PROGRAM__LTX_preloaded_symbols[] =
6456 {
6457   { "@PROGRAM@", (void *) 0 },
6458 _LT_EOF
6459           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6460           cat <<\_LT_EOF >> conftest.$ac_ext
6461   {0, (void *) 0}
6462 };
6463
6464 /* This works around a problem in FreeBSD linker */
6465 #ifdef FREEBSD_WORKAROUND
6466 static const void *lt_preloaded_setup() {
6467   return lt__PROGRAM__LTX_preloaded_symbols;
6468 }
6469 #endif
6470
6471 #ifdef __cplusplus
6472 }
6473 #endif
6474 _LT_EOF
6475           # Now try linking the two files.
6476           mv conftest.$ac_objext conftstm.$ac_objext
6477           lt_save_LIBS="$LIBS"
6478           lt_save_CFLAGS="$CFLAGS"
6479           LIBS="conftstm.$ac_objext"
6480           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6481           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6482   (eval $ac_link) 2>&5
6483   ac_status=$?
6484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6486             pipe_works=yes
6487           fi
6488           LIBS="$lt_save_LIBS"
6489           CFLAGS="$lt_save_CFLAGS"
6490         else
6491           echo "cannot find nm_test_func in $nlist" >&5
6492         fi
6493       else
6494         echo "cannot find nm_test_var in $nlist" >&5
6495       fi
6496     else
6497       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6498     fi
6499   else
6500     echo "$progname: failed program was:" >&5
6501     cat conftest.$ac_ext >&5
6502   fi
6503   rm -rf conftest* conftst*
6504
6505   # Do not use the global_symbol_pipe unless it works.
6506   if test "$pipe_works" = yes; then
6507     break
6508   else
6509     lt_cv_sys_global_symbol_pipe=
6510   fi
6511 done
6512
6513 fi
6514
6515 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6516   lt_cv_sys_global_symbol_to_cdecl=
6517 fi
6518 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6520 $as_echo "failed" >&6; }
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6523 $as_echo "ok" >&6; }
6524 fi
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 # Check whether --enable-libtool-lock was given.
6549 if test "${enable_libtool_lock+set}" = set; then :
6550   enableval=$enable_libtool_lock;
6551 fi
6552
6553 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6554
6555 # Some flags need to be propagated to the compiler or linker for good
6556 # libtool support.
6557 case $host in
6558 ia64-*-hpux*)
6559   # Find out which ABI we are using.
6560   echo 'int i;' > conftest.$ac_ext
6561   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6562   (eval $ac_compile) 2>&5
6563   ac_status=$?
6564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565   test $ac_status = 0; }; then
6566     case `/usr/bin/file conftest.$ac_objext` in
6567       *ELF-32*)
6568         HPUX_IA64_MODE="32"
6569         ;;
6570       *ELF-64*)
6571         HPUX_IA64_MODE="64"
6572         ;;
6573     esac
6574   fi
6575   rm -rf conftest*
6576   ;;
6577 *-*-irix6*)
6578   # Find out which ABI we are using.
6579   echo '#line 6579 "configure"' > conftest.$ac_ext
6580   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581   (eval $ac_compile) 2>&5
6582   ac_status=$?
6583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584   test $ac_status = 0; }; then
6585     if test "$lt_cv_prog_gnu_ld" = yes; then
6586       case `/usr/bin/file conftest.$ac_objext` in
6587         *32-bit*)
6588           LD="${LD-ld} -melf32bsmip"
6589           ;;
6590         *N32*)
6591           LD="${LD-ld} -melf32bmipn32"
6592           ;;
6593         *64-bit*)
6594           LD="${LD-ld} -melf64bmip"
6595         ;;
6596       esac
6597     else
6598       case `/usr/bin/file conftest.$ac_objext` in
6599         *32-bit*)
6600           LD="${LD-ld} -32"
6601           ;;
6602         *N32*)
6603           LD="${LD-ld} -n32"
6604           ;;
6605         *64-bit*)
6606           LD="${LD-ld} -64"
6607           ;;
6608       esac
6609     fi
6610   fi
6611   rm -rf conftest*
6612   ;;
6613
6614 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6615 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6616   # Find out which ABI we are using.
6617   echo 'int i;' > conftest.$ac_ext
6618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619   (eval $ac_compile) 2>&5
6620   ac_status=$?
6621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622   test $ac_status = 0; }; then
6623     case `/usr/bin/file conftest.o` in
6624       *32-bit*)
6625         case $host in
6626           x86_64-*kfreebsd*-gnu)
6627             LD="${LD-ld} -m elf_i386_fbsd"
6628             ;;
6629           x86_64-*linux*)
6630             LD="${LD-ld} -m elf_i386"
6631             ;;
6632           ppc64-*linux*|powerpc64-*linux*)
6633             LD="${LD-ld} -m elf32ppclinux"
6634             ;;
6635           s390x-*linux*)
6636             LD="${LD-ld} -m elf_s390"
6637             ;;
6638           sparc64-*linux*)
6639             LD="${LD-ld} -m elf32_sparc"
6640             ;;
6641         esac
6642         ;;
6643       *64-bit*)
6644         case $host in
6645           x86_64-*kfreebsd*-gnu)
6646             LD="${LD-ld} -m elf_x86_64_fbsd"
6647             ;;
6648           x86_64-*linux*)
6649             LD="${LD-ld} -m elf_x86_64"
6650             ;;
6651           ppc*-*linux*|powerpc*-*linux*)
6652             LD="${LD-ld} -m elf64ppc"
6653             ;;
6654           s390*-*linux*|s390*-*tpf*)
6655             LD="${LD-ld} -m elf64_s390"
6656             ;;
6657           sparc*-*linux*)
6658             LD="${LD-ld} -m elf64_sparc"
6659             ;;
6660         esac
6661         ;;
6662     esac
6663   fi
6664   rm -rf conftest*
6665   ;;
6666
6667 *-*-sco3.2v5*)
6668   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6669   SAVE_CFLAGS="$CFLAGS"
6670   CFLAGS="$CFLAGS -belf"
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6672 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6673 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   ac_ext=c
6677 ac_cpp='$CPP $CPPFLAGS'
6678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
6682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 int
6686 main ()
6687 {
6688
6689   ;
6690   return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_link "$LINENO"; then :
6694   lt_cv_cc_needs_belf=yes
6695 else
6696   lt_cv_cc_needs_belf=no
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext \
6699     conftest$ac_exeext conftest.$ac_ext
6700      ac_ext=c
6701 ac_cpp='$CPP $CPPFLAGS'
6702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6708 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6709   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6710     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6711     CFLAGS="$SAVE_CFLAGS"
6712   fi
6713   ;;
6714 sparc*-*solaris*)
6715   # Find out which ABI we are using.
6716   echo 'int i;' > conftest.$ac_ext
6717   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6718   (eval $ac_compile) 2>&5
6719   ac_status=$?
6720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721   test $ac_status = 0; }; then
6722     case `/usr/bin/file conftest.o` in
6723     *64-bit*)
6724       case $lt_cv_prog_gnu_ld in
6725       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6726       *)
6727         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6728           LD="${LD-ld} -64"
6729         fi
6730         ;;
6731       esac
6732       ;;
6733     esac
6734   fi
6735   rm -rf conftest*
6736   ;;
6737 esac
6738
6739 need_locks="$enable_libtool_lock"
6740
6741
6742   case $host_os in
6743     rhapsody* | darwin*)
6744     if test -n "$ac_tool_prefix"; then
6745   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   if test -n "$DSYMUTIL"; then
6753   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760     for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767   done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6773 if test -n "$DSYMUTIL"; then
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6775 $as_echo "$DSYMUTIL" >&6; }
6776 else
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_DSYMUTIL"; then
6784   ac_ct_DSYMUTIL=$DSYMUTIL
6785   # Extract the first word of "dsymutil", so it can be a program name with args.
6786 set dummy dsymutil; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$ac_ct_DSYMUTIL"; then
6793   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6813 if test -n "$ac_ct_DSYMUTIL"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6815 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821   if test "x$ac_ct_DSYMUTIL" = x; then
6822     DSYMUTIL=":"
6823   else
6824     case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830     DSYMUTIL=$ac_ct_DSYMUTIL
6831   fi
6832 else
6833   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6834 fi
6835
6836     if test -n "$ac_tool_prefix"; then
6837   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   if test -n "$NMEDIT"; then
6845   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 NMEDIT=$ac_cv_prog_NMEDIT
6865 if test -n "$NMEDIT"; then
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6867 $as_echo "$NMEDIT" >&6; }
6868 else
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_prog_NMEDIT"; then
6876   ac_ct_NMEDIT=$NMEDIT
6877   # Extract the first word of "nmedit", so it can be a program name with args.
6878 set dummy nmedit; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$ac_ct_NMEDIT"; then
6885   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6905 if test -n "$ac_ct_NMEDIT"; then
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6907 $as_echo "$ac_ct_NMEDIT" >&6; }
6908 else
6909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913   if test "x$ac_ct_NMEDIT" = x; then
6914     NMEDIT=":"
6915   else
6916     case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922     NMEDIT=$ac_ct_NMEDIT
6923   fi
6924 else
6925   NMEDIT="$ac_cv_prog_NMEDIT"
6926 fi
6927
6928     if test -n "$ac_tool_prefix"; then
6929   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if test "${ac_cv_prog_LIPO+set}" = set; then :
6934   $as_echo_n "(cached) " >&6
6935 else
6936   if test -n "$LIPO"; then
6937   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944     for ac_exec_ext in '' $ac_executable_extensions; do
6945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948     break 2
6949   fi
6950 done
6951   done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 LIPO=$ac_cv_prog_LIPO
6957 if test -n "$LIPO"; then
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6959 $as_echo "$LIPO" >&6; }
6960 else
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965
6966 fi
6967 if test -z "$ac_cv_prog_LIPO"; then
6968   ac_ct_LIPO=$LIPO
6969   # Extract the first word of "lipo", so it can be a program name with args.
6970 set dummy lipo; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   if test -n "$ac_ct_LIPO"; then
6977   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984     for ac_exec_ext in '' $ac_executable_extensions; do
6985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986     ac_cv_prog_ac_ct_LIPO="lipo"
6987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991   done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6997 if test -n "$ac_ct_LIPO"; then
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6999 $as_echo "$ac_ct_LIPO" >&6; }
7000 else
7001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 fi
7004
7005   if test "x$ac_ct_LIPO" = x; then
7006     LIPO=":"
7007   else
7008     case $cross_compiling:$ac_tool_warned in
7009 yes:)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014     LIPO=$ac_ct_LIPO
7015   fi
7016 else
7017   LIPO="$ac_cv_prog_LIPO"
7018 fi
7019
7020     if test -n "$ac_tool_prefix"; then
7021   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}otool; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7026   $as_echo_n "(cached) " >&6
7027 else
7028   if test -n "$OTOOL"; then
7029   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036     for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043   done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 OTOOL=$ac_cv_prog_OTOOL
7049 if test -n "$OTOOL"; then
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7051 $as_echo "$OTOOL" >&6; }
7052 else
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_OTOOL"; then
7060   ac_ct_OTOOL=$OTOOL
7061   # Extract the first word of "otool", so it can be a program name with args.
7062 set dummy otool; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   if test -n "$ac_ct_OTOOL"; then
7069   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076     for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_ac_ct_OTOOL="otool"
7079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083   done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7089 if test -n "$ac_ct_OTOOL"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7091 $as_echo "$ac_ct_OTOOL" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097   if test "x$ac_ct_OTOOL" = x; then
7098     OTOOL=":"
7099   else
7100     case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104 ac_tool_warned=yes ;;
7105 esac
7106     OTOOL=$ac_ct_OTOOL
7107   fi
7108 else
7109   OTOOL="$ac_cv_prog_OTOOL"
7110 fi
7111
7112     if test -n "$ac_tool_prefix"; then
7113   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7118   $as_echo_n "(cached) " >&6
7119 else
7120   if test -n "$OTOOL64"; then
7121   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128     for ac_exec_ext in '' $ac_executable_extensions; do
7129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135   done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 OTOOL64=$ac_cv_prog_OTOOL64
7141 if test -n "$OTOOL64"; then
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7143 $as_echo "$OTOOL64" >&6; }
7144 else
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149
7150 fi
7151 if test -z "$ac_cv_prog_OTOOL64"; then
7152   ac_ct_OTOOL64=$OTOOL64
7153   # Extract the first word of "otool64", so it can be a program name with args.
7154 set dummy otool64; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7158   $as_echo_n "(cached) " >&6
7159 else
7160   if test -n "$ac_ct_OTOOL64"; then
7161   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_prog_ac_ct_OTOOL64="otool64"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7181 if test -n "$ac_ct_OTOOL64"; then
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7183 $as_echo "$ac_ct_OTOOL64" >&6; }
7184 else
7185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189   if test "x$ac_ct_OTOOL64" = x; then
7190     OTOOL64=":"
7191   else
7192     case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198     OTOOL64=$ac_ct_OTOOL64
7199   fi
7200 else
7201   OTOOL64="$ac_cv_prog_OTOOL64"
7202 fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7231 $as_echo_n "checking for -single_module linker flag... " >&6; }
7232 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   lt_cv_apple_cc_single_mod=no
7236       if test -z "${LT_MULTI_MODULE}"; then
7237         # By default we will add the -single_module flag. You can override
7238         # by either setting the environment variable LT_MULTI_MODULE
7239         # non-empty at configure time, or by adding -multi_module to the
7240         # link flags.
7241         rm -rf libconftest.dylib*
7242         echo "int foo(void){return 1;}" > conftest.c
7243         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7244 -dynamiclib -Wl,-single_module conftest.c" >&5
7245         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7246           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7247         _lt_result=$?
7248         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7249           lt_cv_apple_cc_single_mod=yes
7250         else
7251           cat conftest.err >&5
7252         fi
7253         rm -rf libconftest.dylib*
7254         rm -f conftest.*
7255       fi
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7258 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7260 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7261 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   lt_cv_ld_exported_symbols_list=no
7265       save_LDFLAGS=$LDFLAGS
7266       echo "_main" > conftest.sym
7267       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7268       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270
7271 int
7272 main ()
7273 {
7274
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280   lt_cv_ld_exported_symbols_list=yes
7281 else
7282   lt_cv_ld_exported_symbols_list=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext \
7285     conftest$ac_exeext conftest.$ac_ext
7286         LDFLAGS="$save_LDFLAGS"
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7290 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7291     case $host_os in
7292     rhapsody* | darwin1.[012])
7293       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7294     darwin1.*)
7295       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7296     darwin*) # darwin 5.x on
7297       # if running on 10.5 or later, the deployment target defaults
7298       # to the OS version, if on x86, and 10.4, the deployment
7299       # target defaults to 10.4. Don't you love it?
7300       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7301         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7302           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7303         10.[012]*)
7304           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7305         10.*)
7306           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307       esac
7308     ;;
7309   esac
7310     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7311       _lt_dar_single_mod='$single_module'
7312     fi
7313     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7314       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7315     else
7316       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7317     fi
7318     if test "$DSYMUTIL" != ":"; then
7319       _lt_dsymutil='~$DSYMUTIL $lib || :'
7320     else
7321       _lt_dsymutil=
7322     fi
7323     ;;
7324   esac
7325
7326 ac_ext=c
7327 ac_cpp='$CPP $CPPFLAGS'
7328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7333 # On Suns, sometimes $CPP names a directory.
7334 if test -n "$CPP" && test -d "$CPP"; then
7335   CPP=
7336 fi
7337 if test -z "$CPP"; then
7338   if test "${ac_cv_prog_CPP+set}" = set; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341       # Double quotes because CPP needs to be expanded
7342     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7343     do
7344       ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7346 do
7347   # Use a header file that comes with gcc, so configuring glibc
7348   # with a fresh cross-compiler works.
7349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350   # <limits.h> exists even on freestanding compilers.
7351   # On the NeXT, cc -E runs the code through the compiler's parser,
7352   # not just through cpp. "Syntax error" is here to catch this case.
7353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355 #ifdef __STDC__
7356 # include <limits.h>
7357 #else
7358 # include <assert.h>
7359 #endif
7360                      Syntax error
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7363
7364 else
7365   # Broken: fails on valid input.
7366 continue
7367 fi
7368 rm -f conftest.err conftest.$ac_ext
7369
7370   # OK, works on sane cases.  Now check whether nonexistent headers
7371   # can be detected and how.
7372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374 #include <ac_nonexistent.h>
7375 _ACEOF
7376 if ac_fn_c_try_cpp "$LINENO"; then :
7377   # Broken: success on invalid input.
7378 continue
7379 else
7380   # Passes both tests.
7381 ac_preproc_ok=:
7382 break
7383 fi
7384 rm -f conftest.err conftest.$ac_ext
7385
7386 done
7387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388 rm -f conftest.err conftest.$ac_ext
7389 if $ac_preproc_ok; then :
7390   break
7391 fi
7392
7393     done
7394     ac_cv_prog_CPP=$CPP
7395
7396 fi
7397   CPP=$ac_cv_prog_CPP
7398 else
7399   ac_cv_prog_CPP=$CPP
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7402 $as_echo "$CPP" >&6; }
7403 ac_preproc_ok=false
7404 for ac_c_preproc_warn_flag in '' yes
7405 do
7406   # Use a header file that comes with gcc, so configuring glibc
7407   # with a fresh cross-compiler works.
7408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409   # <limits.h> exists even on freestanding compilers.
7410   # On the NeXT, cc -E runs the code through the compiler's parser,
7411   # not just through cpp. "Syntax error" is here to catch this case.
7412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h.  */
7414 #ifdef __STDC__
7415 # include <limits.h>
7416 #else
7417 # include <assert.h>
7418 #endif
7419                      Syntax error
7420 _ACEOF
7421 if ac_fn_c_try_cpp "$LINENO"; then :
7422
7423 else
7424   # Broken: fails on valid input.
7425 continue
7426 fi
7427 rm -f conftest.err conftest.$ac_ext
7428
7429   # OK, works on sane cases.  Now check whether nonexistent headers
7430   # can be detected and how.
7431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h.  */
7433 #include <ac_nonexistent.h>
7434 _ACEOF
7435 if ac_fn_c_try_cpp "$LINENO"; then :
7436   # Broken: success on invalid input.
7437 continue
7438 else
7439   # Passes both tests.
7440 ac_preproc_ok=:
7441 break
7442 fi
7443 rm -f conftest.err conftest.$ac_ext
7444
7445 done
7446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447 rm -f conftest.err conftest.$ac_ext
7448 if $ac_preproc_ok; then :
7449
7450 else
7451   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7453 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7454 See \`config.log' for more details." "$LINENO" 5; }
7455 fi
7456
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7465 $as_echo_n "checking for ANSI C header files... " >&6; }
7466 if test "${ac_cv_header_stdc+set}" = set; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h.  */
7471 #include <stdlib.h>
7472 #include <stdarg.h>
7473 #include <string.h>
7474 #include <float.h>
7475
7476 int
7477 main ()
7478 {
7479
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485   ac_cv_header_stdc=yes
7486 else
7487   ac_cv_header_stdc=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490
7491 if test $ac_cv_header_stdc = yes; then
7492   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h.  */
7495 #include <string.h>
7496
7497 _ACEOF
7498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7499   $EGREP "memchr" >/dev/null 2>&1; then :
7500
7501 else
7502   ac_cv_header_stdc=no
7503 fi
7504 rm -f conftest*
7505
7506 fi
7507
7508 if test $ac_cv_header_stdc = yes; then
7509   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h.  */
7512 #include <stdlib.h>
7513
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516   $EGREP "free" >/dev/null 2>&1; then :
7517
7518 else
7519   ac_cv_header_stdc=no
7520 fi
7521 rm -f conftest*
7522
7523 fi
7524
7525 if test $ac_cv_header_stdc = yes; then
7526   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7527   if test "$cross_compiling" = yes; then :
7528   :
7529 else
7530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h.  */
7532 #include <ctype.h>
7533 #include <stdlib.h>
7534 #if ((' ' & 0x0FF) == 0x020)
7535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7537 #else
7538 # define ISLOWER(c) \
7539                    (('a' <= (c) && (c) <= 'i') \
7540                      || ('j' <= (c) && (c) <= 'r') \
7541                      || ('s' <= (c) && (c) <= 'z'))
7542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7543 #endif
7544
7545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7546 int
7547 main ()
7548 {
7549   int i;
7550   for (i = 0; i < 256; i++)
7551     if (XOR (islower (i), ISLOWER (i))
7552         || toupper (i) != TOUPPER (i))
7553       return 2;
7554   return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_run "$LINENO"; then :
7558
7559 else
7560   ac_cv_header_stdc=no
7561 fi
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563   conftest.$ac_objext conftest.beam conftest.$ac_ext
7564 fi
7565
7566 fi
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7569 $as_echo "$ac_cv_header_stdc" >&6; }
7570 if test $ac_cv_header_stdc = yes; then
7571
7572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7573
7574 fi
7575
7576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7578                   inttypes.h stdint.h unistd.h
7579 do :
7580   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7582 "
7583 eval as_val=\$$as_ac_Header
7584    if test "x$as_val" = x""yes; then :
7585   cat >>confdefs.h <<_ACEOF
7586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 _ACEOF
7588
7589 fi
7590
7591 done
7592
7593
7594 for ac_header in dlfcn.h
7595 do :
7596   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7597 "
7598 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7599   cat >>confdefs.h <<_ACEOF
7600 #define HAVE_DLFCN_H 1
7601 _ACEOF
7602
7603 fi
7604
7605 done
7606
7607
7608
7609 # Set options
7610
7611
7612
7613         enable_dlopen=no
7614
7615
7616   enable_win32_dll=no
7617
7618
7619             # Check whether --enable-shared was given.
7620 if test "${enable_shared+set}" = set; then :
7621   enableval=$enable_shared; p=${PACKAGE-default}
7622     case $enableval in
7623     yes) enable_shared=yes ;;
7624     no) enable_shared=no ;;
7625     *)
7626       enable_shared=no
7627       # Look at the argument we got.  We use all the common list separators.
7628       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629       for pkg in $enableval; do
7630         IFS="$lt_save_ifs"
7631         if test "X$pkg" = "X$p"; then
7632           enable_shared=yes
7633         fi
7634       done
7635       IFS="$lt_save_ifs"
7636       ;;
7637     esac
7638 else
7639   enable_shared=yes
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650   # Check whether --enable-static was given.
7651 if test "${enable_static+set}" = set; then :
7652   enableval=$enable_static; p=${PACKAGE-default}
7653     case $enableval in
7654     yes) enable_static=yes ;;
7655     no) enable_static=no ;;
7656     *)
7657      enable_static=no
7658       # Look at the argument we got.  We use all the common list separators.
7659       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660       for pkg in $enableval; do
7661         IFS="$lt_save_ifs"
7662         if test "X$pkg" = "X$p"; then
7663           enable_static=yes
7664         fi
7665       done
7666       IFS="$lt_save_ifs"
7667       ;;
7668     esac
7669 else
7670   enable_static=yes
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 # Check whether --with-pic was given.
7683 if test "${with_pic+set}" = set; then :
7684   withval=$with_pic; pic_mode="$withval"
7685 else
7686   pic_mode=default
7687 fi
7688
7689
7690 test -z "$pic_mode" && pic_mode=default
7691
7692
7693
7694
7695
7696
7697
7698   # Check whether --enable-fast-install was given.
7699 if test "${enable_fast_install+set}" = set; then :
7700   enableval=$enable_fast_install; p=${PACKAGE-default}
7701     case $enableval in
7702     yes) enable_fast_install=yes ;;
7703     no) enable_fast_install=no ;;
7704     *)
7705       enable_fast_install=no
7706       # Look at the argument we got.  We use all the common list separators.
7707       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708       for pkg in $enableval; do
7709         IFS="$lt_save_ifs"
7710         if test "X$pkg" = "X$p"; then
7711           enable_fast_install=yes
7712         fi
7713       done
7714       IFS="$lt_save_ifs"
7715       ;;
7716     esac
7717 else
7718   enable_fast_install=yes
7719 fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # This can be used to rebuild libtool when needed
7732 LIBTOOL_DEPS="$ltmain"
7733
7734 # Always use our own libtool.
7735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761 test -z "$LN_S" && LN_S="ln -s"
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 if test -n "${ZSH_VERSION+set}" ; then
7777    setopt NO_GLOB_SUBST
7778 fi
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7781 $as_echo_n "checking for objdir... " >&6; }
7782 if test "${lt_cv_objdir+set}" = set; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   rm -f .libs 2>/dev/null
7786 mkdir .libs 2>/dev/null
7787 if test -d .libs; then
7788   lt_cv_objdir=.libs
7789 else
7790   # MS-DOS does not allow filenames that begin with a dot.
7791   lt_cv_objdir=_libs
7792 fi
7793 rmdir .libs 2>/dev/null
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7796 $as_echo "$lt_cv_objdir" >&6; }
7797 objdir=$lt_cv_objdir
7798
7799
7800
7801
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define LT_OBJDIR "$lt_cv_objdir/"
7805 _ACEOF
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 case $host_os in
7824 aix3*)
7825   # AIX sometimes has problems with the GCC collect2 program.  For some
7826   # reason, if we set the COLLECT_NAMES environment variable, the problems
7827   # vanish in a puff of smoke.
7828   if test "X${COLLECT_NAMES+set}" != Xset; then
7829     COLLECT_NAMES=
7830     export COLLECT_NAMES
7831   fi
7832   ;;
7833 esac
7834
7835 # Sed substitution that helps us do robust quoting.  It backslashifies
7836 # metacharacters that are still active within double-quoted strings.
7837 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7838
7839 # Same as above, but do not quote variable references.
7840 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7841
7842 # Sed substitution to delay expansion of an escaped shell variable in a
7843 # double_quote_subst'ed string.
7844 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7845
7846 # Sed substitution to delay expansion of an escaped single quote.
7847 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7848
7849 # Sed substitution to avoid accidental globbing in evaled expressions
7850 no_glob_subst='s/\*/\\\*/g'
7851
7852 # Global variables:
7853 ofile=libtool
7854 can_build_shared=yes
7855
7856 # All known linkers require a `.a' archive for static linking (except MSVC,
7857 # which needs '.lib').
7858 libext=a
7859
7860 with_gnu_ld="$lt_cv_prog_gnu_ld"
7861
7862 old_CC="$CC"
7863 old_CFLAGS="$CFLAGS"
7864
7865 # Set sane defaults for various variables
7866 test -z "$CC" && CC=cc
7867 test -z "$LTCC" && LTCC=$CC
7868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7869 test -z "$LD" && LD=ld
7870 test -z "$ac_objext" && ac_objext=o
7871
7872 for cc_temp in $compiler""; do
7873   case $cc_temp in
7874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7876     \-*) ;;
7877     *) break;;
7878   esac
7879 done
7880 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7881
7882
7883 # Only perform the check for file, if the check method requires it
7884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7885 case $deplibs_check_method in
7886 file_magic*)
7887   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7889 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7890 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   case $MAGIC_CMD in
7894 [\\/*] |  ?:[\\/]*)
7895   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7896   ;;
7897 *)
7898   lt_save_MAGIC_CMD="$MAGIC_CMD"
7899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7900   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7901   for ac_dir in $ac_dummy; do
7902     IFS="$lt_save_ifs"
7903     test -z "$ac_dir" && ac_dir=.
7904     if test -f $ac_dir/${ac_tool_prefix}file; then
7905       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7906       if test -n "$file_magic_test_file"; then
7907         case $deplibs_check_method in
7908         "file_magic "*)
7909           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7910           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7912             $EGREP "$file_magic_regex" > /dev/null; then
7913             :
7914           else
7915             cat <<_LT_EOF 1>&2
7916
7917 *** Warning: the command libtool uses to detect shared libraries,
7918 *** $file_magic_cmd, produces output that libtool cannot recognize.
7919 *** The result is that libtool may fail to recognize shared libraries
7920 *** as such.  This will affect the creation of libtool libraries that
7921 *** depend on shared libraries, but programs linked with such libtool
7922 *** libraries will work regardless of this problem.  Nevertheless, you
7923 *** may want to report the problem to your system manager and/or to
7924 *** bug-libtool@gnu.org
7925
7926 _LT_EOF
7927           fi ;;
7928         esac
7929       fi
7930       break
7931     fi
7932   done
7933   IFS="$lt_save_ifs"
7934   MAGIC_CMD="$lt_save_MAGIC_CMD"
7935   ;;
7936 esac
7937 fi
7938
7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940 if test -n "$MAGIC_CMD"; then
7941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7942 $as_echo "$MAGIC_CMD" >&6; }
7943 else
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949
7950
7951
7952 if test -z "$lt_cv_path_MAGIC_CMD"; then
7953   if test -n "$ac_tool_prefix"; then
7954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7955 $as_echo_n "checking for file... " >&6; }
7956 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   case $MAGIC_CMD in
7960 [\\/*] |  ?:[\\/]*)
7961   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962   ;;
7963 *)
7964   lt_save_MAGIC_CMD="$MAGIC_CMD"
7965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967   for ac_dir in $ac_dummy; do
7968     IFS="$lt_save_ifs"
7969     test -z "$ac_dir" && ac_dir=.
7970     if test -f $ac_dir/file; then
7971       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7972       if test -n "$file_magic_test_file"; then
7973         case $deplibs_check_method in
7974         "file_magic "*)
7975           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978             $EGREP "$file_magic_regex" > /dev/null; then
7979             :
7980           else
7981             cat <<_LT_EOF 1>&2
7982
7983 *** Warning: the command libtool uses to detect shared libraries,
7984 *** $file_magic_cmd, produces output that libtool cannot recognize.
7985 *** The result is that libtool may fail to recognize shared libraries
7986 *** as such.  This will affect the creation of libtool libraries that
7987 *** depend on shared libraries, but programs linked with such libtool
7988 *** libraries will work regardless of this problem.  Nevertheless, you
7989 *** may want to report the problem to your system manager and/or to
7990 *** bug-libtool@gnu.org
7991
7992 _LT_EOF
7993           fi ;;
7994         esac
7995       fi
7996       break
7997     fi
7998   done
7999   IFS="$lt_save_ifs"
8000   MAGIC_CMD="$lt_save_MAGIC_CMD"
8001   ;;
8002 esac
8003 fi
8004
8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006 if test -n "$MAGIC_CMD"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008 $as_echo "$MAGIC_CMD" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015   else
8016     MAGIC_CMD=:
8017   fi
8018 fi
8019
8020   fi
8021   ;;
8022 esac
8023
8024 # Use C for the default configuration in the libtool script
8025
8026 lt_save_CC="$CC"
8027 ac_ext=c
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034 # Source file extension for C test sources.
8035 ac_ext=c
8036
8037 # Object file extension for compiled C test sources.
8038 objext=o
8039 objext=$objext
8040
8041 # Code to be used in simple compile tests
8042 lt_simple_compile_test_code="int some_variable = 0;"
8043
8044 # Code to be used in simple link tests
8045 lt_simple_link_test_code='int main(){return(0);}'
8046
8047
8048
8049
8050
8051
8052
8053 # If no C compiler was specified, use CC.
8054 LTCC=${LTCC-"$CC"}
8055
8056 # If no C compiler flags were specified, use CFLAGS.
8057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058
8059 # Allow CC to be a program name with arguments.
8060 compiler=$CC
8061
8062 # Save the default compiler, since it gets overwritten when the other
8063 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8064 compiler_DEFAULT=$CC
8065
8066 # save warnings/boilerplate of simple test code
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_compiler_boilerplate=`cat conftest.err`
8071 $RM conftest*
8072
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076 _lt_linker_boilerplate=`cat conftest.err`
8077 $RM -r conftest*
8078
8079
8080 ## CAVEAT EMPTOR:
8081 ## There is no encapsulation within the following macros, do not change
8082 ## the running order or otherwise move them around unless you know exactly
8083 ## what you are doing...
8084 if test -n "$compiler"; then
8085
8086 lt_prog_compiler_no_builtin_flag=
8087
8088 if test "$GCC" = yes; then
8089   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8090
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   lt_cv_prog_compiler_rtti_exceptions=no
8097    ac_outfile=conftest.$ac_objext
8098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099    lt_compiler_flag="-fno-rtti -fno-exceptions"
8100    # Insert the option either (1) after the last *FLAGS variable, or
8101    # (2) before a word containing "conftest.", or (3) at the end.
8102    # Note that $ac_compile itself does not contain backslashes and begins
8103    # with a dollar sign (not a hyphen), so the echo should work correctly.
8104    # The option is referenced via a variable to avoid confusing sed.
8105    lt_compile=`echo "$ac_compile" | $SED \
8106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108    -e 's:$: $lt_compiler_flag:'`
8109    (eval echo "\"\$as_me:8109: $lt_compile\"" >&5)
8110    (eval "$lt_compile" 2>conftest.err)
8111    ac_status=$?
8112    cat conftest.err >&5
8113    echo "$as_me:8113: \$? = $ac_status" >&5
8114    if (exit $ac_status) && test -s "$ac_outfile"; then
8115      # The compiler can only warn and ignore the option if not recognized
8116      # So say no if there are warnings other than the usual output.
8117      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8118      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120        lt_cv_prog_compiler_rtti_exceptions=yes
8121      fi
8122    fi
8123    $RM conftest*
8124
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128
8129 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131 else
8132     :
8133 fi
8134
8135 fi
8136
8137
8138
8139
8140
8141
8142   lt_prog_compiler_wl=
8143 lt_prog_compiler_pic=
8144 lt_prog_compiler_static=
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148
8149   if test "$GCC" = yes; then
8150     lt_prog_compiler_wl='-Wl,'
8151     lt_prog_compiler_static='-static'
8152
8153     case $host_os in
8154       aix*)
8155       # All AIX code is PIC.
8156       if test "$host_cpu" = ia64; then
8157         # AIX 5 now supports IA64 processor
8158         lt_prog_compiler_static='-Bstatic'
8159       fi
8160       ;;
8161
8162     amigaos*)
8163       case $host_cpu in
8164       powerpc)
8165             # see comment about AmigaOS4 .so support
8166             lt_prog_compiler_pic='-fPIC'
8167         ;;
8168       m68k)
8169             # FIXME: we need at least 68020 code to build shared libraries, but
8170             # adding the `-m68020' flag to GCC prevents building anything better,
8171             # like `-m68040'.
8172             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173         ;;
8174       esac
8175       ;;
8176
8177     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8178       # PIC is the default for these OSes.
8179       ;;
8180
8181     mingw* | cygwin* | pw32* | os2* | cegcc*)
8182       # This hack is so that the source file can tell whether it is being
8183       # built for inclusion in a dll (and should export symbols for example).
8184       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8185       # (--disable-auto-import) libraries
8186       lt_prog_compiler_pic='-DDLL_EXPORT'
8187       ;;
8188
8189     darwin* | rhapsody*)
8190       # PIC is the default on this platform
8191       # Common symbols not allowed in MH_DYLIB files
8192       lt_prog_compiler_pic='-fno-common'
8193       ;;
8194
8195     hpux*)
8196       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8198       # sets the default TLS model and affects inlining.
8199       case $host_cpu in
8200       hppa*64*)
8201         # +Z the default
8202         ;;
8203       *)
8204         lt_prog_compiler_pic='-fPIC'
8205         ;;
8206       esac
8207       ;;
8208
8209     interix[3-9]*)
8210       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211       # Instead, we relocate shared libraries at runtime.
8212       ;;
8213
8214     msdosdjgpp*)
8215       # Just because we use GCC doesn't mean we suddenly get shared libraries
8216       # on systems that don't support them.
8217       lt_prog_compiler_can_build_shared=no
8218       enable_shared=no
8219       ;;
8220
8221     *nto* | *qnx*)
8222       # QNX uses GNU C++, but need to define -shared option too, otherwise
8223       # it will coredump.
8224       lt_prog_compiler_pic='-fPIC -shared'
8225       ;;
8226
8227     sysv4*MP*)
8228       if test -d /usr/nec; then
8229         lt_prog_compiler_pic=-Kconform_pic
8230       fi
8231       ;;
8232
8233     *)
8234       lt_prog_compiler_pic='-fPIC'
8235       ;;
8236     esac
8237   else
8238     # PORTME Check for flag to pass linker flags through the system compiler.
8239     case $host_os in
8240     aix*)
8241       lt_prog_compiler_wl='-Wl,'
8242       if test "$host_cpu" = ia64; then
8243         # AIX 5 now supports IA64 processor
8244         lt_prog_compiler_static='-Bstatic'
8245       else
8246         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8247       fi
8248       ;;
8249
8250     mingw* | cygwin* | pw32* | os2* | cegcc*)
8251       # This hack is so that the source file can tell whether it is being
8252       # built for inclusion in a dll (and should export symbols for example).
8253       lt_prog_compiler_pic='-DDLL_EXPORT'
8254       ;;
8255
8256     hpux9* | hpux10* | hpux11*)
8257       lt_prog_compiler_wl='-Wl,'
8258       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8259       # not for PA HP-UX.
8260       case $host_cpu in
8261       hppa*64*|ia64*)
8262         # +Z the default
8263         ;;
8264       *)
8265         lt_prog_compiler_pic='+Z'
8266         ;;
8267       esac
8268       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8269       lt_prog_compiler_static='${wl}-a ${wl}archive'
8270       ;;
8271
8272     irix5* | irix6* | nonstopux*)
8273       lt_prog_compiler_wl='-Wl,'
8274       # PIC (with -KPIC) is the default.
8275       lt_prog_compiler_static='-non_shared'
8276       ;;
8277
8278     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8279       case $cc_basename in
8280       # old Intel for x86_64 which still supported -KPIC.
8281       ecc*)
8282         lt_prog_compiler_wl='-Wl,'
8283         lt_prog_compiler_pic='-KPIC'
8284         lt_prog_compiler_static='-static'
8285         ;;
8286       # icc used to be incompatible with GCC.
8287       # ICC 10 doesn't accept -KPIC any more.
8288       icc* | ifort*)
8289         lt_prog_compiler_wl='-Wl,'
8290         lt_prog_compiler_pic='-fPIC'
8291         lt_prog_compiler_static='-static'
8292         ;;
8293       # Lahey Fortran 8.1.
8294       lf95*)
8295         lt_prog_compiler_wl='-Wl,'
8296         lt_prog_compiler_pic='--shared'
8297         lt_prog_compiler_static='--static'
8298         ;;
8299       pgcc* | pgf77* | pgf90* | pgf95*)
8300         # Portland Group compilers (*not* the Pentium gcc compiler,
8301         # which looks to be a dead project)
8302         lt_prog_compiler_wl='-Wl,'
8303         lt_prog_compiler_pic='-fpic'
8304         lt_prog_compiler_static='-Bstatic'
8305         ;;
8306       ccc*)
8307         lt_prog_compiler_wl='-Wl,'
8308         # All Alpha code is PIC.
8309         lt_prog_compiler_static='-non_shared'
8310         ;;
8311       xl*)
8312         # IBM XL C 8.0/Fortran 10.1 on PPC
8313         lt_prog_compiler_wl='-Wl,'
8314         lt_prog_compiler_pic='-qpic'
8315         lt_prog_compiler_static='-qstaticlink'
8316         ;;
8317       *)
8318         case `$CC -V 2>&1 | sed 5q` in
8319         *Sun\ C*)
8320           # Sun C 5.9
8321           lt_prog_compiler_pic='-KPIC'
8322           lt_prog_compiler_static='-Bstatic'
8323           lt_prog_compiler_wl='-Wl,'
8324           ;;
8325         *Sun\ F*)
8326           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327           lt_prog_compiler_pic='-KPIC'
8328           lt_prog_compiler_static='-Bstatic'
8329           lt_prog_compiler_wl=''
8330           ;;
8331         esac
8332         ;;
8333       esac
8334       ;;
8335
8336     newsos6)
8337       lt_prog_compiler_pic='-KPIC'
8338       lt_prog_compiler_static='-Bstatic'
8339       ;;
8340
8341     *nto* | *qnx*)
8342       # QNX uses GNU C++, but need to define -shared option too, otherwise
8343       # it will coredump.
8344       lt_prog_compiler_pic='-fPIC -shared'
8345       ;;
8346
8347     osf3* | osf4* | osf5*)
8348       lt_prog_compiler_wl='-Wl,'
8349       # All OSF/1 code is PIC.
8350       lt_prog_compiler_static='-non_shared'
8351       ;;
8352
8353     rdos*)
8354       lt_prog_compiler_static='-non_shared'
8355       ;;
8356
8357     solaris*)
8358       lt_prog_compiler_pic='-KPIC'
8359       lt_prog_compiler_static='-Bstatic'
8360       case $cc_basename in
8361       f77* | f90* | f95*)
8362         lt_prog_compiler_wl='-Qoption ld ';;
8363       *)
8364         lt_prog_compiler_wl='-Wl,';;
8365       esac
8366       ;;
8367
8368     sunos4*)
8369       lt_prog_compiler_wl='-Qoption ld '
8370       lt_prog_compiler_pic='-PIC'
8371       lt_prog_compiler_static='-Bstatic'
8372       ;;
8373
8374     sysv4 | sysv4.2uw2* | sysv4.3*)
8375       lt_prog_compiler_wl='-Wl,'
8376       lt_prog_compiler_pic='-KPIC'
8377       lt_prog_compiler_static='-Bstatic'
8378       ;;
8379
8380     sysv4*MP*)
8381       if test -d /usr/nec ;then
8382         lt_prog_compiler_pic='-Kconform_pic'
8383         lt_prog_compiler_static='-Bstatic'
8384       fi
8385       ;;
8386
8387     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8388       lt_prog_compiler_wl='-Wl,'
8389       lt_prog_compiler_pic='-KPIC'
8390       lt_prog_compiler_static='-Bstatic'
8391       ;;
8392
8393     unicos*)
8394       lt_prog_compiler_wl='-Wl,'
8395       lt_prog_compiler_can_build_shared=no
8396       ;;
8397
8398     uts4*)
8399       lt_prog_compiler_pic='-pic'
8400       lt_prog_compiler_static='-Bstatic'
8401       ;;
8402
8403     *)
8404       lt_prog_compiler_can_build_shared=no
8405       ;;
8406     esac
8407   fi
8408
8409 case $host_os in
8410   # For platforms which do not support PIC, -DPIC is meaningless:
8411   *djgpp*)
8412     lt_prog_compiler_pic=
8413     ;;
8414   *)
8415     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8416     ;;
8417 esac
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8419 $as_echo "$lt_prog_compiler_pic" >&6; }
8420
8421
8422
8423
8424
8425
8426 #
8427 # Check to make sure the PIC flag actually works.
8428 #
8429 if test -n "$lt_prog_compiler_pic"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   lt_cv_prog_compiler_pic_works=no
8436    ac_outfile=conftest.$ac_objext
8437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8439    # Insert the option either (1) after the last *FLAGS variable, or
8440    # (2) before a word containing "conftest.", or (3) at the end.
8441    # Note that $ac_compile itself does not contain backslashes and begins
8442    # with a dollar sign (not a hyphen), so the echo should work correctly.
8443    # The option is referenced via a variable to avoid confusing sed.
8444    lt_compile=`echo "$ac_compile" | $SED \
8445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447    -e 's:$: $lt_compiler_flag:'`
8448    (eval echo "\"\$as_me:8448: $lt_compile\"" >&5)
8449    (eval "$lt_compile" 2>conftest.err)
8450    ac_status=$?
8451    cat conftest.err >&5
8452    echo "$as_me:8452: \$? = $ac_status" >&5
8453    if (exit $ac_status) && test -s "$ac_outfile"; then
8454      # The compiler can only warn and ignore the option if not recognized
8455      # So say no if there are warnings other than the usual output.
8456      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8459        lt_cv_prog_compiler_pic_works=yes
8460      fi
8461    fi
8462    $RM conftest*
8463
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8467
8468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8469     case $lt_prog_compiler_pic in
8470      "" | " "*) ;;
8471      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8472      esac
8473 else
8474     lt_prog_compiler_pic=
8475      lt_prog_compiler_can_build_shared=no
8476 fi
8477
8478 fi
8479
8480
8481
8482
8483
8484
8485 #
8486 # Check to make sure the static flag actually works.
8487 #
8488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   lt_cv_prog_compiler_static_works=no
8495    save_LDFLAGS="$LDFLAGS"
8496    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8497    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8499      # The linker can only warn and ignore the option if not recognized
8500      # So say no if there are warnings
8501      if test -s conftest.err; then
8502        # Append any errors to the config.log.
8503        cat conftest.err 1>&5
8504        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8506        if diff conftest.exp conftest.er2 >/dev/null; then
8507          lt_cv_prog_compiler_static_works=yes
8508        fi
8509      else
8510        lt_cv_prog_compiler_static_works=yes
8511      fi
8512    fi
8513    $RM -r conftest*
8514    LDFLAGS="$save_LDFLAGS"
8515
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8519
8520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8521     :
8522 else
8523     lt_prog_compiler_static=
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   lt_cv_prog_compiler_c_o=no
8538    $RM -r conftest 2>/dev/null
8539    mkdir conftest
8540    cd conftest
8541    mkdir out
8542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543
8544    lt_compiler_flag="-o out/conftest2.$ac_objext"
8545    # Insert the option either (1) after the last *FLAGS variable, or
8546    # (2) before a word containing "conftest.", or (3) at the end.
8547    # Note that $ac_compile itself does not contain backslashes and begins
8548    # with a dollar sign (not a hyphen), so the echo should work correctly.
8549    lt_compile=`echo "$ac_compile" | $SED \
8550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552    -e 's:$: $lt_compiler_flag:'`
8553    (eval echo "\"\$as_me:8553: $lt_compile\"" >&5)
8554    (eval "$lt_compile" 2>out/conftest.err)
8555    ac_status=$?
8556    cat out/conftest.err >&5
8557    echo "$as_me:8557: \$? = $ac_status" >&5
8558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559    then
8560      # The compiler can only warn and ignore the option if not recognized
8561      # So say no if there are warnings
8562      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8563      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565        lt_cv_prog_compiler_c_o=yes
8566      fi
8567    fi
8568    chmod u+w . 2>&5
8569    $RM conftest*
8570    # SGI C++ compiler will create directory out/ii_files/ for
8571    # template instantiation
8572    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8573    $RM out/* && rmdir out
8574    cd ..
8575    $RM -r conftest
8576    $RM conftest*
8577
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8581
8582
8583
8584
8585
8586
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   lt_cv_prog_compiler_c_o=no
8593    $RM -r conftest 2>/dev/null
8594    mkdir conftest
8595    cd conftest
8596    mkdir out
8597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599    lt_compiler_flag="-o out/conftest2.$ac_objext"
8600    # Insert the option either (1) after the last *FLAGS variable, or
8601    # (2) before a word containing "conftest.", or (3) at the end.
8602    # Note that $ac_compile itself does not contain backslashes and begins
8603    # with a dollar sign (not a hyphen), so the echo should work correctly.
8604    lt_compile=`echo "$ac_compile" | $SED \
8605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607    -e 's:$: $lt_compiler_flag:'`
8608    (eval echo "\"\$as_me:8608: $lt_compile\"" >&5)
8609    (eval "$lt_compile" 2>out/conftest.err)
8610    ac_status=$?
8611    cat out/conftest.err >&5
8612    echo "$as_me:8612: \$? = $ac_status" >&5
8613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614    then
8615      # The compiler can only warn and ignore the option if not recognized
8616      # So say no if there are warnings
8617      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8618      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620        lt_cv_prog_compiler_c_o=yes
8621      fi
8622    fi
8623    chmod u+w . 2>&5
8624    $RM conftest*
8625    # SGI C++ compiler will create directory out/ii_files/ for
8626    # template instantiation
8627    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628    $RM out/* && rmdir out
8629    cd ..
8630    $RM -r conftest
8631    $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8636
8637
8638
8639
8640 hard_links="nottested"
8641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8642   # do not overwrite the value of need_locks provided by the user
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8644 $as_echo_n "checking if we can lock with hard links... " >&6; }
8645   hard_links=yes
8646   $RM conftest*
8647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8648   touch conftest.a
8649   ln conftest.a conftest.b 2>&5 || hard_links=no
8650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8652 $as_echo "$hard_links" >&6; }
8653   if test "$hard_links" = no; then
8654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8656     need_locks=warn
8657   fi
8658 else
8659   need_locks=no
8660 fi
8661
8662
8663
8664
8665
8666
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8669
8670   runpath_var=
8671   allow_undefined_flag=
8672   always_export_symbols=no
8673   archive_cmds=
8674   archive_expsym_cmds=
8675   compiler_needs_object=no
8676   enable_shared_with_static_runtimes=no
8677   export_dynamic_flag_spec=
8678   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8679   hardcode_automatic=no
8680   hardcode_direct=no
8681   hardcode_direct_absolute=no
8682   hardcode_libdir_flag_spec=
8683   hardcode_libdir_flag_spec_ld=
8684   hardcode_libdir_separator=
8685   hardcode_minus_L=no
8686   hardcode_shlibpath_var=unsupported
8687   inherit_rpath=no
8688   link_all_deplibs=unknown
8689   module_cmds=
8690   module_expsym_cmds=
8691   old_archive_from_new_cmds=
8692   old_archive_from_expsyms_cmds=
8693   thread_safe_flag_spec=
8694   whole_archive_flag_spec=
8695   # include_expsyms should be a list of space-separated symbols to be *always*
8696   # included in the symbol list
8697   include_expsyms=
8698   # exclude_expsyms can be an extended regexp of symbols to exclude
8699   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8700   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8701   # as well as any symbol that contains `d'.
8702   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8703   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8704   # platforms (ab)use it in PIC code, but their linkers get confused if
8705   # the symbol is explicitly referenced.  Since portable code cannot
8706   # rely on this symbol name, it's probably fine to never include it in
8707   # preloaded symbol tables.
8708   # Exclude shared library initialization/finalization symbols.
8709   extract_expsyms_cmds=
8710
8711   case $host_os in
8712   cygwin* | mingw* | pw32* | cegcc*)
8713     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8714     # When not using gcc, we currently assume that we are using
8715     # Microsoft Visual C++.
8716     if test "$GCC" != yes; then
8717       with_gnu_ld=no
8718     fi
8719     ;;
8720   interix*)
8721     # we just hope/assume this is gcc and not c89 (= MSVC++)
8722     with_gnu_ld=yes
8723     ;;
8724   openbsd*)
8725     with_gnu_ld=no
8726     ;;
8727   esac
8728
8729   ld_shlibs=yes
8730   if test "$with_gnu_ld" = yes; then
8731     # If archive_cmds runs LD, not CC, wlarc should be empty
8732     wlarc='${wl}'
8733
8734     # Set some defaults for GNU ld with shared library support. These
8735     # are reset later if shared libraries are not supported. Putting them
8736     # here allows them to be overridden if necessary.
8737     runpath_var=LD_RUN_PATH
8738     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739     export_dynamic_flag_spec='${wl}--export-dynamic'
8740     # ancient GNU ld didn't support --whole-archive et. al.
8741     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8742       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8743     else
8744       whole_archive_flag_spec=
8745     fi
8746     supports_anon_versioning=no
8747     case `$LD -v 2>&1` in
8748       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8749       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8750       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8751       *\ 2.11.*) ;; # other 2.11 versions
8752       *) supports_anon_versioning=yes ;;
8753     esac
8754
8755     # See if GNU ld supports shared libraries.
8756     case $host_os in
8757     aix[3-9]*)
8758       # On AIX/PPC, the GNU linker is very broken
8759       if test "$host_cpu" != ia64; then
8760         ld_shlibs=no
8761         cat <<_LT_EOF 1>&2
8762
8763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8764 *** to be unable to reliably create shared libraries on AIX.
8765 *** Therefore, libtool is disabling shared libraries support.  If you
8766 *** really care for shared libraries, you may want to modify your PATH
8767 *** so that a non-GNU linker is found, and then restart.
8768
8769 _LT_EOF
8770       fi
8771       ;;
8772
8773     amigaos*)
8774       case $host_cpu in
8775       powerpc)
8776             # see comment about AmigaOS4 .so support
8777             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778             archive_expsym_cmds=''
8779         ;;
8780       m68k)
8781             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)'
8782             hardcode_libdir_flag_spec='-L$libdir'
8783             hardcode_minus_L=yes
8784         ;;
8785       esac
8786       ;;
8787
8788     beos*)
8789       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790         allow_undefined_flag=unsupported
8791         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8792         # support --undefined.  This deserves some investigation.  FIXME
8793         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794       else
8795         ld_shlibs=no
8796       fi
8797       ;;
8798
8799     cygwin* | mingw* | pw32* | cegcc*)
8800       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8801       # as there is no search path for DLLs.
8802       hardcode_libdir_flag_spec='-L$libdir'
8803       allow_undefined_flag=unsupported
8804       always_export_symbols=no
8805       enable_shared_with_static_runtimes=yes
8806       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8807
8808       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8809         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8810         # If the export-symbols file already is a .def file (1st line
8811         # is EXPORTS), use it as is; otherwise, prepend...
8812         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8813           cp $export_symbols $output_objdir/$soname.def;
8814         else
8815           echo EXPORTS > $output_objdir/$soname.def;
8816           cat $export_symbols >> $output_objdir/$soname.def;
8817         fi~
8818         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8819       else
8820         ld_shlibs=no
8821       fi
8822       ;;
8823
8824     interix[3-9]*)
8825       hardcode_direct=no
8826       hardcode_shlibpath_var=no
8827       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828       export_dynamic_flag_spec='${wl}-E'
8829       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8830       # Instead, shared libraries are loaded at an image base (0x10000000 by
8831       # default) and relocated if they conflict, which is a slow very memory
8832       # consuming and fragmenting process.  To avoid this, we pick a random,
8833       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8834       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8835       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8836       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'
8837       ;;
8838
8839     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8840       tmp_diet=no
8841       if test "$host_os" = linux-dietlibc; then
8842         case $cc_basename in
8843           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8844         esac
8845       fi
8846       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8847          && test "$tmp_diet" = no
8848       then
8849         tmp_addflag=
8850         tmp_sharedflag='-shared'
8851         case $cc_basename,$host_cpu in
8852         pgcc*)                          # Portland Group C compiler
8853           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'
8854           tmp_addflag=' $pic_flag'
8855           ;;
8856         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8857           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'
8858           tmp_addflag=' $pic_flag -Mnomain' ;;
8859         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8860           tmp_addflag=' -i_dynamic' ;;
8861         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8862           tmp_addflag=' -i_dynamic -nofor_main' ;;
8863         ifc* | ifort*)                  # Intel Fortran compiler
8864           tmp_addflag=' -nofor_main' ;;
8865         lf95*)                          # Lahey Fortran 8.1
8866           whole_archive_flag_spec=
8867           tmp_sharedflag='--shared' ;;
8868         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8869           tmp_sharedflag='-qmkshrobj'
8870           tmp_addflag= ;;
8871         esac
8872         case `$CC -V 2>&1 | sed 5q` in
8873         *Sun\ C*)                       # Sun C 5.9
8874           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'
8875           compiler_needs_object=yes
8876           tmp_sharedflag='-G' ;;
8877         *Sun\ F*)                       # Sun Fortran 8.3
8878           tmp_sharedflag='-G' ;;
8879         esac
8880         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881
8882         if test "x$supports_anon_versioning" = xyes; then
8883           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8884             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8885             echo "local: *; };" >> $output_objdir/$libname.ver~
8886             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8887         fi
8888
8889         case $cc_basename in
8890         xlf*)
8891           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8892           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8893           hardcode_libdir_flag_spec=
8894           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8895           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8896           if test "x$supports_anon_versioning" = xyes; then
8897             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8898               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8899               echo "local: *; };" >> $output_objdir/$libname.ver~
8900               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8901           fi
8902           ;;
8903         esac
8904       else
8905         ld_shlibs=no
8906       fi
8907       ;;
8908
8909     netbsd*)
8910       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8911         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8912         wlarc=
8913       else
8914         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916       fi
8917       ;;
8918
8919     solaris*)
8920       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8921         ld_shlibs=no
8922         cat <<_LT_EOF 1>&2
8923
8924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8925 *** create shared libraries on Solaris systems.  Therefore, libtool
8926 *** is disabling shared libraries support.  We urge you to upgrade GNU
8927 *** binutils to release 2.9.1 or newer.  Another option is to modify
8928 *** your PATH or compiler configuration so that the native linker is
8929 *** used, and then restart.
8930
8931 _LT_EOF
8932       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8935       else
8936         ld_shlibs=no
8937       fi
8938       ;;
8939
8940     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8941       case `$LD -v 2>&1` in
8942         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8943         ld_shlibs=no
8944         cat <<_LT_EOF 1>&2
8945
8946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8947 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8948 *** is disabling shared libraries support.  We urge you to upgrade GNU
8949 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8950 *** your PATH or compiler configuration so that the native linker is
8951 *** used, and then restart.
8952
8953 _LT_EOF
8954         ;;
8955         *)
8956           # For security reasons, it is highly recommended that you always
8957           # use absolute paths for naming shared libraries, and exclude the
8958           # DT_RUNPATH tag from executables and libraries.  But doing so
8959           # requires that you compile everything twice, which is a pain.
8960           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964           else
8965             ld_shlibs=no
8966           fi
8967         ;;
8968       esac
8969       ;;
8970
8971     sunos4*)
8972       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8973       wlarc=
8974       hardcode_direct=yes
8975       hardcode_shlibpath_var=no
8976       ;;
8977
8978     *)
8979       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982       else
8983         ld_shlibs=no
8984       fi
8985       ;;
8986     esac
8987
8988     if test "$ld_shlibs" = no; then
8989       runpath_var=
8990       hardcode_libdir_flag_spec=
8991       export_dynamic_flag_spec=
8992       whole_archive_flag_spec=
8993     fi
8994   else
8995     # PORTME fill in a description of your system's linker (not GNU ld)
8996     case $host_os in
8997     aix3*)
8998       allow_undefined_flag=unsupported
8999       always_export_symbols=yes
9000       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'
9001       # Note: this linker hardcodes the directories in LIBPATH if there
9002       # are no directories specified by -L.
9003       hardcode_minus_L=yes
9004       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9005         # Neither direct hardcoding nor static linking is supported with a
9006         # broken collect2.
9007         hardcode_direct=unsupported
9008       fi
9009       ;;
9010
9011     aix[4-9]*)
9012       if test "$host_cpu" = ia64; then
9013         # On IA64, the linker does run time linking by default, so we don't
9014         # have to do anything special.
9015         aix_use_runtimelinking=no
9016         exp_sym_flag='-Bexport'
9017         no_entry_flag=""
9018       else
9019         # If we're using GNU nm, then we don't want the "-C" option.
9020         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9021         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9022           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'
9023         else
9024           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'
9025         fi
9026         aix_use_runtimelinking=no
9027
9028         # Test if we are trying to use run time linking or normal
9029         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9030         # need to do runtime linking.
9031         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9032           for ld_flag in $LDFLAGS; do
9033           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9034             aix_use_runtimelinking=yes
9035             break
9036           fi
9037           done
9038           ;;
9039         esac
9040
9041         exp_sym_flag='-bexport'
9042         no_entry_flag='-bnoentry'
9043       fi
9044
9045       # When large executables or shared objects are built, AIX ld can
9046       # have problems creating the table of contents.  If linking a library
9047       # or program results in "error TOC overflow" add -mminimal-toc to
9048       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9049       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9050
9051       archive_cmds=''
9052       hardcode_direct=yes
9053       hardcode_direct_absolute=yes
9054       hardcode_libdir_separator=':'
9055       link_all_deplibs=yes
9056       file_list_spec='${wl}-f,'
9057
9058       if test "$GCC" = yes; then
9059         case $host_os in aix4.[012]|aix4.[012].*)
9060         # We only want to do this on AIX 4.2 and lower, the check
9061         # below for broken collect2 doesn't work under 4.3+
9062           collect2name=`${CC} -print-prog-name=collect2`
9063           if test -f "$collect2name" &&
9064            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9065           then
9066           # We have reworked collect2
9067           :
9068           else
9069           # We have old collect2
9070           hardcode_direct=unsupported
9071           # It fails to find uninstalled libraries when the uninstalled
9072           # path is not listed in the libpath.  Setting hardcode_minus_L
9073           # to unsupported forces relinking
9074           hardcode_minus_L=yes
9075           hardcode_libdir_flag_spec='-L$libdir'
9076           hardcode_libdir_separator=
9077           fi
9078           ;;
9079         esac
9080         shared_flag='-shared'
9081         if test "$aix_use_runtimelinking" = yes; then
9082           shared_flag="$shared_flag "'${wl}-G'
9083         fi
9084       else
9085         # not using gcc
9086         if test "$host_cpu" = ia64; then
9087         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9088         # chokes on -Wl,-G. The following line is correct:
9089           shared_flag='-G'
9090         else
9091           if test "$aix_use_runtimelinking" = yes; then
9092             shared_flag='${wl}-G'
9093           else
9094             shared_flag='${wl}-bM:SRE'
9095           fi
9096         fi
9097       fi
9098
9099       export_dynamic_flag_spec='${wl}-bexpall'
9100       # It seems that -bexpall does not export symbols beginning with
9101       # underscore (_), so it is better to generate a list of symbols to export.
9102       always_export_symbols=yes
9103       if test "$aix_use_runtimelinking" = yes; then
9104         # Warning - without using the other runtime loading flags (-brtl),
9105         # -berok will link without error, but may produce a broken library.
9106         allow_undefined_flag='-berok'
9107         # Determine the default libpath from the value encoded in an
9108         # empty executable.
9109         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h.  */
9111
9112 int
9113 main ()
9114 {
9115
9116   ;
9117   return 0;
9118 }
9119 _ACEOF
9120 if ac_fn_c_try_link "$LINENO"; then :
9121
9122 lt_aix_libpath_sed='
9123     /Import File Strings/,/^$/ {
9124         /^0/ {
9125             s/^0  *\(.*\)$/\1/
9126             p
9127         }
9128     }'
9129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130 # Check for a 64-bit object if we didn't find anything.
9131 if test -z "$aix_libpath"; then
9132   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9133 fi
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext \
9136     conftest$ac_exeext conftest.$ac_ext
9137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9138
9139         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9140         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"
9141       else
9142         if test "$host_cpu" = ia64; then
9143           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9144           allow_undefined_flag="-z nodefs"
9145           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"
9146         else
9147          # Determine the default libpath from the value encoded in an
9148          # empty executable.
9149          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h.  */
9151
9152 int
9153 main ()
9154 {
9155
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161
9162 lt_aix_libpath_sed='
9163     /Import File Strings/,/^$/ {
9164         /^0/ {
9165             s/^0  *\(.*\)$/\1/
9166             p
9167         }
9168     }'
9169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9170 # Check for a 64-bit object if we didn't find anything.
9171 if test -z "$aix_libpath"; then
9172   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173 fi
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext \
9176     conftest$ac_exeext conftest.$ac_ext
9177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9178
9179          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9180           # Warning - without using the other run time loading flags,
9181           # -berok will link without error, but may produce a broken library.
9182           no_undefined_flag=' ${wl}-bernotok'
9183           allow_undefined_flag=' ${wl}-berok'
9184           # Exported symbols can be pulled into shared objects from archives
9185           whole_archive_flag_spec='$convenience'
9186           archive_cmds_need_lc=yes
9187           # This is similar to how AIX traditionally builds its shared libraries.
9188           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'
9189         fi
9190       fi
9191       ;;
9192
9193     amigaos*)
9194       case $host_cpu in
9195       powerpc)
9196             # see comment about AmigaOS4 .so support
9197             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198             archive_expsym_cmds=''
9199         ;;
9200       m68k)
9201             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)'
9202             hardcode_libdir_flag_spec='-L$libdir'
9203             hardcode_minus_L=yes
9204         ;;
9205       esac
9206       ;;
9207
9208     bsdi[45]*)
9209       export_dynamic_flag_spec=-rdynamic
9210       ;;
9211
9212     cygwin* | mingw* | pw32* | cegcc*)
9213       # When not using gcc, we currently assume that we are using
9214       # Microsoft Visual C++.
9215       # hardcode_libdir_flag_spec is actually meaningless, as there is
9216       # no search path for DLLs.
9217       hardcode_libdir_flag_spec=' '
9218       allow_undefined_flag=unsupported
9219       # Tell ltmain to make .lib files, not .a files.
9220       libext=lib
9221       # Tell ltmain to make .dll files, not .so files.
9222       shrext_cmds=".dll"
9223       # FIXME: Setting linknames here is a bad hack.
9224       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9225       # The linker will automatically build a .lib file if we build a DLL.
9226       old_archive_from_new_cmds='true'
9227       # FIXME: Should let the user specify the lib program.
9228       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9229       fix_srcfile_path='`cygpath -w "$srcfile"`'
9230       enable_shared_with_static_runtimes=yes
9231       ;;
9232
9233     darwin* | rhapsody*)
9234
9235
9236   archive_cmds_need_lc=no
9237   hardcode_direct=no
9238   hardcode_automatic=yes
9239   hardcode_shlibpath_var=unsupported
9240   whole_archive_flag_spec=''
9241   link_all_deplibs=yes
9242   allow_undefined_flag="$_lt_dar_allow_undefined"
9243   case $cc_basename in
9244      ifort*) _lt_dar_can_shared=yes ;;
9245      *) _lt_dar_can_shared=$GCC ;;
9246   esac
9247   if test "$_lt_dar_can_shared" = "yes"; then
9248     output_verbose_link_cmd=echo
9249     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9250     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9251     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}"
9252     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}"
9253
9254   else
9255   ld_shlibs=no
9256   fi
9257
9258       ;;
9259
9260     dgux*)
9261       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262       hardcode_libdir_flag_spec='-L$libdir'
9263       hardcode_shlibpath_var=no
9264       ;;
9265
9266     freebsd1*)
9267       ld_shlibs=no
9268       ;;
9269
9270     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9271     # support.  Future versions do this automatically, but an explicit c++rt0.o
9272     # does not break anything, and helps significantly (at the cost of a little
9273     # extra space).
9274     freebsd2.2*)
9275       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9276       hardcode_libdir_flag_spec='-R$libdir'
9277       hardcode_direct=yes
9278       hardcode_shlibpath_var=no
9279       ;;
9280
9281     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9282     freebsd2*)
9283       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284       hardcode_direct=yes
9285       hardcode_minus_L=yes
9286       hardcode_shlibpath_var=no
9287       ;;
9288
9289     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9290     freebsd* | dragonfly*)
9291       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9292       hardcode_libdir_flag_spec='-R$libdir'
9293       hardcode_direct=yes
9294       hardcode_shlibpath_var=no
9295       ;;
9296
9297     hpux9*)
9298       if test "$GCC" = yes; then
9299         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'
9300       else
9301         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'
9302       fi
9303       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304       hardcode_libdir_separator=:
9305       hardcode_direct=yes
9306
9307       # hardcode_minus_L: Not really in the search PATH,
9308       # but as the default location of the library.
9309       hardcode_minus_L=yes
9310       export_dynamic_flag_spec='${wl}-E'
9311       ;;
9312
9313     hpux10*)
9314       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9315         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9316       else
9317         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9318       fi
9319       if test "$with_gnu_ld" = no; then
9320         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321         hardcode_libdir_flag_spec_ld='+b $libdir'
9322         hardcode_libdir_separator=:
9323         hardcode_direct=yes
9324         hardcode_direct_absolute=yes
9325         export_dynamic_flag_spec='${wl}-E'
9326         # hardcode_minus_L: Not really in the search PATH,
9327         # but as the default location of the library.
9328         hardcode_minus_L=yes
9329       fi
9330       ;;
9331
9332     hpux11*)
9333       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9334         case $host_cpu in
9335         hppa*64*)
9336           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337           ;;
9338         ia64*)
9339           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9340           ;;
9341         *)
9342           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9343           ;;
9344         esac
9345       else
9346         case $host_cpu in
9347         hppa*64*)
9348           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9349           ;;
9350         ia64*)
9351           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9352           ;;
9353         *)
9354           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355           ;;
9356         esac
9357       fi
9358       if test "$with_gnu_ld" = no; then
9359         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9360         hardcode_libdir_separator=:
9361
9362         case $host_cpu in
9363         hppa*64*|ia64*)
9364           hardcode_direct=no
9365           hardcode_shlibpath_var=no
9366           ;;
9367         *)
9368           hardcode_direct=yes
9369           hardcode_direct_absolute=yes
9370           export_dynamic_flag_spec='${wl}-E'
9371
9372           # hardcode_minus_L: Not really in the search PATH,
9373           # but as the default location of the library.
9374           hardcode_minus_L=yes
9375           ;;
9376         esac
9377       fi
9378       ;;
9379
9380     irix5* | irix6* | nonstopux*)
9381       if test "$GCC" = yes; then
9382         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'
9383         # Try to use the -exported_symbol ld option, if it does not
9384         # work, assume that -exports_file does not work either and
9385         # implicitly export all symbols.
9386         save_LDFLAGS="$LDFLAGS"
9387         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9388         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h.  */
9390 int foo(void) {}
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393   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'
9394
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398         LDFLAGS="$save_LDFLAGS"
9399       else
9400         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'
9401         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'
9402       fi
9403       archive_cmds_need_lc='no'
9404       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405       hardcode_libdir_separator=:
9406       inherit_rpath=yes
9407       link_all_deplibs=yes
9408       ;;
9409
9410     netbsd*)
9411       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9413       else
9414         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9415       fi
9416       hardcode_libdir_flag_spec='-R$libdir'
9417       hardcode_direct=yes
9418       hardcode_shlibpath_var=no
9419       ;;
9420
9421     newsos6)
9422       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423       hardcode_direct=yes
9424       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425       hardcode_libdir_separator=:
9426       hardcode_shlibpath_var=no
9427       ;;
9428
9429     *nto* | *qnx*)
9430       ;;
9431
9432     openbsd*)
9433       if test -f /usr/libexec/ld.so; then
9434         hardcode_direct=yes
9435         hardcode_shlibpath_var=no
9436         hardcode_direct_absolute=yes
9437         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9438           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9439           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9440           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9441           export_dynamic_flag_spec='${wl}-E'
9442         else
9443           case $host_os in
9444            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9445              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446              hardcode_libdir_flag_spec='-R$libdir'
9447              ;;
9448            *)
9449              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9450              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9451              ;;
9452           esac
9453         fi
9454       else
9455         ld_shlibs=no
9456       fi
9457       ;;
9458
9459     os2*)
9460       hardcode_libdir_flag_spec='-L$libdir'
9461       hardcode_minus_L=yes
9462       allow_undefined_flag=unsupported
9463       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'
9464       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9465       ;;
9466
9467     osf3*)
9468       if test "$GCC" = yes; then
9469         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9470         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'
9471       else
9472         allow_undefined_flag=' -expect_unresolved \*'
9473         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'
9474       fi
9475       archive_cmds_need_lc='no'
9476       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477       hardcode_libdir_separator=:
9478       ;;
9479
9480     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9481       if test "$GCC" = yes; then
9482         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9483         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'
9484         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485       else
9486         allow_undefined_flag=' -expect_unresolved \*'
9487         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'
9488         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~
9489         $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'
9490
9491         # Both c and cxx compiler support -rpath directly
9492         hardcode_libdir_flag_spec='-rpath $libdir'
9493       fi
9494       archive_cmds_need_lc='no'
9495       hardcode_libdir_separator=:
9496       ;;
9497
9498     solaris*)
9499       no_undefined_flag=' -z defs'
9500       if test "$GCC" = yes; then
9501         wlarc='${wl}'
9502         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9504           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9505       else
9506         case `$CC -V 2>&1` in
9507         *"Compilers 5.0"*)
9508           wlarc=''
9509           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9511           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9512           ;;
9513         *)
9514           wlarc='${wl}'
9515           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9516           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9517           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9518           ;;
9519         esac
9520       fi
9521       hardcode_libdir_flag_spec='-R$libdir'
9522       hardcode_shlibpath_var=no
9523       case $host_os in
9524       solaris2.[0-5] | solaris2.[0-5].*) ;;
9525       *)
9526         # The compiler driver will combine and reorder linker options,
9527         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9528         # but is careful enough not to reorder.
9529         # Supported since Solaris 2.6 (maybe 2.5.1?)
9530         if test "$GCC" = yes; then
9531           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9532         else
9533           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9534         fi
9535         ;;
9536       esac
9537       link_all_deplibs=yes
9538       ;;
9539
9540     sunos4*)
9541       if test "x$host_vendor" = xsequent; then
9542         # Use $CC to link under sequent, because it throws in some extra .o
9543         # files that make .init and .fini sections work.
9544         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9545       else
9546         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9547       fi
9548       hardcode_libdir_flag_spec='-L$libdir'
9549       hardcode_direct=yes
9550       hardcode_minus_L=yes
9551       hardcode_shlibpath_var=no
9552       ;;
9553
9554     sysv4)
9555       case $host_vendor in
9556         sni)
9557           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558           hardcode_direct=yes # is this really true???
9559         ;;
9560         siemens)
9561           ## LD is ld it makes a PLAMLIB
9562           ## CC just makes a GrossModule.
9563           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9564           reload_cmds='$CC -r -o $output$reload_objs'
9565           hardcode_direct=no
9566         ;;
9567         motorola)
9568           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9570         ;;
9571       esac
9572       runpath_var='LD_RUN_PATH'
9573       hardcode_shlibpath_var=no
9574       ;;
9575
9576     sysv4.3*)
9577       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578       hardcode_shlibpath_var=no
9579       export_dynamic_flag_spec='-Bexport'
9580       ;;
9581
9582     sysv4*MP*)
9583       if test -d /usr/nec; then
9584         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585         hardcode_shlibpath_var=no
9586         runpath_var=LD_RUN_PATH
9587         hardcode_runpath_var=yes
9588         ld_shlibs=yes
9589       fi
9590       ;;
9591
9592     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9593       no_undefined_flag='${wl}-z,text'
9594       archive_cmds_need_lc=no
9595       hardcode_shlibpath_var=no
9596       runpath_var='LD_RUN_PATH'
9597
9598       if test "$GCC" = yes; then
9599         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601       else
9602         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604       fi
9605       ;;
9606
9607     sysv5* | sco3.2v5* | sco5v6*)
9608       # Note: We can NOT use -z defs as we might desire, because we do not
9609       # link with -lc, and that would cause any symbols used from libc to
9610       # always be unresolved, which means just about no library would
9611       # ever link correctly.  If we're not using GNU ld we use -z text
9612       # though, which does catch some bad symbols but isn't as heavy-handed
9613       # as -z defs.
9614       no_undefined_flag='${wl}-z,text'
9615       allow_undefined_flag='${wl}-z,nodefs'
9616       archive_cmds_need_lc=no
9617       hardcode_shlibpath_var=no
9618       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9619       hardcode_libdir_separator=':'
9620       link_all_deplibs=yes
9621       export_dynamic_flag_spec='${wl}-Bexport'
9622       runpath_var='LD_RUN_PATH'
9623
9624       if test "$GCC" = yes; then
9625         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627       else
9628         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630       fi
9631       ;;
9632
9633     uts4*)
9634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635       hardcode_libdir_flag_spec='-L$libdir'
9636       hardcode_shlibpath_var=no
9637       ;;
9638
9639     *)
9640       ld_shlibs=no
9641       ;;
9642     esac
9643
9644     if test x$host_vendor = xsni; then
9645       case $host in
9646       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9647         export_dynamic_flag_spec='${wl}-Blargedynsym'
9648         ;;
9649       esac
9650     fi
9651   fi
9652
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9654 $as_echo "$ld_shlibs" >&6; }
9655 test "$ld_shlibs" = no && can_build_shared=no
9656
9657 with_gnu_ld=$with_gnu_ld
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673 #
9674 # Do we need to explicitly link libc?
9675 #
9676 case "x$archive_cmds_need_lc" in
9677 x|xyes)
9678   # Assume -lc should be added
9679   archive_cmds_need_lc=yes
9680
9681   if test "$enable_shared" = yes && test "$GCC" = yes; then
9682     case $archive_cmds in
9683     *'~'*)
9684       # FIXME: we may have to deal with multi-command sequences.
9685       ;;
9686     '$CC '*)
9687       # Test whether the compiler implicitly links with -lc since on some
9688       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9689       # to ld, don't add -lc before -lgcc.
9690       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9691 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9692 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9693   $as_echo_n "(cached) " >&6
9694 else
9695   $RM conftest*
9696         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9697
9698         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9699   (eval $ac_compile) 2>&5
9700   ac_status=$?
9701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702   test $ac_status = 0; } 2>conftest.err; then
9703           soname=conftest
9704           lib=conftest
9705           libobjs=conftest.$ac_objext
9706           deplibs=
9707           wl=$lt_prog_compiler_wl
9708           pic_flag=$lt_prog_compiler_pic
9709           compiler_flags=-v
9710           linker_flags=-v
9711           verstring=
9712           output_objdir=.
9713           libname=conftest
9714           lt_save_allow_undefined_flag=$allow_undefined_flag
9715           allow_undefined_flag=
9716           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9717   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9718   ac_status=$?
9719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9720   test $ac_status = 0; }
9721           then
9722             lt_cv_archive_cmds_need_lc=no
9723           else
9724             lt_cv_archive_cmds_need_lc=yes
9725           fi
9726           allow_undefined_flag=$lt_save_allow_undefined_flag
9727         else
9728           cat conftest.err 1>&5
9729         fi
9730         $RM conftest*
9731
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9734 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9735       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9736       ;;
9737     esac
9738   fi
9739   ;;
9740 esac
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9899 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9900
9901 if test "$GCC" = yes; then
9902   case $host_os in
9903     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9904     *) lt_awk_arg="/^libraries:/" ;;
9905   esac
9906   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9907   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9908     # if the path contains ";" then we assume it to be the separator
9909     # otherwise default to the standard path separator (i.e. ":") - it is
9910     # assumed that no part of a normal pathname contains ";" but that should
9911     # okay in the real world where ";" in dirpaths is itself problematic.
9912     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9913   else
9914     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9915   fi
9916   # Ok, now we have the path, separated by spaces, we can step through it
9917   # and add multilib dir if necessary.
9918   lt_tmp_lt_search_path_spec=
9919   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9920   for lt_sys_path in $lt_search_path_spec; do
9921     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9922       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9923     else
9924       test -d "$lt_sys_path" && \
9925         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9926     fi
9927   done
9928   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9929 BEGIN {RS=" "; FS="/|\n";} {
9930   lt_foo="";
9931   lt_count=0;
9932   for (lt_i = NF; lt_i > 0; lt_i--) {
9933     if ($lt_i != "" && $lt_i != ".") {
9934       if ($lt_i == "..") {
9935         lt_count++;
9936       } else {
9937         if (lt_count == 0) {
9938           lt_foo="/" $lt_i lt_foo;
9939         } else {
9940           lt_count--;
9941         }
9942       }
9943     }
9944   }
9945   if (lt_foo != "") { lt_freq[lt_foo]++; }
9946   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9947 }'`
9948   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9949 else
9950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9951 fi
9952 library_names_spec=
9953 libname_spec='lib$name'
9954 soname_spec=
9955 shrext_cmds=".so"
9956 postinstall_cmds=
9957 postuninstall_cmds=
9958 finish_cmds=
9959 finish_eval=
9960 shlibpath_var=
9961 shlibpath_overrides_runpath=unknown
9962 version_type=none
9963 dynamic_linker="$host_os ld.so"
9964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9965 need_lib_prefix=unknown
9966 hardcode_into_libs=no
9967
9968 # when you set need_version to no, make sure it does not cause -set_version
9969 # flags to be left without arguments
9970 need_version=unknown
9971
9972 case $host_os in
9973 aix3*)
9974   version_type=linux
9975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9976   shlibpath_var=LIBPATH
9977
9978   # AIX 3 has no versioning support, so we append a major version to the name.
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   ;;
9981
9982 aix[4-9]*)
9983   version_type=linux
9984   need_lib_prefix=no
9985   need_version=no
9986   hardcode_into_libs=yes
9987   if test "$host_cpu" = ia64; then
9988     # AIX 5 supports IA64
9989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9990     shlibpath_var=LD_LIBRARY_PATH
9991   else
9992     # With GCC up to 2.95.x, collect2 would create an import file
9993     # for dependence libraries.  The import file would start with
9994     # the line `#! .'.  This would cause the generated library to
9995     # depend on `.', always an invalid library.  This was fixed in
9996     # development snapshots of GCC prior to 3.0.
9997     case $host_os in
9998       aix4 | aix4.[01] | aix4.[01].*)
9999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10000            echo ' yes '
10001            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10002         :
10003       else
10004         can_build_shared=no
10005       fi
10006       ;;
10007     esac
10008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10009     # soname into executable. Probably we can add versioning support to
10010     # collect2, so additional links can be useful in future.
10011     if test "$aix_use_runtimelinking" = yes; then
10012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10013       # instead of lib<name>.a to let people know that these are not
10014       # typical AIX shared libraries.
10015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016     else
10017       # We preserve .a as extension for shared libraries through AIX4.2
10018       # and later when we are not doing run time linking.
10019       library_names_spec='${libname}${release}.a $libname.a'
10020       soname_spec='${libname}${release}${shared_ext}$major'
10021     fi
10022     shlibpath_var=LIBPATH
10023   fi
10024   ;;
10025
10026 amigaos*)
10027   case $host_cpu in
10028   powerpc)
10029     # Since July 2007 AmigaOS4 officially supports .so libraries.
10030     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032     ;;
10033   m68k)
10034     library_names_spec='$libname.ixlibrary $libname.a'
10035     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10036     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'
10037     ;;
10038   esac
10039   ;;
10040
10041 beos*)
10042   library_names_spec='${libname}${shared_ext}'
10043   dynamic_linker="$host_os ld.so"
10044   shlibpath_var=LIBRARY_PATH
10045   ;;
10046
10047 bsdi[45]*)
10048   version_type=linux
10049   need_version=no
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051   soname_spec='${libname}${release}${shared_ext}$major'
10052   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10053   shlibpath_var=LD_LIBRARY_PATH
10054   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10055   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10056   # the default ld.so.conf also contains /usr/contrib/lib and
10057   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10058   # libtool to hard-code these into programs
10059   ;;
10060
10061 cygwin* | mingw* | pw32* | cegcc*)
10062   version_type=windows
10063   shrext_cmds=".dll"
10064   need_version=no
10065   need_lib_prefix=no
10066
10067   case $GCC,$host_os in
10068   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10069     library_names_spec='$libname.dll.a'
10070     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10071     postinstall_cmds='base_file=`basename \${file}`~
10072       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10073       dldir=$destdir/`dirname \$dlpath`~
10074       test -d \$dldir || mkdir -p \$dldir~
10075       $install_prog $dir/$dlname \$dldir/$dlname~
10076       chmod a+x \$dldir/$dlname~
10077       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10078         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10079       fi'
10080     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10081       dlpath=$dir/\$dldll~
10082        $RM \$dlpath'
10083     shlibpath_overrides_runpath=yes
10084
10085     case $host_os in
10086     cygwin*)
10087       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10088       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10090       ;;
10091     mingw* | cegcc*)
10092       # MinGW DLLs use traditional 'lib' prefix
10093       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10095       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096         # It is most probably a Windows format PATH printed by
10097         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10098         # path with ; separators, and with drive letters. We can handle the
10099         # drive letters (cygwin fileutils understands them), so leave them,
10100         # especially as we might pass files found there to a mingw objdump,
10101         # which wouldn't understand a cygwinified path. Ahh.
10102         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10103       else
10104         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10105       fi
10106       ;;
10107     pw32*)
10108       # pw32 DLLs use 'pw' prefix rather than 'lib'
10109       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110       ;;
10111     esac
10112     ;;
10113
10114   *)
10115     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10116     ;;
10117   esac
10118   dynamic_linker='Win32 ld.exe'
10119   # FIXME: first we should search . and the directory the executable is in
10120   shlibpath_var=PATH
10121   ;;
10122
10123 darwin* | rhapsody*)
10124   dynamic_linker="$host_os dyld"
10125   version_type=darwin
10126   need_lib_prefix=no
10127   need_version=no
10128   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10129   soname_spec='${libname}${release}${major}$shared_ext'
10130   shlibpath_overrides_runpath=yes
10131   shlibpath_var=DYLD_LIBRARY_PATH
10132   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10133
10134   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10135   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10136   ;;
10137
10138 dgux*)
10139   version_type=linux
10140   need_lib_prefix=no
10141   need_version=no
10142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10143   soname_spec='${libname}${release}${shared_ext}$major'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   ;;
10146
10147 freebsd1*)
10148   dynamic_linker=no
10149   ;;
10150
10151 freebsd* | dragonfly*)
10152   # DragonFly does not have aout.  When/if they implement a new
10153   # versioning mechanism, adjust this.
10154   if test -x /usr/bin/objformat; then
10155     objformat=`/usr/bin/objformat`
10156   else
10157     case $host_os in
10158     freebsd[123]*) objformat=aout ;;
10159     *) objformat=elf ;;
10160     esac
10161   fi
10162   version_type=freebsd-$objformat
10163   case $version_type in
10164     freebsd-elf*)
10165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10166       need_version=no
10167       need_lib_prefix=no
10168       ;;
10169     freebsd-*)
10170       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10171       need_version=yes
10172       ;;
10173   esac
10174   shlibpath_var=LD_LIBRARY_PATH
10175   case $host_os in
10176   freebsd2*)
10177     shlibpath_overrides_runpath=yes
10178     ;;
10179   freebsd3.[01]* | freebsdelf3.[01]*)
10180     shlibpath_overrides_runpath=yes
10181     hardcode_into_libs=yes
10182     ;;
10183   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10184   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10185     shlibpath_overrides_runpath=no
10186     hardcode_into_libs=yes
10187     ;;
10188   *) # from 4.6 on, and DragonFly
10189     shlibpath_overrides_runpath=yes
10190     hardcode_into_libs=yes
10191     ;;
10192   esac
10193   ;;
10194
10195 gnu*)
10196   version_type=linux
10197   need_lib_prefix=no
10198   need_version=no
10199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10200   soname_spec='${libname}${release}${shared_ext}$major'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   hardcode_into_libs=yes
10203   ;;
10204
10205 hpux9* | hpux10* | hpux11*)
10206   # Give a soname corresponding to the major version so that dld.sl refuses to
10207   # link against other versions.
10208   version_type=sunos
10209   need_lib_prefix=no
10210   need_version=no
10211   case $host_cpu in
10212   ia64*)
10213     shrext_cmds='.so'
10214     hardcode_into_libs=yes
10215     dynamic_linker="$host_os dld.so"
10216     shlibpath_var=LD_LIBRARY_PATH
10217     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219     soname_spec='${libname}${release}${shared_ext}$major'
10220     if test "X$HPUX_IA64_MODE" = X32; then
10221       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10222     else
10223       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10224     fi
10225     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10226     ;;
10227   hppa*64*)
10228     shrext_cmds='.sl'
10229     hardcode_into_libs=yes
10230     dynamic_linker="$host_os dld.sl"
10231     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10232     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234     soname_spec='${libname}${release}${shared_ext}$major'
10235     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237     ;;
10238   *)
10239     shrext_cmds='.sl'
10240     dynamic_linker="$host_os dld.sl"
10241     shlibpath_var=SHLIB_PATH
10242     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     ;;
10246   esac
10247   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10248   postinstall_cmds='chmod 555 $lib'
10249   ;;
10250
10251 interix[3-9]*)
10252   version_type=linux
10253   need_lib_prefix=no
10254   need_version=no
10255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256   soname_spec='${libname}${release}${shared_ext}$major'
10257   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10258   shlibpath_var=LD_LIBRARY_PATH
10259   shlibpath_overrides_runpath=no
10260   hardcode_into_libs=yes
10261   ;;
10262
10263 irix5* | irix6* | nonstopux*)
10264   case $host_os in
10265     nonstopux*) version_type=nonstopux ;;
10266     *)
10267         if test "$lt_cv_prog_gnu_ld" = yes; then
10268                 version_type=linux
10269         else
10270                 version_type=irix
10271         fi ;;
10272   esac
10273   need_lib_prefix=no
10274   need_version=no
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10277   case $host_os in
10278   irix5* | nonstopux*)
10279     libsuff= shlibsuff=
10280     ;;
10281   *)
10282     case $LD in # libtool.m4 will add one of these switches to LD
10283     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10284       libsuff= shlibsuff= libmagic=32-bit;;
10285     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10286       libsuff=32 shlibsuff=N32 libmagic=N32;;
10287     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10288       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10289     *) libsuff= shlibsuff= libmagic=never-match;;
10290     esac
10291     ;;
10292   esac
10293   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10294   shlibpath_overrides_runpath=no
10295   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10296   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10297   hardcode_into_libs=yes
10298   ;;
10299
10300 # No shared lib support for Linux oldld, aout, or coff.
10301 linux*oldld* | linux*aout* | linux*coff*)
10302   dynamic_linker=no
10303   ;;
10304
10305 # This must be Linux ELF.
10306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10307   version_type=linux
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311   soname_spec='${libname}${release}${shared_ext}$major'
10312   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=no
10315
10316   # Some binutils ld are patched to set DT_RUNPATH
10317   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10318   $as_echo_n "(cached) " >&6
10319 else
10320   lt_cv_shlibpath_overrides_runpath=no
10321     save_LDFLAGS=$LDFLAGS
10322     save_libdir=$libdir
10323     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10324          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h.  */
10327
10328 int
10329 main ()
10330 {
10331
10332   ;
10333   return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10338   lt_cv_shlibpath_overrides_runpath=yes
10339 fi
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext \
10342     conftest$ac_exeext conftest.$ac_ext
10343     LDFLAGS=$save_LDFLAGS
10344     libdir=$save_libdir
10345
10346 fi
10347
10348   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10349
10350   # This implies no fast_install, which is unacceptable.
10351   # Some rework will be needed to allow for fast_install
10352   # before this can be enabled.
10353   hardcode_into_libs=yes
10354
10355   # Append ld.so.conf contents to the search path
10356   if test -f /etc/ld.so.conf; then
10357     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' ' '`
10358     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10359   fi
10360
10361   # We used to test for /lib/ld.so.1 and disable shared libraries on
10362   # powerpc, because MkLinux only supported shared libraries with the
10363   # GNU dynamic linker.  Since this was broken with cross compilers,
10364   # most powerpc-linux boxes support dynamic linking these days and
10365   # people can always --disable-shared, the test was removed, and we
10366   # assume the GNU/Linux dynamic linker is in use.
10367   dynamic_linker='GNU/Linux ld.so'
10368   ;;
10369
10370 netbsd*)
10371   version_type=sunos
10372   need_lib_prefix=no
10373   need_version=no
10374   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10377     dynamic_linker='NetBSD (a.out) ld.so'
10378   else
10379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10380     soname_spec='${libname}${release}${shared_ext}$major'
10381     dynamic_linker='NetBSD ld.elf_so'
10382   fi
10383   shlibpath_var=LD_LIBRARY_PATH
10384   shlibpath_overrides_runpath=yes
10385   hardcode_into_libs=yes
10386   ;;
10387
10388 newsos6)
10389   version_type=linux
10390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391   shlibpath_var=LD_LIBRARY_PATH
10392   shlibpath_overrides_runpath=yes
10393   ;;
10394
10395 *nto* | *qnx*)
10396   version_type=qnx
10397   need_lib_prefix=no
10398   need_version=no
10399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400   soname_spec='${libname}${release}${shared_ext}$major'
10401   shlibpath_var=LD_LIBRARY_PATH
10402   shlibpath_overrides_runpath=no
10403   hardcode_into_libs=yes
10404   dynamic_linker='ldqnx.so'
10405   ;;
10406
10407 openbsd*)
10408   version_type=sunos
10409   sys_lib_dlsearch_path_spec="/usr/lib"
10410   need_lib_prefix=no
10411   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10412   case $host_os in
10413     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10414     *)                          need_version=no  ;;
10415   esac
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10417   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10420     case $host_os in
10421       openbsd2.[89] | openbsd2.[89].*)
10422         shlibpath_overrides_runpath=no
10423         ;;
10424       *)
10425         shlibpath_overrides_runpath=yes
10426         ;;
10427       esac
10428   else
10429     shlibpath_overrides_runpath=yes
10430   fi
10431   ;;
10432
10433 os2*)
10434   libname_spec='$name'
10435   shrext_cmds=".dll"
10436   need_lib_prefix=no
10437   library_names_spec='$libname${shared_ext} $libname.a'
10438   dynamic_linker='OS/2 ld.exe'
10439   shlibpath_var=LIBPATH
10440   ;;
10441
10442 osf3* | osf4* | osf5*)
10443   version_type=osf
10444   need_lib_prefix=no
10445   need_version=no
10446   soname_spec='${libname}${release}${shared_ext}$major'
10447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448   shlibpath_var=LD_LIBRARY_PATH
10449   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10450   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10451   ;;
10452
10453 rdos*)
10454   dynamic_linker=no
10455   ;;
10456
10457 solaris*)
10458   version_type=linux
10459   need_lib_prefix=no
10460   need_version=no
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   shlibpath_overrides_runpath=yes
10465   hardcode_into_libs=yes
10466   # ldd complains unless libraries are executable
10467   postinstall_cmds='chmod +x $lib'
10468   ;;
10469
10470 sunos4*)
10471   version_type=sunos
10472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10474   shlibpath_var=LD_LIBRARY_PATH
10475   shlibpath_overrides_runpath=yes
10476   if test "$with_gnu_ld" = yes; then
10477     need_lib_prefix=no
10478   fi
10479   need_version=yes
10480   ;;
10481
10482 sysv4 | sysv4.3*)
10483   version_type=linux
10484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485   soname_spec='${libname}${release}${shared_ext}$major'
10486   shlibpath_var=LD_LIBRARY_PATH
10487   case $host_vendor in
10488     sni)
10489       shlibpath_overrides_runpath=no
10490       need_lib_prefix=no
10491       runpath_var=LD_RUN_PATH
10492       ;;
10493     siemens)
10494       need_lib_prefix=no
10495       ;;
10496     motorola)
10497       need_lib_prefix=no
10498       need_version=no
10499       shlibpath_overrides_runpath=no
10500       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10501       ;;
10502   esac
10503   ;;
10504
10505 sysv4*MP*)
10506   if test -d /usr/nec ;then
10507     version_type=linux
10508     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10509     soname_spec='$libname${shared_ext}.$major'
10510     shlibpath_var=LD_LIBRARY_PATH
10511   fi
10512   ;;
10513
10514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10515   version_type=freebsd-elf
10516   need_lib_prefix=no
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   shlibpath_overrides_runpath=yes
10522   hardcode_into_libs=yes
10523   if test "$with_gnu_ld" = yes; then
10524     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10525   else
10526     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10527     case $host_os in
10528       sco3.2v5*)
10529         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10530         ;;
10531     esac
10532   fi
10533   sys_lib_dlsearch_path_spec='/usr/lib'
10534   ;;
10535
10536 tpf*)
10537   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10538   version_type=linux
10539   need_lib_prefix=no
10540   need_version=no
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   shlibpath_overrides_runpath=no
10544   hardcode_into_libs=yes
10545   ;;
10546
10547 uts4*)
10548   version_type=linux
10549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550   soname_spec='${libname}${release}${shared_ext}$major'
10551   shlibpath_var=LD_LIBRARY_PATH
10552   ;;
10553
10554 *)
10555   dynamic_linker=no
10556   ;;
10557 esac
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10559 $as_echo "$dynamic_linker" >&6; }
10560 test "$dynamic_linker" = no && can_build_shared=no
10561
10562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10563 if test "$GCC" = yes; then
10564   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10565 fi
10566
10567 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10568   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10569 fi
10570 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10571   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10572 fi
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10661 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10662 hardcode_action=
10663 if test -n "$hardcode_libdir_flag_spec" ||
10664    test -n "$runpath_var" ||
10665    test "X$hardcode_automatic" = "Xyes" ; then
10666
10667   # We can hardcode non-existent directories.
10668   if test "$hardcode_direct" != no &&
10669      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10670      # have to relink, otherwise we might link with an installed library
10671      # when we should be linking with a yet-to-be-installed one
10672      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10673      test "$hardcode_minus_L" != no; then
10674     # Linking always hardcodes the temporary library directory.
10675     hardcode_action=relink
10676   else
10677     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10678     hardcode_action=immediate
10679   fi
10680 else
10681   # We cannot hardcode anything, or else we can only hardcode existing
10682   # directories.
10683   hardcode_action=unsupported
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10686 $as_echo "$hardcode_action" >&6; }
10687
10688 if test "$hardcode_action" = relink ||
10689    test "$inherit_rpath" = yes; then
10690   # Fast installation is not supported
10691   enable_fast_install=no
10692 elif test "$shlibpath_overrides_runpath" = yes ||
10693      test "$enable_shared" = no; then
10694   # Fast installation is not necessary
10695   enable_fast_install=needless
10696 fi
10697
10698
10699
10700
10701
10702
10703   if test "x$enable_dlopen" != xyes; then
10704   enable_dlopen=unknown
10705   enable_dlopen_self=unknown
10706   enable_dlopen_self_static=unknown
10707 else
10708   lt_cv_dlopen=no
10709   lt_cv_dlopen_libs=
10710
10711   case $host_os in
10712   beos*)
10713     lt_cv_dlopen="load_add_on"
10714     lt_cv_dlopen_libs=
10715     lt_cv_dlopen_self=yes
10716     ;;
10717
10718   mingw* | pw32* | cegcc*)
10719     lt_cv_dlopen="LoadLibrary"
10720     lt_cv_dlopen_libs=
10721     ;;
10722
10723   cygwin*)
10724     lt_cv_dlopen="dlopen"
10725     lt_cv_dlopen_libs=
10726     ;;
10727
10728   darwin*)
10729   # if libdl is installed we need to link against it
10730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-ldl  $LIBS"
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h.  */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741    Use char because int might match the return type of a GCC
10742    builtin and then its argument prototype would still apply.  */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char dlopen ();
10747 int
10748 main ()
10749 {
10750 return dlopen ();
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_link "$LINENO"; then :
10756   ac_cv_lib_dl_dlopen=yes
10757 else
10758   ac_cv_lib_dl_dlopen=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext \
10761     conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10768 else
10769
10770     lt_cv_dlopen="dyld"
10771     lt_cv_dlopen_libs=
10772     lt_cv_dlopen_self=yes
10773
10774 fi
10775
10776     ;;
10777
10778   *)
10779     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10780 if test "x$ac_cv_func_shl_load" = x""yes; then :
10781   lt_cv_dlopen="shl_load"
10782 else
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10784 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10785 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   ac_check_lib_save_LIBS=$LIBS
10789 LIBS="-ldld  $LIBS"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793 /* Override any GCC internal prototype to avoid an error.
10794    Use char because int might match the return type of a GCC
10795    builtin and then its argument prototype would still apply.  */
10796 #ifdef __cplusplus
10797 extern "C"
10798 #endif
10799 char shl_load ();
10800 int
10801 main ()
10802 {
10803 return shl_load ();
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"; then :
10809   ac_cv_lib_dld_shl_load=yes
10810 else
10811   ac_cv_lib_dld_shl_load=no
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10818 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10819 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10820   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10821 else
10822   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10823 if test "x$ac_cv_func_dlopen" = x""yes; then :
10824   lt_cv_dlopen="dlopen"
10825 else
10826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-ldl  $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837    Use char because int might match the return type of a GCC
10838    builtin and then its argument prototype would still apply.  */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char dlopen ();
10843 int
10844 main ()
10845 {
10846 return dlopen ();
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852   ac_cv_lib_dl_dlopen=yes
10853 else
10854   ac_cv_lib_dl_dlopen=no
10855 fi
10856 rm -f core conftest.err conftest.$ac_objext \
10857     conftest$ac_exeext conftest.$ac_ext
10858 LIBS=$ac_check_lib_save_LIBS
10859 fi
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10862 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864 else
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10866 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10867 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lsvld  $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h.  */
10874
10875 /* Override any GCC internal prototype to avoid an error.
10876    Use char because int might match the return type of a GCC
10877    builtin and then its argument prototype would still apply.  */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char dlopen ();
10882 int
10883 main ()
10884 {
10885 return dlopen ();
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891   ac_cv_lib_svld_dlopen=yes
10892 else
10893   ac_cv_lib_svld_dlopen=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896     conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10900 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10901 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10902   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10903 else
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10905 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10906 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10907   $as_echo_n "(cached) " >&6
10908 else
10909   ac_check_lib_save_LIBS=$LIBS
10910 LIBS="-ldld  $LIBS"
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h.  */
10913
10914 /* Override any GCC internal prototype to avoid an error.
10915    Use char because int might match the return type of a GCC
10916    builtin and then its argument prototype would still apply.  */
10917 #ifdef __cplusplus
10918 extern "C"
10919 #endif
10920 char dld_link ();
10921 int
10922 main ()
10923 {
10924 return dld_link ();
10925   ;
10926   return 0;
10927 }
10928 _ACEOF
10929 if ac_fn_c_try_link "$LINENO"; then :
10930   ac_cv_lib_dld_dld_link=yes
10931 else
10932   ac_cv_lib_dld_dld_link=no
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext \
10935     conftest$ac_exeext conftest.$ac_ext
10936 LIBS=$ac_check_lib_save_LIBS
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10939 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10940 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10941   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10942 fi
10943
10944
10945 fi
10946
10947
10948 fi
10949
10950
10951 fi
10952
10953
10954 fi
10955
10956
10957 fi
10958
10959     ;;
10960   esac
10961
10962   if test "x$lt_cv_dlopen" != xno; then
10963     enable_dlopen=yes
10964   else
10965     enable_dlopen=no
10966   fi
10967
10968   case $lt_cv_dlopen in
10969   dlopen)
10970     save_CPPFLAGS="$CPPFLAGS"
10971     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10972
10973     save_LDFLAGS="$LDFLAGS"
10974     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10975
10976     save_LIBS="$LIBS"
10977     LIBS="$lt_cv_dlopen_libs $LIBS"
10978
10979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10980 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10981 if test "${lt_cv_dlopen_self+set}" = set; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984           if test "$cross_compiling" = yes; then :
10985   lt_cv_dlopen_self=cross
10986 else
10987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10988   lt_status=$lt_dlunknown
10989   cat > conftest.$ac_ext <<_LT_EOF
10990 #line 10990 "configure"
10991 #include "confdefs.h"
10992
10993 #if HAVE_DLFCN_H
10994 #include <dlfcn.h>
10995 #endif
10996
10997 #include <stdio.h>
10998
10999 #ifdef RTLD_GLOBAL
11000 #  define LT_DLGLOBAL           RTLD_GLOBAL
11001 #else
11002 #  ifdef DL_GLOBAL
11003 #    define LT_DLGLOBAL         DL_GLOBAL
11004 #  else
11005 #    define LT_DLGLOBAL         0
11006 #  endif
11007 #endif
11008
11009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11010    find out it does not work in some platform. */
11011 #ifndef LT_DLLAZY_OR_NOW
11012 #  ifdef RTLD_LAZY
11013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11014 #  else
11015 #    ifdef DL_LAZY
11016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11017 #    else
11018 #      ifdef RTLD_NOW
11019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11020 #      else
11021 #        ifdef DL_NOW
11022 #          define LT_DLLAZY_OR_NOW      DL_NOW
11023 #        else
11024 #          define LT_DLLAZY_OR_NOW      0
11025 #        endif
11026 #      endif
11027 #    endif
11028 #  endif
11029 #endif
11030
11031 void fnord() { int i=42;}
11032 int main ()
11033 {
11034   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11035   int status = $lt_dlunknown;
11036
11037   if (self)
11038     {
11039       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11040       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11041       /* dlclose (self); */
11042     }
11043   else
11044     puts (dlerror ());
11045
11046   return status;
11047 }
11048 _LT_EOF
11049   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11050   (eval $ac_link) 2>&5
11051   ac_status=$?
11052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11053   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11054     (./conftest; exit; ) >&5 2>/dev/null
11055     lt_status=$?
11056     case x$lt_status in
11057       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11058       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11059       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11060     esac
11061   else :
11062     # compilation failed
11063     lt_cv_dlopen_self=no
11064   fi
11065 fi
11066 rm -fr conftest*
11067
11068
11069 fi
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11071 $as_echo "$lt_cv_dlopen_self" >&6; }
11072
11073     if test "x$lt_cv_dlopen_self" = xyes; then
11074       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11076 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11077 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11078   $as_echo_n "(cached) " >&6
11079 else
11080           if test "$cross_compiling" = yes; then :
11081   lt_cv_dlopen_self_static=cross
11082 else
11083   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084   lt_status=$lt_dlunknown
11085   cat > conftest.$ac_ext <<_LT_EOF
11086 #line 11086 "configure"
11087 #include "confdefs.h"
11088
11089 #if HAVE_DLFCN_H
11090 #include <dlfcn.h>
11091 #endif
11092
11093 #include <stdio.h>
11094
11095 #ifdef RTLD_GLOBAL
11096 #  define LT_DLGLOBAL           RTLD_GLOBAL
11097 #else
11098 #  ifdef DL_GLOBAL
11099 #    define LT_DLGLOBAL         DL_GLOBAL
11100 #  else
11101 #    define LT_DLGLOBAL         0
11102 #  endif
11103 #endif
11104
11105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106    find out it does not work in some platform. */
11107 #ifndef LT_DLLAZY_OR_NOW
11108 #  ifdef RTLD_LAZY
11109 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11110 #  else
11111 #    ifdef DL_LAZY
11112 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11113 #    else
11114 #      ifdef RTLD_NOW
11115 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11116 #      else
11117 #        ifdef DL_NOW
11118 #          define LT_DLLAZY_OR_NOW      DL_NOW
11119 #        else
11120 #          define LT_DLLAZY_OR_NOW      0
11121 #        endif
11122 #      endif
11123 #    endif
11124 #  endif
11125 #endif
11126
11127 void fnord() { int i=42;}
11128 int main ()
11129 {
11130   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131   int status = $lt_dlunknown;
11132
11133   if (self)
11134     {
11135       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11136       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11137       /* dlclose (self); */
11138     }
11139   else
11140     puts (dlerror ());
11141
11142   return status;
11143 }
11144 _LT_EOF
11145   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11146   (eval $ac_link) 2>&5
11147   ac_status=$?
11148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11150     (./conftest; exit; ) >&5 2>/dev/null
11151     lt_status=$?
11152     case x$lt_status in
11153       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11154       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11155       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11156     esac
11157   else :
11158     # compilation failed
11159     lt_cv_dlopen_self_static=no
11160   fi
11161 fi
11162 rm -fr conftest*
11163
11164
11165 fi
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11167 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11168     fi
11169
11170     CPPFLAGS="$save_CPPFLAGS"
11171     LDFLAGS="$save_LDFLAGS"
11172     LIBS="$save_LIBS"
11173     ;;
11174   esac
11175
11176   case $lt_cv_dlopen_self in
11177   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11178   *) enable_dlopen_self=unknown ;;
11179   esac
11180
11181   case $lt_cv_dlopen_self_static in
11182   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11183   *) enable_dlopen_self_static=unknown ;;
11184   esac
11185 fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203 striplib=
11204 old_striplib=
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11206 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11207 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11208   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11209   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11212 else
11213 # FIXME - insert some real tests, host_os isn't really good enough
11214   case $host_os in
11215   darwin*)
11216     if test -n "$STRIP" ; then
11217       striplib="$STRIP -x"
11218       old_striplib="$STRIP -S"
11219       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11220 $as_echo "yes" >&6; }
11221     else
11222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224     fi
11225     ;;
11226   *)
11227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229     ;;
11230   esac
11231 fi
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244   # Report which library types will actually be built
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11246 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11248 $as_echo "$can_build_shared" >&6; }
11249
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11251 $as_echo_n "checking whether to build shared libraries... " >&6; }
11252   test "$can_build_shared" = "no" && enable_shared=no
11253
11254   # On AIX, shared libraries and static libraries use the same namespace, and
11255   # are all built from PIC.
11256   case $host_os in
11257   aix3*)
11258     test "$enable_shared" = yes && enable_static=no
11259     if test -n "$RANLIB"; then
11260       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11261       postinstall_cmds='$RANLIB $lib'
11262     fi
11263     ;;
11264
11265   aix[4-9]*)
11266     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11267       test "$enable_shared" = yes && enable_static=no
11268     fi
11269     ;;
11270   esac
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11272 $as_echo "$enable_shared" >&6; }
11273
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11275 $as_echo_n "checking whether to build static libraries... " >&6; }
11276   # Make sure either enable_shared or enable_static is yes.
11277   test "$enable_shared" = yes || enable_static=yes
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11279 $as_echo "$enable_static" >&6; }
11280
11281
11282
11283
11284 fi
11285 ac_ext=c
11286 ac_cpp='$CPP $CPPFLAGS'
11287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290
11291 CC="$lt_save_CC"
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305         ac_config_commands="$ac_config_commands libtool"
11306
11307
11308
11309
11310 # Only expand once:
11311
11312
11313
11314
11315
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11318 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11319     # Check whether --enable-maintainer-mode was given.
11320 if test "${enable_maintainer_mode+set}" = set; then :
11321   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11322 else
11323   USE_MAINTAINER_MODE=no
11324 fi
11325
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11327 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11328    if test $USE_MAINTAINER_MODE = yes; then
11329   MAINTAINER_MODE_TRUE=
11330   MAINTAINER_MODE_FALSE='#'
11331 else
11332   MAINTAINER_MODE_TRUE='#'
11333   MAINTAINER_MODE_FALSE=
11334 fi
11335
11336   MAINT=$MAINTAINER_MODE_TRUE
11337
11338
11339
11340 # We need gfortran to compile parts of the library
11341 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11342 #AC_PROG_FC(gfortran)
11343 case `echo $GFORTRAN` in
11344   -* | no* )
11345     FC=no ;;
11346   *)
11347     FC="$GFORTRAN" ;;
11348 esac
11349 ac_ext=${ac_fc_srcext-f}
11350 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11351 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11352 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11353 if test -n "$ac_tool_prefix"; then
11354   for ac_prog in gfortran
11355   do
11356     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if test "${ac_cv_prog_FC+set}" = set; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   if test -n "$FC"; then
11364   ac_cv_prog_FC="$FC" # Let the user override the test.
11365 else
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369   IFS=$as_save_IFS
11370   test -z "$as_dir" && as_dir=.
11371     for ac_exec_ext in '' $ac_executable_extensions; do
11372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11373     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11375     break 2
11376   fi
11377 done
11378   done
11379 IFS=$as_save_IFS
11380
11381 fi
11382 fi
11383 FC=$ac_cv_prog_FC
11384 if test -n "$FC"; then
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11386 $as_echo "$FC" >&6; }
11387 else
11388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 fi
11391
11392
11393     test -n "$FC" && break
11394   done
11395 fi
11396 if test -z "$FC"; then
11397   ac_ct_FC=$FC
11398   for ac_prog in gfortran
11399 do
11400   # Extract the first word of "$ac_prog", so it can be a program name with args.
11401 set dummy $ac_prog; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   if test -n "$ac_ct_FC"; then
11408   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413   IFS=$as_save_IFS
11414   test -z "$as_dir" && as_dir=.
11415     for ac_exec_ext in '' $ac_executable_extensions; do
11416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417     ac_cv_prog_ac_ct_FC="$ac_prog"
11418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419     break 2
11420   fi
11421 done
11422   done
11423 IFS=$as_save_IFS
11424
11425 fi
11426 fi
11427 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11428 if test -n "$ac_ct_FC"; then
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11430 $as_echo "$ac_ct_FC" >&6; }
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437   test -n "$ac_ct_FC" && break
11438 done
11439
11440   if test "x$ac_ct_FC" = x; then
11441     FC=""
11442   else
11443     case $cross_compiling:$ac_tool_warned in
11444 yes:)
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11447 ac_tool_warned=yes ;;
11448 esac
11449     FC=$ac_ct_FC
11450   fi
11451 fi
11452
11453
11454 # Provide some information about the compiler.
11455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11456 set X $ac_compile
11457 ac_compiler=$2
11458 for ac_option in --version -v -V -qversion; do
11459   { { ac_try="$ac_compiler $ac_option >&5"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11465 $as_echo "$ac_try_echo"; } >&5
11466   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11467   ac_status=$?
11468   if test -s conftest.err; then
11469     sed '10a\
11470 ... rest of stderr output deleted ...
11471          10q' conftest.err >conftest.er1
11472     cat conftest.er1 >&5
11473     rm -f conftest.er1 conftest.err
11474   fi
11475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476   test $ac_status = 0; }
11477 done
11478 rm -f a.out
11479
11480 # If we don't use `.F' as extension, the preprocessor is not run on the
11481 # input file.  (Note that this only needs to work for GNU compilers.)
11482 ac_save_ext=$ac_ext
11483 ac_ext=F
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11485 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11486 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   cat > conftest.$ac_ext <<_ACEOF
11490       program main
11491 #ifndef __GNUC__
11492        choke me
11493 #endif
11494
11495       end
11496 _ACEOF
11497 if ac_fn_fc_try_compile "$LINENO"; then :
11498   ac_compiler_gnu=yes
11499 else
11500   ac_compiler_gnu=no
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11504
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11507 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11508 ac_ext=$ac_save_ext
11509 ac_test_FCFLAGS=${FCFLAGS+set}
11510 ac_save_FCFLAGS=$FCFLAGS
11511 FCFLAGS=
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11513 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11514 if test "${ac_cv_prog_fc_g+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   FCFLAGS=-g
11518 cat > conftest.$ac_ext <<_ACEOF
11519       program main
11520
11521       end
11522 _ACEOF
11523 if ac_fn_fc_try_compile "$LINENO"; then :
11524   ac_cv_prog_fc_g=yes
11525 else
11526   ac_cv_prog_fc_g=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11532 $as_echo "$ac_cv_prog_fc_g" >&6; }
11533 if test "$ac_test_FCFLAGS" = set; then
11534   FCFLAGS=$ac_save_FCFLAGS
11535 elif test $ac_cv_prog_fc_g = yes; then
11536   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11537     FCFLAGS="-g -O2"
11538   else
11539     FCFLAGS="-g"
11540   fi
11541 else
11542   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11543     FCFLAGS="-O2"
11544   else
11545     FCFLAGS=
11546   fi
11547 fi
11548
11549 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555
11556 ac_ext=${ac_fc_srcext-f}
11557 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11558 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11560 if test -n "$ac_tool_prefix"; then
11561   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
11562   do
11563     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if test "${ac_cv_prog_FC+set}" = set; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   if test -n "$FC"; then
11571   ac_cv_prog_FC="$FC" # Let the user override the test.
11572 else
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576   IFS=$as_save_IFS
11577   test -z "$as_dir" && as_dir=.
11578     for ac_exec_ext in '' $ac_executable_extensions; do
11579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582     break 2
11583   fi
11584 done
11585   done
11586 IFS=$as_save_IFS
11587
11588 fi
11589 fi
11590 FC=$ac_cv_prog_FC
11591 if test -n "$FC"; then
11592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11593 $as_echo "$FC" >&6; }
11594 else
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597 fi
11598
11599
11600     test -n "$FC" && break
11601   done
11602 fi
11603 if test -z "$FC"; then
11604   ac_ct_FC=$FC
11605   for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
11606 do
11607   # Extract the first word of "$ac_prog", so it can be a program name with args.
11608 set dummy $ac_prog; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11612   $as_echo_n "(cached) " >&6
11613 else
11614   if test -n "$ac_ct_FC"; then
11615   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622     for ac_exec_ext in '' $ac_executable_extensions; do
11623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624     ac_cv_prog_ac_ct_FC="$ac_prog"
11625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629   done
11630 IFS=$as_save_IFS
11631
11632 fi
11633 fi
11634 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11635 if test -n "$ac_ct_FC"; then
11636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11637 $as_echo "$ac_ct_FC" >&6; }
11638 else
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 fi
11642
11643
11644   test -n "$ac_ct_FC" && break
11645 done
11646
11647   if test "x$ac_ct_FC" = x; then
11648     FC=""
11649   else
11650     case $cross_compiling:$ac_tool_warned in
11651 yes:)
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11654 ac_tool_warned=yes ;;
11655 esac
11656     FC=$ac_ct_FC
11657   fi
11658 fi
11659
11660
11661 # Provide some information about the compiler.
11662 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11663 set X $ac_compile
11664 ac_compiler=$2
11665 for ac_option in --version -v -V -qversion; do
11666   { { ac_try="$ac_compiler $ac_option >&5"
11667 case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11672 $as_echo "$ac_try_echo"; } >&5
11673   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11674   ac_status=$?
11675   if test -s conftest.err; then
11676     sed '10a\
11677 ... rest of stderr output deleted ...
11678          10q' conftest.err >conftest.er1
11679     cat conftest.er1 >&5
11680     rm -f conftest.er1 conftest.err
11681   fi
11682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683   test $ac_status = 0; }
11684 done
11685 rm -f a.out
11686
11687 # If we don't use `.F' as extension, the preprocessor is not run on the
11688 # input file.  (Note that this only needs to work for GNU compilers.)
11689 ac_save_ext=$ac_ext
11690 ac_ext=F
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11692 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11693 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   cat > conftest.$ac_ext <<_ACEOF
11697       program main
11698 #ifndef __GNUC__
11699        choke me
11700 #endif
11701
11702       end
11703 _ACEOF
11704 if ac_fn_fc_try_compile "$LINENO"; then :
11705   ac_compiler_gnu=yes
11706 else
11707   ac_compiler_gnu=no
11708 fi
11709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11714 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11715 ac_ext=$ac_save_ext
11716 ac_test_FCFLAGS=${FCFLAGS+set}
11717 ac_save_FCFLAGS=$FCFLAGS
11718 FCFLAGS=
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11720 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11721 if test "${ac_cv_prog_fc_g+set}" = set; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   FCFLAGS=-g
11725 cat > conftest.$ac_ext <<_ACEOF
11726       program main
11727
11728       end
11729 _ACEOF
11730 if ac_fn_fc_try_compile "$LINENO"; then :
11731   ac_cv_prog_fc_g=yes
11732 else
11733   ac_cv_prog_fc_g=no
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11739 $as_echo "$ac_cv_prog_fc_g" >&6; }
11740 if test "$ac_test_FCFLAGS" = set; then
11741   FCFLAGS=$ac_save_FCFLAGS
11742 elif test $ac_cv_prog_fc_g = yes; then
11743   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11744     FCFLAGS="-g -O2"
11745   else
11746     FCFLAGS="-g"
11747   fi
11748 else
11749   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11750     FCFLAGS="-O2"
11751   else
11752     FCFLAGS=
11753   fi
11754 fi
11755
11756 ac_ext=c
11757 ac_cpp='$CPP $CPPFLAGS'
11758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11761
11762 if test -z "$FC" || test "X$FC" = "Xno"; then
11763   _lt_disable_FC=yes
11764 fi
11765
11766
11767
11768       ac_ext=${ac_fc_srcext-f}
11769 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11770 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11771 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11772
11773
11774 archive_cmds_need_lc_FC=no
11775 allow_undefined_flag_FC=
11776 always_export_symbols_FC=no
11777 archive_expsym_cmds_FC=
11778 export_dynamic_flag_spec_FC=
11779 hardcode_direct_FC=no
11780 hardcode_direct_absolute_FC=no
11781 hardcode_libdir_flag_spec_FC=
11782 hardcode_libdir_flag_spec_ld_FC=
11783 hardcode_libdir_separator_FC=
11784 hardcode_minus_L_FC=no
11785 hardcode_automatic_FC=no
11786 inherit_rpath_FC=no
11787 module_cmds_FC=
11788 module_expsym_cmds_FC=
11789 link_all_deplibs_FC=unknown
11790 old_archive_cmds_FC=$old_archive_cmds
11791 no_undefined_flag_FC=
11792 whole_archive_flag_spec_FC=
11793 enable_shared_with_static_runtimes_FC=no
11794
11795 # Source file extension for fc test sources.
11796 ac_ext=${ac_fc_srcext-f}
11797
11798 # Object file extension for compiled fc test sources.
11799 objext=o
11800 objext_FC=$objext
11801
11802 # No sense in running all these tests if we already determined that
11803 # the FC compiler isn't working.  Some variables (like enable_shared)
11804 # are currently assumed to apply to all compilers on this platform,
11805 # and will be corrupted by setting them based on a non-working compiler.
11806 if test "$_lt_disable_FC" != yes; then
11807   # Code to be used in simple compile tests
11808   lt_simple_compile_test_code="\
11809       subroutine t
11810       return
11811       end
11812 "
11813
11814   # Code to be used in simple link tests
11815   lt_simple_link_test_code="\
11816       program t
11817       end
11818 "
11819
11820   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11821
11822
11823
11824
11825
11826
11827 # If no C compiler was specified, use CC.
11828 LTCC=${LTCC-"$CC"}
11829
11830 # If no C compiler flags were specified, use CFLAGS.
11831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11832
11833 # Allow CC to be a program name with arguments.
11834 compiler=$CC
11835
11836
11837   # save warnings/boilerplate of simple test code
11838   ac_outfile=conftest.$ac_objext
11839 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11840 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11841 _lt_compiler_boilerplate=`cat conftest.err`
11842 $RM conftest*
11843
11844   ac_outfile=conftest.$ac_objext
11845 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11846 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11847 _lt_linker_boilerplate=`cat conftest.err`
11848 $RM -r conftest*
11849
11850
11851   # Allow CC to be a program name with arguments.
11852   lt_save_CC="$CC"
11853   lt_save_GCC=$GCC
11854   CC=${FC-"f95"}
11855   compiler=$CC
11856   GCC=$ac_cv_fc_compiler_gnu
11857
11858   compiler_FC=$CC
11859   for cc_temp in $compiler""; do
11860   case $cc_temp in
11861     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11862     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11863     \-*) ;;
11864     *) break;;
11865   esac
11866 done
11867 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11868
11869
11870   if test -n "$compiler"; then
11871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11872 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11874 $as_echo "$can_build_shared" >&6; }
11875
11876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11877 $as_echo_n "checking whether to build shared libraries... " >&6; }
11878     test "$can_build_shared" = "no" && enable_shared=no
11879
11880     # On AIX, shared libraries and static libraries use the same namespace, and
11881     # are all built from PIC.
11882     case $host_os in
11883       aix3*)
11884         test "$enable_shared" = yes && enable_static=no
11885         if test -n "$RANLIB"; then
11886           archive_cmds="$archive_cmds~\$RANLIB \$lib"
11887           postinstall_cmds='$RANLIB $lib'
11888         fi
11889         ;;
11890       aix[4-9]*)
11891         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11892           test "$enable_shared" = yes && enable_static=no
11893         fi
11894         ;;
11895     esac
11896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11897 $as_echo "$enable_shared" >&6; }
11898
11899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11900 $as_echo_n "checking whether to build static libraries... " >&6; }
11901     # Make sure either enable_shared or enable_static is yes.
11902     test "$enable_shared" = yes || enable_static=yes
11903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11904 $as_echo "$enable_static" >&6; }
11905
11906     GCC_FC="$ac_cv_fc_compiler_gnu"
11907     LD_FC="$LD"
11908
11909     ## CAVEAT EMPTOR:
11910     ## There is no encapsulation within the following macros, do not change
11911     ## the running order or otherwise move them around unless you know exactly
11912     ## what you are doing...
11913     # Dependencies to place before and after the object being linked:
11914 predep_objects_FC=
11915 postdep_objects_FC=
11916 predeps_FC=
11917 postdeps_FC=
11918 compiler_lib_search_path_FC=
11919
11920 cat > conftest.$ac_ext <<_LT_EOF
11921       subroutine foo
11922       implicit none
11923       integer a
11924       a=0
11925       return
11926       end
11927 _LT_EOF
11928
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11930   (eval $ac_compile) 2>&5
11931   ac_status=$?
11932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933   test $ac_status = 0; }; then
11934   # Parse the compiler output and extract the necessary
11935   # objects, libraries and library flags.
11936
11937   # Sentinel used to keep track of whether or not we are before
11938   # the conftest object file.
11939   pre_test_object_deps_done=no
11940
11941   for p in `eval "$output_verbose_link_cmd"`; do
11942     case $p in
11943
11944     -L* | -R* | -l*)
11945        # Some compilers place space between "-{L,R}" and the path.
11946        # Remove the space.
11947        if test $p = "-L" ||
11948           test $p = "-R"; then
11949          prev=$p
11950          continue
11951        else
11952          prev=
11953        fi
11954
11955        if test "$pre_test_object_deps_done" = no; then
11956          case $p in
11957          -L* | -R*)
11958            # Internal compiler library paths should come after those
11959            # provided the user.  The postdeps already come after the
11960            # user supplied libs so there is no need to process them.
11961            if test -z "$compiler_lib_search_path_FC"; then
11962              compiler_lib_search_path_FC="${prev}${p}"
11963            else
11964              compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11965            fi
11966            ;;
11967          # The "-l" case would never come before the object being
11968          # linked, so don't bother handling this case.
11969          esac
11970        else
11971          if test -z "$postdeps_FC"; then
11972            postdeps_FC="${prev}${p}"
11973          else
11974            postdeps_FC="${postdeps_FC} ${prev}${p}"
11975          fi
11976        fi
11977        ;;
11978
11979     *.$objext)
11980        # This assumes that the test object file only shows up
11981        # once in the compiler output.
11982        if test "$p" = "conftest.$objext"; then
11983          pre_test_object_deps_done=yes
11984          continue
11985        fi
11986
11987        if test "$pre_test_object_deps_done" = no; then
11988          if test -z "$predep_objects_FC"; then
11989            predep_objects_FC="$p"
11990          else
11991            predep_objects_FC="$predep_objects_FC $p"
11992          fi
11993        else
11994          if test -z "$postdep_objects_FC"; then
11995            postdep_objects_FC="$p"
11996          else
11997            postdep_objects_FC="$postdep_objects_FC $p"
11998          fi
11999        fi
12000        ;;
12001
12002     *) ;; # Ignore the rest.
12003
12004     esac
12005   done
12006
12007   # Clean up.
12008   rm -f a.out a.exe
12009 else
12010   echo "libtool.m4: error: problem compiling FC test program"
12011 fi
12012
12013 $RM -f confest.$objext
12014
12015 # PORTME: override above test on systems where it is broken
12016
12017
12018 case " $postdeps_FC " in
12019 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12020 esac
12021  compiler_lib_search_dirs_FC=
12022 if test -n "${compiler_lib_search_path_FC}"; then
12023  compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12024 fi
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     lt_prog_compiler_wl_FC=
12057 lt_prog_compiler_pic_FC=
12058 lt_prog_compiler_static_FC=
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12061 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12062
12063   if test "$GCC" = yes; then
12064     lt_prog_compiler_wl_FC='-Wl,'
12065     lt_prog_compiler_static_FC='-static'
12066
12067     case $host_os in
12068       aix*)
12069       # All AIX code is PIC.
12070       if test "$host_cpu" = ia64; then
12071         # AIX 5 now supports IA64 processor
12072         lt_prog_compiler_static_FC='-Bstatic'
12073       fi
12074       ;;
12075
12076     amigaos*)
12077       case $host_cpu in
12078       powerpc)
12079             # see comment about AmigaOS4 .so support
12080             lt_prog_compiler_pic_FC='-fPIC'
12081         ;;
12082       m68k)
12083             # FIXME: we need at least 68020 code to build shared libraries, but
12084             # adding the `-m68020' flag to GCC prevents building anything better,
12085             # like `-m68040'.
12086             lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12087         ;;
12088       esac
12089       ;;
12090
12091     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12092       # PIC is the default for these OSes.
12093       ;;
12094
12095     mingw* | cygwin* | pw32* | os2* | cegcc*)
12096       # This hack is so that the source file can tell whether it is being
12097       # built for inclusion in a dll (and should export symbols for example).
12098       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12099       # (--disable-auto-import) libraries
12100       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12101       ;;
12102
12103     darwin* | rhapsody*)
12104       # PIC is the default on this platform
12105       # Common symbols not allowed in MH_DYLIB files
12106       lt_prog_compiler_pic_FC='-fno-common'
12107       ;;
12108
12109     hpux*)
12110       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12111       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12112       # sets the default TLS model and affects inlining.
12113       case $host_cpu in
12114       hppa*64*)
12115         # +Z the default
12116         ;;
12117       *)
12118         lt_prog_compiler_pic_FC='-fPIC'
12119         ;;
12120       esac
12121       ;;
12122
12123     interix[3-9]*)
12124       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12125       # Instead, we relocate shared libraries at runtime.
12126       ;;
12127
12128     msdosdjgpp*)
12129       # Just because we use GCC doesn't mean we suddenly get shared libraries
12130       # on systems that don't support them.
12131       lt_prog_compiler_can_build_shared_FC=no
12132       enable_shared=no
12133       ;;
12134
12135     *nto* | *qnx*)
12136       # QNX uses GNU C++, but need to define -shared option too, otherwise
12137       # it will coredump.
12138       lt_prog_compiler_pic_FC='-fPIC -shared'
12139       ;;
12140
12141     sysv4*MP*)
12142       if test -d /usr/nec; then
12143         lt_prog_compiler_pic_FC=-Kconform_pic
12144       fi
12145       ;;
12146
12147     *)
12148       lt_prog_compiler_pic_FC='-fPIC'
12149       ;;
12150     esac
12151   else
12152     # PORTME Check for flag to pass linker flags through the system compiler.
12153     case $host_os in
12154     aix*)
12155       lt_prog_compiler_wl_FC='-Wl,'
12156       if test "$host_cpu" = ia64; then
12157         # AIX 5 now supports IA64 processor
12158         lt_prog_compiler_static_FC='-Bstatic'
12159       else
12160         lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12161       fi
12162       ;;
12163
12164     mingw* | cygwin* | pw32* | os2* | cegcc*)
12165       # This hack is so that the source file can tell whether it is being
12166       # built for inclusion in a dll (and should export symbols for example).
12167       lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12168       ;;
12169
12170     hpux9* | hpux10* | hpux11*)
12171       lt_prog_compiler_wl_FC='-Wl,'
12172       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12173       # not for PA HP-UX.
12174       case $host_cpu in
12175       hppa*64*|ia64*)
12176         # +Z the default
12177         ;;
12178       *)
12179         lt_prog_compiler_pic_FC='+Z'
12180         ;;
12181       esac
12182       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12183       lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12184       ;;
12185
12186     irix5* | irix6* | nonstopux*)
12187       lt_prog_compiler_wl_FC='-Wl,'
12188       # PIC (with -KPIC) is the default.
12189       lt_prog_compiler_static_FC='-non_shared'
12190       ;;
12191
12192     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12193       case $cc_basename in
12194       # old Intel for x86_64 which still supported -KPIC.
12195       ecc*)
12196         lt_prog_compiler_wl_FC='-Wl,'
12197         lt_prog_compiler_pic_FC='-KPIC'
12198         lt_prog_compiler_static_FC='-static'
12199         ;;
12200       # icc used to be incompatible with GCC.
12201       # ICC 10 doesn't accept -KPIC any more.
12202       icc* | ifort*)
12203         lt_prog_compiler_wl_FC='-Wl,'
12204         lt_prog_compiler_pic_FC='-fPIC'
12205         lt_prog_compiler_static_FC='-static'
12206         ;;
12207       # Lahey Fortran 8.1.
12208       lf95*)
12209         lt_prog_compiler_wl_FC='-Wl,'
12210         lt_prog_compiler_pic_FC='--shared'
12211         lt_prog_compiler_static_FC='--static'
12212         ;;
12213       pgcc* | pgf77* | pgf90* | pgf95*)
12214         # Portland Group compilers (*not* the Pentium gcc compiler,
12215         # which looks to be a dead project)
12216         lt_prog_compiler_wl_FC='-Wl,'
12217         lt_prog_compiler_pic_FC='-fpic'
12218         lt_prog_compiler_static_FC='-Bstatic'
12219         ;;
12220       ccc*)
12221         lt_prog_compiler_wl_FC='-Wl,'
12222         # All Alpha code is PIC.
12223         lt_prog_compiler_static_FC='-non_shared'
12224         ;;
12225       xl*)
12226         # IBM XL C 8.0/Fortran 10.1 on PPC
12227         lt_prog_compiler_wl_FC='-Wl,'
12228         lt_prog_compiler_pic_FC='-qpic'
12229         lt_prog_compiler_static_FC='-qstaticlink'
12230         ;;
12231       *)
12232         case `$CC -V 2>&1 | sed 5q` in
12233         *Sun\ C*)
12234           # Sun C 5.9
12235           lt_prog_compiler_pic_FC='-KPIC'
12236           lt_prog_compiler_static_FC='-Bstatic'
12237           lt_prog_compiler_wl_FC='-Wl,'
12238           ;;
12239         *Sun\ F*)
12240           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12241           lt_prog_compiler_pic_FC='-KPIC'
12242           lt_prog_compiler_static_FC='-Bstatic'
12243           lt_prog_compiler_wl_FC=''
12244           ;;
12245         esac
12246         ;;
12247       esac
12248       ;;
12249
12250     newsos6)
12251       lt_prog_compiler_pic_FC='-KPIC'
12252       lt_prog_compiler_static_FC='-Bstatic'
12253       ;;
12254
12255     *nto* | *qnx*)
12256       # QNX uses GNU C++, but need to define -shared option too, otherwise
12257       # it will coredump.
12258       lt_prog_compiler_pic_FC='-fPIC -shared'
12259       ;;
12260
12261     osf3* | osf4* | osf5*)
12262       lt_prog_compiler_wl_FC='-Wl,'
12263       # All OSF/1 code is PIC.
12264       lt_prog_compiler_static_FC='-non_shared'
12265       ;;
12266
12267     rdos*)
12268       lt_prog_compiler_static_FC='-non_shared'
12269       ;;
12270
12271     solaris*)
12272       lt_prog_compiler_pic_FC='-KPIC'
12273       lt_prog_compiler_static_FC='-Bstatic'
12274       case $cc_basename in
12275       f77* | f90* | f95*)
12276         lt_prog_compiler_wl_FC='-Qoption ld ';;
12277       *)
12278         lt_prog_compiler_wl_FC='-Wl,';;
12279       esac
12280       ;;
12281
12282     sunos4*)
12283       lt_prog_compiler_wl_FC='-Qoption ld '
12284       lt_prog_compiler_pic_FC='-PIC'
12285       lt_prog_compiler_static_FC='-Bstatic'
12286       ;;
12287
12288     sysv4 | sysv4.2uw2* | sysv4.3*)
12289       lt_prog_compiler_wl_FC='-Wl,'
12290       lt_prog_compiler_pic_FC='-KPIC'
12291       lt_prog_compiler_static_FC='-Bstatic'
12292       ;;
12293
12294     sysv4*MP*)
12295       if test -d /usr/nec ;then
12296         lt_prog_compiler_pic_FC='-Kconform_pic'
12297         lt_prog_compiler_static_FC='-Bstatic'
12298       fi
12299       ;;
12300
12301     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12302       lt_prog_compiler_wl_FC='-Wl,'
12303       lt_prog_compiler_pic_FC='-KPIC'
12304       lt_prog_compiler_static_FC='-Bstatic'
12305       ;;
12306
12307     unicos*)
12308       lt_prog_compiler_wl_FC='-Wl,'
12309       lt_prog_compiler_can_build_shared_FC=no
12310       ;;
12311
12312     uts4*)
12313       lt_prog_compiler_pic_FC='-pic'
12314       lt_prog_compiler_static_FC='-Bstatic'
12315       ;;
12316
12317     *)
12318       lt_prog_compiler_can_build_shared_FC=no
12319       ;;
12320     esac
12321   fi
12322
12323 case $host_os in
12324   # For platforms which do not support PIC, -DPIC is meaningless:
12325   *djgpp*)
12326     lt_prog_compiler_pic_FC=
12327     ;;
12328   *)
12329     lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12330     ;;
12331 esac
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12333 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12334
12335
12336
12337 #
12338 # Check to make sure the PIC flag actually works.
12339 #
12340 if test -n "$lt_prog_compiler_pic_FC"; then
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12342 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12343 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   lt_cv_prog_compiler_pic_works_FC=no
12347    ac_outfile=conftest.$ac_objext
12348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12349    lt_compiler_flag="$lt_prog_compiler_pic_FC"
12350    # Insert the option either (1) after the last *FLAGS variable, or
12351    # (2) before a word containing "conftest.", or (3) at the end.
12352    # Note that $ac_compile itself does not contain backslashes and begins
12353    # with a dollar sign (not a hyphen), so the echo should work correctly.
12354    # The option is referenced via a variable to avoid confusing sed.
12355    lt_compile=`echo "$ac_compile" | $SED \
12356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12358    -e 's:$: $lt_compiler_flag:'`
12359    (eval echo "\"\$as_me:12359: $lt_compile\"" >&5)
12360    (eval "$lt_compile" 2>conftest.err)
12361    ac_status=$?
12362    cat conftest.err >&5
12363    echo "$as_me:12363: \$? = $ac_status" >&5
12364    if (exit $ac_status) && test -s "$ac_outfile"; then
12365      # The compiler can only warn and ignore the option if not recognized
12366      # So say no if there are warnings other than the usual output.
12367      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12370        lt_cv_prog_compiler_pic_works_FC=yes
12371      fi
12372    fi
12373    $RM conftest*
12374
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12377 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12378
12379 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12380     case $lt_prog_compiler_pic_FC in
12381      "" | " "*) ;;
12382      *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12383      esac
12384 else
12385     lt_prog_compiler_pic_FC=
12386      lt_prog_compiler_can_build_shared_FC=no
12387 fi
12388
12389 fi
12390
12391
12392
12393 #
12394 # Check to make sure the static flag actually works.
12395 #
12396 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12398 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12399 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402   lt_cv_prog_compiler_static_works_FC=no
12403    save_LDFLAGS="$LDFLAGS"
12404    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12405    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12406    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12407      # The linker can only warn and ignore the option if not recognized
12408      # So say no if there are warnings
12409      if test -s conftest.err; then
12410        # Append any errors to the config.log.
12411        cat conftest.err 1>&5
12412        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12413        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12414        if diff conftest.exp conftest.er2 >/dev/null; then
12415          lt_cv_prog_compiler_static_works_FC=yes
12416        fi
12417      else
12418        lt_cv_prog_compiler_static_works_FC=yes
12419      fi
12420    fi
12421    $RM -r conftest*
12422    LDFLAGS="$save_LDFLAGS"
12423
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12426 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12427
12428 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12429     :
12430 else
12431     lt_prog_compiler_static_FC=
12432 fi
12433
12434
12435
12436
12437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12439 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12440   $as_echo_n "(cached) " >&6
12441 else
12442   lt_cv_prog_compiler_c_o_FC=no
12443    $RM -r conftest 2>/dev/null
12444    mkdir conftest
12445    cd conftest
12446    mkdir out
12447    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12448
12449    lt_compiler_flag="-o out/conftest2.$ac_objext"
12450    # Insert the option either (1) after the last *FLAGS variable, or
12451    # (2) before a word containing "conftest.", or (3) at the end.
12452    # Note that $ac_compile itself does not contain backslashes and begins
12453    # with a dollar sign (not a hyphen), so the echo should work correctly.
12454    lt_compile=`echo "$ac_compile" | $SED \
12455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12457    -e 's:$: $lt_compiler_flag:'`
12458    (eval echo "\"\$as_me:12458: $lt_compile\"" >&5)
12459    (eval "$lt_compile" 2>out/conftest.err)
12460    ac_status=$?
12461    cat out/conftest.err >&5
12462    echo "$as_me:12462: \$? = $ac_status" >&5
12463    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12464    then
12465      # The compiler can only warn and ignore the option if not recognized
12466      # So say no if there are warnings
12467      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12468      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12469      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12470        lt_cv_prog_compiler_c_o_FC=yes
12471      fi
12472    fi
12473    chmod u+w . 2>&5
12474    $RM conftest*
12475    # SGI C++ compiler will create directory out/ii_files/ for
12476    # template instantiation
12477    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12478    $RM out/* && rmdir out
12479    cd ..
12480    $RM -r conftest
12481    $RM conftest*
12482
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12485 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12486
12487
12488
12489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12491 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494   lt_cv_prog_compiler_c_o_FC=no
12495    $RM -r conftest 2>/dev/null
12496    mkdir conftest
12497    cd conftest
12498    mkdir out
12499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12500
12501    lt_compiler_flag="-o out/conftest2.$ac_objext"
12502    # Insert the option either (1) after the last *FLAGS variable, or
12503    # (2) before a word containing "conftest.", or (3) at the end.
12504    # Note that $ac_compile itself does not contain backslashes and begins
12505    # with a dollar sign (not a hyphen), so the echo should work correctly.
12506    lt_compile=`echo "$ac_compile" | $SED \
12507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12509    -e 's:$: $lt_compiler_flag:'`
12510    (eval echo "\"\$as_me:12510: $lt_compile\"" >&5)
12511    (eval "$lt_compile" 2>out/conftest.err)
12512    ac_status=$?
12513    cat out/conftest.err >&5
12514    echo "$as_me:12514: \$? = $ac_status" >&5
12515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12516    then
12517      # The compiler can only warn and ignore the option if not recognized
12518      # So say no if there are warnings
12519      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12522        lt_cv_prog_compiler_c_o_FC=yes
12523      fi
12524    fi
12525    chmod u+w . 2>&5
12526    $RM conftest*
12527    # SGI C++ compiler will create directory out/ii_files/ for
12528    # template instantiation
12529    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12530    $RM out/* && rmdir out
12531    cd ..
12532    $RM -r conftest
12533    $RM conftest*
12534
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12537 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12538
12539
12540
12541
12542 hard_links="nottested"
12543 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12544   # do not overwrite the value of need_locks provided by the user
12545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12546 $as_echo_n "checking if we can lock with hard links... " >&6; }
12547   hard_links=yes
12548   $RM conftest*
12549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12550   touch conftest.a
12551   ln conftest.a conftest.b 2>&5 || hard_links=no
12552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12554 $as_echo "$hard_links" >&6; }
12555   if test "$hard_links" = no; then
12556     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12557 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12558     need_locks=warn
12559   fi
12560 else
12561   need_locks=no
12562 fi
12563
12564
12565
12566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12567 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12568
12569   runpath_var=
12570   allow_undefined_flag_FC=
12571   always_export_symbols_FC=no
12572   archive_cmds_FC=
12573   archive_expsym_cmds_FC=
12574   compiler_needs_object_FC=no
12575   enable_shared_with_static_runtimes_FC=no
12576   export_dynamic_flag_spec_FC=
12577   export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12578   hardcode_automatic_FC=no
12579   hardcode_direct_FC=no
12580   hardcode_direct_absolute_FC=no
12581   hardcode_libdir_flag_spec_FC=
12582   hardcode_libdir_flag_spec_ld_FC=
12583   hardcode_libdir_separator_FC=
12584   hardcode_minus_L_FC=no
12585   hardcode_shlibpath_var_FC=unsupported
12586   inherit_rpath_FC=no
12587   link_all_deplibs_FC=unknown
12588   module_cmds_FC=
12589   module_expsym_cmds_FC=
12590   old_archive_from_new_cmds_FC=
12591   old_archive_from_expsyms_cmds_FC=
12592   thread_safe_flag_spec_FC=
12593   whole_archive_flag_spec_FC=
12594   # include_expsyms should be a list of space-separated symbols to be *always*
12595   # included in the symbol list
12596   include_expsyms_FC=
12597   # exclude_expsyms can be an extended regexp of symbols to exclude
12598   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12599   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12600   # as well as any symbol that contains `d'.
12601   exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12602   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12603   # platforms (ab)use it in PIC code, but their linkers get confused if
12604   # the symbol is explicitly referenced.  Since portable code cannot
12605   # rely on this symbol name, it's probably fine to never include it in
12606   # preloaded symbol tables.
12607   # Exclude shared library initialization/finalization symbols.
12608   extract_expsyms_cmds=
12609
12610   case $host_os in
12611   cygwin* | mingw* | pw32* | cegcc*)
12612     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12613     # When not using gcc, we currently assume that we are using
12614     # Microsoft Visual C++.
12615     if test "$GCC" != yes; then
12616       with_gnu_ld=no
12617     fi
12618     ;;
12619   interix*)
12620     # we just hope/assume this is gcc and not c89 (= MSVC++)
12621     with_gnu_ld=yes
12622     ;;
12623   openbsd*)
12624     with_gnu_ld=no
12625     ;;
12626   esac
12627
12628   ld_shlibs_FC=yes
12629   if test "$with_gnu_ld" = yes; then
12630     # If archive_cmds runs LD, not CC, wlarc should be empty
12631     wlarc='${wl}'
12632
12633     # Set some defaults for GNU ld with shared library support. These
12634     # are reset later if shared libraries are not supported. Putting them
12635     # here allows them to be overridden if necessary.
12636     runpath_var=LD_RUN_PATH
12637     hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12638     export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12639     # ancient GNU ld didn't support --whole-archive et. al.
12640     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12641       whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12642     else
12643       whole_archive_flag_spec_FC=
12644     fi
12645     supports_anon_versioning=no
12646     case `$LD -v 2>&1` in
12647       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12648       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12649       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12650       *\ 2.11.*) ;; # other 2.11 versions
12651       *) supports_anon_versioning=yes ;;
12652     esac
12653
12654     # See if GNU ld supports shared libraries.
12655     case $host_os in
12656     aix[3-9]*)
12657       # On AIX/PPC, the GNU linker is very broken
12658       if test "$host_cpu" != ia64; then
12659         ld_shlibs_FC=no
12660         cat <<_LT_EOF 1>&2
12661
12662 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12663 *** to be unable to reliably create shared libraries on AIX.
12664 *** Therefore, libtool is disabling shared libraries support.  If you
12665 *** really care for shared libraries, you may want to modify your PATH
12666 *** so that a non-GNU linker is found, and then restart.
12667
12668 _LT_EOF
12669       fi
12670       ;;
12671
12672     amigaos*)
12673       case $host_cpu in
12674       powerpc)
12675             # see comment about AmigaOS4 .so support
12676             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677             archive_expsym_cmds_FC=''
12678         ;;
12679       m68k)
12680             archive_cmds_FC='$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)'
12681             hardcode_libdir_flag_spec_FC='-L$libdir'
12682             hardcode_minus_L_FC=yes
12683         ;;
12684       esac
12685       ;;
12686
12687     beos*)
12688       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689         allow_undefined_flag_FC=unsupported
12690         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12691         # support --undefined.  This deserves some investigation.  FIXME
12692         archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693       else
12694         ld_shlibs_FC=no
12695       fi
12696       ;;
12697
12698     cygwin* | mingw* | pw32* | cegcc*)
12699       # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12700       # as there is no search path for DLLs.
12701       hardcode_libdir_flag_spec_FC='-L$libdir'
12702       allow_undefined_flag_FC=unsupported
12703       always_export_symbols_FC=no
12704       enable_shared_with_static_runtimes_FC=yes
12705       export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12706
12707       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12708         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12709         # If the export-symbols file already is a .def file (1st line
12710         # is EXPORTS), use it as is; otherwise, prepend...
12711         archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12712           cp $export_symbols $output_objdir/$soname.def;
12713         else
12714           echo EXPORTS > $output_objdir/$soname.def;
12715           cat $export_symbols >> $output_objdir/$soname.def;
12716         fi~
12717         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12718       else
12719         ld_shlibs_FC=no
12720       fi
12721       ;;
12722
12723     interix[3-9]*)
12724       hardcode_direct_FC=no
12725       hardcode_shlibpath_var_FC=no
12726       hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12727       export_dynamic_flag_spec_FC='${wl}-E'
12728       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12729       # Instead, shared libraries are loaded at an image base (0x10000000 by
12730       # default) and relocated if they conflict, which is a slow very memory
12731       # consuming and fragmenting process.  To avoid this, we pick a random,
12732       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12733       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12734       archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12735       archive_expsym_cmds_FC='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'
12736       ;;
12737
12738     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12739       tmp_diet=no
12740       if test "$host_os" = linux-dietlibc; then
12741         case $cc_basename in
12742           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12743         esac
12744       fi
12745       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12746          && test "$tmp_diet" = no
12747       then
12748         tmp_addflag=
12749         tmp_sharedflag='-shared'
12750         case $cc_basename,$host_cpu in
12751         pgcc*)                          # Portland Group C compiler
12752           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12753           tmp_addflag=' $pic_flag'
12754           ;;
12755         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12756           whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12757           tmp_addflag=' $pic_flag -Mnomain' ;;
12758         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12759           tmp_addflag=' -i_dynamic' ;;
12760         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12761           tmp_addflag=' -i_dynamic -nofor_main' ;;
12762         ifc* | ifort*)                  # Intel Fortran compiler
12763           tmp_addflag=' -nofor_main' ;;
12764         lf95*)                          # Lahey Fortran 8.1
12765           whole_archive_flag_spec_FC=
12766           tmp_sharedflag='--shared' ;;
12767         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12768           tmp_sharedflag='-qmkshrobj'
12769           tmp_addflag= ;;
12770         esac
12771         case `$CC -V 2>&1 | sed 5q` in
12772         *Sun\ C*)                       # Sun C 5.9
12773           whole_archive_flag_spec_FC='${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'
12774           compiler_needs_object_FC=yes
12775           tmp_sharedflag='-G' ;;
12776         *Sun\ F*)                       # Sun Fortran 8.3
12777           tmp_sharedflag='-G' ;;
12778         esac
12779         archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780
12781         if test "x$supports_anon_versioning" = xyes; then
12782           archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12783             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12784             echo "local: *; };" >> $output_objdir/$libname.ver~
12785             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12786         fi
12787
12788         case $cc_basename in
12789         xlf*)
12790           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12791           whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12792           hardcode_libdir_flag_spec_FC=
12793           hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12794           archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12795           if test "x$supports_anon_versioning" = xyes; then
12796             archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12797               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12798               echo "local: *; };" >> $output_objdir/$libname.ver~
12799               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12800           fi
12801           ;;
12802         esac
12803       else
12804         ld_shlibs_FC=no
12805       fi
12806       ;;
12807
12808     netbsd*)
12809       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12810         archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12811         wlarc=
12812       else
12813         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12815       fi
12816       ;;
12817
12818     solaris*)
12819       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12820         ld_shlibs_FC=no
12821         cat <<_LT_EOF 1>&2
12822
12823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12824 *** create shared libraries on Solaris systems.  Therefore, libtool
12825 *** is disabling shared libraries support.  We urge you to upgrade GNU
12826 *** binutils to release 2.9.1 or newer.  Another option is to modify
12827 *** your PATH or compiler configuration so that the native linker is
12828 *** used, and then restart.
12829
12830 _LT_EOF
12831       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834       else
12835         ld_shlibs_FC=no
12836       fi
12837       ;;
12838
12839     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12840       case `$LD -v 2>&1` in
12841         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12842         ld_shlibs_FC=no
12843         cat <<_LT_EOF 1>&2
12844
12845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12846 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12847 *** is disabling shared libraries support.  We urge you to upgrade GNU
12848 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12849 *** your PATH or compiler configuration so that the native linker is
12850 *** used, and then restart.
12851
12852 _LT_EOF
12853         ;;
12854         *)
12855           # For security reasons, it is highly recommended that you always
12856           # use absolute paths for naming shared libraries, and exclude the
12857           # DT_RUNPATH tag from executables and libraries.  But doing so
12858           # requires that you compile everything twice, which is a pain.
12859           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12860             hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12861             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12862             archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12863           else
12864             ld_shlibs_FC=no
12865           fi
12866         ;;
12867       esac
12868       ;;
12869
12870     sunos4*)
12871       archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12872       wlarc=
12873       hardcode_direct_FC=yes
12874       hardcode_shlibpath_var_FC=no
12875       ;;
12876
12877     *)
12878       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12879         archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880         archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12881       else
12882         ld_shlibs_FC=no
12883       fi
12884       ;;
12885     esac
12886
12887     if test "$ld_shlibs_FC" = no; then
12888       runpath_var=
12889       hardcode_libdir_flag_spec_FC=
12890       export_dynamic_flag_spec_FC=
12891       whole_archive_flag_spec_FC=
12892     fi
12893   else
12894     # PORTME fill in a description of your system's linker (not GNU ld)
12895     case $host_os in
12896     aix3*)
12897       allow_undefined_flag_FC=unsupported
12898       always_export_symbols_FC=yes
12899       archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12900       # Note: this linker hardcodes the directories in LIBPATH if there
12901       # are no directories specified by -L.
12902       hardcode_minus_L_FC=yes
12903       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12904         # Neither direct hardcoding nor static linking is supported with a
12905         # broken collect2.
12906         hardcode_direct_FC=unsupported
12907       fi
12908       ;;
12909
12910     aix[4-9]*)
12911       if test "$host_cpu" = ia64; then
12912         # On IA64, the linker does run time linking by default, so we don't
12913         # have to do anything special.
12914         aix_use_runtimelinking=no
12915         exp_sym_flag='-Bexport'
12916         no_entry_flag=""
12917       else
12918         # If we're using GNU nm, then we don't want the "-C" option.
12919         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12920         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12921           export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12922         else
12923           export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12924         fi
12925         aix_use_runtimelinking=no
12926
12927         # Test if we are trying to use run time linking or normal
12928         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12929         # need to do runtime linking.
12930         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12931           for ld_flag in $LDFLAGS; do
12932           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12933             aix_use_runtimelinking=yes
12934             break
12935           fi
12936           done
12937           ;;
12938         esac
12939
12940         exp_sym_flag='-bexport'
12941         no_entry_flag='-bnoentry'
12942       fi
12943
12944       # When large executables or shared objects are built, AIX ld can
12945       # have problems creating the table of contents.  If linking a library
12946       # or program results in "error TOC overflow" add -mminimal-toc to
12947       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12948       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12949
12950       archive_cmds_FC=''
12951       hardcode_direct_FC=yes
12952       hardcode_direct_absolute_FC=yes
12953       hardcode_libdir_separator_FC=':'
12954       link_all_deplibs_FC=yes
12955       file_list_spec_FC='${wl}-f,'
12956
12957       if test "$GCC" = yes; then
12958         case $host_os in aix4.[012]|aix4.[012].*)
12959         # We only want to do this on AIX 4.2 and lower, the check
12960         # below for broken collect2 doesn't work under 4.3+
12961           collect2name=`${CC} -print-prog-name=collect2`
12962           if test -f "$collect2name" &&
12963            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12964           then
12965           # We have reworked collect2
12966           :
12967           else
12968           # We have old collect2
12969           hardcode_direct_FC=unsupported
12970           # It fails to find uninstalled libraries when the uninstalled
12971           # path is not listed in the libpath.  Setting hardcode_minus_L
12972           # to unsupported forces relinking
12973           hardcode_minus_L_FC=yes
12974           hardcode_libdir_flag_spec_FC='-L$libdir'
12975           hardcode_libdir_separator_FC=
12976           fi
12977           ;;
12978         esac
12979         shared_flag='-shared'
12980         if test "$aix_use_runtimelinking" = yes; then
12981           shared_flag="$shared_flag "'${wl}-G'
12982         fi
12983       else
12984         # not using gcc
12985         if test "$host_cpu" = ia64; then
12986         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12987         # chokes on -Wl,-G. The following line is correct:
12988           shared_flag='-G'
12989         else
12990           if test "$aix_use_runtimelinking" = yes; then
12991             shared_flag='${wl}-G'
12992           else
12993             shared_flag='${wl}-bM:SRE'
12994           fi
12995         fi
12996       fi
12997
12998       export_dynamic_flag_spec_FC='${wl}-bexpall'
12999       # It seems that -bexpall does not export symbols beginning with
13000       # underscore (_), so it is better to generate a list of symbols to export.
13001       always_export_symbols_FC=yes
13002       if test "$aix_use_runtimelinking" = yes; then
13003         # Warning - without using the other runtime loading flags (-brtl),
13004         # -berok will link without error, but may produce a broken library.
13005         allow_undefined_flag_FC='-berok'
13006         # Determine the default libpath from the value encoded in an
13007         # empty executable.
13008         cat > conftest.$ac_ext <<_ACEOF
13009       program main
13010
13011       end
13012 _ACEOF
13013 if ac_fn_fc_try_link "$LINENO"; then :
13014
13015 lt_aix_libpath_sed='
13016     /Import File Strings/,/^$/ {
13017         /^0/ {
13018             s/^0  *\(.*\)$/\1/
13019             p
13020         }
13021     }'
13022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13023 # Check for a 64-bit object if we didn't find anything.
13024 if test -z "$aix_libpath"; then
13025   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13026 fi
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029     conftest$ac_exeext conftest.$ac_ext
13030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13031
13032         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13033         archive_expsym_cmds_FC='$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"
13034       else
13035         if test "$host_cpu" = ia64; then
13036           hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13037           allow_undefined_flag_FC="-z nodefs"
13038           archive_expsym_cmds_FC="\$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"
13039         else
13040          # Determine the default libpath from the value encoded in an
13041          # empty executable.
13042          cat > conftest.$ac_ext <<_ACEOF
13043       program main
13044
13045       end
13046 _ACEOF
13047 if ac_fn_fc_try_link "$LINENO"; then :
13048
13049 lt_aix_libpath_sed='
13050     /Import File Strings/,/^$/ {
13051         /^0/ {
13052             s/^0  *\(.*\)$/\1/
13053             p
13054         }
13055     }'
13056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057 # Check for a 64-bit object if we didn't find anything.
13058 if test -z "$aix_libpath"; then
13059   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060 fi
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13065
13066          hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13067           # Warning - without using the other run time loading flags,
13068           # -berok will link without error, but may produce a broken library.
13069           no_undefined_flag_FC=' ${wl}-bernotok'
13070           allow_undefined_flag_FC=' ${wl}-berok'
13071           # Exported symbols can be pulled into shared objects from archives
13072           whole_archive_flag_spec_FC='$convenience'
13073           archive_cmds_need_lc_FC=yes
13074           # This is similar to how AIX traditionally builds its shared libraries.
13075           archive_expsym_cmds_FC="\$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'
13076         fi
13077       fi
13078       ;;
13079
13080     amigaos*)
13081       case $host_cpu in
13082       powerpc)
13083             # see comment about AmigaOS4 .so support
13084             archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085             archive_expsym_cmds_FC=''
13086         ;;
13087       m68k)
13088             archive_cmds_FC='$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)'
13089             hardcode_libdir_flag_spec_FC='-L$libdir'
13090             hardcode_minus_L_FC=yes
13091         ;;
13092       esac
13093       ;;
13094
13095     bsdi[45]*)
13096       export_dynamic_flag_spec_FC=-rdynamic
13097       ;;
13098
13099     cygwin* | mingw* | pw32* | cegcc*)
13100       # When not using gcc, we currently assume that we are using
13101       # Microsoft Visual C++.
13102       # hardcode_libdir_flag_spec is actually meaningless, as there is
13103       # no search path for DLLs.
13104       hardcode_libdir_flag_spec_FC=' '
13105       allow_undefined_flag_FC=unsupported
13106       # Tell ltmain to make .lib files, not .a files.
13107       libext=lib
13108       # Tell ltmain to make .dll files, not .so files.
13109       shrext_cmds=".dll"
13110       # FIXME: Setting linknames here is a bad hack.
13111       archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13112       # The linker will automatically build a .lib file if we build a DLL.
13113       old_archive_from_new_cmds_FC='true'
13114       # FIXME: Should let the user specify the lib program.
13115       old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13116       fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13117       enable_shared_with_static_runtimes_FC=yes
13118       ;;
13119
13120     darwin* | rhapsody*)
13121
13122
13123   archive_cmds_need_lc_FC=no
13124   hardcode_direct_FC=no
13125   hardcode_automatic_FC=yes
13126   hardcode_shlibpath_var_FC=unsupported
13127   whole_archive_flag_spec_FC=''
13128   link_all_deplibs_FC=yes
13129   allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13130   case $cc_basename in
13131      ifort*) _lt_dar_can_shared=yes ;;
13132      *) _lt_dar_can_shared=$GCC ;;
13133   esac
13134   if test "$_lt_dar_can_shared" = "yes"; then
13135     output_verbose_link_cmd=echo
13136     archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13137     module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13138     archive_expsym_cmds_FC="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}"
13139     module_expsym_cmds_FC="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}"
13140
13141   else
13142   ld_shlibs_FC=no
13143   fi
13144
13145       ;;
13146
13147     dgux*)
13148       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13149       hardcode_libdir_flag_spec_FC='-L$libdir'
13150       hardcode_shlibpath_var_FC=no
13151       ;;
13152
13153     freebsd1*)
13154       ld_shlibs_FC=no
13155       ;;
13156
13157     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13158     # support.  Future versions do this automatically, but an explicit c++rt0.o
13159     # does not break anything, and helps significantly (at the cost of a little
13160     # extra space).
13161     freebsd2.2*)
13162       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13163       hardcode_libdir_flag_spec_FC='-R$libdir'
13164       hardcode_direct_FC=yes
13165       hardcode_shlibpath_var_FC=no
13166       ;;
13167
13168     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13169     freebsd2*)
13170       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13171       hardcode_direct_FC=yes
13172       hardcode_minus_L_FC=yes
13173       hardcode_shlibpath_var_FC=no
13174       ;;
13175
13176     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13177     freebsd* | dragonfly*)
13178       archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13179       hardcode_libdir_flag_spec_FC='-R$libdir'
13180       hardcode_direct_FC=yes
13181       hardcode_shlibpath_var_FC=no
13182       ;;
13183
13184     hpux9*)
13185       if test "$GCC" = yes; then
13186         archive_cmds_FC='$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'
13187       else
13188         archive_cmds_FC='$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'
13189       fi
13190       hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13191       hardcode_libdir_separator_FC=:
13192       hardcode_direct_FC=yes
13193
13194       # hardcode_minus_L: Not really in the search PATH,
13195       # but as the default location of the library.
13196       hardcode_minus_L_FC=yes
13197       export_dynamic_flag_spec_FC='${wl}-E'
13198       ;;
13199
13200     hpux10*)
13201       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13202         archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13203       else
13204         archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13205       fi
13206       if test "$with_gnu_ld" = no; then
13207         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13208         hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13209         hardcode_libdir_separator_FC=:
13210         hardcode_direct_FC=yes
13211         hardcode_direct_absolute_FC=yes
13212         export_dynamic_flag_spec_FC='${wl}-E'
13213         # hardcode_minus_L: Not really in the search PATH,
13214         # but as the default location of the library.
13215         hardcode_minus_L_FC=yes
13216       fi
13217       ;;
13218
13219     hpux11*)
13220       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13221         case $host_cpu in
13222         hppa*64*)
13223           archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13224           ;;
13225         ia64*)
13226           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13227           ;;
13228         *)
13229           archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13230           ;;
13231         esac
13232       else
13233         case $host_cpu in
13234         hppa*64*)
13235           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13236           ;;
13237         ia64*)
13238           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13239           ;;
13240         *)
13241           archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13242           ;;
13243         esac
13244       fi
13245       if test "$with_gnu_ld" = no; then
13246         hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13247         hardcode_libdir_separator_FC=:
13248
13249         case $host_cpu in
13250         hppa*64*|ia64*)
13251           hardcode_direct_FC=no
13252           hardcode_shlibpath_var_FC=no
13253           ;;
13254         *)
13255           hardcode_direct_FC=yes
13256           hardcode_direct_absolute_FC=yes
13257           export_dynamic_flag_spec_FC='${wl}-E'
13258
13259           # hardcode_minus_L: Not really in the search PATH,
13260           # but as the default location of the library.
13261           hardcode_minus_L_FC=yes
13262           ;;
13263         esac
13264       fi
13265       ;;
13266
13267     irix5* | irix6* | nonstopux*)
13268       if test "$GCC" = yes; then
13269         archive_cmds_FC='$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'
13270         # Try to use the -exported_symbol ld option, if it does not
13271         # work, assume that -exports_file does not work either and
13272         # implicitly export all symbols.
13273         save_LDFLAGS="$LDFLAGS"
13274         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13275         cat > conftest.$ac_ext <<_ACEOF
13276 int foo(void) {}
13277 _ACEOF
13278 if ac_fn_fc_try_link "$LINENO"; then :
13279   archive_expsym_cmds_FC='$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'
13280
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283     conftest$ac_exeext conftest.$ac_ext
13284         LDFLAGS="$save_LDFLAGS"
13285       else
13286         archive_cmds_FC='$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'
13287         archive_expsym_cmds_FC='$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'
13288       fi
13289       archive_cmds_need_lc_FC='no'
13290       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13291       hardcode_libdir_separator_FC=:
13292       inherit_rpath_FC=yes
13293       link_all_deplibs_FC=yes
13294       ;;
13295
13296     netbsd*)
13297       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13298         archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13299       else
13300         archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13301       fi
13302       hardcode_libdir_flag_spec_FC='-R$libdir'
13303       hardcode_direct_FC=yes
13304       hardcode_shlibpath_var_FC=no
13305       ;;
13306
13307     newsos6)
13308       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13309       hardcode_direct_FC=yes
13310       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13311       hardcode_libdir_separator_FC=:
13312       hardcode_shlibpath_var_FC=no
13313       ;;
13314
13315     *nto* | *qnx*)
13316       ;;
13317
13318     openbsd*)
13319       if test -f /usr/libexec/ld.so; then
13320         hardcode_direct_FC=yes
13321         hardcode_shlibpath_var_FC=no
13322         hardcode_direct_absolute_FC=yes
13323         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13324           archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13325           archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13326           hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13327           export_dynamic_flag_spec_FC='${wl}-E'
13328         else
13329           case $host_os in
13330            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13331              archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332              hardcode_libdir_flag_spec_FC='-R$libdir'
13333              ;;
13334            *)
13335              archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13336              hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13337              ;;
13338           esac
13339         fi
13340       else
13341         ld_shlibs_FC=no
13342       fi
13343       ;;
13344
13345     os2*)
13346       hardcode_libdir_flag_spec_FC='-L$libdir'
13347       hardcode_minus_L_FC=yes
13348       allow_undefined_flag_FC=unsupported
13349       archive_cmds_FC='$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'
13350       old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13351       ;;
13352
13353     osf3*)
13354       if test "$GCC" = yes; then
13355         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13356         archive_cmds_FC='$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'
13357       else
13358         allow_undefined_flag_FC=' -expect_unresolved \*'
13359         archive_cmds_FC='$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'
13360       fi
13361       archive_cmds_need_lc_FC='no'
13362       hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13363       hardcode_libdir_separator_FC=:
13364       ;;
13365
13366     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13367       if test "$GCC" = yes; then
13368         allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13369         archive_cmds_FC='$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'
13370         hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13371       else
13372         allow_undefined_flag_FC=' -expect_unresolved \*'
13373         archive_cmds_FC='$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'
13374         archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13375         $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'
13376
13377         # Both c and cxx compiler support -rpath directly
13378         hardcode_libdir_flag_spec_FC='-rpath $libdir'
13379       fi
13380       archive_cmds_need_lc_FC='no'
13381       hardcode_libdir_separator_FC=:
13382       ;;
13383
13384     solaris*)
13385       no_undefined_flag_FC=' -z defs'
13386       if test "$GCC" = yes; then
13387         wlarc='${wl}'
13388         archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13389         archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13390           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13391       else
13392         case `$CC -V 2>&1` in
13393         *"Compilers 5.0"*)
13394           wlarc=''
13395           archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13396           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13397           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13398           ;;
13399         *)
13400           wlarc='${wl}'
13401           archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13402           archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13403           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13404           ;;
13405         esac
13406       fi
13407       hardcode_libdir_flag_spec_FC='-R$libdir'
13408       hardcode_shlibpath_var_FC=no
13409       case $host_os in
13410       solaris2.[0-5] | solaris2.[0-5].*) ;;
13411       *)
13412         # The compiler driver will combine and reorder linker options,
13413         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13414         # but is careful enough not to reorder.
13415         # Supported since Solaris 2.6 (maybe 2.5.1?)
13416         if test "$GCC" = yes; then
13417           whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13418         else
13419           whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13420         fi
13421         ;;
13422       esac
13423       link_all_deplibs_FC=yes
13424       ;;
13425
13426     sunos4*)
13427       if test "x$host_vendor" = xsequent; then
13428         # Use $CC to link under sequent, because it throws in some extra .o
13429         # files that make .init and .fini sections work.
13430         archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13431       else
13432         archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13433       fi
13434       hardcode_libdir_flag_spec_FC='-L$libdir'
13435       hardcode_direct_FC=yes
13436       hardcode_minus_L_FC=yes
13437       hardcode_shlibpath_var_FC=no
13438       ;;
13439
13440     sysv4)
13441       case $host_vendor in
13442         sni)
13443           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444           hardcode_direct_FC=yes # is this really true???
13445         ;;
13446         siemens)
13447           ## LD is ld it makes a PLAMLIB
13448           ## CC just makes a GrossModule.
13449           archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13450           reload_cmds_FC='$CC -r -o $output$reload_objs'
13451           hardcode_direct_FC=no
13452         ;;
13453         motorola)
13454           archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455           hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13456         ;;
13457       esac
13458       runpath_var='LD_RUN_PATH'
13459       hardcode_shlibpath_var_FC=no
13460       ;;
13461
13462     sysv4.3*)
13463       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464       hardcode_shlibpath_var_FC=no
13465       export_dynamic_flag_spec_FC='-Bexport'
13466       ;;
13467
13468     sysv4*MP*)
13469       if test -d /usr/nec; then
13470         archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471         hardcode_shlibpath_var_FC=no
13472         runpath_var=LD_RUN_PATH
13473         hardcode_runpath_var=yes
13474         ld_shlibs_FC=yes
13475       fi
13476       ;;
13477
13478     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13479       no_undefined_flag_FC='${wl}-z,text'
13480       archive_cmds_need_lc_FC=no
13481       hardcode_shlibpath_var_FC=no
13482       runpath_var='LD_RUN_PATH'
13483
13484       if test "$GCC" = yes; then
13485         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487       else
13488         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490       fi
13491       ;;
13492
13493     sysv5* | sco3.2v5* | sco5v6*)
13494       # Note: We can NOT use -z defs as we might desire, because we do not
13495       # link with -lc, and that would cause any symbols used from libc to
13496       # always be unresolved, which means just about no library would
13497       # ever link correctly.  If we're not using GNU ld we use -z text
13498       # though, which does catch some bad symbols but isn't as heavy-handed
13499       # as -z defs.
13500       no_undefined_flag_FC='${wl}-z,text'
13501       allow_undefined_flag_FC='${wl}-z,nodefs'
13502       archive_cmds_need_lc_FC=no
13503       hardcode_shlibpath_var_FC=no
13504       hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13505       hardcode_libdir_separator_FC=':'
13506       link_all_deplibs_FC=yes
13507       export_dynamic_flag_spec_FC='${wl}-Bexport'
13508       runpath_var='LD_RUN_PATH'
13509
13510       if test "$GCC" = yes; then
13511         archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13512         archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13513       else
13514         archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515         archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516       fi
13517       ;;
13518
13519     uts4*)
13520       archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13521       hardcode_libdir_flag_spec_FC='-L$libdir'
13522       hardcode_shlibpath_var_FC=no
13523       ;;
13524
13525     *)
13526       ld_shlibs_FC=no
13527       ;;
13528     esac
13529
13530     if test x$host_vendor = xsni; then
13531       case $host in
13532       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13533         export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13534         ;;
13535       esac
13536     fi
13537   fi
13538
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13540 $as_echo "$ld_shlibs_FC" >&6; }
13541 test "$ld_shlibs_FC" = no && can_build_shared=no
13542
13543 with_gnu_ld_FC=$with_gnu_ld
13544
13545
13546
13547
13548
13549
13550 #
13551 # Do we need to explicitly link libc?
13552 #
13553 case "x$archive_cmds_need_lc_FC" in
13554 x|xyes)
13555   # Assume -lc should be added
13556   archive_cmds_need_lc_FC=yes
13557
13558   if test "$enable_shared" = yes && test "$GCC" = yes; then
13559     case $archive_cmds_FC in
13560     *'~'*)
13561       # FIXME: we may have to deal with multi-command sequences.
13562       ;;
13563     '$CC '*)
13564       # Test whether the compiler implicitly links with -lc since on some
13565       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13566       # to ld, don't add -lc before -lgcc.
13567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13569 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13570   $as_echo_n "(cached) " >&6
13571 else
13572   $RM conftest*
13573         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13574
13575         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13576   (eval $ac_compile) 2>&5
13577   ac_status=$?
13578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13579   test $ac_status = 0; } 2>conftest.err; then
13580           soname=conftest
13581           lib=conftest
13582           libobjs=conftest.$ac_objext
13583           deplibs=
13584           wl=$lt_prog_compiler_wl_FC
13585           pic_flag=$lt_prog_compiler_pic_FC
13586           compiler_flags=-v
13587           linker_flags=-v
13588           verstring=
13589           output_objdir=.
13590           libname=conftest
13591           lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13592           allow_undefined_flag_FC=
13593           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13594   (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13595   ac_status=$?
13596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597   test $ac_status = 0; }
13598           then
13599             lt_cv_archive_cmds_need_lc_FC=no
13600           else
13601             lt_cv_archive_cmds_need_lc_FC=yes
13602           fi
13603           allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13604         else
13605           cat conftest.err 1>&5
13606         fi
13607         $RM conftest*
13608
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13611 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13612       archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13613       ;;
13614     esac
13615   fi
13616   ;;
13617 esac
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13683 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13684
13685 library_names_spec=
13686 libname_spec='lib$name'
13687 soname_spec=
13688 shrext_cmds=".so"
13689 postinstall_cmds=
13690 postuninstall_cmds=
13691 finish_cmds=
13692 finish_eval=
13693 shlibpath_var=
13694 shlibpath_overrides_runpath=unknown
13695 version_type=none
13696 dynamic_linker="$host_os ld.so"
13697 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13698 need_lib_prefix=unknown
13699 hardcode_into_libs=no
13700
13701 # when you set need_version to no, make sure it does not cause -set_version
13702 # flags to be left without arguments
13703 need_version=unknown
13704
13705 case $host_os in
13706 aix3*)
13707   version_type=linux
13708   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13709   shlibpath_var=LIBPATH
13710
13711   # AIX 3 has no versioning support, so we append a major version to the name.
13712   soname_spec='${libname}${release}${shared_ext}$major'
13713   ;;
13714
13715 aix[4-9]*)
13716   version_type=linux
13717   need_lib_prefix=no
13718   need_version=no
13719   hardcode_into_libs=yes
13720   if test "$host_cpu" = ia64; then
13721     # AIX 5 supports IA64
13722     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13723     shlibpath_var=LD_LIBRARY_PATH
13724   else
13725     # With GCC up to 2.95.x, collect2 would create an import file
13726     # for dependence libraries.  The import file would start with
13727     # the line `#! .'.  This would cause the generated library to
13728     # depend on `.', always an invalid library.  This was fixed in
13729     # development snapshots of GCC prior to 3.0.
13730     case $host_os in
13731       aix4 | aix4.[01] | aix4.[01].*)
13732       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13733            echo ' yes '
13734            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13735         :
13736       else
13737         can_build_shared=no
13738       fi
13739       ;;
13740     esac
13741     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13742     # soname into executable. Probably we can add versioning support to
13743     # collect2, so additional links can be useful in future.
13744     if test "$aix_use_runtimelinking" = yes; then
13745       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13746       # instead of lib<name>.a to let people know that these are not
13747       # typical AIX shared libraries.
13748       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13749     else
13750       # We preserve .a as extension for shared libraries through AIX4.2
13751       # and later when we are not doing run time linking.
13752       library_names_spec='${libname}${release}.a $libname.a'
13753       soname_spec='${libname}${release}${shared_ext}$major'
13754     fi
13755     shlibpath_var=LIBPATH
13756   fi
13757   ;;
13758
13759 amigaos*)
13760   case $host_cpu in
13761   powerpc)
13762     # Since July 2007 AmigaOS4 officially supports .so libraries.
13763     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765     ;;
13766   m68k)
13767     library_names_spec='$libname.ixlibrary $libname.a'
13768     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13769     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'
13770     ;;
13771   esac
13772   ;;
13773
13774 beos*)
13775   library_names_spec='${libname}${shared_ext}'
13776   dynamic_linker="$host_os ld.so"
13777   shlibpath_var=LIBRARY_PATH
13778   ;;
13779
13780 bsdi[45]*)
13781   version_type=linux
13782   need_version=no
13783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13784   soname_spec='${libname}${release}${shared_ext}$major'
13785   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13786   shlibpath_var=LD_LIBRARY_PATH
13787   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13788   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13789   # the default ld.so.conf also contains /usr/contrib/lib and
13790   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13791   # libtool to hard-code these into programs
13792   ;;
13793
13794 cygwin* | mingw* | pw32* | cegcc*)
13795   version_type=windows
13796   shrext_cmds=".dll"
13797   need_version=no
13798   need_lib_prefix=no
13799
13800   case $GCC,$host_os in
13801   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13802     library_names_spec='$libname.dll.a'
13803     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13804     postinstall_cmds='base_file=`basename \${file}`~
13805       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13806       dldir=$destdir/`dirname \$dlpath`~
13807       test -d \$dldir || mkdir -p \$dldir~
13808       $install_prog $dir/$dlname \$dldir/$dlname~
13809       chmod a+x \$dldir/$dlname~
13810       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13811         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13812       fi'
13813     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13814       dlpath=$dir/\$dldll~
13815        $RM \$dlpath'
13816     shlibpath_overrides_runpath=yes
13817
13818     case $host_os in
13819     cygwin*)
13820       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13821       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13822       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13823       ;;
13824     mingw* | cegcc*)
13825       # MinGW DLLs use traditional 'lib' prefix
13826       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13828       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13829         # It is most probably a Windows format PATH printed by
13830         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13831         # path with ; separators, and with drive letters. We can handle the
13832         # drive letters (cygwin fileutils understands them), so leave them,
13833         # especially as we might pass files found there to a mingw objdump,
13834         # which wouldn't understand a cygwinified path. Ahh.
13835         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13836       else
13837         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13838       fi
13839       ;;
13840     pw32*)
13841       # pw32 DLLs use 'pw' prefix rather than 'lib'
13842       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13843       ;;
13844     esac
13845     ;;
13846
13847   *)
13848     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13849     ;;
13850   esac
13851   dynamic_linker='Win32 ld.exe'
13852   # FIXME: first we should search . and the directory the executable is in
13853   shlibpath_var=PATH
13854   ;;
13855
13856 darwin* | rhapsody*)
13857   dynamic_linker="$host_os dyld"
13858   version_type=darwin
13859   need_lib_prefix=no
13860   need_version=no
13861   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862   soname_spec='${libname}${release}${major}$shared_ext'
13863   shlibpath_overrides_runpath=yes
13864   shlibpath_var=DYLD_LIBRARY_PATH
13865   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13866
13867   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13868   ;;
13869
13870 dgux*)
13871   version_type=linux
13872   need_lib_prefix=no
13873   need_version=no
13874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13875   soname_spec='${libname}${release}${shared_ext}$major'
13876   shlibpath_var=LD_LIBRARY_PATH
13877   ;;
13878
13879 freebsd1*)
13880   dynamic_linker=no
13881   ;;
13882
13883 freebsd* | dragonfly*)
13884   # DragonFly does not have aout.  When/if they implement a new
13885   # versioning mechanism, adjust this.
13886   if test -x /usr/bin/objformat; then
13887     objformat=`/usr/bin/objformat`
13888   else
13889     case $host_os in
13890     freebsd[123]*) objformat=aout ;;
13891     *) objformat=elf ;;
13892     esac
13893   fi
13894   version_type=freebsd-$objformat
13895   case $version_type in
13896     freebsd-elf*)
13897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13898       need_version=no
13899       need_lib_prefix=no
13900       ;;
13901     freebsd-*)
13902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13903       need_version=yes
13904       ;;
13905   esac
13906   shlibpath_var=LD_LIBRARY_PATH
13907   case $host_os in
13908   freebsd2*)
13909     shlibpath_overrides_runpath=yes
13910     ;;
13911   freebsd3.[01]* | freebsdelf3.[01]*)
13912     shlibpath_overrides_runpath=yes
13913     hardcode_into_libs=yes
13914     ;;
13915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13917     shlibpath_overrides_runpath=no
13918     hardcode_into_libs=yes
13919     ;;
13920   *) # from 4.6 on, and DragonFly
13921     shlibpath_overrides_runpath=yes
13922     hardcode_into_libs=yes
13923     ;;
13924   esac
13925   ;;
13926
13927 gnu*)
13928   version_type=linux
13929   need_lib_prefix=no
13930   need_version=no
13931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13932   soname_spec='${libname}${release}${shared_ext}$major'
13933   shlibpath_var=LD_LIBRARY_PATH
13934   hardcode_into_libs=yes
13935   ;;
13936
13937 hpux9* | hpux10* | hpux11*)
13938   # Give a soname corresponding to the major version so that dld.sl refuses to
13939   # link against other versions.
13940   version_type=sunos
13941   need_lib_prefix=no
13942   need_version=no
13943   case $host_cpu in
13944   ia64*)
13945     shrext_cmds='.so'
13946     hardcode_into_libs=yes
13947     dynamic_linker="$host_os dld.so"
13948     shlibpath_var=LD_LIBRARY_PATH
13949     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13951     soname_spec='${libname}${release}${shared_ext}$major'
13952     if test "X$HPUX_IA64_MODE" = X32; then
13953       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13954     else
13955       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13956     fi
13957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13958     ;;
13959   hppa*64*)
13960     shrext_cmds='.sl'
13961     hardcode_into_libs=yes
13962     dynamic_linker="$host_os dld.sl"
13963     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966     soname_spec='${libname}${release}${shared_ext}$major'
13967     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13968     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13969     ;;
13970   *)
13971     shrext_cmds='.sl'
13972     dynamic_linker="$host_os dld.sl"
13973     shlibpath_var=SHLIB_PATH
13974     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976     soname_spec='${libname}${release}${shared_ext}$major'
13977     ;;
13978   esac
13979   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13980   postinstall_cmds='chmod 555 $lib'
13981   ;;
13982
13983 interix[3-9]*)
13984   version_type=linux
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13990   shlibpath_var=LD_LIBRARY_PATH
13991   shlibpath_overrides_runpath=no
13992   hardcode_into_libs=yes
13993   ;;
13994
13995 irix5* | irix6* | nonstopux*)
13996   case $host_os in
13997     nonstopux*) version_type=nonstopux ;;
13998     *)
13999         if test "$lt_cv_prog_gnu_ld" = yes; then
14000                 version_type=linux
14001         else
14002                 version_type=irix
14003         fi ;;
14004   esac
14005   need_lib_prefix=no
14006   need_version=no
14007   soname_spec='${libname}${release}${shared_ext}$major'
14008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14009   case $host_os in
14010   irix5* | nonstopux*)
14011     libsuff= shlibsuff=
14012     ;;
14013   *)
14014     case $LD in # libtool.m4 will add one of these switches to LD
14015     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14016       libsuff= shlibsuff= libmagic=32-bit;;
14017     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14018       libsuff=32 shlibsuff=N32 libmagic=N32;;
14019     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14020       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14021     *) libsuff= shlibsuff= libmagic=never-match;;
14022     esac
14023     ;;
14024   esac
14025   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14026   shlibpath_overrides_runpath=no
14027   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14028   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14029   hardcode_into_libs=yes
14030   ;;
14031
14032 # No shared lib support for Linux oldld, aout, or coff.
14033 linux*oldld* | linux*aout* | linux*coff*)
14034   dynamic_linker=no
14035   ;;
14036
14037 # This must be Linux ELF.
14038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14039   version_type=linux
14040   need_lib_prefix=no
14041   need_version=no
14042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14043   soname_spec='${libname}${release}${shared_ext}$major'
14044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14045   shlibpath_var=LD_LIBRARY_PATH
14046   shlibpath_overrides_runpath=no
14047
14048   # Some binutils ld are patched to set DT_RUNPATH
14049   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   lt_cv_shlibpath_overrides_runpath=no
14053     save_LDFLAGS=$LDFLAGS
14054     save_libdir=$libdir
14055     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14056          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14057     cat > conftest.$ac_ext <<_ACEOF
14058       program main
14059
14060       end
14061 _ACEOF
14062 if ac_fn_fc_try_link "$LINENO"; then :
14063   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14064   lt_cv_shlibpath_overrides_runpath=yes
14065 fi
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068     conftest$ac_exeext conftest.$ac_ext
14069     LDFLAGS=$save_LDFLAGS
14070     libdir=$save_libdir
14071
14072 fi
14073
14074   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14075
14076   # This implies no fast_install, which is unacceptable.
14077   # Some rework will be needed to allow for fast_install
14078   # before this can be enabled.
14079   hardcode_into_libs=yes
14080
14081   # Append ld.so.conf contents to the search path
14082   if test -f /etc/ld.so.conf; then
14083     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' ' '`
14084     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14085   fi
14086
14087   # We used to test for /lib/ld.so.1 and disable shared libraries on
14088   # powerpc, because MkLinux only supported shared libraries with the
14089   # GNU dynamic linker.  Since this was broken with cross compilers,
14090   # most powerpc-linux boxes support dynamic linking these days and
14091   # people can always --disable-shared, the test was removed, and we
14092   # assume the GNU/Linux dynamic linker is in use.
14093   dynamic_linker='GNU/Linux ld.so'
14094   ;;
14095
14096 netbsd*)
14097   version_type=sunos
14098   need_lib_prefix=no
14099   need_version=no
14100   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14103     dynamic_linker='NetBSD (a.out) ld.so'
14104   else
14105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14106     soname_spec='${libname}${release}${shared_ext}$major'
14107     dynamic_linker='NetBSD ld.elf_so'
14108   fi
14109   shlibpath_var=LD_LIBRARY_PATH
14110   shlibpath_overrides_runpath=yes
14111   hardcode_into_libs=yes
14112   ;;
14113
14114 newsos6)
14115   version_type=linux
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117   shlibpath_var=LD_LIBRARY_PATH
14118   shlibpath_overrides_runpath=yes
14119   ;;
14120
14121 *nto* | *qnx*)
14122   version_type=qnx
14123   need_lib_prefix=no
14124   need_version=no
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126   soname_spec='${libname}${release}${shared_ext}$major'
14127   shlibpath_var=LD_LIBRARY_PATH
14128   shlibpath_overrides_runpath=no
14129   hardcode_into_libs=yes
14130   dynamic_linker='ldqnx.so'
14131   ;;
14132
14133 openbsd*)
14134   version_type=sunos
14135   sys_lib_dlsearch_path_spec="/usr/lib"
14136   need_lib_prefix=no
14137   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14138   case $host_os in
14139     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14140     *)                          need_version=no  ;;
14141   esac
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14146     case $host_os in
14147       openbsd2.[89] | openbsd2.[89].*)
14148         shlibpath_overrides_runpath=no
14149         ;;
14150       *)
14151         shlibpath_overrides_runpath=yes
14152         ;;
14153       esac
14154   else
14155     shlibpath_overrides_runpath=yes
14156   fi
14157   ;;
14158
14159 os2*)
14160   libname_spec='$name'
14161   shrext_cmds=".dll"
14162   need_lib_prefix=no
14163   library_names_spec='$libname${shared_ext} $libname.a'
14164   dynamic_linker='OS/2 ld.exe'
14165   shlibpath_var=LIBPATH
14166   ;;
14167
14168 osf3* | osf4* | osf5*)
14169   version_type=osf
14170   need_lib_prefix=no
14171   need_version=no
14172   soname_spec='${libname}${release}${shared_ext}$major'
14173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174   shlibpath_var=LD_LIBRARY_PATH
14175   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14176   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14177   ;;
14178
14179 rdos*)
14180   dynamic_linker=no
14181   ;;
14182
14183 solaris*)
14184   version_type=linux
14185   need_lib_prefix=no
14186   need_version=no
14187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188   soname_spec='${libname}${release}${shared_ext}$major'
14189   shlibpath_var=LD_LIBRARY_PATH
14190   shlibpath_overrides_runpath=yes
14191   hardcode_into_libs=yes
14192   # ldd complains unless libraries are executable
14193   postinstall_cmds='chmod +x $lib'
14194   ;;
14195
14196 sunos4*)
14197   version_type=sunos
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14200   shlibpath_var=LD_LIBRARY_PATH
14201   shlibpath_overrides_runpath=yes
14202   if test "$with_gnu_ld" = yes; then
14203     need_lib_prefix=no
14204   fi
14205   need_version=yes
14206   ;;
14207
14208 sysv4 | sysv4.3*)
14209   version_type=linux
14210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211   soname_spec='${libname}${release}${shared_ext}$major'
14212   shlibpath_var=LD_LIBRARY_PATH
14213   case $host_vendor in
14214     sni)
14215       shlibpath_overrides_runpath=no
14216       need_lib_prefix=no
14217       runpath_var=LD_RUN_PATH
14218       ;;
14219     siemens)
14220       need_lib_prefix=no
14221       ;;
14222     motorola)
14223       need_lib_prefix=no
14224       need_version=no
14225       shlibpath_overrides_runpath=no
14226       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14227       ;;
14228   esac
14229   ;;
14230
14231 sysv4*MP*)
14232   if test -d /usr/nec ;then
14233     version_type=linux
14234     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14235     soname_spec='$libname${shared_ext}.$major'
14236     shlibpath_var=LD_LIBRARY_PATH
14237   fi
14238   ;;
14239
14240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14241   version_type=freebsd-elf
14242   need_lib_prefix=no
14243   need_version=no
14244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14245   soname_spec='${libname}${release}${shared_ext}$major'
14246   shlibpath_var=LD_LIBRARY_PATH
14247   shlibpath_overrides_runpath=yes
14248   hardcode_into_libs=yes
14249   if test "$with_gnu_ld" = yes; then
14250     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14251   else
14252     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14253     case $host_os in
14254       sco3.2v5*)
14255         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14256         ;;
14257     esac
14258   fi
14259   sys_lib_dlsearch_path_spec='/usr/lib'
14260   ;;
14261
14262 tpf*)
14263   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14264   version_type=linux
14265   need_lib_prefix=no
14266   need_version=no
14267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268   shlibpath_var=LD_LIBRARY_PATH
14269   shlibpath_overrides_runpath=no
14270   hardcode_into_libs=yes
14271   ;;
14272
14273 uts4*)
14274   version_type=linux
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   ;;
14279
14280 *)
14281   dynamic_linker=no
14282   ;;
14283 esac
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14285 $as_echo "$dynamic_linker" >&6; }
14286 test "$dynamic_linker" = no && can_build_shared=no
14287
14288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14289 if test "$GCC" = yes; then
14290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14291 fi
14292
14293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14294   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14295 fi
14296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14297   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14298 fi
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14337 hardcode_action_FC=
14338 if test -n "$hardcode_libdir_flag_spec_FC" ||
14339    test -n "$runpath_var_FC" ||
14340    test "X$hardcode_automatic_FC" = "Xyes" ; then
14341
14342   # We can hardcode non-existent directories.
14343   if test "$hardcode_direct_FC" != no &&
14344      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14345      # have to relink, otherwise we might link with an installed library
14346      # when we should be linking with a yet-to-be-installed one
14347      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14348      test "$hardcode_minus_L_FC" != no; then
14349     # Linking always hardcodes the temporary library directory.
14350     hardcode_action_FC=relink
14351   else
14352     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14353     hardcode_action_FC=immediate
14354   fi
14355 else
14356   # We cannot hardcode anything, or else we can only hardcode existing
14357   # directories.
14358   hardcode_action_FC=unsupported
14359 fi
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14361 $as_echo "$hardcode_action_FC" >&6; }
14362
14363 if test "$hardcode_action_FC" = relink ||
14364    test "$inherit_rpath_FC" = yes; then
14365   # Fast installation is not supported
14366   enable_fast_install=no
14367 elif test "$shlibpath_overrides_runpath" = yes ||
14368      test "$enable_shared" = no; then
14369   # Fast installation is not necessary
14370   enable_fast_install=needless
14371 fi
14372
14373
14374
14375
14376
14377
14378
14379   fi # test -n "$compiler"
14380
14381   GCC=$lt_save_GCC
14382   CC="$lt_save_CC"
14383 fi # test "$_lt_disable_FC" != yes
14384
14385 ac_ext=c
14386 ac_cpp='$CPP $CPPFLAGS'
14387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14390
14391
14392 FCFLAGS="$FCFLAGS -Wall"
14393
14394 # For libtool versioning info, format is CURRENT:REVISION:AGE
14395 libtool_VERSION=1:0:0
14396
14397
14398 # Check header files.
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14400 $as_echo_n "checking for ANSI C header files... " >&6; }
14401 if test "${ac_cv_header_stdc+set}" = set; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406 #include <stdlib.h>
14407 #include <stdarg.h>
14408 #include <string.h>
14409 #include <float.h>
14410
14411 int
14412 main ()
14413 {
14414
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420   ac_cv_header_stdc=yes
14421 else
14422   ac_cv_header_stdc=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425
14426 if test $ac_cv_header_stdc = yes; then
14427   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h.  */
14430 #include <string.h>
14431
14432 _ACEOF
14433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14434   $EGREP "memchr" >/dev/null 2>&1; then :
14435
14436 else
14437   ac_cv_header_stdc=no
14438 fi
14439 rm -f conftest*
14440
14441 fi
14442
14443 if test $ac_cv_header_stdc = yes; then
14444   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h.  */
14447 #include <stdlib.h>
14448
14449 _ACEOF
14450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14451   $EGREP "free" >/dev/null 2>&1; then :
14452
14453 else
14454   ac_cv_header_stdc=no
14455 fi
14456 rm -f conftest*
14457
14458 fi
14459
14460 if test $ac_cv_header_stdc = yes; then
14461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14462   if test "$cross_compiling" = yes; then :
14463   :
14464 else
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 #include <ctype.h>
14468 #include <stdlib.h>
14469 #if ((' ' & 0x0FF) == 0x020)
14470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14472 #else
14473 # define ISLOWER(c) \
14474                    (('a' <= (c) && (c) <= 'i') \
14475                      || ('j' <= (c) && (c) <= 'r') \
14476                      || ('s' <= (c) && (c) <= 'z'))
14477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14478 #endif
14479
14480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14481 int
14482 main ()
14483 {
14484   int i;
14485   for (i = 0; i < 256; i++)
14486     if (XOR (islower (i), ISLOWER (i))
14487         || toupper (i) != TOUPPER (i))
14488       return 2;
14489   return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_run "$LINENO"; then :
14493
14494 else
14495   ac_cv_header_stdc=no
14496 fi
14497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14498   conftest.$ac_objext conftest.beam conftest.$ac_ext
14499 fi
14500
14501 fi
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14504 $as_echo "$ac_cv_header_stdc" >&6; }
14505 if test $ac_cv_header_stdc = yes; then
14506
14507 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14508
14509 fi
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14512 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14513 if test "${ac_cv_header_time+set}" = set; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h.  */
14518 #include <sys/types.h>
14519 #include <sys/time.h>
14520 #include <time.h>
14521
14522 int
14523 main ()
14524 {
14525 if ((struct tm *) 0)
14526 return 0;
14527   ;
14528   return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532   ac_cv_header_time=yes
14533 else
14534   ac_cv_header_time=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14539 $as_echo "$ac_cv_header_time" >&6; }
14540 if test $ac_cv_header_time = yes; then
14541
14542 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14543
14544 fi
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14547 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14548 if test "${gcc_cv_header_string+set}" = set; then :
14549   $as_echo_n "(cached) " >&6
14550 else
14551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h.  */
14553 #include <string.h>
14554 #include <strings.h>
14555 int
14556 main ()
14557 {
14558
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 if ac_fn_c_try_compile "$LINENO"; then :
14564   gcc_cv_header_string=yes
14565 else
14566   gcc_cv_header_string=no
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14571 $as_echo "$gcc_cv_header_string" >&6; }
14572 if test $gcc_cv_header_string = yes; then
14573
14574 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14575
14576 fi
14577
14578 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14579 do :
14580   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14581 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14582 eval as_val=\$$as_ac_Header
14583    if test "x$as_val" = x""yes; then :
14584   cat >>confdefs.h <<_ACEOF
14585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14586 _ACEOF
14587
14588 fi
14589
14590 done
14591
14592
14593
14594
14595 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14596
14597 acx_cv_header_stdint=stddef.h
14598 acx_cv_header_stdint_kind="(already complete)"
14599 for i in stdint.h $inttype_headers; do
14600   unset ac_cv_type_uintptr_t
14601   unset ac_cv_type_uintmax_t
14602   unset ac_cv_type_int_least32_t
14603   unset ac_cv_type_int_fast32_t
14604   unset ac_cv_type_uint64_t
14605   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14606   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14607 #include <$i>
14608 "
14609 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14610   acx_cv_header_stdint=$i
14611 else
14612   continue
14613 fi
14614
14615   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14616 #include <$i>
14617 "
14618 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14619
14620 else
14621   acx_cv_header_stdint_kind="(mostly complete)"
14622 fi
14623
14624   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14625 #include <$i>
14626 "
14627 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14628
14629 else
14630   acx_cv_header_stdint_kind="(mostly complete)"
14631 fi
14632
14633   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14634 #include <$i>
14635 "
14636 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14637
14638 else
14639   acx_cv_header_stdint_kind="(mostly complete)"
14640 fi
14641
14642   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14643 #include <$i>
14644 "
14645 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14646
14647 else
14648   acx_cv_header_stdint_kind="(lacks uint64_t)"
14649 fi
14650
14651   break
14652 done
14653 if test "$acx_cv_header_stdint" = stddef.h; then
14654   acx_cv_header_stdint_kind="(lacks uintmax_t)"
14655   for i in stdint.h $inttype_headers; do
14656     unset ac_cv_type_uintptr_t
14657     unset ac_cv_type_uint32_t
14658     unset ac_cv_type_uint64_t
14659     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14660     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14661 #include <$i>
14662 "
14663 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14664   acx_cv_header_stdint=$i
14665 else
14666   continue
14667 fi
14668
14669     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14670 #include <$i>
14671 "
14672 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14673
14674 fi
14675
14676     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14677 #include <$i>
14678 "
14679 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14680
14681 fi
14682
14683     break
14684   done
14685 fi
14686 if test "$acx_cv_header_stdint" = stddef.h; then
14687   acx_cv_header_stdint_kind="(u_intXX_t style)"
14688   for i in sys/types.h $inttype_headers; do
14689     unset ac_cv_type_u_int32_t
14690     unset ac_cv_type_u_int64_t
14691     $as_echo_n "looking for u_intXX_t types in $i, " >&6
14692     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14693 #include <$i>
14694 "
14695 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14696   acx_cv_header_stdint=$i
14697 else
14698   continue
14699 fi
14700
14701     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14702 #include <$i>
14703 "
14704 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14705
14706 fi
14707
14708     break
14709   done
14710 fi
14711 if test "$acx_cv_header_stdint" = stddef.h; then
14712   acx_cv_header_stdint_kind="(using manual detection)"
14713 fi
14714
14715 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14716 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14717 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14718 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14719 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14720
14721 # ----------------- Summarize what we found so far
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14724 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14725
14726 case `$as_basename -- gstdint.h ||
14727 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14728          Xgstdint.h : 'X\(//\)$' \| \
14729          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14730 $as_echo X/gstdint.h |
14731     sed '/^.*\/\([^/][^/]*\)\/*$/{
14732             s//\1/
14733             q
14734           }
14735           /^X\/\(\/\/\)$/{
14736             s//\1/
14737             q
14738           }
14739           /^X\/\(\/\).*/{
14740             s//\1/
14741             q
14742           }
14743           s/.*/./; q'` in
14744   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14745 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14746   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14747 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14748   *) ;;
14749 esac
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14752 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14753
14754 # ----------------- done included file, check C basic types --------
14755
14756 # Lacking an uintptr_t?  Test size of void *
14757 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14758   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14761 # This bug is HP SR number 8606223364.
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14763 $as_echo_n "checking size of void *... " >&6; }
14764 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14765   $as_echo_n "(cached) " >&6
14766 else
14767   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14768
14769 else
14770   if test "$ac_cv_type_void_p" = yes; then
14771      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14773 { as_fn_set_status 77
14774 as_fn_error "cannot compute sizeof (void *)
14775 See \`config.log' for more details." "$LINENO" 5; }; }
14776    else
14777      ac_cv_sizeof_void_p=0
14778    fi
14779 fi
14780
14781 fi
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14783 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14784
14785
14786
14787 cat >>confdefs.h <<_ACEOF
14788 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14789 _ACEOF
14790
14791  ;;
14792 esac
14793
14794 # Lacking an uint64_t?  Test size of long
14795 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14796   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14799 # This bug is HP SR number 8606223364.
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14801 $as_echo_n "checking size of long... " >&6; }
14802 if test "${ac_cv_sizeof_long+set}" = set; then :
14803   $as_echo_n "(cached) " >&6
14804 else
14805   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14806
14807 else
14808   if test "$ac_cv_type_long" = yes; then
14809      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14811 { as_fn_set_status 77
14812 as_fn_error "cannot compute sizeof (long)
14813 See \`config.log' for more details." "$LINENO" 5; }; }
14814    else
14815      ac_cv_sizeof_long=0
14816    fi
14817 fi
14818
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14821 $as_echo "$ac_cv_sizeof_long" >&6; }
14822
14823
14824
14825 cat >>confdefs.h <<_ACEOF
14826 #define SIZEOF_LONG $ac_cv_sizeof_long
14827 _ACEOF
14828
14829  ;;
14830 esac
14831
14832 if test $acx_cv_header_stdint = stddef.h; then
14833   # Lacking a good header?  Test size of everything and deduce all types.
14834   # The cast to long int works around a bug in the HP C Compiler
14835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14837 # This bug is HP SR number 8606223364.
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14839 $as_echo_n "checking size of int... " >&6; }
14840 if test "${ac_cv_sizeof_int+set}" = set; then :
14841   $as_echo_n "(cached) " >&6
14842 else
14843   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14844
14845 else
14846   if test "$ac_cv_type_int" = yes; then
14847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14849 { as_fn_set_status 77
14850 as_fn_error "cannot compute sizeof (int)
14851 See \`config.log' for more details." "$LINENO" 5; }; }
14852    else
14853      ac_cv_sizeof_int=0
14854    fi
14855 fi
14856
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14859 $as_echo "$ac_cv_sizeof_int" >&6; }
14860
14861
14862
14863 cat >>confdefs.h <<_ACEOF
14864 #define SIZEOF_INT $ac_cv_sizeof_int
14865 _ACEOF
14866
14867
14868   # The cast to long int works around a bug in the HP C Compiler
14869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14871 # This bug is HP SR number 8606223364.
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14873 $as_echo_n "checking size of short... " >&6; }
14874 if test "${ac_cv_sizeof_short+set}" = set; then :
14875   $as_echo_n "(cached) " >&6
14876 else
14877   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14878
14879 else
14880   if test "$ac_cv_type_short" = yes; then
14881      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14883 { as_fn_set_status 77
14884 as_fn_error "cannot compute sizeof (short)
14885 See \`config.log' for more details." "$LINENO" 5; }; }
14886    else
14887      ac_cv_sizeof_short=0
14888    fi
14889 fi
14890
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14893 $as_echo "$ac_cv_sizeof_short" >&6; }
14894
14895
14896
14897 cat >>confdefs.h <<_ACEOF
14898 #define SIZEOF_SHORT $ac_cv_sizeof_short
14899 _ACEOF
14900
14901
14902   # The cast to long int works around a bug in the HP C Compiler
14903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14905 # This bug is HP SR number 8606223364.
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14907 $as_echo_n "checking size of char... " >&6; }
14908 if test "${ac_cv_sizeof_char+set}" = set; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14912
14913 else
14914   if test "$ac_cv_type_char" = yes; then
14915      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14917 { as_fn_set_status 77
14918 as_fn_error "cannot compute sizeof (char)
14919 See \`config.log' for more details." "$LINENO" 5; }; }
14920    else
14921      ac_cv_sizeof_char=0
14922    fi
14923 fi
14924
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14927 $as_echo "$ac_cv_sizeof_char" >&6; }
14928
14929
14930
14931 cat >>confdefs.h <<_ACEOF
14932 #define SIZEOF_CHAR $ac_cv_sizeof_char
14933 _ACEOF
14934
14935
14936
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14938 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14939   case "$ac_cv_sizeof_char" in
14940     1) acx_cv_type_int8_t=char ;;
14941     *) { as_fn_set_status please report a bug
14942 as_fn_error "no 8-bit type" "$LINENO" 5; }
14943   esac
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14945 $as_echo "$acx_cv_type_int8_t" >&6; }
14946
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14948 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14949   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14950     2:*) acx_cv_type_int16_t=int ;;
14951     *:2) acx_cv_type_int16_t=short ;;
14952     *) { as_fn_set_status please report a bug
14953 as_fn_error "no 16-bit type" "$LINENO" 5; }
14954   esac
14955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14956 $as_echo "$acx_cv_type_int16_t" >&6; }
14957
14958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14959 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14960   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14961     4:*) acx_cv_type_int32_t=int ;;
14962     *:4) acx_cv_type_int32_t=long ;;
14963     *) { as_fn_set_status please report a bug
14964 as_fn_error "no 32-bit type" "$LINENO" 5; }
14965   esac
14966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14967 $as_echo "$acx_cv_type_int32_t" >&6; }
14968 fi
14969
14970 # These tests are here to make the output prettier
14971
14972 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14973   case "$ac_cv_sizeof_long" in
14974     8) acx_cv_type_int64_t=long ;;
14975   esac
14976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14977 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14979 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14980 fi
14981
14982 # Now we can use the above types
14983
14984 if test "$ac_cv_type_uintptr_t" != yes; then
14985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14986 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14987   case $ac_cv_sizeof_void_p in
14988     2) acx_cv_type_intptr_t=int16_t ;;
14989     4) acx_cv_type_intptr_t=int32_t ;;
14990     8) acx_cv_type_intptr_t=int64_t ;;
14991     *) { as_fn_set_status please report a bug
14992 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14993   esac
14994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14995 $as_echo "$acx_cv_type_intptr_t" >&6; }
14996 fi
14997
14998 # ----------------- done all checks, emit header -------------
14999 ac_config_commands="$ac_config_commands gstdint.h"
15000
15001
15002
15003
15004 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
15005 # In case the pthread.h system header is not found, this test will fail.
15006 XPCFLAGS=""
15007 CFLAGS="$CFLAGS -pthread"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h.  */
15010 #include <pthread.h>
15011    void *g(void *d) { return NULL; }
15012 int
15013 main ()
15014 {
15015 pthread_t t; pthread_create(&t,NULL,g,NULL);
15016   ;
15017   return 0;
15018 }
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15021   XPCFLAGS=" -Wc,-pthread"
15022 else
15023   CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h.  */
15026 #include <pthread.h>
15027      void *g(void *d) { return NULL; }
15028 int
15029 main ()
15030 {
15031 pthread_t t; pthread_create(&t,NULL,g,NULL);
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 if ac_fn_c_try_link "$LINENO"; then :
15037
15038 else
15039   as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15040 fi
15041 rm -f core conftest.err conftest.$ac_objext \
15042     conftest$ac_exeext conftest.$ac_ext
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext \
15045     conftest$ac_exeext conftest.$ac_ext
15046
15047 # Check for functions needed.
15048 for ac_func in getloadavg clock_gettime strtoull
15049 do :
15050   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15052 eval as_val=\$$as_ac_var
15053    if test "x$as_val" = x""yes; then :
15054   cat >>confdefs.h <<_ACEOF
15055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15056 _ACEOF
15057
15058 fi
15059 done
15060
15061
15062 # Check for broken semaphore implementation on darwin.
15063 # sem_init returns: sem_init error: Function not implemented.
15064 case "$host" in
15065   *-darwin*)
15066
15067 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15068
15069     ;;
15070 esac
15071
15072  # Check whether --enable-linux-futex was given.
15073 if test "${enable_linux_futex+set}" = set; then :
15074   enableval=$enable_linux_futex;
15075       case "$enableval" in
15076        yes|no|default) ;;
15077        *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15078                           esac
15079
15080 else
15081   enable_linux_futex=default
15082 fi
15083
15084
15085 case "$target" in
15086   *-linux*)
15087     case "$enable_linux_futex" in
15088       default)
15089         # If headers don't have gettid/futex syscalls definition, then
15090         # default to no, otherwise there will be compile time failures.
15091         # Otherwise, default to yes.  If we don't detect we are
15092         # compiled/linked against NPTL and not cross-compiling, check
15093         # if programs are run by default against NPTL and if not, issue
15094         # a warning.
15095         enable_linux_futex=no
15096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h.  */
15098 #include <sys/syscall.h>
15099            int lk;
15100 int
15101 main ()
15102 {
15103 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"; then :
15109   save_LIBS="$LIBS"
15110            LIBS="-lpthread $LIBS"
15111            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h.  */
15113 #ifndef _GNU_SOURCE
15114              #define _GNU_SOURCE 1
15115              #endif
15116              #include <pthread.h>
15117              pthread_t th; void *status;
15118 int
15119 main ()
15120 {
15121 pthread_tryjoin_np (th, &status);
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_c_try_link "$LINENO"; then :
15127   enable_linux_futex=yes
15128 else
15129   if test x$cross_compiling = xno; then
15130                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15131                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15132                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15133 If so, please configure with --disable-linux-futex" >&5
15134 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15135 If so, please configure with --disable-linux-futex" >&2;}
15136                fi
15137              fi
15138              enable_linux_futex=yes
15139 fi
15140 rm -f core conftest.err conftest.$ac_objext \
15141     conftest$ac_exeext conftest.$ac_ext
15142            LIBS="$save_LIBS"
15143 fi
15144 rm -f core conftest.err conftest.$ac_objext \
15145     conftest$ac_exeext conftest.$ac_ext
15146         ;;
15147       yes)
15148         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h.  */
15150 #include <sys/syscall.h>
15151            int lk;
15152 int
15153 main ()
15154 {
15155 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15156   ;
15157   return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_c_try_link "$LINENO"; then :
15161
15162 else
15163   as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15164 fi
15165 rm -f core conftest.err conftest.$ac_objext \
15166     conftest$ac_exeext conftest.$ac_ext
15167         ;;
15168     esac
15169     ;;
15170   *)
15171     enable_linux_futex=no
15172     ;;
15173 esac
15174 if test x$enable_linux_futex = xyes; then
15175   :
15176 fi
15177
15178
15179 # Check for pthread_{,attr_}[sg]etaffinity_np.
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h.  */
15182 #define _GNU_SOURCE
15183    #include <pthread.h>
15184 int
15185 main ()
15186 {
15187 cpu_set_t cpuset;
15188    pthread_attr_t attr;
15189    pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15190    if (CPU_ISSET (0, &cpuset))
15191      CPU_SET (1, &cpuset);
15192    else
15193      CPU_ZERO (&cpuset);
15194    pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15195    pthread_attr_init (&attr);
15196    pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15197    pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 if ac_fn_c_try_link "$LINENO"; then :
15203
15204 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15205
15206 fi
15207 rm -f core conftest.err conftest.$ac_objext \
15208     conftest$ac_exeext conftest.$ac_ext
15209
15210 # At least for glibc, clock_gettime is in librt.  But don't pull that
15211 # in if it still doesn't give us the function we want.
15212 if test $ac_cv_func_clock_gettime = no; then
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15214 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15215 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   ac_check_lib_save_LIBS=$LIBS
15219 LIBS="-lrt  $LIBS"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h.  */
15222
15223 /* Override any GCC internal prototype to avoid an error.
15224    Use char because int might match the return type of a GCC
15225    builtin and then its argument prototype would still apply.  */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 char clock_gettime ();
15230 int
15231 main ()
15232 {
15233 return clock_gettime ();
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 if ac_fn_c_try_link "$LINENO"; then :
15239   ac_cv_lib_rt_clock_gettime=yes
15240 else
15241   ac_cv_lib_rt_clock_gettime=no
15242 fi
15243 rm -f core conftest.err conftest.$ac_objext \
15244     conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15248 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15249 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15250   LIBS="-lrt $LIBS"
15251
15252 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15253
15254 fi
15255
15256 fi
15257
15258 # See if we support thread-local storage.
15259
15260
15261    # Check whether --enable-tls was given.
15262 if test "${enable_tls+set}" = set; then :
15263   enableval=$enable_tls;
15264       case "$enableval" in
15265        yes|no) ;;
15266        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15267       esac
15268
15269 else
15270   enable_tls=yes
15271 fi
15272
15273
15274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15275 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15276 if test "${gcc_cv_have_tls+set}" = set; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279
15280     if test "$cross_compiling" = yes; then :
15281                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h.  */
15283 __thread int a; int b; int main() { return a = b; }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286   chktls_save_LDFLAGS="$LDFLAGS"
15287                           case $host in
15288             *-*-linux*)
15289               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15290               ;;
15291           esac
15292           chktls_save_CFLAGS="$CFLAGS"
15293           CFLAGS="-fPIC $CFLAGS"
15294                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h.  */
15296 int f() { return 0; }
15297 _ACEOF
15298 if ac_fn_c_try_link "$LINENO"; then :
15299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h.  */
15301 __thread int a; int b; int f() { return a = b; }
15302 _ACEOF
15303 if ac_fn_c_try_link "$LINENO"; then :
15304   gcc_cv_have_tls=yes
15305 else
15306   gcc_cv_have_tls=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309     conftest$ac_exeext conftest.$ac_ext
15310 else
15311   gcc_cv_have_tls=yes
15312 fi
15313 rm -f core conftest.err conftest.$ac_objext \
15314     conftest$ac_exeext conftest.$ac_ext
15315           CFLAGS="$chktls_save_CFLAGS"
15316           LDFLAGS="$chktls_save_LDFLAGS"
15317 else
15318   gcc_cv_have_tls=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext \
15321     conftest$ac_exeext conftest.$ac_ext
15322
15323
15324 else
15325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h.  */
15327 __thread int a; int b; int main() { return a = b; }
15328 _ACEOF
15329 if ac_fn_c_try_run "$LINENO"; then :
15330                       chktls_save_LDFLAGS="$LDFLAGS"
15331       LDFLAGS="-static $LDFLAGS"
15332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334 int main() { return 0; }
15335 _ACEOF
15336 if ac_fn_c_try_link "$LINENO"; then :
15337   if test "$cross_compiling" = yes; then :
15338   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15340 as_fn_error "cannot run test program while cross compiling
15341 See \`config.log' for more details." "$LINENO" 5; }
15342 else
15343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h.  */
15345 __thread int a; int b; int main() { return a = b; }
15346 _ACEOF
15347 if ac_fn_c_try_run "$LINENO"; then :
15348   gcc_cv_have_tls=yes
15349 else
15350   gcc_cv_have_tls=no
15351 fi
15352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15353   conftest.$ac_objext conftest.beam conftest.$ac_ext
15354 fi
15355
15356 else
15357   gcc_cv_have_tls=yes
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext \
15360     conftest$ac_exeext conftest.$ac_ext
15361       LDFLAGS="$chktls_save_LDFLAGS"
15362       if test $gcc_cv_have_tls = yes; then
15363                                                 chktls_save_CFLAGS="$CFLAGS"
15364         thread_CFLAGS=failed
15365         for flag in '' '-pthread' '-lpthread'; do
15366           CFLAGS="$flag $chktls_save_CFLAGS"
15367           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h.  */
15369 #include <pthread.h>
15370                 void *g(void *d) { return NULL; }
15371 int
15372 main ()
15373 {
15374 pthread_t t; pthread_create(&t,NULL,g,NULL);
15375   ;
15376   return 0;
15377 }
15378 _ACEOF
15379 if ac_fn_c_try_link "$LINENO"; then :
15380   thread_CFLAGS="$flag"
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383     conftest$ac_exeext conftest.$ac_ext
15384           if test "X$thread_CFLAGS" != Xfailed; then
15385             break
15386           fi
15387         done
15388         CFLAGS="$chktls_save_CFLAGS"
15389         if test "X$thread_CFLAGS" != Xfailed; then
15390           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15391           if test "$cross_compiling" = yes; then :
15392   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15394 as_fn_error "cannot run test program while cross compiling
15395 See \`config.log' for more details." "$LINENO" 5; }
15396 else
15397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h.  */
15399 #include <pthread.h>
15400                 __thread int a;
15401                 static int *a_in_other_thread;
15402                 static void *
15403                 thread_func (void *arg)
15404                 {
15405                   a_in_other_thread = &a;
15406                   return (void *)0;
15407                 }
15408 int
15409 main ()
15410 {
15411 pthread_t thread;
15412                 void *thread_retval;
15413                 int *a_in_main_thread;
15414                 if (pthread_create (&thread, (pthread_attr_t *)0,
15415                                     thread_func, (void *)0))
15416                   return 0;
15417                 a_in_main_thread = &a;
15418                 if (pthread_join (thread, &thread_retval))
15419                   return 0;
15420                 return (a_in_other_thread == a_in_main_thread);
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_run "$LINENO"; then :
15426   gcc_cv_have_tls=yes
15427 else
15428   gcc_cv_have_tls=no
15429 fi
15430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15431   conftest.$ac_objext conftest.beam conftest.$ac_ext
15432 fi
15433
15434           CFLAGS="$chktls_save_CFLAGS"
15435         fi
15436       fi
15437 else
15438   gcc_cv_have_tls=no
15439 fi
15440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15441   conftest.$ac_objext conftest.beam conftest.$ac_ext
15442 fi
15443
15444 fi
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15446 $as_echo "$gcc_cv_have_tls" >&6; }
15447   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15448
15449 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15450
15451   fi
15452
15453 # See what sort of export controls are availible.
15454
15455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15456 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15457 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15458   $as_echo_n "(cached) " >&6
15459 else
15460
15461   save_CFLAGS="$CFLAGS"
15462   CFLAGS="$CFLAGS -Werror"
15463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h.  */
15465 void __attribute__((visibility("hidden"))) foo(void) { }
15466 int
15467 main ()
15468 {
15469
15470   ;
15471   return 0;
15472 }
15473 _ACEOF
15474 if ac_fn_c_try_compile "$LINENO"; then :
15475   libgomp_cv_have_attribute_visibility=yes
15476 else
15477   libgomp_cv_have_attribute_visibility=no
15478 fi
15479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480   CFLAGS="$save_CFLAGS"
15481 fi
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15483 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15484   if test $libgomp_cv_have_attribute_visibility = yes; then
15485
15486 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15487
15488   fi
15489
15490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15491 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15492 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15493   $as_echo_n "(cached) " >&6
15494 else
15495
15496   save_CFLAGS="$CFLAGS"
15497   CFLAGS="$CFLAGS -Werror"
15498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500 void __attribute__((dllexport)) foo(void) { }
15501 int
15502 main ()
15503 {
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"; then :
15510   libgomp_cv_have_attribute_dllexport=yes
15511 else
15512   libgomp_cv_have_attribute_dllexport=no
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515   CFLAGS="$save_CFLAGS"
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15518 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15519   if test $libgomp_cv_have_attribute_dllexport = yes; then
15520
15521 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15522
15523   fi
15524
15525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15526 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15527 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530
15531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h.  */
15533
15534 void foo(void) { }
15535 extern void bar(void) __attribute__((alias("foo")));
15536 int
15537 main ()
15538 {
15539 bar();
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"; then :
15545   libgomp_cv_have_attribute_alias=yes
15546 else
15547   libgomp_cv_have_attribute_alias=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext \
15550     conftest$ac_exeext conftest.$ac_ext
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15553 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15554   if test $libgomp_cv_have_attribute_alias = yes; then
15555
15556 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15557
15558   fi
15559
15560
15561 # Check whether --with-gnu-ld was given.
15562 if test "${with_gnu_ld+set}" = set; then :
15563   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15564 else
15565   with_gnu_ld=no
15566 fi
15567
15568 ac_prog=ld
15569 if test "$GCC" = yes; then
15570   # Check if gcc -print-prog-name=ld gives a path.
15571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15572 $as_echo_n "checking for ld used by $CC... " >&6; }
15573   case $host in
15574   *-*-mingw*)
15575     # gcc leaves a trailing carriage return which upsets mingw
15576     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15577   *)
15578     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15579   esac
15580   case $ac_prog in
15581     # Accept absolute paths.
15582     [\\/]* | ?:[\\/]*)
15583       re_direlt='/[^/][^/]*/\.\./'
15584       # Canonicalize the pathname of ld
15585       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15586       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15587         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15588       done
15589       test -z "$LD" && LD="$ac_prog"
15590       ;;
15591   "")
15592     # If it fails, then pretend we aren't using GCC.
15593     ac_prog=ld
15594     ;;
15595   *)
15596     # If it is relative, then search for the first ld in PATH.
15597     with_gnu_ld=unknown
15598     ;;
15599   esac
15600 elif test "$with_gnu_ld" = yes; then
15601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15602 $as_echo_n "checking for GNU ld... " >&6; }
15603 else
15604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15605 $as_echo_n "checking for non-GNU ld... " >&6; }
15606 fi
15607 if test "${lt_cv_path_LD+set}" = set; then :
15608   $as_echo_n "(cached) " >&6
15609 else
15610   if test -z "$LD"; then
15611   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15612   for ac_dir in $PATH; do
15613     IFS="$lt_save_ifs"
15614     test -z "$ac_dir" && ac_dir=.
15615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15616       lt_cv_path_LD="$ac_dir/$ac_prog"
15617       # Check to see if the program is GNU ld.  I'd rather use --version,
15618       # but apparently some variants of GNU ld only accept -v.
15619       # Break only if it was the GNU/non-GNU ld that we prefer.
15620       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15621       *GNU* | *'with BFD'*)
15622         test "$with_gnu_ld" != no && break
15623         ;;
15624       *)
15625         test "$with_gnu_ld" != yes && break
15626         ;;
15627       esac
15628     fi
15629   done
15630   IFS="$lt_save_ifs"
15631 else
15632   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15633 fi
15634 fi
15635
15636 LD="$lt_cv_path_LD"
15637 if test -n "$LD"; then
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15639 $as_echo "$LD" >&6; }
15640 else
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15643 fi
15644 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15647 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15651 case `$LD -v 2>&1 </dev/null` in
15652 *GNU* | *'with BFD'*)
15653   lt_cv_prog_gnu_ld=yes
15654   ;;
15655 *)
15656   lt_cv_prog_gnu_ld=no
15657   ;;
15658 esac
15659 fi
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15662 with_gnu_ld=$lt_cv_prog_gnu_ld
15663
15664
15665
15666
15667
15668
15669
15670   # If we're not using GNU ld, then there's no point in even trying these
15671   # tests.  Check for that first.  We should have already tested for gld
15672   # by now (in libtool), but require it now just to be safe...
15673   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15674   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15675
15676
15677
15678   # The name set by libtool depends on the version of libtool.  Shame on us
15679   # for depending on an impl detail, but c'est la vie.  Older versions used
15680   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15681   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15682   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15683   # set (hence we're using an older libtool), then set it.
15684   if test x${with_gnu_ld+set} != xset; then
15685     if test x${ac_cv_prog_gnu_ld+set} != xset; then
15686       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15687       with_gnu_ld=no
15688     else
15689       with_gnu_ld=$ac_cv_prog_gnu_ld
15690     fi
15691   fi
15692
15693   # Start by getting the version number.  I think the libtool test already
15694   # does some of this, but throws away the result.
15695   libgomp_ld_is_gold=no
15696   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15697     libgomp_ld_is_gold=yes
15698   fi
15699
15700   ldver=`$LD --version 2>/dev/null |
15701          sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15702
15703   libgomp_gnu_ld_version=`echo $ldver | \
15704          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15705
15706   # Set --gc-sections.
15707   if test "$with_gnu_ld" = "notbroken"; then
15708     # GNU ld it is!  Joy and bunny rabbits!
15709
15710     # All these tests are for C++; save the language and the compiler flags.
15711     # Need to do this so that g++ won't try to link in libstdc++
15712     ac_test_CFLAGS="${CFLAGS+set}"
15713     ac_save_CFLAGS="$CFLAGS"
15714     CFLAGS='-x c++  -Wl,--gc-sections'
15715
15716     # Check for -Wl,--gc-sections
15717     # XXX This test is broken at the moment, as symbols required for linking
15718     # are now in libsupc++ (not built yet).  In addition, this test has
15719     # cored on solaris in the past.  In addition, --gc-sections doesn't
15720     # really work at the moment (keeps on discarding used sections, first
15721     # .eh_frame and now some of the glibc sections for iconv).
15722     # Bzzzzt.  Thanks for playing, maybe next time.
15723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15724 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15725     if test "$cross_compiling" = yes; then :
15726   ac_sectionLDflags=yes
15727 else
15728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h.  */
15730
15731      int main(void)
15732      {
15733        try { throw 1; }
15734        catch (...) { };
15735        return 0;
15736      }
15737
15738 _ACEOF
15739 if ac_fn_c_try_run "$LINENO"; then :
15740   ac_sectionLDflags=yes
15741 else
15742   ac_sectionLDflags=no
15743 fi
15744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15745   conftest.$ac_objext conftest.beam conftest.$ac_ext
15746 fi
15747
15748     if test "$ac_test_CFLAGS" = set; then
15749       CFLAGS="$ac_save_CFLAGS"
15750     else
15751       # this is the suspicious part
15752       CFLAGS=''
15753     fi
15754     if test "$ac_sectionLDflags" = "yes"; then
15755       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15756     fi
15757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15758 $as_echo "$ac_sectionLDflags" >&6; }
15759   fi
15760
15761   # Set linker optimization flags.
15762   if test x"$with_gnu_ld" = x"yes"; then
15763     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15764   fi
15765
15766
15767
15768
15769
15770
15771  # Check whether --enable-symvers was given.
15772 if test "${enable_symvers+set}" = set; then :
15773   enableval=$enable_symvers;
15774       case "$enableval" in
15775        yes|no|gnu) ;;
15776        *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15777                           esac
15778
15779 else
15780   enable_symvers=yes
15781 fi
15782
15783
15784
15785 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15786 # don't know enough about $LD to do tricks...
15787
15788 # FIXME  The following test is too strict, in theory.
15789 if test $enable_shared = no ||
15790         test "x$LD" = x ||
15791         test x$libgomp_gnu_ld_version = x; then
15792   enable_symvers=no
15793 fi
15794
15795 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15796 if test $enable_symvers != no; then
15797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15798 $as_echo_n "checking for shared libgcc... " >&6; }
15799   ac_save_CFLAGS="$CFLAGS"
15800   CFLAGS=' -lgcc_s'
15801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h.  */
15803
15804 int
15805 main ()
15806 {
15807 return 0;
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 if ac_fn_c_try_link "$LINENO"; then :
15813   libgomp_shared_libgcc=yes
15814 else
15815   libgomp_shared_libgcc=no
15816 fi
15817 rm -f core conftest.err conftest.$ac_objext \
15818     conftest$ac_exeext conftest.$ac_ext
15819   CFLAGS="$ac_save_CFLAGS"
15820   if test $libgomp_shared_libgcc = no; then
15821     cat > conftest.c <<EOF
15822 int main (void) { return 0; }
15823 EOF
15824     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15825                              -shared -shared-libgcc -o conftest.so \
15826                              conftest.c -v 2>&1 >/dev/null \
15827                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15828     rm -f conftest.c conftest.so
15829     if test x${libgomp_libgcc_s_suffix+set} = xset; then
15830       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15831       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h.  */
15833
15834 int
15835 main ()
15836 {
15837 return 0;
15838   ;
15839   return 0;
15840 }
15841 _ACEOF
15842 if ac_fn_c_try_link "$LINENO"; then :
15843   libgomp_shared_libgcc=yes
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext \
15846     conftest$ac_exeext conftest.$ac_ext
15847       CFLAGS="$ac_save_CFLAGS"
15848     fi
15849   fi
15850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15851 $as_echo "$libgomp_shared_libgcc" >&6; }
15852 fi
15853
15854 # For GNU ld, we need at least this version.  The format is described in
15855 # LIBGOMP_CHECK_LINKER_FEATURES above.
15856 libgomp_min_gnu_ld_version=21400
15857 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15858
15859 # Check to see if unspecified "yes" value can win, given results above.
15860 # Change "yes" into either "no" or a style name.
15861 if test $enable_symvers = yes; then
15862   if test $with_gnu_ld = yes &&
15863      test $libgomp_shared_libgcc = yes;
15864   then
15865     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15866       enable_symvers=gnu
15867     elif test $libgomp_ld_is_gold = yes ; then
15868       enable_symvers=gnu
15869     else
15870       # The right tools, the right setup, but too old.  Fallbacks?
15871       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15872 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15873       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15874 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15875       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15876 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15877       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15878 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15879       if test $libgomp_gnu_ld_version -ge 21200 ; then
15880         # Globbing fix is present, proper block support is not.
15881                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15882 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15883         enable_symvers=no
15884       else
15885         # 2.11 or older.
15886         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15887 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15888         enable_symvers=no
15889       fi
15890     fi
15891   else
15892     # just fail for now
15893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15894 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15896 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15898 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15900 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15901     enable_symvers=no
15902   fi
15903 fi
15904
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15906 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15907 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15908   $as_echo_n "(cached) " >&6
15909 else
15910
15911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h.  */
15913 void foo (void); __asm (".symver foo, bar@SYMVER");
15914 int
15915 main ()
15916 {
15917
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923   libgomp_cv_have_as_symver_directive=yes
15924 else
15925   libgomp_cv_have_as_symver_directive=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15930 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15931 if test $libgomp_cv_have_as_symver_directive = yes; then
15932
15933 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15934
15935 fi
15936
15937  if test $enable_symvers != no; then
15938   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15939   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15940 else
15941   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15942   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15943 fi
15944
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15946 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15947
15948
15949 if test $enable_symvers = gnu; then
15950
15951 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15952
15953 fi
15954
15955 # Get target configury.
15956 . ${srcdir}/configure.tgt
15957 CFLAGS="$save_CFLAGS $XCFLAGS"
15958
15959 # Check for __sync_val_compare_and_swap, but only after the target has
15960 # had a chance to set XCFLAGS.
15961
15962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15963 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15964 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967
15968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h.  */
15970
15971 int
15972 main ()
15973 {
15974 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 if ac_fn_c_try_link "$LINENO"; then :
15980   libgomp_cv_have_sync_builtins=yes
15981 else
15982   libgomp_cv_have_sync_builtins=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext \
15985     conftest$ac_exeext conftest.$ac_ext
15986 fi
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15988 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15989   if test $libgomp_cv_have_sync_builtins = yes; then
15990
15991 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15992
15993   fi
15994
15995 XCFLAGS="$XCFLAGS$XPCFLAGS"
15996
15997
15998
15999
16000
16001 # Cleanup and exit.
16002 CFLAGS="$save_CFLAGS"
16003 cat >confcache <<\_ACEOF
16004 # This file is a shell script that caches the results of configure
16005 # tests run on this system so they can be shared between configure
16006 # scripts and configure runs, see configure's option --config-cache.
16007 # It is not useful on other systems.  If it contains results you don't
16008 # want to keep, you may remove or edit it.
16009 #
16010 # config.status only pays attention to the cache file if you give it
16011 # the --recheck option to rerun configure.
16012 #
16013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16015 # following values.
16016
16017 _ACEOF
16018
16019 # The following way of writing the cache mishandles newlines in values,
16020 # but we know of no workaround that is simple, portable, and efficient.
16021 # So, we kill variables containing newlines.
16022 # Ultrix sh set writes to stderr and can't be redirected directly,
16023 # and sets the high bit in the cache file unless we assign to the vars.
16024 (
16025   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16026     eval ac_val=\$$ac_var
16027     case $ac_val in #(
16028     *${as_nl}*)
16029       case $ac_var in #(
16030       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16032       esac
16033       case $ac_var in #(
16034       _ | IFS | as_nl) ;; #(
16035       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16036       *) { eval $ac_var=; unset $ac_var;} ;;
16037       esac ;;
16038     esac
16039   done
16040
16041   (set) 2>&1 |
16042     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16043     *${as_nl}ac_space=\ *)
16044       # `set' does not quote correctly, so add quotes: double-quote
16045       # substitution turns \\\\ into \\, and sed turns \\ into \.
16046       sed -n \
16047         "s/'/'\\\\''/g;
16048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16049       ;; #(
16050     *)
16051       # `set' quotes correctly as required by POSIX, so do not add quotes.
16052       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16053       ;;
16054     esac |
16055     sort
16056 ) |
16057   sed '
16058      /^ac_cv_env_/b end
16059      t clear
16060      :clear
16061      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16062      t end
16063      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16064      :end' >>confcache
16065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16066   if test -w "$cache_file"; then
16067     test "x$cache_file" != "x/dev/null" &&
16068       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16069 $as_echo "$as_me: updating cache $cache_file" >&6;}
16070     cat confcache >$cache_file
16071   else
16072     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16074   fi
16075 fi
16076 rm -f confcache
16077
16078 if test ${multilib} = yes; then
16079   multilib_arg="--enable-multilib"
16080 else
16081   multilib_arg=
16082 fi
16083
16084 # Set up the set of libraries that we need to link against for libgomp.
16085 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16086 # which will force linkage against -lpthread (or equivalent for the system).
16087 # That's not 100% ideal, but about the best we can do easily.
16088 if test $enable_shared = yes; then
16089   link_gomp="-lgomp %{static: $LIBS}"
16090 else
16091   link_gomp="-lgomp $LIBS"
16092 fi
16093
16094
16095  if test "$ac_cv_fc_compiler_gnu" = yes; then
16096   USE_FORTRAN_TRUE=
16097   USE_FORTRAN_FALSE='#'
16098 else
16099   USE_FORTRAN_TRUE='#'
16100   USE_FORTRAN_FALSE=
16101 fi
16102
16103
16104 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16105 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16106 # the underscore here and update the PREREQ.  If it doesn't, then we'll
16107 # need to copy this macro to our acinclude.m4.
16108 save_CFLAGS="$CFLAGS"
16109 for i in $config_path; do
16110   if test -f $srcdir/config/$i/omp-lock.h; then
16111     CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16112     break
16113   fi
16114 done
16115
16116 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16117
16118 else
16119   as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16120 fi
16121
16122
16123 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16124
16125 fi
16126
16127
16128 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16129
16130 fi
16131
16132
16133 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16134
16135 fi
16136
16137
16138 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16139
16140 else
16141   as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16142 fi
16143
16144
16145 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16146
16147 fi
16148
16149
16150 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16151
16152 fi
16153
16154
16155 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16156
16157 fi
16158
16159
16160
16161 # If the lock fits in an integer, then arrange for Fortran to use that
16162 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
16163 # Except that we don't have a way at present to multi-lib the installed
16164 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16165 # actual target.
16166 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16167 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16168 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16169   OMP_LOCK_KIND=8
16170 fi
16171 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16172   OMP_NEST_LOCK_KIND=8
16173 fi
16174 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16175 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16176 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16177   OMP_LOCK_25_KIND=8
16178 fi
16179 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16180   OMP_NEST_LOCK_25_KIND=8
16181 fi
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195 CFLAGS="$save_CFLAGS"
16196
16197 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16198
16199 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16200
16201 cat >confcache <<\_ACEOF
16202 # This file is a shell script that caches the results of configure
16203 # tests run on this system so they can be shared between configure
16204 # scripts and configure runs, see configure's option --config-cache.
16205 # It is not useful on other systems.  If it contains results you don't
16206 # want to keep, you may remove or edit it.
16207 #
16208 # config.status only pays attention to the cache file if you give it
16209 # the --recheck option to rerun configure.
16210 #
16211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16213 # following values.
16214
16215 _ACEOF
16216
16217 # The following way of writing the cache mishandles newlines in values,
16218 # but we know of no workaround that is simple, portable, and efficient.
16219 # So, we kill variables containing newlines.
16220 # Ultrix sh set writes to stderr and can't be redirected directly,
16221 # and sets the high bit in the cache file unless we assign to the vars.
16222 (
16223   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16224     eval ac_val=\$$ac_var
16225     case $ac_val in #(
16226     *${as_nl}*)
16227       case $ac_var in #(
16228       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16230       esac
16231       case $ac_var in #(
16232       _ | IFS | as_nl) ;; #(
16233       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16234       *) { eval $ac_var=; unset $ac_var;} ;;
16235       esac ;;
16236     esac
16237   done
16238
16239   (set) 2>&1 |
16240     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16241     *${as_nl}ac_space=\ *)
16242       # `set' does not quote correctly, so add quotes: double-quote
16243       # substitution turns \\\\ into \\, and sed turns \\ into \.
16244       sed -n \
16245         "s/'/'\\\\''/g;
16246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16247       ;; #(
16248     *)
16249       # `set' quotes correctly as required by POSIX, so do not add quotes.
16250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16251       ;;
16252     esac |
16253     sort
16254 ) |
16255   sed '
16256      /^ac_cv_env_/b end
16257      t clear
16258      :clear
16259      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16260      t end
16261      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16262      :end' >>confcache
16263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16264   if test -w "$cache_file"; then
16265     test "x$cache_file" != "x/dev/null" &&
16266       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16267 $as_echo "$as_me: updating cache $cache_file" >&6;}
16268     cat confcache >$cache_file
16269   else
16270     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16272   fi
16273 fi
16274 rm -f confcache
16275
16276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16277 # Let make expand exec_prefix.
16278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16279
16280 DEFS=-DHAVE_CONFIG_H
16281
16282 ac_libobjs=
16283 ac_ltlibobjs=
16284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16285   # 1. Remove the extension, and $U if already installed.
16286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16287   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16289   #    will be set to the directory where LIBOBJS objects are built.
16290   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16291   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16292 done
16293 LIBOBJS=$ac_libobjs
16294
16295 LTLIBOBJS=$ac_ltlibobjs
16296
16297
16298 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16299   as_fn_error "conditional \"GENINSRC\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 fi
16302  if test -n "$EXEEXT"; then
16303   am__EXEEXT_TRUE=
16304   am__EXEEXT_FALSE='#'
16305 else
16306   am__EXEEXT_TRUE='#'
16307   am__EXEEXT_FALSE=
16308 fi
16309
16310 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16311   as_fn_error "conditional \"AMDEP\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 fi
16314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16315   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 fi
16318 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16319   as_fn_error "conditional \"BUILD_INFO\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 fi
16322 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16323   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 fi
16326 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16327   as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 fi
16330 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16331   as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 fi
16334
16335 : ${CONFIG_STATUS=./config.status}
16336 ac_write_fail=0
16337 ac_clean_files_save=$ac_clean_files
16338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16340 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16341 as_write_fail=0
16342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16343 #! $SHELL
16344 # Generated by $as_me.
16345 # Run this file to recreate the current configuration.
16346 # Compiler output produced by configure, useful for debugging
16347 # configure, is in config.log if it exists.
16348
16349 debug=false
16350 ac_cs_recheck=false
16351 ac_cs_silent=false
16352
16353 SHELL=\${CONFIG_SHELL-$SHELL}
16354 export SHELL
16355 _ASEOF
16356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16357 ## -------------------- ##
16358 ## M4sh Initialization. ##
16359 ## -------------------- ##
16360
16361 # Be more Bourne compatible
16362 DUALCASE=1; export DUALCASE # for MKS sh
16363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16364   emulate sh
16365   NULLCMD=:
16366   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16367   # is contrary to our usage.  Disable this feature.
16368   alias -g '${1+"$@"}'='"$@"'
16369   setopt NO_GLOB_SUBST
16370 else
16371   case `(set -o) 2>/dev/null` in #(
16372   *posix*) :
16373     set -o posix ;; #(
16374   *) :
16375      ;;
16376 esac
16377 fi
16378
16379
16380 as_nl='
16381 '
16382 export as_nl
16383 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16384 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16387 # Prefer a ksh shell builtin over an external printf program on Solaris,
16388 # but without wasting forks for bash or zsh.
16389 if test -z "$BASH_VERSION$ZSH_VERSION" \
16390     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16391   as_echo='print -r --'
16392   as_echo_n='print -rn --'
16393 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16394   as_echo='printf %s\n'
16395   as_echo_n='printf %s'
16396 else
16397   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16398     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16399     as_echo_n='/usr/ucb/echo -n'
16400   else
16401     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16402     as_echo_n_body='eval
16403       arg=$1;
16404       case $arg in #(
16405       *"$as_nl"*)
16406         expr "X$arg" : "X\\(.*\\)$as_nl";
16407         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16408       esac;
16409       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16410     '
16411     export as_echo_n_body
16412     as_echo_n='sh -c $as_echo_n_body as_echo'
16413   fi
16414   export as_echo_body
16415   as_echo='sh -c $as_echo_body as_echo'
16416 fi
16417
16418 # The user is always right.
16419 if test "${PATH_SEPARATOR+set}" != set; then
16420   PATH_SEPARATOR=:
16421   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16422     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16423       PATH_SEPARATOR=';'
16424   }
16425 fi
16426
16427
16428 # IFS
16429 # We need space, tab and new line, in precisely that order.  Quoting is
16430 # there to prevent editors from complaining about space-tab.
16431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16432 # splitting by setting IFS to empty value.)
16433 IFS=" ""        $as_nl"
16434
16435 # Find who we are.  Look in the path if we contain no directory separator.
16436 case $0 in #((
16437   *[\\/]* ) as_myself=$0 ;;
16438   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16439 for as_dir in $PATH
16440 do
16441   IFS=$as_save_IFS
16442   test -z "$as_dir" && as_dir=.
16443     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16444   done
16445 IFS=$as_save_IFS
16446
16447      ;;
16448 esac
16449 # We did not find ourselves, most probably we were run as `sh COMMAND'
16450 # in which case we are not to be found in the path.
16451 if test "x$as_myself" = x; then
16452   as_myself=$0
16453 fi
16454 if test ! -f "$as_myself"; then
16455   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16456   exit 1
16457 fi
16458
16459 # Unset variables that we do not need and which cause bugs (e.g. in
16460 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16461 # suppresses any "Segmentation fault" message there.  '((' could
16462 # trigger a bug in pdksh 5.2.14.
16463 for as_var in BASH_ENV ENV MAIL MAILPATH
16464 do eval test x\${$as_var+set} = xset \
16465   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16466 done
16467 PS1='$ '
16468 PS2='> '
16469 PS4='+ '
16470
16471 # NLS nuisances.
16472 LC_ALL=C
16473 export LC_ALL
16474 LANGUAGE=C
16475 export LANGUAGE
16476
16477 # CDPATH.
16478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16479
16480
16481 # as_fn_error ERROR [LINENO LOG_FD]
16482 # ---------------------------------
16483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16485 # script with status $?, using 1 if that was 0.
16486 as_fn_error ()
16487 {
16488   as_status=$?; test $as_status -eq 0 && as_status=1
16489   if test "$3"; then
16490     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16491     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16492   fi
16493   $as_echo "$as_me: error: $1" >&2
16494   as_fn_exit $as_status
16495 } # as_fn_error
16496
16497
16498 # as_fn_set_status STATUS
16499 # -----------------------
16500 # Set $? to STATUS, without forking.
16501 as_fn_set_status ()
16502 {
16503   return $1
16504 } # as_fn_set_status
16505
16506 # as_fn_exit STATUS
16507 # -----------------
16508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16509 as_fn_exit ()
16510 {
16511   set +e
16512   as_fn_set_status $1
16513   exit $1
16514 } # as_fn_exit
16515
16516 # as_fn_unset VAR
16517 # ---------------
16518 # Portably unset VAR.
16519 as_fn_unset ()
16520 {
16521   { eval $1=; unset $1;}
16522 }
16523 as_unset=as_fn_unset
16524 # as_fn_append VAR VALUE
16525 # ----------------------
16526 # Append the text in VALUE to the end of the definition contained in VAR. Take
16527 # advantage of any shell optimizations that allow amortized linear growth over
16528 # repeated appends, instead of the typical quadratic growth present in naive
16529 # implementations.
16530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16531   eval 'as_fn_append ()
16532   {
16533     eval $1+=\$2
16534   }'
16535 else
16536   as_fn_append ()
16537   {
16538     eval $1=\$$1\$2
16539   }
16540 fi # as_fn_append
16541
16542 # as_fn_arith ARG...
16543 # ------------------
16544 # Perform arithmetic evaluation on the ARGs, and store the result in the
16545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16546 # must be portable across $(()) and expr.
16547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16548   eval 'as_fn_arith ()
16549   {
16550     as_val=$(( $* ))
16551   }'
16552 else
16553   as_fn_arith ()
16554   {
16555     as_val=`expr "$@" || test $? -eq 1`
16556   }
16557 fi # as_fn_arith
16558
16559
16560 if expr a : '\(a\)' >/dev/null 2>&1 &&
16561    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16562   as_expr=expr
16563 else
16564   as_expr=false
16565 fi
16566
16567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16568   as_basename=basename
16569 else
16570   as_basename=false
16571 fi
16572
16573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16574   as_dirname=dirname
16575 else
16576   as_dirname=false
16577 fi
16578
16579 as_me=`$as_basename -- "$0" ||
16580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16581          X"$0" : 'X\(//\)$' \| \
16582          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16583 $as_echo X/"$0" |
16584     sed '/^.*\/\([^/][^/]*\)\/*$/{
16585             s//\1/
16586             q
16587           }
16588           /^X\/\(\/\/\)$/{
16589             s//\1/
16590             q
16591           }
16592           /^X\/\(\/\).*/{
16593             s//\1/
16594             q
16595           }
16596           s/.*/./; q'`
16597
16598 # Avoid depending upon Character Ranges.
16599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16602 as_cr_digits='0123456789'
16603 as_cr_alnum=$as_cr_Letters$as_cr_digits
16604
16605 ECHO_C= ECHO_N= ECHO_T=
16606 case `echo -n x` in #(((((
16607 -n*)
16608   case `echo 'xy\c'` in
16609   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16610   xy)  ECHO_C='\c';;
16611   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16612        ECHO_T=' ';;
16613   esac;;
16614 *)
16615   ECHO_N='-n';;
16616 esac
16617
16618 rm -f conf$$ conf$$.exe conf$$.file
16619 if test -d conf$$.dir; then
16620   rm -f conf$$.dir/conf$$.file
16621 else
16622   rm -f conf$$.dir
16623   mkdir conf$$.dir 2>/dev/null
16624 fi
16625 if (echo >conf$$.file) 2>/dev/null; then
16626   if ln -s conf$$.file conf$$ 2>/dev/null; then
16627     as_ln_s='ln -s'
16628     # ... but there are two gotchas:
16629     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16630     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16631     # In both cases, we have to default to `cp -p'.
16632     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16633       as_ln_s='cp -p'
16634   elif ln conf$$.file conf$$ 2>/dev/null; then
16635     as_ln_s=ln
16636   else
16637     as_ln_s='cp -p'
16638   fi
16639 else
16640   as_ln_s='cp -p'
16641 fi
16642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16643 rmdir conf$$.dir 2>/dev/null
16644
16645
16646 # as_fn_mkdir_p
16647 # -------------
16648 # Create "$as_dir" as a directory, including parents if necessary.
16649 as_fn_mkdir_p ()
16650 {
16651
16652   case $as_dir in #(
16653   -*) as_dir=./$as_dir;;
16654   esac
16655   test -d "$as_dir" || eval $as_mkdir_p || {
16656     as_dirs=
16657     while :; do
16658       case $as_dir in #(
16659       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16660       *) as_qdir=$as_dir;;
16661       esac
16662       as_dirs="'$as_qdir' $as_dirs"
16663       as_dir=`$as_dirname -- "$as_dir" ||
16664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16665          X"$as_dir" : 'X\(//\)[^/]' \| \
16666          X"$as_dir" : 'X\(//\)$' \| \
16667          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16668 $as_echo X"$as_dir" |
16669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16670             s//\1/
16671             q
16672           }
16673           /^X\(\/\/\)[^/].*/{
16674             s//\1/
16675             q
16676           }
16677           /^X\(\/\/\)$/{
16678             s//\1/
16679             q
16680           }
16681           /^X\(\/\).*/{
16682             s//\1/
16683             q
16684           }
16685           s/.*/./; q'`
16686       test -d "$as_dir" && break
16687     done
16688     test -z "$as_dirs" || eval "mkdir $as_dirs"
16689   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16690
16691
16692 } # as_fn_mkdir_p
16693 if mkdir -p . 2>/dev/null; then
16694   as_mkdir_p='mkdir -p "$as_dir"'
16695 else
16696   test -d ./-p && rmdir ./-p
16697   as_mkdir_p=false
16698 fi
16699
16700 if test -x / >/dev/null 2>&1; then
16701   as_test_x='test -x'
16702 else
16703   if ls -dL / >/dev/null 2>&1; then
16704     as_ls_L_option=L
16705   else
16706     as_ls_L_option=
16707   fi
16708   as_test_x='
16709     eval sh -c '\''
16710       if test -d "$1"; then
16711         test -d "$1/.";
16712       else
16713         case $1 in #(
16714         -*)set "./$1";;
16715         esac;
16716         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16717         ???[sx]*):;;*)false;;esac;fi
16718     '\'' sh
16719   '
16720 fi
16721 as_executable_p=$as_test_x
16722
16723 # Sed expression to map a string onto a valid CPP name.
16724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16725
16726 # Sed expression to map a string onto a valid variable name.
16727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16728
16729
16730 exec 6>&1
16731 ## ----------------------------------- ##
16732 ## Main body of $CONFIG_STATUS script. ##
16733 ## ----------------------------------- ##
16734 _ASEOF
16735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16736
16737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 # Save the log message, to keep $0 and so on meaningful, and to
16739 # report actual input values of CONFIG_FILES etc. instead of their
16740 # values after options handling.
16741 ac_log="
16742 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16743 generated by GNU Autoconf 2.64.  Invocation command line was
16744
16745   CONFIG_FILES    = $CONFIG_FILES
16746   CONFIG_HEADERS  = $CONFIG_HEADERS
16747   CONFIG_LINKS    = $CONFIG_LINKS
16748   CONFIG_COMMANDS = $CONFIG_COMMANDS
16749   $ $0 $@
16750
16751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16752 "
16753
16754 _ACEOF
16755
16756 case $ac_config_files in *"
16757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16758 esac
16759
16760 case $ac_config_headers in *"
16761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16762 esac
16763
16764
16765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16766 # Files that config.status was made for.
16767 config_files="$ac_config_files"
16768 config_headers="$ac_config_headers"
16769 config_commands="$ac_config_commands"
16770
16771 _ACEOF
16772
16773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774 ac_cs_usage="\
16775 \`$as_me' instantiates files and other configuration actions
16776 from templates according to the current configuration.  Unless the files
16777 and actions are specified as TAGs, all are instantiated by default.
16778
16779 Usage: $0 [OPTION]... [TAG]...
16780
16781   -h, --help       print this help, then exit
16782   -V, --version    print version number and configuration settings, then exit
16783   -q, --quiet, --silent
16784                    do not print progress messages
16785   -d, --debug      don't remove temporary files
16786       --recheck    update $as_me by reconfiguring in the same conditions
16787       --file=FILE[:TEMPLATE]
16788                    instantiate the configuration file FILE
16789       --header=FILE[:TEMPLATE]
16790                    instantiate the configuration header FILE
16791
16792 Configuration files:
16793 $config_files
16794
16795 Configuration headers:
16796 $config_headers
16797
16798 Configuration commands:
16799 $config_commands
16800
16801 Report bugs to the package provider.
16802 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16803 General help using GNU software: <http://www.gnu.org/gethelp/>."
16804
16805 _ACEOF
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 ac_cs_version="\\
16808 GNU OpenMP Runtime Library config.status 1.0
16809 configured by $0, generated by GNU Autoconf 2.64,
16810   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16811
16812 Copyright (C) 2009 Free Software Foundation, Inc.
16813 This config.status script is free software; the Free Software Foundation
16814 gives unlimited permission to copy, distribute and modify it."
16815
16816 ac_pwd='$ac_pwd'
16817 srcdir='$srcdir'
16818 INSTALL='$INSTALL'
16819 MKDIR_P='$MKDIR_P'
16820 AWK='$AWK'
16821 test -n "\$AWK" || AWK=awk
16822 _ACEOF
16823
16824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16825 # The default lists apply if the user does not specify any file.
16826 ac_need_defaults=:
16827 while test $# != 0
16828 do
16829   case $1 in
16830   --*=*)
16831     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16832     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16833     ac_shift=:
16834     ;;
16835   *)
16836     ac_option=$1
16837     ac_optarg=$2
16838     ac_shift=shift
16839     ;;
16840   esac
16841
16842   case $ac_option in
16843   # Handling of the options.
16844   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16845     ac_cs_recheck=: ;;
16846   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16847     $as_echo "$ac_cs_version"; exit ;;
16848   --debug | --debu | --deb | --de | --d | -d )
16849     debug=: ;;
16850   --file | --fil | --fi | --f )
16851     $ac_shift
16852     case $ac_optarg in
16853     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16854     esac
16855     as_fn_append CONFIG_FILES " '$ac_optarg'"
16856     ac_need_defaults=false;;
16857   --header | --heade | --head | --hea )
16858     $ac_shift
16859     case $ac_optarg in
16860     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16861     esac
16862     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16863     ac_need_defaults=false;;
16864   --he | --h)
16865     # Conflict between --help and --header
16866     as_fn_error "ambiguous option: \`$1'
16867 Try \`$0 --help' for more information.";;
16868   --help | --hel | -h )
16869     $as_echo "$ac_cs_usage"; exit ;;
16870   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16871   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16872     ac_cs_silent=: ;;
16873
16874   # This is an error.
16875   -*) as_fn_error "unrecognized option: \`$1'
16876 Try \`$0 --help' for more information." ;;
16877
16878   *) as_fn_append ac_config_targets " $1"
16879      ac_need_defaults=false ;;
16880
16881   esac
16882   shift
16883 done
16884
16885 ac_configure_extra_args=
16886
16887 if $ac_cs_silent; then
16888   exec 6>/dev/null
16889   ac_configure_extra_args="$ac_configure_extra_args --silent"
16890 fi
16891
16892 _ACEOF
16893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16894 if \$ac_cs_recheck; then
16895   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16896   shift
16897   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16898   CONFIG_SHELL='$SHELL'
16899   export CONFIG_SHELL
16900   exec "\$@"
16901 fi
16902
16903 _ACEOF
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905 exec 5>>config.log
16906 {
16907   echo
16908   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16909 ## Running $as_me. ##
16910 _ASBOX
16911   $as_echo "$ac_log"
16912 } >&5
16913
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16916 #
16917 # INIT-COMMANDS
16918 #
16919
16920 srcdir="$srcdir"
16921 host="$host"
16922 target="$target"
16923 with_multisubdir="$with_multisubdir"
16924 with_multisrctop="$with_multisrctop"
16925 with_target_subdir="$with_target_subdir"
16926 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16927 multi_basedir="$multi_basedir"
16928 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16929 CC="$CC"
16930 CXX="$CXX"
16931 GFORTRAN="$GFORTRAN"
16932 GCJ="$GCJ"
16933 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16934
16935
16936 # The HP-UX ksh and POSIX shell print the target directory to stdout
16937 # if CDPATH is set.
16938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16939
16940 sed_quote_subst='$sed_quote_subst'
16941 double_quote_subst='$double_quote_subst'
16942 delay_variable_subst='$delay_variable_subst'
16943 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16944 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16946 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16947 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16948 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16949 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16950 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16951 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16952 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16953 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16954 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16955 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16956 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16957 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16958 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16959 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16960 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16961 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16962 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16963 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16964 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16965 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16966 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16967 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16968 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16969 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16970 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16971 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16972 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16973 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16974 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16975 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16976 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16977 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16978 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16979 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16980 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16981 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16982 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16983 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16984 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16985 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16986 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16987 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"`'
16988 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"`'
16989 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16990 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16991 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16992 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16993 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16994 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16995 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16996 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16997 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16998 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16999 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17000 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17001 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17002 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17003 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17004 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17005 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17006 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17007 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17008 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17009 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17010 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17011 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17012 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17013 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17014 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17015 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17016 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17017 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17018 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17019 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17020 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17021 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17023 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17024 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17025 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17026 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17027 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17028 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17029 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17030 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17031 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17032 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17033 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17034 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17035 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17036 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17037 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17038 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17039 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17040 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17041 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17042 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17043 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17044 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17045 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17046 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17047 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17048 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17049 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17050 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17051 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17052 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17053 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17054 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17055 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17056 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17057 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17058 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17059 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17060 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17061 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17062 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17063 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17064 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17065 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17066 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17067 LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
17068 old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17069 compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
17070 GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
17071 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17072 lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
17073 lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
17074 lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
17075 lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
17076 archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
17077 enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
17078 export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17079 whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17080 compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
17081 old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17082 old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17083 archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17084 archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17085 module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17086 module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17087 with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
17088 allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17089 no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17090 hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17091 hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
17092 hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
17093 hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
17094 hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
17095 hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
17096 hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
17097 hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
17098 inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
17099 link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
17100 fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
17101 always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
17102 export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17103 exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
17104 include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
17105 prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17106 file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17107 hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
17108 compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
17109 predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
17110 postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
17111 predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
17112 postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
17113 compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
17114
17115 LTCC='$LTCC'
17116 LTCFLAGS='$LTCFLAGS'
17117 compiler='$compiler_DEFAULT'
17118
17119 # Quote evaled strings.
17120 for var in SED \
17121 GREP \
17122 EGREP \
17123 FGREP \
17124 LD \
17125 NM \
17126 LN_S \
17127 lt_SP2NL \
17128 lt_NL2SP \
17129 reload_flag \
17130 OBJDUMP \
17131 deplibs_check_method \
17132 file_magic_cmd \
17133 AR \
17134 AR_FLAGS \
17135 STRIP \
17136 RANLIB \
17137 CC \
17138 CFLAGS \
17139 compiler \
17140 lt_cv_sys_global_symbol_pipe \
17141 lt_cv_sys_global_symbol_to_cdecl \
17142 lt_cv_sys_global_symbol_to_c_name_address \
17143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17144 SHELL \
17145 ECHO \
17146 lt_prog_compiler_no_builtin_flag \
17147 lt_prog_compiler_wl \
17148 lt_prog_compiler_pic \
17149 lt_prog_compiler_static \
17150 lt_cv_prog_compiler_c_o \
17151 need_locks \
17152 DSYMUTIL \
17153 NMEDIT \
17154 LIPO \
17155 OTOOL \
17156 OTOOL64 \
17157 shrext_cmds \
17158 export_dynamic_flag_spec \
17159 whole_archive_flag_spec \
17160 compiler_needs_object \
17161 with_gnu_ld \
17162 allow_undefined_flag \
17163 no_undefined_flag \
17164 hardcode_libdir_flag_spec \
17165 hardcode_libdir_flag_spec_ld \
17166 hardcode_libdir_separator \
17167 fix_srcfile_path \
17168 exclude_expsyms \
17169 include_expsyms \
17170 file_list_spec \
17171 variables_saved_for_relink \
17172 libname_spec \
17173 library_names_spec \
17174 soname_spec \
17175 finish_eval \
17176 old_striplib \
17177 striplib \
17178 compiler_lib_search_dirs \
17179 predep_objects \
17180 postdep_objects \
17181 predeps \
17182 postdeps \
17183 compiler_lib_search_path \
17184 LD_FC \
17185 compiler_FC \
17186 lt_prog_compiler_no_builtin_flag_FC \
17187 lt_prog_compiler_wl_FC \
17188 lt_prog_compiler_pic_FC \
17189 lt_prog_compiler_static_FC \
17190 lt_cv_prog_compiler_c_o_FC \
17191 export_dynamic_flag_spec_FC \
17192 whole_archive_flag_spec_FC \
17193 compiler_needs_object_FC \
17194 with_gnu_ld_FC \
17195 allow_undefined_flag_FC \
17196 no_undefined_flag_FC \
17197 hardcode_libdir_flag_spec_FC \
17198 hardcode_libdir_flag_spec_ld_FC \
17199 hardcode_libdir_separator_FC \
17200 fix_srcfile_path_FC \
17201 exclude_expsyms_FC \
17202 include_expsyms_FC \
17203 file_list_spec_FC \
17204 compiler_lib_search_dirs_FC \
17205 predep_objects_FC \
17206 postdep_objects_FC \
17207 predeps_FC \
17208 postdeps_FC \
17209 compiler_lib_search_path_FC; do
17210     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17211     *[\\\\\\\`\\"\\\$]*)
17212       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17213       ;;
17214     *)
17215       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17216       ;;
17217     esac
17218 done
17219
17220 # Double-quote double-evaled strings.
17221 for var in reload_cmds \
17222 old_postinstall_cmds \
17223 old_postuninstall_cmds \
17224 old_archive_cmds \
17225 extract_expsyms_cmds \
17226 old_archive_from_new_cmds \
17227 old_archive_from_expsyms_cmds \
17228 archive_cmds \
17229 archive_expsym_cmds \
17230 module_cmds \
17231 module_expsym_cmds \
17232 export_symbols_cmds \
17233 prelink_cmds \
17234 postinstall_cmds \
17235 postuninstall_cmds \
17236 finish_cmds \
17237 sys_lib_search_path_spec \
17238 sys_lib_dlsearch_path_spec \
17239 old_archive_cmds_FC \
17240 old_archive_from_new_cmds_FC \
17241 old_archive_from_expsyms_cmds_FC \
17242 archive_cmds_FC \
17243 archive_expsym_cmds_FC \
17244 module_cmds_FC \
17245 module_expsym_cmds_FC \
17246 export_symbols_cmds_FC \
17247 prelink_cmds_FC; do
17248     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17249     *[\\\\\\\`\\"\\\$]*)
17250       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17251       ;;
17252     *)
17253       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17254       ;;
17255     esac
17256 done
17257
17258 # Fix-up fallback echo if it was mangled by the above quoting rules.
17259 case \$lt_ECHO in
17260 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17261   ;;
17262 esac
17263
17264 ac_aux_dir='$ac_aux_dir'
17265 xsi_shell='$xsi_shell'
17266 lt_shell_append='$lt_shell_append'
17267
17268 # See if we are running on zsh, and set the options which allow our
17269 # commands through without removal of \ escapes INIT.
17270 if test -n "\${ZSH_VERSION+set}" ; then
17271    setopt NO_GLOB_SUBST
17272 fi
17273
17274
17275     PACKAGE='$PACKAGE'
17276     VERSION='$VERSION'
17277     TIMESTAMP='$TIMESTAMP'
17278     RM='$RM'
17279     ofile='$ofile'
17280
17281
17282
17283
17284
17285
17286 GCC="$GCC"
17287 CC="$CC"
17288 acx_cv_header_stdint="$acx_cv_header_stdint"
17289 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17290 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17291 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17292 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17293 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17294 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17295 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17296 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17297 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17298 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17299 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17300 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17301 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17302
17303
17304 _ACEOF
17305
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307
17308 # Handling of arguments.
17309 for ac_config_target in $ac_config_targets
17310 do
17311   case $ac_config_target in
17312     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17313     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17314     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17315     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17316     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17317     "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17318     "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17319     "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17320     "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17321     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17322     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17323     "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17324
17325   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17326   esac
17327 done
17328
17329
17330 # If the user did not use the arguments to specify the items to instantiate,
17331 # then the envvar interface is used.  Set only those that are not.
17332 # We use the long form for the default assignment because of an extremely
17333 # bizarre bug on SunOS 4.1.3.
17334 if $ac_need_defaults; then
17335   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17336   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17337   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17338 fi
17339
17340 # Have a temporary directory for convenience.  Make it in the build tree
17341 # simply because there is no reason against having it here, and in addition,
17342 # creating and moving files from /tmp can sometimes cause problems.
17343 # Hook for its removal unless debugging.
17344 # Note that there is a small window in which the directory will not be cleaned:
17345 # after its creation but before its name has been assigned to `$tmp'.
17346 $debug ||
17347 {
17348   tmp=
17349   trap 'exit_status=$?
17350   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17351 ' 0
17352   trap 'as_fn_exit 1' 1 2 13 15
17353 }
17354 # Create a (secure) tmp directory for tmp files.
17355
17356 {
17357   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17358   test -n "$tmp" && test -d "$tmp"
17359 }  ||
17360 {
17361   tmp=./conf$$-$RANDOM
17362   (umask 077 && mkdir "$tmp")
17363 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17364
17365 # Set up the scripts for CONFIG_FILES section.
17366 # No need to generate them if there are no CONFIG_FILES.
17367 # This happens for instance with `./config.status config.h'.
17368 if test -n "$CONFIG_FILES"; then
17369
17370
17371 ac_cr=`echo X | tr X '\015'`
17372 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17373 # But we know of no other shell where ac_cr would be empty at this
17374 # point, so we can use a bashism as a fallback.
17375 if test "x$ac_cr" = x; then
17376   eval ac_cr=\$\'\\r\'
17377 fi
17378 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17379 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17380   ac_cs_awk_cr='\r'
17381 else
17382   ac_cs_awk_cr=$ac_cr
17383 fi
17384
17385 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17386 _ACEOF
17387
17388
17389 {
17390   echo "cat >conf$$subs.awk <<_ACEOF" &&
17391   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17392   echo "_ACEOF"
17393 } >conf$$subs.sh ||
17394   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17395 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17396 ac_delim='%!_!# '
17397 for ac_last_try in false false false false false :; do
17398   . ./conf$$subs.sh ||
17399     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17400
17401   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17402   if test $ac_delim_n = $ac_delim_num; then
17403     break
17404   elif $ac_last_try; then
17405     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17406   else
17407     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17408   fi
17409 done
17410 rm -f conf$$subs.sh
17411
17412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17413 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17414 _ACEOF
17415 sed -n '
17416 h
17417 s/^/S["/; s/!.*/"]=/
17418 p
17419 g
17420 s/^[^!]*!//
17421 :repl
17422 t repl
17423 s/'"$ac_delim"'$//
17424 t delim
17425 :nl
17426 h
17427 s/\(.\{148\}\).*/\1/
17428 t more1
17429 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17430 p
17431 n
17432 b repl
17433 :more1
17434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17435 p
17436 g
17437 s/.\{148\}//
17438 t nl
17439 :delim
17440 h
17441 s/\(.\{148\}\).*/\1/
17442 t more2
17443 s/["\\]/\\&/g; s/^/"/; s/$/"/
17444 p
17445 b
17446 :more2
17447 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17448 p
17449 g
17450 s/.\{148\}//
17451 t delim
17452 ' <conf$$subs.awk | sed '
17453 /^[^""]/{
17454   N
17455   s/\n//
17456 }
17457 ' >>$CONFIG_STATUS || ac_write_fail=1
17458 rm -f conf$$subs.awk
17459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460 _ACAWK
17461 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17462   for (key in S) S_is_set[key] = 1
17463   FS = "\a"
17464
17465 }
17466 {
17467   line = $ 0
17468   nfields = split(line, field, "@")
17469   substed = 0
17470   len = length(field[1])
17471   for (i = 2; i < nfields; i++) {
17472     key = field[i]
17473     keylen = length(key)
17474     if (S_is_set[key]) {
17475       value = S[key]
17476       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17477       len += length(value) + length(field[++i])
17478       substed = 1
17479     } else
17480       len += 1 + keylen
17481   }
17482
17483   print line
17484 }
17485
17486 _ACAWK
17487 _ACEOF
17488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17489 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17490   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17491 else
17492   cat
17493 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17494   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17495 _ACEOF
17496
17497 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17498 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17499 # trailing colons and then remove the whole line if VPATH becomes empty
17500 # (actually we leave an empty line to preserve line numbers).
17501 if test "x$srcdir" = x.; then
17502   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17503 s/:*\$(srcdir):*/:/
17504 s/:*\${srcdir}:*/:/
17505 s/:*@srcdir@:*/:/
17506 s/^\([^=]*=[     ]*\):*/\1/
17507 s/:*$//
17508 s/^[^=]*=[       ]*$//
17509 }'
17510 fi
17511
17512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17513 fi # test -n "$CONFIG_FILES"
17514
17515 # Set up the scripts for CONFIG_HEADERS section.
17516 # No need to generate them if there are no CONFIG_HEADERS.
17517 # This happens for instance with `./config.status Makefile'.
17518 if test -n "$CONFIG_HEADERS"; then
17519 cat >"$tmp/defines.awk" <<\_ACAWK ||
17520 BEGIN {
17521 _ACEOF
17522
17523 # Transform confdefs.h into an awk script `defines.awk', embedded as
17524 # here-document in config.status, that substitutes the proper values into
17525 # config.h.in to produce config.h.
17526
17527 # Create a delimiter string that does not exist in confdefs.h, to ease
17528 # handling of long lines.
17529 ac_delim='%!_!# '
17530 for ac_last_try in false false :; do
17531   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17532   if test -z "$ac_t"; then
17533     break
17534   elif $ac_last_try; then
17535     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17536   else
17537     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17538   fi
17539 done
17540
17541 # For the awk script, D is an array of macro values keyed by name,
17542 # likewise P contains macro parameters if any.  Preserve backslash
17543 # newline sequences.
17544
17545 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17546 sed -n '
17547 s/.\{148\}/&'"$ac_delim"'/g
17548 t rset
17549 :rset
17550 s/^[     ]*#[    ]*define[       ][      ]*/ /
17551 t def
17552 d
17553 :def
17554 s/\\$//
17555 t bsnl
17556 s/["\\]/\\&/g
17557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17558 D["\1"]=" \3"/p
17559 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17560 d
17561 :bsnl
17562 s/["\\]/\\&/g
17563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17564 D["\1"]=" \3\\\\\\n"\\/p
17565 t cont
17566 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17567 t cont
17568 d
17569 :cont
17570 n
17571 s/.\{148\}/&'"$ac_delim"'/g
17572 t clear
17573 :clear
17574 s/\\$//
17575 t bsnlc
17576 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17577 d
17578 :bsnlc
17579 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17580 b cont
17581 ' <confdefs.h | sed '
17582 s/'"$ac_delim"'/"\\\
17583 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17584
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586   for (key in D) D_is_set[key] = 1
17587   FS = "\a"
17588 }
17589 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17590   line = \$ 0
17591   split(line, arg, " ")
17592   if (arg[1] == "#") {
17593     defundef = arg[2]
17594     mac1 = arg[3]
17595   } else {
17596     defundef = substr(arg[1], 2)
17597     mac1 = arg[2]
17598   }
17599   split(mac1, mac2, "(") #)
17600   macro = mac2[1]
17601   prefix = substr(line, 1, index(line, defundef) - 1)
17602   if (D_is_set[macro]) {
17603     # Preserve the white space surrounding the "#".
17604     print prefix "define", macro P[macro] D[macro]
17605     next
17606   } else {
17607     # Replace #undef with comments.  This is necessary, for example,
17608     # in the case of _POSIX_SOURCE, which is predefined and required
17609     # on some systems where configure will not decide to define it.
17610     if (defundef == "undef") {
17611       print "/*", prefix defundef, macro, "*/"
17612       next
17613     }
17614   }
17615 }
17616 { print }
17617 _ACAWK
17618 _ACEOF
17619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17620   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17621 fi # test -n "$CONFIG_HEADERS"
17622
17623
17624 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17625 shift
17626 for ac_tag
17627 do
17628   case $ac_tag in
17629   :[FHLC]) ac_mode=$ac_tag; continue;;
17630   esac
17631   case $ac_mode$ac_tag in
17632   :[FHL]*:*);;
17633   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17634   :[FH]-) ac_tag=-:-;;
17635   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17636   esac
17637   ac_save_IFS=$IFS
17638   IFS=:
17639   set x $ac_tag
17640   IFS=$ac_save_IFS
17641   shift
17642   ac_file=$1
17643   shift
17644
17645   case $ac_mode in
17646   :L) ac_source=$1;;
17647   :[FH])
17648     ac_file_inputs=
17649     for ac_f
17650     do
17651       case $ac_f in
17652       -) ac_f="$tmp/stdin";;
17653       *) # Look for the file first in the build tree, then in the source tree
17654          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17655          # because $ac_f cannot contain `:'.
17656          test -f "$ac_f" ||
17657            case $ac_f in
17658            [\\/$]*) false;;
17659            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17660            esac ||
17661            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17662       esac
17663       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17664       as_fn_append ac_file_inputs " '$ac_f'"
17665     done
17666
17667     # Let's still pretend it is `configure' which instantiates (i.e., don't
17668     # use $as_me), people would be surprised to read:
17669     #    /* config.h.  Generated by config.status.  */
17670     configure_input='Generated from '`
17671           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17672         `' by configure.'
17673     if test x"$ac_file" != x-; then
17674       configure_input="$ac_file.  $configure_input"
17675       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17676 $as_echo "$as_me: creating $ac_file" >&6;}
17677     fi
17678     # Neutralize special characters interpreted by sed in replacement strings.
17679     case $configure_input in #(
17680     *\&* | *\|* | *\\* )
17681        ac_sed_conf_input=`$as_echo "$configure_input" |
17682        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17683     *) ac_sed_conf_input=$configure_input;;
17684     esac
17685
17686     case $ac_tag in
17687     *:-:* | *:-) cat >"$tmp/stdin" \
17688       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17689     esac
17690     ;;
17691   esac
17692
17693   ac_dir=`$as_dirname -- "$ac_file" ||
17694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695          X"$ac_file" : 'X\(//\)[^/]' \| \
17696          X"$ac_file" : 'X\(//\)$' \| \
17697          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17698 $as_echo X"$ac_file" |
17699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700             s//\1/
17701             q
17702           }
17703           /^X\(\/\/\)[^/].*/{
17704             s//\1/
17705             q
17706           }
17707           /^X\(\/\/\)$/{
17708             s//\1/
17709             q
17710           }
17711           /^X\(\/\).*/{
17712             s//\1/
17713             q
17714           }
17715           s/.*/./; q'`
17716   as_dir="$ac_dir"; as_fn_mkdir_p
17717   ac_builddir=.
17718
17719 case "$ac_dir" in
17720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17721 *)
17722   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17723   # A ".." for each directory in $ac_dir_suffix.
17724   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17725   case $ac_top_builddir_sub in
17726   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17727   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17728   esac ;;
17729 esac
17730 ac_abs_top_builddir=$ac_pwd
17731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17732 # for backward compatibility:
17733 ac_top_builddir=$ac_top_build_prefix
17734
17735 case $srcdir in
17736   .)  # We are building in place.
17737     ac_srcdir=.
17738     ac_top_srcdir=$ac_top_builddir_sub
17739     ac_abs_top_srcdir=$ac_pwd ;;
17740   [\\/]* | ?:[\\/]* )  # Absolute name.
17741     ac_srcdir=$srcdir$ac_dir_suffix;
17742     ac_top_srcdir=$srcdir
17743     ac_abs_top_srcdir=$srcdir ;;
17744   *) # Relative name.
17745     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17746     ac_top_srcdir=$ac_top_build_prefix$srcdir
17747     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17748 esac
17749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17750
17751
17752   case $ac_mode in
17753   :F)
17754   #
17755   # CONFIG_FILE
17756   #
17757
17758   case $INSTALL in
17759   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17760   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17761   esac
17762   ac_MKDIR_P=$MKDIR_P
17763   case $MKDIR_P in
17764   [\\/$]* | ?:[\\/]* ) ;;
17765   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17766   esac
17767 _ACEOF
17768
17769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17770 # If the template does not know about datarootdir, expand it.
17771 # FIXME: This hack should be removed a few years after 2.60.
17772 ac_datarootdir_hack=; ac_datarootdir_seen=
17773 ac_sed_dataroot='
17774 /datarootdir/ {
17775   p
17776   q
17777 }
17778 /@datadir@/p
17779 /@docdir@/p
17780 /@infodir@/p
17781 /@localedir@/p
17782 /@mandir@/p'
17783 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17784 *datarootdir*) ac_datarootdir_seen=yes;;
17785 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17786   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17787 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17788 _ACEOF
17789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17790   ac_datarootdir_hack='
17791   s&@datadir@&$datadir&g
17792   s&@docdir@&$docdir&g
17793   s&@infodir@&$infodir&g
17794   s&@localedir@&$localedir&g
17795   s&@mandir@&$mandir&g
17796   s&\\\${datarootdir}&$datarootdir&g' ;;
17797 esac
17798 _ACEOF
17799
17800 # Neutralize VPATH when `$srcdir' = `.'.
17801 # Shell code in configure.ac might set extrasub.
17802 # FIXME: do we really want to maintain this feature?
17803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17804 ac_sed_extra="$ac_vpsub
17805 $extrasub
17806 _ACEOF
17807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17808 :t
17809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17810 s|@configure_input@|$ac_sed_conf_input|;t t
17811 s&@top_builddir@&$ac_top_builddir_sub&;t t
17812 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17813 s&@srcdir@&$ac_srcdir&;t t
17814 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17815 s&@top_srcdir@&$ac_top_srcdir&;t t
17816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17817 s&@builddir@&$ac_builddir&;t t
17818 s&@abs_builddir@&$ac_abs_builddir&;t t
17819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17820 s&@INSTALL@&$ac_INSTALL&;t t
17821 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17822 $ac_datarootdir_hack
17823 "
17824 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17825   || as_fn_error "could not create $ac_file" "$LINENO" 5
17826
17827 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17828   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17829   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17831 which seems to be undefined.  Please make sure it is defined." >&5
17832 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17833 which seems to be undefined.  Please make sure it is defined." >&2;}
17834
17835   rm -f "$tmp/stdin"
17836   case $ac_file in
17837   -) cat "$tmp/out" && rm -f "$tmp/out";;
17838   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17839   esac \
17840   || as_fn_error "could not create $ac_file" "$LINENO" 5
17841  ;;
17842   :H)
17843   #
17844   # CONFIG_HEADER
17845   #
17846   if test x"$ac_file" != x-; then
17847     {
17848       $as_echo "/* $configure_input  */" \
17849       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17850     } >"$tmp/config.h" \
17851       || as_fn_error "could not create $ac_file" "$LINENO" 5
17852     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17853       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17854 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17855     else
17856       rm -f "$ac_file"
17857       mv "$tmp/config.h" "$ac_file" \
17858         || as_fn_error "could not create $ac_file" "$LINENO" 5
17859     fi
17860   else
17861     $as_echo "/* $configure_input  */" \
17862       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17863       || as_fn_error "could not create -" "$LINENO" 5
17864   fi
17865 # Compute "$ac_file"'s index in $config_headers.
17866 _am_arg="$ac_file"
17867 _am_stamp_count=1
17868 for _am_header in $config_headers :; do
17869   case $_am_header in
17870     $_am_arg | $_am_arg:* )
17871       break ;;
17872     * )
17873       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17874   esac
17875 done
17876 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17877 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17878          X"$_am_arg" : 'X\(//\)[^/]' \| \
17879          X"$_am_arg" : 'X\(//\)$' \| \
17880          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17881 $as_echo X"$_am_arg" |
17882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17883             s//\1/
17884             q
17885           }
17886           /^X\(\/\/\)[^/].*/{
17887             s//\1/
17888             q
17889           }
17890           /^X\(\/\/\)$/{
17891             s//\1/
17892             q
17893           }
17894           /^X\(\/\).*/{
17895             s//\1/
17896             q
17897           }
17898           s/.*/./; q'`/stamp-h$_am_stamp_count
17899  ;;
17900
17901   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17902 $as_echo "$as_me: executing $ac_file commands" >&6;}
17903  ;;
17904   esac
17905
17906
17907   case $ac_file$ac_mode in
17908     "default-1":C)
17909 # Only add multilib support code if we just rebuilt the top-level
17910 # Makefile.
17911 case " $CONFIG_FILES " in
17912  *" Makefile "*)
17913    ac_file=Makefile . ${multi_basedir}/config-ml.in
17914    ;;
17915 esac ;;
17916     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17917   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17918   # are listed without --file.  Let's play safe and only enable the eval
17919   # if we detect the quoting.
17920   case $CONFIG_FILES in
17921   *\'*) eval set x "$CONFIG_FILES" ;;
17922   *)   set x $CONFIG_FILES ;;
17923   esac
17924   shift
17925   for mf
17926   do
17927     # Strip MF so we end up with the name of the file.
17928     mf=`echo "$mf" | sed -e 's/:.*$//'`
17929     # Check whether this is an Automake generated Makefile or not.
17930     # We used to match only the files named `Makefile.in', but
17931     # some people rename them; so instead we look at the file content.
17932     # Grep'ing the first line is not enough: some people post-process
17933     # each Makefile.in and add a new line on top of each file to say so.
17934     # Grep'ing the whole file is not good either: AIX grep has a line
17935     # limit of 2048, but all sed's we know have understand at least 4000.
17936     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17937       dirpart=`$as_dirname -- "$mf" ||
17938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17939          X"$mf" : 'X\(//\)[^/]' \| \
17940          X"$mf" : 'X\(//\)$' \| \
17941          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17942 $as_echo X"$mf" |
17943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17944             s//\1/
17945             q
17946           }
17947           /^X\(\/\/\)[^/].*/{
17948             s//\1/
17949             q
17950           }
17951           /^X\(\/\/\)$/{
17952             s//\1/
17953             q
17954           }
17955           /^X\(\/\).*/{
17956             s//\1/
17957             q
17958           }
17959           s/.*/./; q'`
17960     else
17961       continue
17962     fi
17963     # Extract the definition of DEPDIR, am__include, and am__quote
17964     # from the Makefile without running `make'.
17965     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17966     test -z "$DEPDIR" && continue
17967     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17968     test -z "am__include" && continue
17969     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17970     # When using ansi2knr, U may be empty or an underscore; expand it
17971     U=`sed -n 's/^U = //p' < "$mf"`
17972     # Find all dependency output files, they are included files with
17973     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17974     # simplest approach to changing $(DEPDIR) to its actual value in the
17975     # expansion.
17976     for file in `sed -n "
17977       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17978          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17979       # Make sure the directory exists.
17980       test -f "$dirpart/$file" && continue
17981       fdir=`$as_dirname -- "$file" ||
17982 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983          X"$file" : 'X\(//\)[^/]' \| \
17984          X"$file" : 'X\(//\)$' \| \
17985          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17986 $as_echo X"$file" |
17987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17988             s//\1/
17989             q
17990           }
17991           /^X\(\/\/\)[^/].*/{
17992             s//\1/
17993             q
17994           }
17995           /^X\(\/\/\)$/{
17996             s//\1/
17997             q
17998           }
17999           /^X\(\/\).*/{
18000             s//\1/
18001             q
18002           }
18003           s/.*/./; q'`
18004       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18005       # echo "creating $dirpart/$file"
18006       echo '# dummy' > "$dirpart/$file"
18007     done
18008   done
18009 }
18010  ;;
18011     "libtool":C)
18012
18013     # See if we are running on zsh, and set the options which allow our
18014     # commands through without removal of \ escapes.
18015     if test -n "${ZSH_VERSION+set}" ; then
18016       setopt NO_GLOB_SUBST
18017     fi
18018
18019     cfgfile="${ofile}T"
18020     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18021     $RM "$cfgfile"
18022
18023     cat <<_LT_EOF >> "$cfgfile"
18024 #! $SHELL
18025
18026 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18027 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18028 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18029 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18030 #
18031 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18032 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18033 #   Written by Gordon Matzigkeit, 1996
18034 #
18035 #   This file is part of GNU Libtool.
18036 #
18037 # GNU Libtool is free software; you can redistribute it and/or
18038 # modify it under the terms of the GNU General Public License as
18039 # published by the Free Software Foundation; either version 2 of
18040 # the License, or (at your option) any later version.
18041 #
18042 # As a special exception to the GNU General Public License,
18043 # if you distribute this file as part of a program or library that
18044 # is built using GNU Libtool, you may include this file under the
18045 # same distribution terms that you use for the rest of that program.
18046 #
18047 # GNU Libtool is distributed in the hope that it will be useful,
18048 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18049 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18050 # GNU General Public License for more details.
18051 #
18052 # You should have received a copy of the GNU General Public License
18053 # along with GNU Libtool; see the file COPYING.  If not, a copy
18054 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18055 # obtained by writing to the Free Software Foundation, Inc.,
18056 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18057
18058
18059 # The names of the tagged configurations supported by this script.
18060 available_tags="FC "
18061
18062 # ### BEGIN LIBTOOL CONFIG
18063
18064 # Which release of libtool.m4 was used?
18065 macro_version=$macro_version
18066 macro_revision=$macro_revision
18067
18068 # Whether or not to build shared libraries.
18069 build_libtool_libs=$enable_shared
18070
18071 # Whether or not to build static libraries.
18072 build_old_libs=$enable_static
18073
18074 # What type of objects to build.
18075 pic_mode=$pic_mode
18076
18077 # Whether or not to optimize for fast installation.
18078 fast_install=$enable_fast_install
18079
18080 # The host system.
18081 host_alias=$host_alias
18082 host=$host
18083 host_os=$host_os
18084
18085 # The build system.
18086 build_alias=$build_alias
18087 build=$build
18088 build_os=$build_os
18089
18090 # A sed program that does not truncate output.
18091 SED=$lt_SED
18092
18093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18094 Xsed="\$SED -e 1s/^X//"
18095
18096 # A grep program that handles long lines.
18097 GREP=$lt_GREP
18098
18099 # An ERE matcher.
18100 EGREP=$lt_EGREP
18101
18102 # A literal string matcher.
18103 FGREP=$lt_FGREP
18104
18105 # A BSD- or MS-compatible name lister.
18106 NM=$lt_NM
18107
18108 # Whether we need soft or hard links.
18109 LN_S=$lt_LN_S
18110
18111 # What is the maximum length of a command?
18112 max_cmd_len=$max_cmd_len
18113
18114 # Object file suffix (normally "o").
18115 objext=$ac_objext
18116
18117 # Executable file suffix (normally "").
18118 exeext=$exeext
18119
18120 # whether the shell understands "unset".
18121 lt_unset=$lt_unset
18122
18123 # turn spaces into newlines.
18124 SP2NL=$lt_lt_SP2NL
18125
18126 # turn newlines into spaces.
18127 NL2SP=$lt_lt_NL2SP
18128
18129 # How to create reloadable object files.
18130 reload_flag=$lt_reload_flag
18131 reload_cmds=$lt_reload_cmds
18132
18133 # An object symbol dumper.
18134 OBJDUMP=$lt_OBJDUMP
18135
18136 # Method to check whether dependent libraries are shared objects.
18137 deplibs_check_method=$lt_deplibs_check_method
18138
18139 # Command to use when deplibs_check_method == "file_magic".
18140 file_magic_cmd=$lt_file_magic_cmd
18141
18142 # The archiver.
18143 AR=$lt_AR
18144 AR_FLAGS=$lt_AR_FLAGS
18145
18146 # A symbol stripping program.
18147 STRIP=$lt_STRIP
18148
18149 # Commands used to install an old-style archive.
18150 RANLIB=$lt_RANLIB
18151 old_postinstall_cmds=$lt_old_postinstall_cmds
18152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18153
18154 # A C compiler.
18155 LTCC=$lt_CC
18156
18157 # LTCC compiler flags.
18158 LTCFLAGS=$lt_CFLAGS
18159
18160 # Take the output of nm and produce a listing of raw symbols and C names.
18161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18162
18163 # Transform the output of nm in a proper C declaration.
18164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18165
18166 # Transform the output of nm in a C name address pair.
18167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18168
18169 # Transform the output of nm in a C name address pair when lib prefix is needed.
18170 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18171
18172 # The name of the directory that contains temporary libtool files.
18173 objdir=$objdir
18174
18175 # Shell to use when invoking shell scripts.
18176 SHELL=$lt_SHELL
18177
18178 # An echo program that does not interpret backslashes.
18179 ECHO=$lt_ECHO
18180
18181 # Used to examine libraries when file_magic_cmd begins with "file".
18182 MAGIC_CMD=$MAGIC_CMD
18183
18184 # Must we lock files when doing compilation?
18185 need_locks=$lt_need_locks
18186
18187 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18188 DSYMUTIL=$lt_DSYMUTIL
18189
18190 # Tool to change global to local symbols on Mac OS X.
18191 NMEDIT=$lt_NMEDIT
18192
18193 # Tool to manipulate fat objects and archives on Mac OS X.
18194 LIPO=$lt_LIPO
18195
18196 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18197 OTOOL=$lt_OTOOL
18198
18199 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18200 OTOOL64=$lt_OTOOL64
18201
18202 # Old archive suffix (normally "a").
18203 libext=$libext
18204
18205 # Shared library suffix (normally ".so").
18206 shrext_cmds=$lt_shrext_cmds
18207
18208 # The commands to extract the exported symbol list from a shared archive.
18209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18210
18211 # Variables whose values should be saved in libtool wrapper scripts and
18212 # restored at link time.
18213 variables_saved_for_relink=$lt_variables_saved_for_relink
18214
18215 # Do we need the "lib" prefix for modules?
18216 need_lib_prefix=$need_lib_prefix
18217
18218 # Do we need a version for libraries?
18219 need_version=$need_version
18220
18221 # Library versioning type.
18222 version_type=$version_type
18223
18224 # Shared library runtime path variable.
18225 runpath_var=$runpath_var
18226
18227 # Shared library path variable.
18228 shlibpath_var=$shlibpath_var
18229
18230 # Is shlibpath searched before the hard-coded library search path?
18231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18232
18233 # Format of library name prefix.
18234 libname_spec=$lt_libname_spec
18235
18236 # List of archive names.  First name is the real one, the rest are links.
18237 # The last name is the one that the linker finds with -lNAME
18238 library_names_spec=$lt_library_names_spec
18239
18240 # The coded name of the library, if different from the real name.
18241 soname_spec=$lt_soname_spec
18242
18243 # Command to use after installation of a shared archive.
18244 postinstall_cmds=$lt_postinstall_cmds
18245
18246 # Command to use after uninstallation of a shared archive.
18247 postuninstall_cmds=$lt_postuninstall_cmds
18248
18249 # Commands used to finish a libtool library installation in a directory.
18250 finish_cmds=$lt_finish_cmds
18251
18252 # As "finish_cmds", except a single script fragment to be evaled but
18253 # not shown.
18254 finish_eval=$lt_finish_eval
18255
18256 # Whether we should hardcode library paths into libraries.
18257 hardcode_into_libs=$hardcode_into_libs
18258
18259 # Compile-time system search path for libraries.
18260 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18261
18262 # Run-time system search path for libraries.
18263 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18264
18265 # Whether dlopen is supported.
18266 dlopen_support=$enable_dlopen
18267
18268 # Whether dlopen of programs is supported.
18269 dlopen_self=$enable_dlopen_self
18270
18271 # Whether dlopen of statically linked programs is supported.
18272 dlopen_self_static=$enable_dlopen_self_static
18273
18274 # Commands to strip libraries.
18275 old_striplib=$lt_old_striplib
18276 striplib=$lt_striplib
18277
18278
18279 # The linker used to build libraries.
18280 LD=$lt_LD
18281
18282 # Commands used to build an old-style archive.
18283 old_archive_cmds=$lt_old_archive_cmds
18284
18285 # A language specific compiler.
18286 CC=$lt_compiler
18287
18288 # Is the compiler the GNU compiler?
18289 with_gcc=$GCC
18290
18291 # Compiler flag to turn off builtin functions.
18292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18293
18294 # How to pass a linker flag through the compiler.
18295 wl=$lt_lt_prog_compiler_wl
18296
18297 # Additional compiler flags for building library objects.
18298 pic_flag=$lt_lt_prog_compiler_pic
18299
18300 # Compiler flag to prevent dynamic linking.
18301 link_static_flag=$lt_lt_prog_compiler_static
18302
18303 # Does compiler simultaneously support -c and -o options?
18304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18305
18306 # Whether or not to add -lc for building shared libraries.
18307 build_libtool_need_lc=$archive_cmds_need_lc
18308
18309 # Whether or not to disallow shared libs when runtime libs are static.
18310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18311
18312 # Compiler flag to allow reflexive dlopens.
18313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18314
18315 # Compiler flag to generate shared objects directly from archives.
18316 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18317
18318 # Whether the compiler copes with passing no objects directly.
18319 compiler_needs_object=$lt_compiler_needs_object
18320
18321 # Create an old-style archive from a shared archive.
18322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18323
18324 # Create a temporary old-style archive to link instead of a shared archive.
18325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18326
18327 # Commands used to build a shared archive.
18328 archive_cmds=$lt_archive_cmds
18329 archive_expsym_cmds=$lt_archive_expsym_cmds
18330
18331 # Commands used to build a loadable module if different from building
18332 # a shared archive.
18333 module_cmds=$lt_module_cmds
18334 module_expsym_cmds=$lt_module_expsym_cmds
18335
18336 # Whether we are building with GNU ld or not.
18337 with_gnu_ld=$lt_with_gnu_ld
18338
18339 # Flag that allows shared libraries with undefined symbols to be built.
18340 allow_undefined_flag=$lt_allow_undefined_flag
18341
18342 # Flag that enforces no undefined symbols.
18343 no_undefined_flag=$lt_no_undefined_flag
18344
18345 # Flag to hardcode \$libdir into a binary during linking.
18346 # This must work even if \$libdir does not exist
18347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18348
18349 # If ld is used when linking, flag to hardcode \$libdir into a binary
18350 # during linking.  This must work even if \$libdir does not exist.
18351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18352
18353 # Whether we need a single "-rpath" flag with a separated argument.
18354 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18355
18356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18357 # DIR into the resulting binary.
18358 hardcode_direct=$hardcode_direct
18359
18360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18361 # DIR into the resulting binary and the resulting library dependency is
18362 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18363 # library is relocated.
18364 hardcode_direct_absolute=$hardcode_direct_absolute
18365
18366 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18367 # into the resulting binary.
18368 hardcode_minus_L=$hardcode_minus_L
18369
18370 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18371 # into the resulting binary.
18372 hardcode_shlibpath_var=$hardcode_shlibpath_var
18373
18374 # Set to "yes" if building a shared library automatically hardcodes DIR
18375 # into the library and all subsequent libraries and executables linked
18376 # against it.
18377 hardcode_automatic=$hardcode_automatic
18378
18379 # Set to yes if linker adds runtime paths of dependent libraries
18380 # to runtime path list.
18381 inherit_rpath=$inherit_rpath
18382
18383 # Whether libtool must link a program against all its dependency libraries.
18384 link_all_deplibs=$link_all_deplibs
18385
18386 # Fix the shell variable \$srcfile for the compiler.
18387 fix_srcfile_path=$lt_fix_srcfile_path
18388
18389 # Set to "yes" if exported symbols are required.
18390 always_export_symbols=$always_export_symbols
18391
18392 # The commands to list exported symbols.
18393 export_symbols_cmds=$lt_export_symbols_cmds
18394
18395 # Symbols that should not be listed in the preloaded symbols.
18396 exclude_expsyms=$lt_exclude_expsyms
18397
18398 # Symbols that must always be exported.
18399 include_expsyms=$lt_include_expsyms
18400
18401 # Commands necessary for linking programs (against libraries) with templates.
18402 prelink_cmds=$lt_prelink_cmds
18403
18404 # Specify filename containing input files.
18405 file_list_spec=$lt_file_list_spec
18406
18407 # How to hardcode a shared library path into an executable.
18408 hardcode_action=$hardcode_action
18409
18410 # The directories searched by this compiler when creating a shared library.
18411 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18412
18413 # Dependencies to place before and after the objects being linked to
18414 # create a shared library.
18415 predep_objects=$lt_predep_objects
18416 postdep_objects=$lt_postdep_objects
18417 predeps=$lt_predeps
18418 postdeps=$lt_postdeps
18419
18420 # The library search path used internally by the compiler when linking
18421 # a shared library.
18422 compiler_lib_search_path=$lt_compiler_lib_search_path
18423
18424 # ### END LIBTOOL CONFIG
18425
18426 _LT_EOF
18427
18428   case $host_os in
18429   aix3*)
18430     cat <<\_LT_EOF >> "$cfgfile"
18431 # AIX sometimes has problems with the GCC collect2 program.  For some
18432 # reason, if we set the COLLECT_NAMES environment variable, the problems
18433 # vanish in a puff of smoke.
18434 if test "X${COLLECT_NAMES+set}" != Xset; then
18435   COLLECT_NAMES=
18436   export COLLECT_NAMES
18437 fi
18438 _LT_EOF
18439     ;;
18440   esac
18441
18442
18443 ltmain="$ac_aux_dir/ltmain.sh"
18444
18445
18446   # We use sed instead of cat because bash on DJGPP gets confused if
18447   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18448   # text mode, it properly converts lines to CR/LF.  This bash problem
18449   # is reportedly fixed, but why not run on old versions too?
18450   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18451     || (rm -f "$cfgfile"; exit 1)
18452
18453   case $xsi_shell in
18454   yes)
18455     cat << \_LT_EOF >> "$cfgfile"
18456
18457 # func_dirname file append nondir_replacement
18458 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18459 # otherwise set result to NONDIR_REPLACEMENT.
18460 func_dirname ()
18461 {
18462   case ${1} in
18463     */*) func_dirname_result="${1%/*}${2}" ;;
18464     *  ) func_dirname_result="${3}" ;;
18465   esac
18466 }
18467
18468 # func_basename file
18469 func_basename ()
18470 {
18471   func_basename_result="${1##*/}"
18472 }
18473
18474 # func_dirname_and_basename file append nondir_replacement
18475 # perform func_basename and func_dirname in a single function
18476 # call:
18477 #   dirname:  Compute the dirname of FILE.  If nonempty,
18478 #             add APPEND to the result, otherwise set result
18479 #             to NONDIR_REPLACEMENT.
18480 #             value returned in "$func_dirname_result"
18481 #   basename: Compute filename of FILE.
18482 #             value retuned in "$func_basename_result"
18483 # Implementation must be kept synchronized with func_dirname
18484 # and func_basename. For efficiency, we do not delegate to
18485 # those functions but instead duplicate the functionality here.
18486 func_dirname_and_basename ()
18487 {
18488   case ${1} in
18489     */*) func_dirname_result="${1%/*}${2}" ;;
18490     *  ) func_dirname_result="${3}" ;;
18491   esac
18492   func_basename_result="${1##*/}"
18493 }
18494
18495 # func_stripname prefix suffix name
18496 # strip PREFIX and SUFFIX off of NAME.
18497 # PREFIX and SUFFIX must not contain globbing or regex special
18498 # characters, hashes, percent signs, but SUFFIX may contain a leading
18499 # dot (in which case that matches only a dot).
18500 func_stripname ()
18501 {
18502   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18503   # positional parameters, so assign one to ordinary parameter first.
18504   func_stripname_result=${3}
18505   func_stripname_result=${func_stripname_result#"${1}"}
18506   func_stripname_result=${func_stripname_result%"${2}"}
18507 }
18508
18509 # func_opt_split
18510 func_opt_split ()
18511 {
18512   func_opt_split_opt=${1%%=*}
18513   func_opt_split_arg=${1#*=}
18514 }
18515
18516 # func_lo2o object
18517 func_lo2o ()
18518 {
18519   case ${1} in
18520     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18521     *)    func_lo2o_result=${1} ;;
18522   esac
18523 }
18524
18525 # func_xform libobj-or-source
18526 func_xform ()
18527 {
18528   func_xform_result=${1%.*}.lo
18529 }
18530
18531 # func_arith arithmetic-term...
18532 func_arith ()
18533 {
18534   func_arith_result=$(( $* ))
18535 }
18536
18537 # func_len string
18538 # STRING may not start with a hyphen.
18539 func_len ()
18540 {
18541   func_len_result=${#1}
18542 }
18543
18544 _LT_EOF
18545     ;;
18546   *) # Bourne compatible functions.
18547     cat << \_LT_EOF >> "$cfgfile"
18548
18549 # func_dirname file append nondir_replacement
18550 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18551 # otherwise set result to NONDIR_REPLACEMENT.
18552 func_dirname ()
18553 {
18554   # Extract subdirectory from the argument.
18555   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18556   if test "X$func_dirname_result" = "X${1}"; then
18557     func_dirname_result="${3}"
18558   else
18559     func_dirname_result="$func_dirname_result${2}"
18560   fi
18561 }
18562
18563 # func_basename file
18564 func_basename ()
18565 {
18566   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18567 }
18568
18569
18570 # func_stripname prefix suffix name
18571 # strip PREFIX and SUFFIX off of NAME.
18572 # PREFIX and SUFFIX must not contain globbing or regex special
18573 # characters, hashes, percent signs, but SUFFIX may contain a leading
18574 # dot (in which case that matches only a dot).
18575 # func_strip_suffix prefix name
18576 func_stripname ()
18577 {
18578   case ${2} in
18579     .*) func_stripname_result=`$ECHO "X${3}" \
18580            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18581     *)  func_stripname_result=`$ECHO "X${3}" \
18582            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18583   esac
18584 }
18585
18586 # sed scripts:
18587 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18588 my_sed_long_arg='1s/^-[^=]*=//'
18589
18590 # func_opt_split
18591 func_opt_split ()
18592 {
18593   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18594   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18595 }
18596
18597 # func_lo2o object
18598 func_lo2o ()
18599 {
18600   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18601 }
18602
18603 # func_xform libobj-or-source
18604 func_xform ()
18605 {
18606   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18607 }
18608
18609 # func_arith arithmetic-term...
18610 func_arith ()
18611 {
18612   func_arith_result=`expr "$@"`
18613 }
18614
18615 # func_len string
18616 # STRING may not start with a hyphen.
18617 func_len ()
18618 {
18619   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18620 }
18621
18622 _LT_EOF
18623 esac
18624
18625 case $lt_shell_append in
18626   yes)
18627     cat << \_LT_EOF >> "$cfgfile"
18628
18629 # func_append var value
18630 # Append VALUE to the end of shell variable VAR.
18631 func_append ()
18632 {
18633   eval "$1+=\$2"
18634 }
18635 _LT_EOF
18636     ;;
18637   *)
18638     cat << \_LT_EOF >> "$cfgfile"
18639
18640 # func_append var value
18641 # Append VALUE to the end of shell variable VAR.
18642 func_append ()
18643 {
18644   eval "$1=\$$1\$2"
18645 }
18646
18647 _LT_EOF
18648     ;;
18649   esac
18650
18651
18652   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18653     || (rm -f "$cfgfile"; exit 1)
18654
18655   mv -f "$cfgfile" "$ofile" ||
18656     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18657   chmod +x "$ofile"
18658
18659
18660     cat <<_LT_EOF >> "$ofile"
18661
18662 # ### BEGIN LIBTOOL TAG CONFIG: FC
18663
18664 # The linker used to build libraries.
18665 LD=$lt_LD_FC
18666
18667 # Commands used to build an old-style archive.
18668 old_archive_cmds=$lt_old_archive_cmds_FC
18669
18670 # A language specific compiler.
18671 CC=$lt_compiler_FC
18672
18673 # Is the compiler the GNU compiler?
18674 with_gcc=$GCC_FC
18675
18676 # Compiler flag to turn off builtin functions.
18677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18678
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_FC
18681
18682 # Additional compiler flags for building library objects.
18683 pic_flag=$lt_lt_prog_compiler_pic_FC
18684
18685 # Compiler flag to prevent dynamic linking.
18686 link_static_flag=$lt_lt_prog_compiler_static_FC
18687
18688 # Does compiler simultaneously support -c and -o options?
18689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18690
18691 # Whether or not to add -lc for building shared libraries.
18692 build_libtool_need_lc=$archive_cmds_need_lc_FC
18693
18694 # Whether or not to disallow shared libs when runtime libs are static.
18695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18696
18697 # Compiler flag to allow reflexive dlopens.
18698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18699
18700 # Compiler flag to generate shared objects directly from archives.
18701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18702
18703 # Whether the compiler copes with passing no objects directly.
18704 compiler_needs_object=$lt_compiler_needs_object_FC
18705
18706 # Create an old-style archive from a shared archive.
18707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18708
18709 # Create a temporary old-style archive to link instead of a shared archive.
18710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18711
18712 # Commands used to build a shared archive.
18713 archive_cmds=$lt_archive_cmds_FC
18714 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18715
18716 # Commands used to build a loadable module if different from building
18717 # a shared archive.
18718 module_cmds=$lt_module_cmds_FC
18719 module_expsym_cmds=$lt_module_expsym_cmds_FC
18720
18721 # Whether we are building with GNU ld or not.
18722 with_gnu_ld=$lt_with_gnu_ld_FC
18723
18724 # Flag that allows shared libraries with undefined symbols to be built.
18725 allow_undefined_flag=$lt_allow_undefined_flag_FC
18726
18727 # Flag that enforces no undefined symbols.
18728 no_undefined_flag=$lt_no_undefined_flag_FC
18729
18730 # Flag to hardcode \$libdir into a binary during linking.
18731 # This must work even if \$libdir does not exist
18732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18733
18734 # If ld is used when linking, flag to hardcode \$libdir into a binary
18735 # during linking.  This must work even if \$libdir does not exist.
18736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18737
18738 # Whether we need a single "-rpath" flag with a separated argument.
18739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18740
18741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18742 # DIR into the resulting binary.
18743 hardcode_direct=$hardcode_direct_FC
18744
18745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18746 # DIR into the resulting binary and the resulting library dependency is
18747 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18748 # library is relocated.
18749 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18750
18751 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18752 # into the resulting binary.
18753 hardcode_minus_L=$hardcode_minus_L_FC
18754
18755 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18756 # into the resulting binary.
18757 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18758
18759 # Set to "yes" if building a shared library automatically hardcodes DIR
18760 # into the library and all subsequent libraries and executables linked
18761 # against it.
18762 hardcode_automatic=$hardcode_automatic_FC
18763
18764 # Set to yes if linker adds runtime paths of dependent libraries
18765 # to runtime path list.
18766 inherit_rpath=$inherit_rpath_FC
18767
18768 # Whether libtool must link a program against all its dependency libraries.
18769 link_all_deplibs=$link_all_deplibs_FC
18770
18771 # Fix the shell variable \$srcfile for the compiler.
18772 fix_srcfile_path=$lt_fix_srcfile_path_FC
18773
18774 # Set to "yes" if exported symbols are required.
18775 always_export_symbols=$always_export_symbols_FC
18776
18777 # The commands to list exported symbols.
18778 export_symbols_cmds=$lt_export_symbols_cmds_FC
18779
18780 # Symbols that should not be listed in the preloaded symbols.
18781 exclude_expsyms=$lt_exclude_expsyms_FC
18782
18783 # Symbols that must always be exported.
18784 include_expsyms=$lt_include_expsyms_FC
18785
18786 # Commands necessary for linking programs (against libraries) with templates.
18787 prelink_cmds=$lt_prelink_cmds_FC
18788
18789 # Specify filename containing input files.
18790 file_list_spec=$lt_file_list_spec_FC
18791
18792 # How to hardcode a shared library path into an executable.
18793 hardcode_action=$hardcode_action_FC
18794
18795 # The directories searched by this compiler when creating a shared library.
18796 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18797
18798 # Dependencies to place before and after the objects being linked to
18799 # create a shared library.
18800 predep_objects=$lt_predep_objects_FC
18801 postdep_objects=$lt_postdep_objects_FC
18802 predeps=$lt_predeps_FC
18803 postdeps=$lt_postdeps_FC
18804
18805 # The library search path used internally by the compiler when linking
18806 # a shared library.
18807 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18808
18809 # ### END LIBTOOL TAG CONFIG: FC
18810 _LT_EOF
18811
18812  ;;
18813     "gstdint.h":C)
18814 if test "$GCC" = yes; then
18815   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18816 else
18817   echo "/* generated for $CC */" > tmp-stdint.h
18818 fi
18819
18820 sed 's/^ *//' >> tmp-stdint.h <<EOF
18821
18822   #ifndef GCC_GENERATED_STDINT_H
18823   #define GCC_GENERATED_STDINT_H 1
18824
18825   #include <sys/types.h>
18826 EOF
18827
18828 if test "$acx_cv_header_stdint" != stdint.h; then
18829   echo "#include <stddef.h>" >> tmp-stdint.h
18830 fi
18831 if test "$acx_cv_header_stdint" != stddef.h; then
18832   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18833 fi
18834
18835 sed 's/^ *//' >> tmp-stdint.h <<EOF
18836   /* glibc uses these symbols as guards to prevent redefinitions.  */
18837   #ifdef __int8_t_defined
18838   #define _INT8_T
18839   #define _INT16_T
18840   #define _INT32_T
18841   #endif
18842   #ifdef __uint32_t_defined
18843   #define _UINT32_T
18844   #endif
18845
18846 EOF
18847
18848 # ----------------- done header, emit basic int types -------------
18849 if test "$acx_cv_header_stdint" = stddef.h; then
18850   sed 's/^ *//' >> tmp-stdint.h <<EOF
18851
18852     #ifndef _UINT8_T
18853     #define _UINT8_T
18854     #ifndef __uint8_t_defined
18855     #define __uint8_t_defined
18856     typedef unsigned $acx_cv_type_int8_t uint8_t;
18857     #endif
18858     #endif
18859
18860     #ifndef _UINT16_T
18861     #define _UINT16_T
18862     #ifndef __uint16_t_defined
18863     #define __uint16_t_defined
18864     typedef unsigned $acx_cv_type_int16_t uint16_t;
18865     #endif
18866     #endif
18867
18868     #ifndef _UINT32_T
18869     #define _UINT32_T
18870     #ifndef __uint32_t_defined
18871     #define __uint32_t_defined
18872     typedef unsigned $acx_cv_type_int32_t uint32_t;
18873     #endif
18874     #endif
18875
18876     #ifndef _INT8_T
18877     #define _INT8_T
18878     #ifndef __int8_t_defined
18879     #define __int8_t_defined
18880     typedef $acx_cv_type_int8_t int8_t;
18881     #endif
18882     #endif
18883
18884     #ifndef _INT16_T
18885     #define _INT16_T
18886     #ifndef __int16_t_defined
18887     #define __int16_t_defined
18888     typedef $acx_cv_type_int16_t int16_t;
18889     #endif
18890     #endif
18891
18892     #ifndef _INT32_T
18893     #define _INT32_T
18894     #ifndef __int32_t_defined
18895     #define __int32_t_defined
18896     typedef $acx_cv_type_int32_t int32_t;
18897     #endif
18898     #endif
18899 EOF
18900 elif test "$ac_cv_type_u_int32_t" = yes; then
18901   sed 's/^ *//' >> tmp-stdint.h <<EOF
18902
18903     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18904     #ifndef _INT8_T
18905     #define _INT8_T
18906     #endif
18907     #ifndef _INT16_T
18908     #define _INT16_T
18909     #endif
18910     #ifndef _INT32_T
18911     #define _INT32_T
18912     #endif
18913
18914     #ifndef _UINT8_T
18915     #define _UINT8_T
18916     #ifndef __uint8_t_defined
18917     #define __uint8_t_defined
18918     typedef u_int8_t uint8_t;
18919     #endif
18920     #endif
18921
18922     #ifndef _UINT16_T
18923     #define _UINT16_T
18924     #ifndef __uint16_t_defined
18925     #define __uint16_t_defined
18926     typedef u_int16_t uint16_t;
18927     #endif
18928     #endif
18929
18930     #ifndef _UINT32_T
18931     #define _UINT32_T
18932     #ifndef __uint32_t_defined
18933     #define __uint32_t_defined
18934     typedef u_int32_t uint32_t;
18935     #endif
18936     #endif
18937 EOF
18938 else
18939   sed 's/^ *//' >> tmp-stdint.h <<EOF
18940
18941     /* Some systems have guard macros to prevent redefinitions, define them.  */
18942     #ifndef _INT8_T
18943     #define _INT8_T
18944     #endif
18945     #ifndef _INT16_T
18946     #define _INT16_T
18947     #endif
18948     #ifndef _INT32_T
18949     #define _INT32_T
18950     #endif
18951     #ifndef _UINT8_T
18952     #define _UINT8_T
18953     #endif
18954     #ifndef _UINT16_T
18955     #define _UINT16_T
18956     #endif
18957     #ifndef _UINT32_T
18958     #define _UINT32_T
18959     #endif
18960 EOF
18961 fi
18962
18963 # ------------- done basic int types, emit int64_t types ------------
18964 if test "$ac_cv_type_uint64_t" = yes; then
18965   sed 's/^ *//' >> tmp-stdint.h <<EOF
18966
18967     /* system headers have good uint64_t and int64_t */
18968     #ifndef _INT64_T
18969     #define _INT64_T
18970     #endif
18971     #ifndef _UINT64_T
18972     #define _UINT64_T
18973     #endif
18974 EOF
18975 elif test "$ac_cv_type_u_int64_t" = yes; then
18976   sed 's/^ *//' >> tmp-stdint.h <<EOF
18977
18978     /* system headers have an u_int64_t (and int64_t) */
18979     #ifndef _INT64_T
18980     #define _INT64_T
18981     #endif
18982     #ifndef _UINT64_T
18983     #define _UINT64_T
18984     #ifndef __uint64_t_defined
18985     #define __uint64_t_defined
18986     typedef u_int64_t uint64_t;
18987     #endif
18988     #endif
18989 EOF
18990 elif test -n "$acx_cv_type_int64_t"; then
18991   sed 's/^ *//' >> tmp-stdint.h <<EOF
18992
18993     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18994     #ifndef _INT64_T
18995     #define _INT64_T
18996     typedef $acx_cv_type_int64_t int64_t;
18997     #endif
18998     #ifndef _UINT64_T
18999     #define _UINT64_T
19000     #ifndef __uint64_t_defined
19001     #define __uint64_t_defined
19002     typedef unsigned $acx_cv_type_int64_t uint64_t;
19003     #endif
19004     #endif
19005 EOF
19006 else
19007   sed 's/^ *//' >> tmp-stdint.h <<EOF
19008
19009     /* some common heuristics for int64_t, using compiler-specific tests */
19010     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19011     #ifndef _INT64_T
19012     #define _INT64_T
19013     #ifndef __int64_t_defined
19014     typedef long long int64_t;
19015     #endif
19016     #endif
19017     #ifndef _UINT64_T
19018     #define _UINT64_T
19019     typedef unsigned long long uint64_t;
19020     #endif
19021
19022     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19023     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19024        does not implement __extension__.  But that compiler doesn't define
19025        __GNUC_MINOR__.  */
19026     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19027     # define __extension__
19028     # endif
19029
19030     # ifndef _INT64_T
19031     # define _INT64_T
19032     __extension__ typedef long long int64_t;
19033     # endif
19034     # ifndef _UINT64_T
19035     # define _UINT64_T
19036     __extension__ typedef unsigned long long uint64_t;
19037     # endif
19038
19039     #elif !defined __STRICT_ANSI__
19040     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19041
19042     #  ifndef _INT64_T
19043     #  define _INT64_T
19044     typedef __int64 int64_t;
19045     #  endif
19046     #  ifndef _UINT64_T
19047     #  define _UINT64_T
19048     typedef unsigned __int64 uint64_t;
19049     #  endif
19050     # endif /* compiler */
19051
19052     #endif /* ANSI version */
19053 EOF
19054 fi
19055
19056 # ------------- done int64_t types, emit intptr types ------------
19057 if test "$ac_cv_type_uintptr_t" != yes; then
19058   sed 's/^ *//' >> tmp-stdint.h <<EOF
19059
19060     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19061     #ifndef __uintptr_t_defined
19062     typedef u$acx_cv_type_intptr_t uintptr_t;
19063     #endif
19064     #ifndef __intptr_t_defined
19065     typedef $acx_cv_type_intptr_t  intptr_t;
19066     #endif
19067 EOF
19068 fi
19069
19070 # ------------- done intptr types, emit int_least types ------------
19071 if test "$ac_cv_type_int_least32_t" != yes; then
19072   sed 's/^ *//' >> tmp-stdint.h <<EOF
19073
19074     /* Define int_least types */
19075     typedef int8_t     int_least8_t;
19076     typedef int16_t    int_least16_t;
19077     typedef int32_t    int_least32_t;
19078     #ifdef _INT64_T
19079     typedef int64_t    int_least64_t;
19080     #endif
19081
19082     typedef uint8_t    uint_least8_t;
19083     typedef uint16_t   uint_least16_t;
19084     typedef uint32_t   uint_least32_t;
19085     #ifdef _UINT64_T
19086     typedef uint64_t   uint_least64_t;
19087     #endif
19088 EOF
19089 fi
19090
19091 # ------------- done intptr types, emit int_fast types ------------
19092 if test "$ac_cv_type_int_fast32_t" != yes; then
19093       sed 's/^ *//' >> tmp-stdint.h <<EOF
19094
19095     /* Define int_fast types.  short is often slow */
19096     typedef int8_t       int_fast8_t;
19097     typedef int          int_fast16_t;
19098     typedef int32_t      int_fast32_t;
19099     #ifdef _INT64_T
19100     typedef int64_t      int_fast64_t;
19101     #endif
19102
19103     typedef uint8_t      uint_fast8_t;
19104     typedef unsigned int uint_fast16_t;
19105     typedef uint32_t     uint_fast32_t;
19106     #ifdef _UINT64_T
19107     typedef uint64_t     uint_fast64_t;
19108     #endif
19109 EOF
19110 fi
19111
19112 if test "$ac_cv_type_uintmax_t" != yes; then
19113   sed 's/^ *//' >> tmp-stdint.h <<EOF
19114
19115     /* Define intmax based on what we found */
19116     #ifdef _INT64_T
19117     typedef int64_t       intmax_t;
19118     #else
19119     typedef long          intmax_t;
19120     #endif
19121     #ifdef _UINT64_T
19122     typedef uint64_t      uintmax_t;
19123     #else
19124     typedef unsigned long uintmax_t;
19125     #endif
19126 EOF
19127 fi
19128
19129 sed 's/^ *//' >> tmp-stdint.h <<EOF
19130
19131   #endif /* GCC_GENERATED_STDINT_H */
19132 EOF
19133
19134 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19135   rm -f tmp-stdint.h
19136 else
19137   mv -f tmp-stdint.h gstdint.h
19138 fi
19139
19140  ;;
19141
19142   esac
19143 done # for ac_tag
19144
19145
19146 as_fn_exit 0
19147 _ACEOF
19148 ac_clean_files=$ac_clean_files_save
19149
19150 test $ac_write_fail = 0 ||
19151   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19152
19153
19154 # configure is writing to config.log, and then calls config.status.
19155 # config.status does its own redirection, appending to config.log.
19156 # Unfortunately, on DOS this fails, as config.log is still kept open
19157 # by configure, so config.status won't be able to write to it; its
19158 # output is simply discarded.  So we exec the FD to /dev/null,
19159 # effectively closing config.log, so it can be properly (re)opened and
19160 # appended to by config.status.  When coming back to configure, we
19161 # need to make the FD available again.
19162 if test "$no_create" != yes; then
19163   ac_cs_success=:
19164   ac_config_status_args=
19165   test "$silent" = yes &&
19166     ac_config_status_args="$ac_config_status_args --quiet"
19167   exec 5>/dev/null
19168   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19169   exec 5>>config.log
19170   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19171   # would make configure fail if this is the last instruction.
19172   $ac_cs_success || as_fn_exit $?
19173 fi
19174 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19176 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19177 fi
19178