bugfix return ()
[libgpiv.git] / configure
blob1228205599a073af1309d10551499a234e09fe3a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libgpiv 0.6.1.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
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
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+"$@"}
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."
234 exit 1
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
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
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 ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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 ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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 ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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 ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
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
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
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
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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
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
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
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;;
460 ECHO_N='-n';;
461 esac
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
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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
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
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=
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
518 as_executable_p=$as_test_x
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'"
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'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
536 esac
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
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
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
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
576 done
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
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'
588 # So, first we look for a working echo in the user's PATH.
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
600 done
601 IFS="$lt_save_ifs"
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
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=:
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
649 prev="$cmd"
650 done
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
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"
676 exec 7<&0 </dev/null 6>&1
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`
684 # Initializations.
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=
695 # Identity of this package.
696 PACKAGE_NAME='libgpiv'
697 PACKAGE_TARNAME='libgpiv'
698 PACKAGE_VERSION='0.6.1'
699 PACKAGE_STRING='libgpiv 0.6.1'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
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"
739 ac_subst_vars='am__EXEEXT_FALSE
740 am__EXEEXT_TRUE
741 LTLIBOBJS
742 LIBOBJS
743 BUILD_MPI_FALSE
744 BUILD_MPI_TRUE
745 MPILIBS
746 MPICC
747 ENABLE_MPI
748 RTA_TOPDIR
749 ENABLE_TRIG
750 ENABLE_CAM
751 PNMTOPNG
752 GLIB_LIBS
753 GLIB_CFLAGS
754 PKG_CONFIG
755 am__fastdepCXX_FALSE
756 am__fastdepCXX_TRUE
757 CXXDEPMODE
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 DOXYGEN_PAPER_SIZE
788 DX_COND_latex_FALSE
789 DX_COND_latex_TRUE
790 DX_COND_pdf_FALSE
791 DX_COND_pdf_TRUE
792 DX_PDFLATEX
793 DX_FLAG_pdf
794 DX_COND_ps_FALSE
795 DX_COND_ps_TRUE
796 DX_EGREP
797 DX_DVIPS
798 DX_MAKEINDEX
799 DX_LATEX
800 DX_FLAG_ps
801 DX_COND_html_FALSE
802 DX_COND_html_TRUE
803 DX_FLAG_html
804 DX_COND_chi_FALSE
805 DX_COND_chi_TRUE
806 DX_FLAG_chi
807 DX_COND_chm_FALSE
808 DX_COND_chm_TRUE
809 DX_HHC
810 DX_FLAG_chm
811 DX_COND_xml_FALSE
812 DX_COND_xml_TRUE
813 DX_FLAG_xml
814 DX_COND_rtf_FALSE
815 DX_COND_rtf_TRUE
816 DX_FLAG_rtf
817 DX_COND_man_FALSE
818 DX_COND_man_TRUE
819 DX_FLAG_man
820 DX_COND_dot_FALSE
821 DX_COND_dot_TRUE
822 DX_DOT
823 DX_FLAG_dot
824 DX_COND_doc_FALSE
825 DX_COND_doc_TRUE
826 DX_PERL
827 DX_DOXYGEN
828 DX_FLAG_doc
829 DX_ENV
830 DX_DOCDIR
831 DX_CONFIG
832 DX_PROJECT
833 DOXYGEN
834 HAVE_PERL_FALSE
835 HAVE_PERL_TRUE
836 PERL
837 HAVE_GNUPLOT_FALSE
838 HAVE_GNUPLOT_TRUE
839 GNUPLOT
841 CXXCPP
843 OTOOL64
844 OTOOL
845 LIPO
846 NMEDIT
847 DSYMUTIL
848 lt_ECHO
849 RANLIB
850 STRIP
852 OBJDUMP
853 LN_S
855 ac_ct_DUMPBIN
856 DUMPBIN
858 FGREP
859 EGREP
860 GREP
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 LIBTOOL
871 ac_ct_CXX
872 CXXFLAGS
874 OBJEXT
875 EXEEXT
876 ac_ct_CC
877 CPPFLAGS
878 LDFLAGS
879 CFLAGS
881 PACKAGE
882 LT_AGE
883 LT_REVISION
884 LT_CURRENT
885 LT_RELEASE
886 GPIV_VERSION
887 GPIV_MICRO_VERSION
888 GPIV_MINOR_VERSION
889 GPIV_MAJOR_VERSION
890 target_alias
891 host_alias
892 build_alias
893 LIBS
894 ECHO_T
895 ECHO_N
896 ECHO_C
897 DEFS
898 mandir
899 localedir
900 libdir
901 psdir
902 pdfdir
903 dvidir
904 htmldir
905 infodir
906 docdir
907 oldincludedir
908 includedir
909 localstatedir
910 sharedstatedir
911 sysconfdir
912 datadir
913 datarootdir
914 libexecdir
915 sbindir
916 bindir
917 program_transform_name
918 prefix
919 exec_prefix
920 PACKAGE_URL
921 PACKAGE_BUGREPORT
922 PACKAGE_STRING
923 PACKAGE_VERSION
924 PACKAGE_TARNAME
925 PACKAGE_NAME
926 PATH_SEPARATOR
927 SHELL'
928 ac_subst_files=''
929 ac_user_opts='
930 enable_option_checking
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_doxygen_doc
938 enable_doxygen_dot
939 enable_doxygen_man
940 enable_doxygen_rtf
941 enable_doxygen_xml
942 enable_doxygen_chm
943 enable_doxygen_chi
944 enable_doxygen_html
945 enable_doxygen_ps
946 enable_doxygen_pdf
947 enable_dependency_tracking
948 enable_cam
949 enable_trig
950 enable_rta
951 enable_mpi
952 enable_omp
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
963 CXXFLAGS
966 CXXCPP
967 DOXYGEN_PAPER_SIZE
968 PKG_CONFIG
969 GLIB_CFLAGS
970 GLIB_LIBS
971 MPICC'
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1465 /^X\(\/\/\)$/{
1466 s//\1/
1469 /^X\(\/\).*/{
1470 s//\1/
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1478 else
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures libgpiv 0.6.1 to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/libgpiv]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1568 cat <<\_ACEOF
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 _ACEOF
1581 if test -n "$ac_init_help"; then
1582 case $ac_init_help in
1583 short | recursive ) echo "Configuration of libgpiv 0.6.1:";;
1584 esac
1585 cat <<\_ACEOF
1587 Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --enable-shared[=PKGS] build shared libraries [default=yes]
1592 --enable-static[=PKGS] build static libraries [default=yes]
1593 --enable-fast-install[=PKGS]
1594 optimize for fast installation [default=yes]
1595 --disable-libtool-lock avoid locking (might break parallel builds)
1596 --disable-doxygen-doc don't generate any doxygen documentation
1597 --disable-doxygen-dot don't generate graphics for doxygen documentation
1598 --enable-doxygen-man generate doxygen manual pages
1599 --enable-doxygen-rtf generate doxygen RTF documentation
1600 --enable-doxygen-xml generate doxygen XML documentation
1601 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1602 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1603 file
1604 --disable-doxygen-html don't generate doxygen plain HTML documentation
1605 --enable-doxygen-ps generate doxygen PostScript documentation
1606 --enable-doxygen-pdf generate doxygen PDF documentation
1607 --disable-dependency-tracking speeds up one-time build
1608 --enable-dependency-tracking do not reject slow dependency extractors
1609 --enable-cam enable (IEEE-1394) camera
1610 --enable-trig enable (realtime) triggering
1611 --enable-rta=RTA_DIR place where the RTAI code resides
1612 (default /usr/lib/realtime)
1613 --enable-mpi enable message protocol interface
1614 --enable-omp enable Open Multi-Processing (OMP)
1616 Optional Packages:
1617 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1618 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1619 --with-pic try to use only PIC/non-PIC objects [default=use
1620 both]
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1623 Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
1628 LIBS libraries to pass to the linker, e.g. -l<library>
1629 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1630 you have headers in a nonstandard directory <include dir>
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 CPP C preprocessor
1634 CXXCPP C++ preprocessor
1635 DOXYGEN_PAPER_SIZE
1636 a4wide (default), a4, letter, legal or executive
1637 PKG_CONFIG path to pkg-config utility
1638 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1639 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1640 MPICC MPI C compiler command
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1645 Report bugs to the package provider.
1646 _ACEOF
1647 ac_status=$?
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 libgpiv configure 0.6.1
1709 generated by GNU Autoconf 2.64
1711 Copyright (C) 2009 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_link LINENO
1761 # -----------------------
1762 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_link ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext conftest$ac_exeext
1767 if { { ac_try="$ac_link"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest$ac_exeext && {
1786 test "$cross_compiling" = yes ||
1787 $as_test_x conftest$ac_exeext
1788 }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1798 # interfere with the next link command; also delete a directory that is
1799 # left behind by Apple's compiler. We do this before executing the actions.
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 return $ac_retval
1804 } # ac_fn_c_try_link
1806 # ac_fn_cxx_try_compile LINENO
1807 # ----------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_cxx_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_cxx_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1837 ac_retval=1
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 return $ac_retval
1842 } # ac_fn_cxx_try_compile
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_c_try_cpp
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1937 ac_status=$?
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 return $ac_retval
1952 } # ac_fn_c_try_run
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1964 else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969 #define $2 innocuous_$2
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1976 #ifdef __STDC__
1977 # include <limits.h>
1978 #else
1979 # include <assert.h>
1980 #endif
1982 #undef $2
1984 /* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1999 main ()
2001 return $2 ();
2003 return 0;
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"; then :
2007 eval "$3=yes"
2008 else
2009 eval "$3=no"
2011 rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_func
2021 # ac_fn_cxx_try_cpp LINENO
2022 # ------------------------
2023 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_cpp ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_cpp conftest.$ac_ext"
2028 case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } >/dev/null && {
2043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=1
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 return $ac_retval
2056 } # ac_fn_cxx_try_cpp
2058 # ac_fn_cxx_try_link LINENO
2059 # -------------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded.
2061 ac_fn_cxx_try_link ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 rm -f conftest.$ac_objext conftest$ac_exeext
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && {
2081 test -z "$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 } && test -s conftest$ac_exeext && {
2084 test "$cross_compiling" = yes ||
2085 $as_test_x conftest$ac_exeext
2086 }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_retval=1
2094 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096 # interfere with the next link command; also delete a directory that is
2097 # left behind by Apple's compiler. We do this before executing the actions.
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 return $ac_retval
2102 } # ac_fn_cxx_try_link
2104 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105 # -------------------------------------------
2106 # Tests whether TYPE exists after having included INCLUDES, setting cache
2107 # variable VAR accordingly.
2108 ac_fn_c_check_type ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 eval "$3=no"
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 if (sizeof ($2))
2124 return 0;
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 if (sizeof (($2)))
2137 return 0;
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2144 else
2145 eval "$3=yes"
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_c_check_type
2158 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159 # -------------------------------------------------------
2160 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161 # the include files in INCLUDES and setting the cache variable VAR
2162 # accordingly.
2163 ac_fn_c_check_header_mongrel ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168 $as_echo_n "checking for $2... " >&6; }
2169 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2170 $as_echo_n "(cached) " >&6
2172 eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 else
2176 # Is the header compilable?
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178 $as_echo_n "checking $2 usability... " >&6; }
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 #include <$2>
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_header_compiler=yes
2186 else
2187 ac_header_compiler=no
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191 $as_echo "$ac_header_compiler" >&6; }
2193 # Is the header present?
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195 $as_echo_n "checking $2 presence... " >&6; }
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 #include <$2>
2199 _ACEOF
2200 if ac_fn_c_try_cpp "$LINENO"; then :
2201 ac_header_preproc=yes
2202 else
2203 ac_header_preproc=no
2205 rm -f conftest.err conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207 $as_echo "$ac_header_preproc" >&6; }
2209 # So? What about this header?
2210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211 yes:no: )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217 no:yes:* )
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2221 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2225 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229 esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 eval "$3=\$ac_header_compiler"
2237 eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243 } # ac_fn_c_check_header_mongrel
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2248 It was created by libgpiv $as_me 0.6.1, which was
2249 generated by GNU Autoconf 2.64. Invocation command line was
2251 $ $0 $@
2253 _ACEOF
2254 exec 5>>config.log
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278 _ASUNAME
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 $as_echo "PATH: $as_dir"
2286 done
2287 IFS=$as_save_IFS
2289 } >&5
2291 cat >&5 <<_ACEOF
2294 ## ----------- ##
2295 ## Core tests. ##
2296 ## ----------- ##
2298 _ACEOF
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2306 ac_configure_args=
2307 ac_configure_args0=
2308 ac_configure_args1=
2309 ac_must_keep_next=false
2310 for ac_pass in 1 2
2312 for ac_arg
2314 case $ac_arg in
2315 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2317 | -silent | --silent | --silen | --sile | --sil)
2318 continue ;;
2319 *\'*)
2320 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 case $ac_pass in
2323 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 as_fn_append ac_configure_args1 " '$ac_arg'"
2326 if test $ac_must_keep_next = true; then
2327 ac_must_keep_next=false # Got value, back to normal.
2328 else
2329 case $ac_arg in
2330 *=* | --config-cache | -C | -disable-* | --disable-* \
2331 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2332 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2333 | -with-* | --with-* | -without-* | --without-* | --x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2336 esac
2338 -* ) ac_must_keep_next=true ;;
2339 esac
2341 as_fn_append ac_configure_args " '$ac_arg'"
2343 esac
2344 done
2345 done
2346 { ac_configure_args0=; unset ac_configure_args0;}
2347 { ac_configure_args1=; unset ac_configure_args1;}
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2357 echo
2359 cat <<\_ASBOX
2360 ## ---------------- ##
2361 ## Cache variables. ##
2362 ## ---------------- ##
2363 _ASBOX
2364 echo
2365 # The following way of writing the cache mishandles newlines in values,
2367 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368 eval ac_val=\$$ac_var
2369 case $ac_val in #(
2370 *${as_nl}*)
2371 case $ac_var in #(
2372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2374 esac
2375 case $ac_var in #(
2376 _ | IFS | as_nl) ;; #(
2377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378 *) { eval $ac_var=; unset $ac_var;} ;;
2379 esac ;;
2380 esac
2381 done
2382 (set) 2>&1 |
2383 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384 *${as_nl}ac_space=\ *)
2385 sed -n \
2386 "s/'\''/'\''\\\\'\'''\''/g;
2387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2388 ;; #(
2390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 esac |
2393 sort
2395 echo
2397 cat <<\_ASBOX
2398 ## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##
2401 _ASBOX
2402 echo
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2406 case $ac_val in
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408 esac
2409 $as_echo "$ac_var='\''$ac_val'\''"
2410 done | sort
2411 echo
2413 if test -n "$ac_subst_files"; then
2414 cat <<\_ASBOX
2415 ## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##
2418 _ASBOX
2419 echo
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2431 if test -s confdefs.h; then
2432 cat <<\_ASBOX
2433 ## ----------- ##
2434 ## confdefs.h. ##
2435 ## ----------- ##
2436 _ASBOX
2437 echo
2438 cat confdefs.h
2439 echo
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 ac_site_file1=$CONFIG_SITE
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
2496 ac_site_file1=$ac_default_prefix/share/config.site
2497 ac_site_file2=$ac_default_prefix/etc/config.site
2499 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501 test "x$ac_site_file" = xNONE && continue
2502 if test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2506 . "$ac_site_file"
2508 done
2510 if test -r "$cache_file"; then
2511 # Some versions of bash will fail to source /dev/null (special
2512 # files actually), so we avoid doing that.
2513 if test -f "$cache_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2515 $as_echo "$as_me: loading cache $cache_file" >&6;}
2516 case $cache_file in
2517 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2518 *) . "./$cache_file";;
2519 esac
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2523 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 >$cache_file
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2576 done
2577 if $ac_cache_corrupted; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_config_headers="$ac_config_headers config.h"
2598 # Unstable (alpha), testing (beta) or stable
2599 GPIV_MAJOR_VERSION=0
2600 # Large improvements against previous Minor release
2601 GPIV_MINOR_VERSION=6
2602 # Any changes: Improved functionality, added features, debugs, also changed API!
2603 GPIV_MICRO_VERSION=1
2605 GPIV_VERSION=$GPIV_MAJOR_VERSION.$GPIV_MINOR_VERSION.$GPIV_MICRO_VERSION
2612 # libtool versioning. See libtool-doc chapter 6.3.
2613 LT_RELEASE=$GPIV_MAJOR_VERSION.$GPIV_MINOR_VERSION
2614 LT_CURRENT=3
2615 LT_REVISION=0
2616 LT_AGE=0
2618 #`expr $GPIV_BINARY_AGE - $GPIV_INTERFACE_AGE`
2624 VERSION=$GPIV_VERSION
2625 PACKAGE=libgpiv
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2630 $as_echo_n "checking whether build environment is sane... " >&6; }
2631 # Just in case
2632 sleep 1
2633 echo timestamp > conftest.file
2634 # Reject unsafe characters in $srcdir or the absolute working directory
2635 # name. Accept space and tab only in the latter.
2636 am_lf='
2638 case `pwd` in
2639 *[\\\"\#\$\&\'\`$am_lf]*)
2640 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2641 esac
2642 case $srcdir in
2643 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2644 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2645 esac
2647 # Do `set' in a subshell so we don't clobber the current shell's
2648 # arguments. Must try -L first in case configure is actually a
2649 # symlink; some systems play weird games with the mod time of symlinks
2650 # (eg FreeBSD returns the mod time of the symlink's containing
2651 # directory).
2652 if (
2653 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2654 if test "$*" = "X"; then
2655 # -L didn't work.
2656 set X `ls -t "$srcdir/configure" conftest.file`
2658 rm -f conftest.file
2659 if test "$*" != "X $srcdir/configure conftest.file" \
2660 && test "$*" != "X conftest.file $srcdir/configure"; then
2662 # If neither matched, then we have a broken ls. This can happen
2663 # if, for instance, CONFIG_SHELL is bash and it inherits a
2664 # broken ls alias from the environment. This has actually
2665 # happened. Such a system could not be considered "sane".
2666 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2667 alias in your environment" "$LINENO" 5
2670 test "$2" = conftest.file
2672 then
2673 # Ok.
2675 else
2676 as_fn_error "newly created file is older than distributed files!
2677 Check your system clock" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 $as_echo "yes" >&6; }
2681 ac_ext=c
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 if test -n "$ac_tool_prefix"; then
2687 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2708 done
2709 done
2710 IFS=$as_save_IFS
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2725 if test -z "$ac_cv_prog_CC"; then
2726 ac_ct_CC=$CC
2727 # Extract the first word of "gcc", so it can be a program name with args.
2728 set dummy gcc; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_ac_ct_CC="gcc"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2750 IFS=$as_save_IFS
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757 $as_echo "$ac_ct_CC" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2763 if test "x$ac_ct_CC" = x; then
2764 CC=""
2765 else
2766 case $cross_compiling:$ac_tool_warned in
2767 yes:)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 CC=$ac_ct_CC
2774 else
2775 CC="$ac_cv_prog_CC"
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2819 if test -z "$CC"; then
2820 # Extract the first word of "cc", so it can be a program name with args.
2821 set dummy cc; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 ac_prog_rejected=no
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839 ac_prog_rejected=yes
2840 continue
2842 ac_cv_prog_CC="cc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2848 IFS=$as_save_IFS
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2853 shift
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2858 shift
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 for ac_prog in cl.exe
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_CC+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2916 test -n "$CC" && break
2917 done
2919 if test -z "$CC"; then
2920 ac_ct_CC=$CC
2921 for ac_prog in cl.exe
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC="$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$ac_ct_CC" && break
2961 done
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2979 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 as_fn_error "no acceptable C compiler found in \$PATH
2982 See \`config.log' for more details." "$LINENO" 5; }
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2986 set X $ac_compile
2987 ac_compiler=$2
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 ac_status=$?
2998 if test -s conftest.err; then
2999 sed '10a\
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err >conftest.er1
3002 cat conftest.er1 >&5
3003 rm -f conftest.er1 conftest.err
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3007 done
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011 #include <stdio.h>
3013 main ()
3015 FILE *f = fopen ("conftest.out", "w");
3016 return ferror (f) || fclose (f) != 0;
3019 return 0;
3021 _ACEOF
3022 ac_clean_files_save=$ac_clean_files
3023 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3024 # Try to create an executable without -o first, disregard a.out.
3025 # It will help us diagnose broken compilers, and finding out an intuition
3026 # of exeext.
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3028 $as_echo_n "checking for C compiler default output file name... " >&6; }
3029 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3031 # The possible output files:
3032 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3034 ac_rmfiles=
3035 for ac_file in $ac_files
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3039 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3040 esac
3041 done
3042 rm -f $ac_rmfiles
3044 if { { ac_try="$ac_link_default"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link_default") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3058 # so that the user can short-circuit this test for compilers unknown to
3059 # Autoconf.
3060 for ac_file in $ac_files ''
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3066 [ab].out )
3067 # We found the default executable, but exeext='' is most
3068 # certainly right.
3069 break;;
3070 *.* )
3071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3072 then :; else
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # We set ac_cv_exeext here because the later test for it is not
3076 # safe: cross compilers may not add the suffix if given an `-o'
3077 # argument, so we may need to know it at that point already.
3078 # Even if this section looks crufty: it has the advantage of
3079 # actually working.
3080 break;;
3082 break;;
3083 esac
3084 done
3085 test "$ac_cv_exeext" = no && ac_cv_exeext=
3087 else
3088 ac_file=''
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 if test -z "$ac_file"; then :
3093 $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 { as_fn_set_status 77
3099 as_fn_error "C compiler cannot create executables
3100 See \`config.log' for more details." "$LINENO" 5; }; }
3102 ac_exeext=$ac_cv_exeext
3104 # Check that the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3107 $as_echo_n "checking whether the C compiler works... " >&6; }
3108 # If not cross compiling, check that we can run a simple program.
3109 if test "$cross_compiling" != yes; then
3110 if { ac_try='./$ac_file'
3111 { { case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; }; then
3121 cross_compiling=no
3122 else
3123 if test "$cross_compiling" = maybe; then
3124 cross_compiling=yes
3125 else
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error "cannot run C compiled programs.
3129 If you meant to cross compile, use \`--host'.
3130 See \`config.log' for more details." "$LINENO" 5; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3138 ac_clean_files=$ac_clean_files_save
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3144 $as_echo "$cross_compiling" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3147 $as_echo_n "checking for suffix of executables... " >&6; }
3148 if { { ac_try="$ac_link"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164 test -f "$ac_file" || continue
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 break;;
3169 * ) break;;
3170 esac
3171 done
3172 else
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error "cannot compute suffix of executables: cannot compile and link
3176 See \`config.log' for more details." "$LINENO" 5; }
3178 rm -f conftest$ac_cv_exeext
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3180 $as_echo "$ac_cv_exeext" >&6; }
3182 rm -f conftest.$ac_ext
3183 EXEEXT=$ac_cv_exeext
3184 ac_exeext=$EXEEXT
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3186 $as_echo_n "checking for suffix of object files... " >&6; }
3187 if test "${ac_cv_objext+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.o conftest.obj
3202 if { { ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compile") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 for ac_file in conftest.o conftest.obj conftest.*; do
3214 test -f "$ac_file" || continue;
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3218 break;;
3219 esac
3220 done
3221 else
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error "cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." "$LINENO" 5; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3233 $as_echo "$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3235 ac_objext=$OBJEXT
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3237 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3247 #ifndef __GNUC__
3248 choke me
3249 #endif
3252 return 0;
3254 _ACEOF
3255 if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_compiler_gnu=yes
3257 else
3258 ac_compiler_gnu=no
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3267 GCC=yes
3268 else
3269 GCC=
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3280 ac_cv_prog_cc_g=no
3281 CFLAGS="-g"
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3286 main ()
3290 return 0;
3292 _ACEOF
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_cv_prog_cc_g=yes
3295 else
3296 CFLAGS=""
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3301 main ()
3305 return 0;
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3310 else
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312 CFLAGS="-g"
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_cv_prog_cc_g=yes
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 $as_echo "$ac_cv_prog_cc_g" >&6; }
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3353 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_cv_prog_cc_c89=no
3357 ac_save_CC=$CC
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360 #include <stdarg.h>
3361 #include <stdio.h>
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3368 char **p;
3369 int i;
3371 return p[i];
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3375 char *s;
3376 va_list v;
3377 va_start (v,p);
3378 s = g (p, va_arg (v,int));
3379 va_end (v);
3380 return s;
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3394 #define FOO(x) 'x'
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3401 int argc;
3402 char **argv;
3404 main ()
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3408 return 0;
3410 _ACEOF
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3414 CC="$ac_save_CC $ac_arg"
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_cv_prog_cc_c89=$ac_arg
3418 rm -f core conftest.err conftest.$ac_objext
3419 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 done
3421 rm -f conftest.$ac_ext
3422 CC=$ac_save_CC
3425 # AC_CACHE_VAL
3426 case "x$ac_cv_prog_cc_c89" in
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3429 $as_echo "none needed" >&6; } ;;
3430 xno)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3432 $as_echo "unsupported" >&6; } ;;
3434 CC="$CC $ac_cv_prog_cc_c89"
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 esac
3438 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3450 $as_echo_n "checking for library containing strerror... " >&6; }
3451 if test "${ac_cv_search_strerror+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 ac_func_search_save_LIBS=$LIBS
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3458 /* Override any GCC internal prototype to avoid an error.
3459 Use char because int might match the return type of a GCC
3460 builtin and then its argument prototype would still apply. */
3461 #ifdef __cplusplus
3462 extern "C"
3463 #endif
3464 char strerror ();
3466 main ()
3468 return strerror ();
3470 return 0;
3472 _ACEOF
3473 for ac_lib in '' cposix; do
3474 if test -z "$ac_lib"; then
3475 ac_res="none required"
3476 else
3477 ac_res=-l$ac_lib
3478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3480 if ac_fn_c_try_link "$LINENO"; then :
3481 ac_cv_search_strerror=$ac_res
3483 rm -f core conftest.err conftest.$ac_objext \
3484 conftest$ac_exeext
3485 if test "${ac_cv_search_strerror+set}" = set; then :
3486 break
3488 done
3489 if test "${ac_cv_search_strerror+set}" = set; then :
3491 else
3492 ac_cv_search_strerror=no
3494 rm conftest.$ac_ext
3495 LIBS=$ac_func_search_save_LIBS
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3498 $as_echo "$ac_cv_search_strerror" >&6; }
3499 ac_res=$ac_cv_search_strerror
3500 if test "$ac_res" != no; then :
3501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$ac_cv_prog_CC"; then
3551 ac_ct_CC=$CC
3552 # Extract the first word of "gcc", so it can be a program name with args.
3553 set dummy gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$ac_ct_CC"; then
3560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_ac_ct_CC="gcc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580 if test -n "$ac_ct_CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3582 $as_echo "$ac_ct_CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3588 if test "x$ac_ct_CC" = x; then
3589 CC=""
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597 CC=$ac_ct_CC
3599 else
3600 CC="$ac_cv_prog_CC"
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}cc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="${ac_tool_prefix}cc"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3628 IFS=$as_save_IFS
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 # Extract the first word of "cc", so it can be a program name with args.
3646 set dummy cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 ac_prog_rejected=no
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3664 ac_prog_rejected=yes
3665 continue
3667 ac_cv_prog_CC="cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3675 if test $ac_prog_rejected = yes; then
3676 # We found a bogon in the path, so make sure we never use it.
3677 set dummy $ac_cv_prog_CC
3678 shift
3679 if test $# != 0; then
3680 # We chose a different compiler from the bogus one.
3681 # However, it has the same basename, so the bogon will be chosen
3682 # first if we set CC to just the basename; use the full file name.
3683 shift
3684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3700 if test -z "$CC"; then
3701 if test -n "$ac_tool_prefix"; then
3702 for ac_prog in cl.exe
3704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3727 IFS=$as_save_IFS
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3741 test -n "$CC" && break
3742 done
3744 if test -z "$CC"; then
3745 ac_ct_CC=$CC
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749 set dummy $ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$ac_ct_CC"; then
3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_ac_ct_CC="$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776 if test -n "$ac_ct_CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778 $as_echo "$ac_ct_CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$ac_ct_CC" && break
3786 done
3788 if test "x$ac_ct_CC" = x; then
3789 CC=""
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 CC=$ac_ct_CC
3804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error "no acceptable C compiler found in \$PATH
3807 See \`config.log' for more details." "$LINENO" 5; }
3809 # Provide some information about the compiler.
3810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811 set X $ac_compile
3812 ac_compiler=$2
3813 for ac_option in --version -v -V -qversion; do
3814 { { ac_try="$ac_compiler $ac_option >&5"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822 ac_status=$?
3823 if test -s conftest.err; then
3824 sed '10a\
3825 ... rest of stderr output deleted ...
3826 10q' conftest.err >conftest.er1
3827 cat conftest.er1 >&5
3828 rm -f conftest.er1 conftest.err
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }
3832 done
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3843 main ()
3845 #ifndef __GNUC__
3846 choke me
3847 #endif
3850 return 0;
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_compiler_gnu=yes
3855 else
3856 ac_compiler_gnu=no
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3865 GCC=yes
3866 else
3867 GCC=
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3878 ac_cv_prog_cc_g=no
3879 CFLAGS="-g"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3888 return 0;
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_cv_prog_cc_g=yes
3893 else
3894 CFLAGS=""
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3908 else
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3910 CFLAGS="-g"
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 main ()
3919 return 0;
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_prog_cc_g=yes
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935 CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937 if test "$GCC" = yes; then
3938 CFLAGS="-g -O2"
3939 else
3940 CFLAGS="-g"
3942 else
3943 if test "$GCC" = yes; then
3944 CFLAGS="-O2"
3945 else
3946 CFLAGS=
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 ac_cv_prog_cc_c89=no
3955 ac_save_CC=$CC
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958 #include <stdarg.h>
3959 #include <stdio.h>
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966 char **p;
3967 int i;
3969 return p[i];
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3973 char *s;
3974 va_list v;
3975 va_start (v,p);
3976 s = g (p, va_arg (v,int));
3977 va_end (v);
3978 return s;
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4002 main ()
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 return 0;
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028 xno)
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4073 done
4074 done
4075 IFS=$as_save_IFS
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082 $as_echo "$CC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4090 if test -z "$ac_cv_prog_CC"; then
4091 ac_ct_CC=$CC
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4120 if test -n "$ac_ct_CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4122 $as_echo "$ac_ct_CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4128 if test "x$ac_ct_CC" = x; then
4129 CC=""
4130 else
4131 case $cross_compiling:$ac_tool_warned in
4132 yes:)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4136 esac
4137 CC=$ac_ct_CC
4139 else
4140 CC="$ac_cv_prog_CC"
4143 if test -z "$CC"; then
4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}cc; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="${ac_tool_prefix}cc"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4175 $as_echo "$CC" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4184 if test -z "$CC"; then
4185 # Extract the first word of "cc", so it can be a program name with args.
4186 set dummy cc; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$CC"; then
4193 ac_cv_prog_CC="$CC" # Let the user override the test.
4194 else
4195 ac_prog_rejected=no
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4204 ac_prog_rejected=yes
4205 continue
4207 ac_cv_prog_CC="cc"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4215 if test $ac_prog_rejected = yes; then
4216 # We found a bogon in the path, so make sure we never use it.
4217 set dummy $ac_cv_prog_CC
4218 shift
4219 if test $# != 0; then
4220 # We chose a different compiler from the bogus one.
4221 # However, it has the same basename, so the bogon will be chosen
4222 # first if we set CC to just the basename; use the full file name.
4223 shift
4224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 for ac_prog in cl.exe
4244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_CC+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4281 test -n "$CC" && break
4282 done
4284 if test -z "$CC"; then
4285 ac_ct_CC=$CC
4286 for ac_prog in cl.exe
4288 # Extract the first word of "$ac_prog", so it can be a program name with args.
4289 set dummy $ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$ac_ct_CC"; then
4296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_ac_ct_CC="$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4316 if test -n "$ac_ct_CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4318 $as_echo "$ac_ct_CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$ac_ct_CC" && break
4326 done
4328 if test "x$ac_ct_CC" = x; then
4329 CC=""
4330 else
4331 case $cross_compiling:$ac_tool_warned in
4332 yes:)
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337 CC=$ac_ct_CC
4344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error "no acceptable C compiler found in \$PATH
4347 See \`config.log' for more details." "$LINENO" 5; }
4349 # Provide some information about the compiler.
4350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4351 set X $ac_compile
4352 ac_compiler=$2
4353 for ac_option in --version -v -V -qversion; do
4354 { { ac_try="$ac_compiler $ac_option >&5"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4362 ac_status=$?
4363 if test -s conftest.err; then
4364 sed '10a\
4365 ... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4368 rm -f conftest.er1 conftest.err
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372 done
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4376 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4385 #ifndef __GNUC__
4386 choke me
4387 #endif
4390 return 0;
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 ac_compiler_gnu=yes
4395 else
4396 ac_compiler_gnu=no
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4404 if test $ac_compiler_gnu = yes; then
4405 GCC=yes
4406 else
4407 GCC=
4409 ac_test_CFLAGS=${CFLAGS+set}
4410 ac_save_CFLAGS=$CFLAGS
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4413 if test "${ac_cv_prog_cc_g+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 ac_save_c_werror_flag=$ac_c_werror_flag
4417 ac_c_werror_flag=yes
4418 ac_cv_prog_cc_g=no
4419 CFLAGS="-g"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4424 main ()
4428 return 0;
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_prog_cc_g=yes
4433 else
4434 CFLAGS=""
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 main ()
4443 return 0;
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"; then :
4448 else
4449 ac_c_werror_flag=$ac_save_c_werror_flag
4450 CFLAGS="-g"
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_prog_cc_g=yes
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_c_werror_flag=$ac_save_c_werror_flag
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4473 $as_echo "$ac_cv_prog_cc_g" >&6; }
4474 if test "$ac_test_CFLAGS" = set; then
4475 CFLAGS=$ac_save_CFLAGS
4476 elif test $ac_cv_prog_cc_g = yes; then
4477 if test "$GCC" = yes; then
4478 CFLAGS="-g -O2"
4479 else
4480 CFLAGS="-g"
4482 else
4483 if test "$GCC" = yes; then
4484 CFLAGS="-O2"
4485 else
4486 CFLAGS=
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4491 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 ac_cv_prog_cc_c89=no
4495 ac_save_CC=$CC
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 #include <stdarg.h>
4499 #include <stdio.h>
4500 #include <sys/types.h>
4501 #include <sys/stat.h>
4502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4503 struct buf { int x; };
4504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4505 static char *e (p, i)
4506 char **p;
4507 int i;
4509 return p[i];
4511 static char *f (char * (*g) (char **, int), char **p, ...)
4513 char *s;
4514 va_list v;
4515 va_start (v,p);
4516 s = g (p, va_arg (v,int));
4517 va_end (v);
4518 return s;
4521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4522 function prototypes and stuff, but not '\xHH' hex character constants.
4523 These don't provoke an error unfortunately, instead are silently treated
4524 as 'x'. The following induces an error, until -std is added to get
4525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4526 array size at least. It's necessary to write '\x00'==0 to get something
4527 that's true only with -std. */
4528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4531 inside strings and character constants. */
4532 #define FOO(x) 'x'
4533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4535 int test (int i, double x);
4536 struct s1 {int (*f) (int a);};
4537 struct s2 {int (*f) (double a);};
4538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4539 int argc;
4540 char **argv;
4542 main ()
4544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4546 return 0;
4548 _ACEOF
4549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4552 CC="$ac_save_CC $ac_arg"
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_prog_cc_c89=$ac_arg
4556 rm -f core conftest.err conftest.$ac_objext
4557 test "x$ac_cv_prog_cc_c89" != "xno" && break
4558 done
4559 rm -f conftest.$ac_ext
4560 CC=$ac_save_CC
4563 # AC_CACHE_VAL
4564 case "x$ac_cv_prog_cc_c89" in
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4567 $as_echo "none needed" >&6; } ;;
4568 xno)
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4570 $as_echo "unsupported" >&6; } ;;
4572 CC="$CC $ac_cv_prog_cc_c89"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4575 esac
4576 if test "x$ac_cv_prog_cc_c89" != xno; then :
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4589 ac_ext=cpp
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594 if test -z "$CXX"; then
4595 if test -n "$CCC"; then
4596 CXX=$CCC
4597 else
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_CXX+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$CXX"; then
4609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 CXX=$ac_cv_prog_CXX
4629 if test -n "$CXX"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4631 $as_echo "$CXX" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4638 test -n "$CXX" && break
4639 done
4641 if test -z "$CXX"; then
4642 ac_ct_CXX=$CXX
4643 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_CXX"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_CXX="$ac_prog"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4673 if test -n "$ac_ct_CXX"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4675 $as_echo "$ac_ct_CXX" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4682 test -n "$ac_ct_CXX" && break
4683 done
4685 if test "x$ac_ct_CXX" = x; then
4686 CXX="g++"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 CXX=$ac_ct_CXX
4700 # Provide some information about the compiler.
4701 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4702 set X $ac_compile
4703 ac_compiler=$2
4704 for ac_option in --version -v -V -qversion; do
4705 { { ac_try="$ac_compiler $ac_option >&5"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4713 ac_status=$?
4714 if test -s conftest.err; then
4715 sed '10a\
4716 ... rest of stderr output deleted ...
4717 10q' conftest.err >conftest.er1
4718 cat conftest.er1 >&5
4719 rm -f conftest.er1 conftest.err
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4723 done
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4726 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4734 main ()
4736 #ifndef __GNUC__
4737 choke me
4738 #endif
4741 return 0;
4743 _ACEOF
4744 if ac_fn_cxx_try_compile "$LINENO"; then :
4745 ac_compiler_gnu=yes
4746 else
4747 ac_compiler_gnu=no
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4754 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4755 if test $ac_compiler_gnu = yes; then
4756 GXX=yes
4757 else
4758 GXX=
4760 ac_test_CXXFLAGS=${CXXFLAGS+set}
4761 ac_save_CXXFLAGS=$CXXFLAGS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4763 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4764 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4768 ac_cxx_werror_flag=yes
4769 ac_cv_prog_cxx_g=no
4770 CXXFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783 ac_cv_prog_cxx_g=yes
4784 else
4785 CXXFLAGS=""
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 main ()
4794 return 0;
4796 _ACEOF
4797 if ac_fn_cxx_try_compile "$LINENO"; then :
4799 else
4800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801 CXXFLAGS="-g"
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4806 main ()
4810 return 0;
4812 _ACEOF
4813 if ac_fn_cxx_try_compile "$LINENO"; then :
4814 ac_cv_prog_cxx_g=yes
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4824 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4825 if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827 elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4829 CXXFLAGS="-g -O2"
4830 else
4831 CXXFLAGS="-g"
4833 else
4834 if test "$GXX" = yes; then
4835 CXXFLAGS="-O2"
4836 else
4837 CXXFLAGS=
4840 ac_ext=c
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 case `pwd` in
4847 *\ * | *\ *)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4850 esac
4854 macro_version='2.2.6'
4855 macro_revision='1.3012'
4869 ltmain="$ac_aux_dir/ltmain.sh"
4871 ac_aux_dir=
4872 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4873 for ac_t in install-sh install.sh shtool; do
4874 if test -f "$ac_dir/$ac_t"; then
4875 ac_aux_dir=$ac_dir
4876 ac_install_sh="$ac_aux_dir/$ac_t -c"
4877 break 2
4879 done
4880 done
4881 if test -z "$ac_aux_dir"; then
4882 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4885 # These three variables are undocumented and unsupported,
4886 # and are intended to be withdrawn in a future Autoconf release.
4887 # They can cause serious problems if a builder's source tree is in a directory
4888 # whose full name contains unusual characters.
4889 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4890 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4891 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4894 # Make sure we can run config.sub.
4895 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4896 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4899 $as_echo_n "checking build system type... " >&6; }
4900 if test "${ac_cv_build+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 ac_build_alias=$build_alias
4904 test "x$ac_build_alias" = x &&
4905 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906 test "x$ac_build_alias" = x &&
4907 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4908 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4909 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4913 $as_echo "$ac_cv_build" >&6; }
4914 case $ac_cv_build in
4915 *-*-*) ;;
4916 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4917 esac
4918 build=$ac_cv_build
4919 ac_save_IFS=$IFS; IFS='-'
4920 set x $ac_cv_build
4921 shift
4922 build_cpu=$1
4923 build_vendor=$2
4924 shift; shift
4925 # Remember, the first character of IFS is used to create $*,
4926 # except with old shells:
4927 build_os=$*
4928 IFS=$ac_save_IFS
4929 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4933 $as_echo_n "checking host system type... " >&6; }
4934 if test "${ac_cv_host+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test "x$host_alias" = x; then
4938 ac_cv_host=$ac_cv_build
4939 else
4940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4941 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4946 $as_echo "$ac_cv_host" >&6; }
4947 case $ac_cv_host in
4948 *-*-*) ;;
4949 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4950 esac
4951 host=$ac_cv_host
4952 ac_save_IFS=$IFS; IFS='-'
4953 set x $ac_cv_host
4954 shift
4955 host_cpu=$1
4956 host_vendor=$2
4957 shift; shift
4958 # Remember, the first character of IFS is used to create $*,
4959 # except with old shells:
4960 host_os=$*
4961 IFS=$ac_save_IFS
4962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4966 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4967 if test "${ac_cv_path_SED+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4971 for ac_i in 1 2 3 4 5 6 7; do
4972 ac_script="$ac_script$as_nl$ac_script"
4973 done
4974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4975 { ac_script=; unset ac_script;}
4976 if test -z "$SED"; then
4977 ac_path_SED_found=false
4978 # Loop through the user's path and test for each of PROGNAME-LIST
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_prog in sed gsed; do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4987 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4988 # Check for GNU ac_path_SED and select it if it is found.
4989 # Check for GNU $ac_path_SED
4990 case `"$ac_path_SED" --version 2>&1` in
4991 *GNU*)
4992 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4994 ac_count=0
4995 $as_echo_n 0123456789 >"conftest.in"
4996 while :
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 $as_echo '' >> "conftest.nl"
5002 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_SED_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_SED="$ac_path_SED"
5008 ac_path_SED_max=$ac_count
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5012 done
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5016 $ac_path_SED_found && break 3
5017 done
5018 done
5019 done
5020 IFS=$as_save_IFS
5021 if test -z "$ac_cv_path_SED"; then
5022 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5024 else
5025 ac_cv_path_SED=$SED
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5030 $as_echo "$ac_cv_path_SED" >&6; }
5031 SED="$ac_cv_path_SED"
5032 rm -f conftest.sed
5034 test -z "$SED" && SED=sed
5035 Xsed="$SED -e 1s/^X//"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5048 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5049 if test "${ac_cv_path_GREP+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -z "$GREP"; then
5053 ac_path_GREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in grep ggrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064 # Check for GNU ac_path_GREP and select it if it is found.
5065 # Check for GNU $ac_path_GREP
5066 case `"$ac_path_GREP" --version 2>&1` in
5067 *GNU*)
5068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5070 ac_count=0
5071 $as_echo_n 0123456789 >"conftest.in"
5072 while :
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'GREP' >> "conftest.nl"
5078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_GREP="$ac_path_GREP"
5084 ac_path_GREP_max=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5088 done
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5092 $ac_path_GREP_found && break 3
5093 done
5094 done
5095 done
5096 IFS=$as_save_IFS
5097 if test -z "$ac_cv_path_GREP"; then
5098 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 else
5101 ac_cv_path_GREP=$GREP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5106 $as_echo "$ac_cv_path_GREP" >&6; }
5107 GREP="$ac_cv_path_GREP"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5111 $as_echo_n "checking for egrep... " >&6; }
5112 if test "${ac_cv_path_EGREP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116 then ac_cv_path_EGREP="$GREP -E"
5117 else
5118 if test -z "$EGREP"; then
5119 ac_path_EGREP_found=false
5120 # Loop through the user's path and test for each of PROGNAME-LIST
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_prog in egrep; do
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130 # Check for GNU ac_path_EGREP and select it if it is found.
5131 # Check for GNU $ac_path_EGREP
5132 case `"$ac_path_EGREP" --version 2>&1` in
5133 *GNU*)
5134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5136 ac_count=0
5137 $as_echo_n 0123456789 >"conftest.in"
5138 while :
5140 cat "conftest.in" "conftest.in" >"conftest.tmp"
5141 mv "conftest.tmp" "conftest.in"
5142 cp "conftest.in" "conftest.nl"
5143 $as_echo 'EGREP' >> "conftest.nl"
5144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5146 as_fn_arith $ac_count + 1 && ac_count=$as_val
5147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148 # Best one so far, save it but keep looking for a better one
5149 ac_cv_path_EGREP="$ac_path_EGREP"
5150 ac_path_EGREP_max=$ac_count
5152 # 10*(2^10) chars as input seems more than enough
5153 test $ac_count -gt 10 && break
5154 done
5155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156 esac
5158 $ac_path_EGREP_found && break 3
5159 done
5160 done
5161 done
5162 IFS=$as_save_IFS
5163 if test -z "$ac_cv_path_EGREP"; then
5164 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166 else
5167 ac_cv_path_EGREP=$EGREP
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174 EGREP="$ac_cv_path_EGREP"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5178 $as_echo_n "checking for fgrep... " >&6; }
5179 if test "${ac_cv_path_FGREP+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5183 then ac_cv_path_FGREP="$GREP -F"
5184 else
5185 if test -z "$FGREP"; then
5186 ac_path_FGREP_found=false
5187 # Loop through the user's path and test for each of PROGNAME-LIST
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_prog in fgrep; do
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5196 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5197 # Check for GNU ac_path_FGREP and select it if it is found.
5198 # Check for GNU $ac_path_FGREP
5199 case `"$ac_path_FGREP" --version 2>&1` in
5200 *GNU*)
5201 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5203 ac_count=0
5204 $as_echo_n 0123456789 >"conftest.in"
5205 while :
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 $as_echo 'FGREP' >> "conftest.nl"
5211 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_FGREP="$ac_path_FGREP"
5217 ac_path_FGREP_max=$ac_count
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5221 done
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 esac
5225 $ac_path_FGREP_found && break 3
5226 done
5227 done
5228 done
5229 IFS=$as_save_IFS
5230 if test -z "$ac_cv_path_FGREP"; then
5231 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 else
5234 ac_cv_path_FGREP=$FGREP
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5240 $as_echo "$ac_cv_path_FGREP" >&6; }
5241 FGREP="$ac_cv_path_FGREP"
5244 test -z "$GREP" && GREP=grep
5264 # Check whether --with-gnu-ld was given.
5265 if test "${with_gnu_ld+set}" = set; then :
5266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5267 else
5268 with_gnu_ld=no
5271 ac_prog=ld
5272 if test "$GCC" = yes; then
5273 # Check if gcc -print-prog-name=ld gives a path.
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5275 $as_echo_n "checking for ld used by $CC... " >&6; }
5276 case $host in
5277 *-*-mingw*)
5278 # gcc leaves a trailing carriage return which upsets mingw
5279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5282 esac
5283 case $ac_prog in
5284 # Accept absolute paths.
5285 [\\/]* | ?:[\\/]*)
5286 re_direlt='/[^/][^/]*/\.\./'
5287 # Canonicalize the pathname of ld
5288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5291 done
5292 test -z "$LD" && LD="$ac_prog"
5295 # If it fails, then pretend we aren't using GCC.
5296 ac_prog=ld
5299 # If it is relative, then search for the first ld in PATH.
5300 with_gnu_ld=unknown
5302 esac
5303 elif test "$with_gnu_ld" = yes; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5305 $as_echo_n "checking for GNU ld... " >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5308 $as_echo_n "checking for non-GNU ld... " >&6; }
5310 if test "${lt_cv_path_LD+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -z "$LD"; then
5314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5315 for ac_dir in $PATH; do
5316 IFS="$lt_save_ifs"
5317 test -z "$ac_dir" && ac_dir=.
5318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5319 lt_cv_path_LD="$ac_dir/$ac_prog"
5320 # Check to see if the program is GNU ld. I'd rather use --version,
5321 # but apparently some variants of GNU ld only accept -v.
5322 # Break only if it was the GNU/non-GNU ld that we prefer.
5323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5324 *GNU* | *'with BFD'*)
5325 test "$with_gnu_ld" != no && break
5328 test "$with_gnu_ld" != yes && break
5330 esac
5332 done
5333 IFS="$lt_save_ifs"
5334 else
5335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5339 LD="$lt_cv_path_LD"
5340 if test -n "$LD"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5342 $as_echo "$LD" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5347 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5350 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5354 case `$LD -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356 lt_cv_prog_gnu_ld=yes
5359 lt_cv_prog_gnu_ld=no
5361 esac
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5365 with_gnu_ld=$lt_cv_prog_gnu_ld
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5377 if test "${lt_cv_path_NM+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -n "$NM"; then
5381 # Let the user override the test.
5382 lt_cv_path_NM="$NM"
5383 else
5384 lt_nm_to_check="${ac_tool_prefix}nm"
5385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5386 lt_nm_to_check="$lt_nm_to_check nm"
5388 for lt_tmp_nm in $lt_nm_to_check; do
5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5391 IFS="$lt_save_ifs"
5392 test -z "$ac_dir" && ac_dir=.
5393 tmp_nm="$ac_dir/$lt_tmp_nm"
5394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5395 # Check to see if the nm accepts a BSD-compat flag.
5396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5397 # nm: unknown option "B" ignored
5398 # Tru64's nm complains that /dev/null is an invalid object file
5399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5400 */dev/null* | *'Invalid file or object type'*)
5401 lt_cv_path_NM="$tmp_nm -B"
5402 break
5405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5406 */dev/null*)
5407 lt_cv_path_NM="$tmp_nm -p"
5408 break
5411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5412 continue # so that we can try to find one that supports BSD flags
5414 esac
5416 esac
5418 done
5419 IFS="$lt_save_ifs"
5420 done
5421 : ${lt_cv_path_NM=no}
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5425 $as_echo "$lt_cv_path_NM" >&6; }
5426 if test "$lt_cv_path_NM" != "no"; then
5427 NM="$lt_cv_path_NM"
5428 else
5429 # Didn't find any BSD compatible name lister, look for dumpbin.
5430 if test -n "$ac_tool_prefix"; then
5431 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$DUMPBIN"; then
5441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 DUMPBIN=$ac_cv_prog_DUMPBIN
5461 if test -n "$DUMPBIN"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5463 $as_echo "$DUMPBIN" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5470 test -n "$DUMPBIN" && break
5471 done
5473 if test -z "$DUMPBIN"; then
5474 ac_ct_DUMPBIN=$DUMPBIN
5475 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5477 # Extract the first word of "$ac_prog", so it can be a program name with args.
5478 set dummy $ac_prog; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$ac_ct_DUMPBIN"; then
5485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5505 if test -n "$ac_ct_DUMPBIN"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5507 $as_echo "$ac_ct_DUMPBIN" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5514 test -n "$ac_ct_DUMPBIN" && break
5515 done
5517 if test "x$ac_ct_DUMPBIN" = x; then
5518 DUMPBIN=":"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526 DUMPBIN=$ac_ct_DUMPBIN
5531 if test "$DUMPBIN" != ":"; then
5532 NM="$DUMPBIN"
5535 test -z "$NM" && NM=nm
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5544 if test "${lt_cv_nm_interface+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 lt_cv_nm_interface="BSD nm"
5548 echo "int some_variable = 0;" > conftest.$ac_ext
5549 (eval echo "\"\$as_me:5549: $ac_compile\"" >&5)
5550 (eval "$ac_compile" 2>conftest.err)
5551 cat conftest.err >&5
5552 (eval echo "\"\$as_me:5552: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5554 cat conftest.err >&5
5555 (eval echo "\"\$as_me:5555: output\"" >&5)
5556 cat conftest.out >&5
5557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5558 lt_cv_nm_interface="MS dumpbin"
5560 rm -f conftest*
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5563 $as_echo "$lt_cv_nm_interface" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5566 $as_echo_n "checking whether ln -s works... " >&6; }
5567 LN_S=$as_ln_s
5568 if test "$LN_S" = "ln -s"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570 $as_echo "yes" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5573 $as_echo "no, using $LN_S" >&6; }
5576 # find the maximum length of command line arguments
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5583 teststring="ABCD"
5585 case $build_os in
5586 msdosdjgpp*)
5587 # On DJGPP, this test can blow up pretty badly due to problems in libc
5588 # (any single argument exceeding 2000 bytes causes a buffer overrun
5589 # during glob expansion). Even if it were fixed, the result of this
5590 # check would be larger than it should be.
5591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5594 gnu*)
5595 # Under GNU Hurd, this test is not required because there is
5596 # no limit to the length of command line arguments.
5597 # Libtool will interpret -1 as no limit whatsoever
5598 lt_cv_sys_max_cmd_len=-1;
5601 cygwin* | mingw* | cegcc*)
5602 # On Win9x/ME, this test blows up -- it succeeds, but takes
5603 # about 5 minutes as the teststring grows exponentially.
5604 # Worse, since 9x/ME are not pre-emptively multitasking,
5605 # you end up with a "frozen" computer, even though with patience
5606 # the test eventually succeeds (with a max line length of 256k).
5607 # Instead, let's just punt: use the minimum linelength reported by
5608 # all of the supported platforms: 8192 (on NT/2K/XP).
5609 lt_cv_sys_max_cmd_len=8192;
5612 amigaos*)
5613 # On AmigaOS with pdksh, this test takes hours, literally.
5614 # So we just punt and use a minimum line length of 8192.
5615 lt_cv_sys_max_cmd_len=8192;
5618 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5619 # This has been around since 386BSD, at least. Likely further.
5620 if test -x /sbin/sysctl; then
5621 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5622 elif test -x /usr/sbin/sysctl; then
5623 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5624 else
5625 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5627 # And add a safety zone
5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5632 interix*)
5633 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5634 lt_cv_sys_max_cmd_len=196608
5637 osf*)
5638 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5639 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5640 # nice to cause kernel panics so lets avoid the loop below.
5641 # First set a reasonable default.
5642 lt_cv_sys_max_cmd_len=16384
5644 if test -x /sbin/sysconfig; then
5645 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5646 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5647 esac
5650 sco3.2v5*)
5651 lt_cv_sys_max_cmd_len=102400
5653 sysv5* | sco5v6* | sysv4.2uw2*)
5654 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5655 if test -n "$kargmax"; then
5656 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5657 else
5658 lt_cv_sys_max_cmd_len=32768
5662 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5663 if test -n "$lt_cv_sys_max_cmd_len"; then
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5666 else
5667 # Make teststring a little bigger before we do anything with it.
5668 # a 1K string should be a reasonable start.
5669 for i in 1 2 3 4 5 6 7 8 ; do
5670 teststring=$teststring$teststring
5671 done
5672 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5673 # If test is not a shell built-in, we'll probably end up computing a
5674 # maximum length that is only half of the actual maximum length, but
5675 # we can't tell.
5676 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5677 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5678 test $i != 17 # 1/2 MB should be enough
5680 i=`expr $i + 1`
5681 teststring=$teststring$teststring
5682 done
5683 # Only check the string length outside the loop.
5684 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5685 teststring=
5686 # Add a significant safety factor because C++ compilers can tack on
5687 # massive amounts of additional arguments before passing them to the
5688 # linker. It appears as though 1/2 is a usable value.
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5692 esac
5696 if test -n $lt_cv_sys_max_cmd_len ; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5698 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5699 else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5701 $as_echo "none" >&6; }
5703 max_cmd_len=$lt_cv_sys_max_cmd_len
5710 : ${CP="cp -f"}
5711 : ${MV="mv -f"}
5712 : ${RM="rm -f"}
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5715 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5716 # Try some XSI features
5717 xsi_shell=no
5718 ( _lt_dummy="a/b/c"
5719 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5720 = c,a/b,, \
5721 && eval 'test $(( 1 + 1 )) -eq 2 \
5722 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5723 && xsi_shell=yes
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5725 $as_echo "$xsi_shell" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5729 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5730 lt_shell_append=no
5731 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5732 >/dev/null 2>&1 \
5733 && lt_shell_append=yes
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5735 $as_echo "$lt_shell_append" >&6; }
5738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5739 lt_unset=unset
5740 else
5741 lt_unset=false
5748 # test EBCDIC or ASCII
5749 case `echo X|tr X '\101'` in
5750 A) # ASCII based system
5751 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5752 lt_SP2NL='tr \040 \012'
5753 lt_NL2SP='tr \015\012 \040\040'
5755 *) # EBCDIC based system
5756 lt_SP2NL='tr \100 \n'
5757 lt_NL2SP='tr \r\n \100\100'
5759 esac
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5770 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5771 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 lt_cv_ld_reload_flag='-r'
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5777 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5778 reload_flag=$lt_cv_ld_reload_flag
5779 case $reload_flag in
5780 "" | " "*) ;;
5781 *) reload_flag=" $reload_flag" ;;
5782 esac
5783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5784 case $host_os in
5785 darwin*)
5786 if test "$GCC" = yes; then
5787 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5788 else
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5792 esac
5802 if test -n "$ac_tool_prefix"; then
5803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$OBJDUMP"; then
5811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5826 IFS=$as_save_IFS
5830 OBJDUMP=$ac_cv_prog_OBJDUMP
5831 if test -n "$OBJDUMP"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5833 $as_echo "$OBJDUMP" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5841 if test -z "$ac_cv_prog_OBJDUMP"; then
5842 ac_ct_OBJDUMP=$OBJDUMP
5843 # Extract the first word of "objdump", so it can be a program name with args.
5844 set dummy objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if test -n "$ac_ct_OBJDUMP"; then
5851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 break 2
5864 done
5865 done
5866 IFS=$as_save_IFS
5870 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5871 if test -n "$ac_ct_OBJDUMP"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5873 $as_echo "$ac_ct_OBJDUMP" >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5879 if test "x$ac_ct_OBJDUMP" = x; then
5880 OBJDUMP="false"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 OBJDUMP=$ac_ct_OBJDUMP
5890 else
5891 OBJDUMP="$ac_cv_prog_OBJDUMP"
5894 test -z "$OBJDUMP" && OBJDUMP=objdump
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5905 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5906 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 lt_cv_file_magic_cmd='$MAGIC_CMD'
5910 lt_cv_file_magic_test_file=
5911 lt_cv_deplibs_check_method='unknown'
5912 # Need to set the preceding variable on all platforms that support
5913 # interlibrary dependencies.
5914 # 'none' -- dependencies not supported.
5915 # `unknown' -- same as none, but documents that we really don't know.
5916 # 'pass_all' -- all dependencies passed with no checks.
5917 # 'test_compile' -- check by making test program.
5918 # 'file_magic [[regex]]' -- check by looking for files in library path
5919 # which responds to the $file_magic_cmd with a given extended regex.
5920 # If you have `file' or equivalent on your system and you're not sure
5921 # whether `pass_all' will *always* work, you probably want this one.
5923 case $host_os in
5924 aix[4-9]*)
5925 lt_cv_deplibs_check_method=pass_all
5928 beos*)
5929 lt_cv_deplibs_check_method=pass_all
5932 bsdi[45]*)
5933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5934 lt_cv_file_magic_cmd='/usr/bin/file -L'
5935 lt_cv_file_magic_test_file=/shlib/libc.so
5938 cygwin*)
5939 # func_win32_libid is a shell function defined in ltmain.sh
5940 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5941 lt_cv_file_magic_cmd='func_win32_libid'
5944 mingw* | pw32*)
5945 # Base MSYS/MinGW do not provide the 'file' command needed by
5946 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5947 # unless we find 'file', for example because we are cross-compiling.
5948 if ( file / ) >/dev/null 2>&1; then
5949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5950 lt_cv_file_magic_cmd='func_win32_libid'
5951 else
5952 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5953 lt_cv_file_magic_cmd='$OBJDUMP -f'
5957 cegcc)
5958 # use the weaker test based on 'objdump'. See mingw*.
5959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960 lt_cv_file_magic_cmd='$OBJDUMP -f'
5963 darwin* | rhapsody*)
5964 lt_cv_deplibs_check_method=pass_all
5967 freebsd* | dragonfly*)
5968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5969 case $host_cpu in
5970 i*86 )
5971 # Not sure whether the presence of OpenBSD here was a mistake.
5972 # Let's accept both of them until this is cleared up.
5973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974 lt_cv_file_magic_cmd=/usr/bin/file
5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5977 esac
5978 else
5979 lt_cv_deplibs_check_method=pass_all
5983 gnu*)
5984 lt_cv_deplibs_check_method=pass_all
5987 hpux10.20* | hpux11*)
5988 lt_cv_file_magic_cmd=/usr/bin/file
5989 case $host_cpu in
5990 ia64*)
5991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5994 hppa*64*)
5995 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]'
5996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6002 esac
6005 interix[3-9]*)
6006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6010 irix5* | irix6* | nonstopux*)
6011 case $LD in
6012 *-32|*"-32 ") libmagic=32-bit;;
6013 *-n32|*"-n32 ") libmagic=N32;;
6014 *-64|*"-64 ") libmagic=64-bit;;
6015 *) libmagic=never-match;;
6016 esac
6017 lt_cv_deplibs_check_method=pass_all
6020 # This must be Linux ELF.
6021 linux* | k*bsd*-gnu)
6022 lt_cv_deplibs_check_method=pass_all
6025 netbsd* | netbsdelf*-gnu)
6026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6028 else
6029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6033 newos6*)
6034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6035 lt_cv_file_magic_cmd=/usr/bin/file
6036 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6039 *nto* | *qnx*)
6040 lt_cv_deplibs_check_method=pass_all
6043 openbsd*)
6044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6046 else
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6051 osf3* | osf4* | osf5*)
6052 lt_cv_deplibs_check_method=pass_all
6055 rdos*)
6056 lt_cv_deplibs_check_method=pass_all
6059 solaris*)
6060 lt_cv_deplibs_check_method=pass_all
6063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6064 lt_cv_deplibs_check_method=pass_all
6067 sysv4 | sysv4.3*)
6068 case $host_vendor in
6069 motorola)
6070 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]'
6071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6073 ncr)
6074 lt_cv_deplibs_check_method=pass_all
6076 sequent)
6077 lt_cv_file_magic_cmd='/bin/file'
6078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6080 sni)
6081 lt_cv_file_magic_cmd='/bin/file'
6082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6083 lt_cv_file_magic_test_file=/lib/libc.so
6085 siemens)
6086 lt_cv_deplibs_check_method=pass_all
6089 lt_cv_deplibs_check_method=pass_all
6091 esac
6094 tpf*)
6095 lt_cv_deplibs_check_method=pass_all
6097 esac
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6101 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6102 file_magic_cmd=$lt_cv_file_magic_cmd
6103 deplibs_check_method=$lt_cv_deplibs_check_method
6104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}ar; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_AR+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_AR="${ac_tool_prefix}ar"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6139 done
6140 done
6141 IFS=$as_save_IFS
6145 AR=$ac_cv_prog_AR
6146 if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148 $as_echo "$AR" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6156 if test -z "$ac_cv_prog_AR"; then
6157 ac_ct_AR=$AR
6158 # Extract the first word of "ar", so it can be a program name with args.
6159 set dummy ar; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_AR"; then
6166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_ac_ct_AR="ar"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186 if test -n "$ac_ct_AR"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6188 $as_echo "$ac_ct_AR" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6194 if test "x$ac_ct_AR" = x; then
6195 AR="false"
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 AR=$ac_ct_AR
6205 else
6206 AR="$ac_cv_prog_AR"
6209 test -z "$AR" && AR=ar
6210 test -z "$AR_FLAGS" && AR_FLAGS=cru
6222 if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if test "${ac_cv_prog_STRIP+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$STRIP"; then
6231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6244 done
6245 done
6246 IFS=$as_save_IFS
6250 STRIP=$ac_cv_prog_STRIP
6251 if test -n "$STRIP"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6253 $as_echo "$STRIP" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6261 if test -z "$ac_cv_prog_STRIP"; then
6262 ac_ct_STRIP=$STRIP
6263 # Extract the first word of "strip", so it can be a program name with args.
6264 set dummy strip; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$ac_ct_STRIP"; then
6271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_STRIP="strip"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6286 IFS=$as_save_IFS
6290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6291 if test -n "$ac_ct_STRIP"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6293 $as_echo "$ac_ct_STRIP" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6299 if test "x$ac_ct_STRIP" = x; then
6300 STRIP=":"
6301 else
6302 case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308 STRIP=$ac_ct_STRIP
6310 else
6311 STRIP="$ac_cv_prog_STRIP"
6314 test -z "$STRIP" && STRIP=:
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$RANLIB"; then
6330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6343 done
6344 done
6345 IFS=$as_save_IFS
6349 RANLIB=$ac_cv_prog_RANLIB
6350 if test -n "$RANLIB"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6352 $as_echo "$RANLIB" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6360 if test -z "$ac_cv_prog_RANLIB"; then
6361 ac_ct_RANLIB=$RANLIB
6362 # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$ac_ct_RANLIB"; then
6370 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_RANLIB="ranlib"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6383 done
6384 done
6385 IFS=$as_save_IFS
6389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6390 if test -n "$ac_ct_RANLIB"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6392 $as_echo "$ac_ct_RANLIB" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6398 if test "x$ac_ct_RANLIB" = x; then
6399 RANLIB=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407 RANLIB=$ac_ct_RANLIB
6409 else
6410 RANLIB="$ac_cv_prog_RANLIB"
6413 test -z "$RANLIB" && RANLIB=:
6420 # Determine commands to create old-style static archives.
6421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6422 old_postinstall_cmds='chmod 644 $oldlib'
6423 old_postuninstall_cmds=
6425 if test -n "$RANLIB"; then
6426 case $host_os in
6427 openbsd*)
6428 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6433 esac
6434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6470 # If no C compiler was specified, use CC.
6471 LTCC=${LTCC-"$CC"}
6473 # If no C compiler flags were specified, use CFLAGS.
6474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6476 # Allow CC to be a program name with arguments.
6477 compiler=$CC
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6482 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496 # Define system-specific variables.
6497 case $host_os in
6498 aix*)
6499 symcode='[BCDT]'
6501 cygwin* | mingw* | pw32* | cegcc*)
6502 symcode='[ABCDGISTW]'
6504 hpux*)
6505 if test "$host_cpu" = ia64; then
6506 symcode='[ABCDEGRST]'
6509 irix* | nonstopux*)
6510 symcode='[BCDEGRST]'
6512 osf*)
6513 symcode='[BCDEGQRST]'
6515 solaris*)
6516 symcode='[BDRT]'
6518 sco3.2v5*)
6519 symcode='[DT]'
6521 sysv4.2uw2*)
6522 symcode='[DT]'
6524 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6525 symcode='[ABDT]'
6527 sysv4)
6528 symcode='[DFNSTU]'
6530 esac
6532 # If we're using GNU nm, then use its standard symbol codes.
6533 case `$NM -V 2>&1` in
6534 *GNU* | *'with BFD'*)
6535 symcode='[ABCDGIRSTW]' ;;
6536 esac
6538 # Transform an extracted symbol line into a proper C declaration.
6539 # Some systems (esp. on ia64) link data and code symbols differently,
6540 # so use this general approach.
6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6543 # Transform an extracted symbol line into symbol name and symbol address
6544 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6545 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'"
6547 # Handle CRLF in mingw tool chain
6548 opt_cr=
6549 case $build_os in
6550 mingw*)
6551 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6553 esac
6555 # Try without a prefix underscore, then with it.
6556 for ac_symprfx in "" "_"; do
6558 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6559 symxfrm="\\1 $ac_symprfx\\2 \\2"
6561 # Write the raw and C identifiers.
6562 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6563 # Fake it for dumpbin and say T for any non-static function
6564 # and D for any global variable.
6565 # Also find C++ and __fastcall symbols from MSVC++,
6566 # which start with @ or ?.
6567 lt_cv_sys_global_symbol_pipe="$AWK '"\
6568 " {last_section=section; section=\$ 3};"\
6569 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6570 " \$ 0!~/External *\|/{next};"\
6571 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6572 " {if(hide[section]) next};"\
6573 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6574 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6575 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6576 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6577 " ' prfx=^$ac_symprfx"
6578 else
6579 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6582 # Check to see that the pipe works correctly.
6583 pipe_works=no
6585 rm -f conftest*
6586 cat > conftest.$ac_ext <<_LT_EOF
6587 #ifdef __cplusplus
6588 extern "C" {
6589 #endif
6590 char nm_test_var;
6591 void nm_test_func(void);
6592 void nm_test_func(void){}
6593 #ifdef __cplusplus
6595 #endif
6596 int main(){nm_test_var='a';nm_test_func();return(0);}
6597 _LT_EOF
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 # Now try to grab the symbols.
6605 nlist=conftest.nm
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6607 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; } && test -s "$nlist"; then
6611 # Try sorting and uniquifying the output.
6612 if sort "$nlist" | uniq > "$nlist"T; then
6613 mv -f "$nlist"T "$nlist"
6614 else
6615 rm -f "$nlist"T
6618 # Make sure that we snagged all the symbols we need.
6619 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6620 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6621 cat <<_LT_EOF > conftest.$ac_ext
6622 #ifdef __cplusplus
6623 extern "C" {
6624 #endif
6626 _LT_EOF
6627 # Now generate the symbol file.
6628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6630 cat <<_LT_EOF >> conftest.$ac_ext
6632 /* The mapping between symbol names and symbols. */
6633 const struct {
6634 const char *name;
6635 void *address;
6637 lt__PROGRAM__LTX_preloaded_symbols[] =
6639 { "@PROGRAM@", (void *) 0 },
6640 _LT_EOF
6641 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6642 cat <<\_LT_EOF >> conftest.$ac_ext
6643 {0, (void *) 0}
6646 /* This works around a problem in FreeBSD linker */
6647 #ifdef FREEBSD_WORKAROUND
6648 static const void *lt_preloaded_setup() {
6649 return lt__PROGRAM__LTX_preloaded_symbols;
6651 #endif
6653 #ifdef __cplusplus
6655 #endif
6656 _LT_EOF
6657 # Now try linking the two files.
6658 mv conftest.$ac_objext conftstm.$ac_objext
6659 lt_save_LIBS="$LIBS"
6660 lt_save_CFLAGS="$CFLAGS"
6661 LIBS="conftstm.$ac_objext"
6662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6664 (eval $ac_link) 2>&5
6665 ac_status=$?
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6668 pipe_works=yes
6670 LIBS="$lt_save_LIBS"
6671 CFLAGS="$lt_save_CFLAGS"
6672 else
6673 echo "cannot find nm_test_func in $nlist" >&5
6675 else
6676 echo "cannot find nm_test_var in $nlist" >&5
6678 else
6679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6681 else
6682 echo "$progname: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 rm -rf conftest* conftst*
6687 # Do not use the global_symbol_pipe unless it works.
6688 if test "$pipe_works" = yes; then
6689 break
6690 else
6691 lt_cv_sys_global_symbol_pipe=
6693 done
6697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698 lt_cv_sys_global_symbol_to_cdecl=
6700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6702 $as_echo "failed" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6705 $as_echo "ok" >&6; }
6729 # Check whether --enable-libtool-lock was given.
6730 if test "${enable_libtool_lock+set}" = set; then :
6731 enableval=$enable_libtool_lock;
6734 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6736 # Some flags need to be propagated to the compiler or linker for good
6737 # libtool support.
6738 case $host in
6739 ia64-*-hpux*)
6740 # Find out which ABI we are using.
6741 echo 'int i;' > conftest.$ac_ext
6742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6743 (eval $ac_compile) 2>&5
6744 ac_status=$?
6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746 test $ac_status = 0; }; then
6747 case `/usr/bin/file conftest.$ac_objext` in
6748 *ELF-32*)
6749 HPUX_IA64_MODE="32"
6751 *ELF-64*)
6752 HPUX_IA64_MODE="64"
6754 esac
6756 rm -rf conftest*
6758 *-*-irix6*)
6759 # Find out which ABI we are using.
6760 echo '#line 6760 "configure"' > conftest.$ac_ext
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762 (eval $ac_compile) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }; then
6766 if test "$lt_cv_prog_gnu_ld" = yes; then
6767 case `/usr/bin/file conftest.$ac_objext` in
6768 *32-bit*)
6769 LD="${LD-ld} -melf32bsmip"
6771 *N32*)
6772 LD="${LD-ld} -melf32bmipn32"
6774 *64-bit*)
6775 LD="${LD-ld} -melf64bmip"
6777 esac
6778 else
6779 case `/usr/bin/file conftest.$ac_objext` in
6780 *32-bit*)
6781 LD="${LD-ld} -32"
6783 *N32*)
6784 LD="${LD-ld} -n32"
6786 *64-bit*)
6787 LD="${LD-ld} -64"
6789 esac
6792 rm -rf conftest*
6795 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6796 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6797 # Find out which ABI we are using.
6798 echo 'int i;' > conftest.$ac_ext
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 case `/usr/bin/file conftest.o` in
6805 *32-bit*)
6806 case $host in
6807 x86_64-*kfreebsd*-gnu)
6808 LD="${LD-ld} -m elf_i386_fbsd"
6810 x86_64-*linux*)
6811 LD="${LD-ld} -m elf_i386"
6813 ppc64-*linux*|powerpc64-*linux*)
6814 LD="${LD-ld} -m elf32ppclinux"
6816 s390x-*linux*)
6817 LD="${LD-ld} -m elf_s390"
6819 sparc64-*linux*)
6820 LD="${LD-ld} -m elf32_sparc"
6822 esac
6824 *64-bit*)
6825 case $host in
6826 x86_64-*kfreebsd*-gnu)
6827 LD="${LD-ld} -m elf_x86_64_fbsd"
6829 x86_64-*linux*)
6830 LD="${LD-ld} -m elf_x86_64"
6832 ppc*-*linux*|powerpc*-*linux*)
6833 LD="${LD-ld} -m elf64ppc"
6835 s390*-*linux*|s390*-*tpf*)
6836 LD="${LD-ld} -m elf64_s390"
6838 sparc*-*linux*)
6839 LD="${LD-ld} -m elf64_sparc"
6841 esac
6843 esac
6845 rm -rf conftest*
6848 *-*-sco3.2v5*)
6849 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6850 SAVE_CFLAGS="$CFLAGS"
6851 CFLAGS="$CFLAGS -belf"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6853 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6854 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 ac_ext=c
6858 ac_cpp='$CPP $CPPFLAGS'
6859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6867 main ()
6871 return 0;
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 lt_cv_cc_needs_belf=yes
6876 else
6877 lt_cv_cc_needs_belf=no
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6889 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6890 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6891 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6892 CFLAGS="$SAVE_CFLAGS"
6895 sparc*-*solaris*)
6896 # Find out which ABI we are using.
6897 echo 'int i;' > conftest.$ac_ext
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 case `/usr/bin/file conftest.o` in
6904 *64-bit*)
6905 case $lt_cv_prog_gnu_ld in
6906 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6908 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6909 LD="${LD-ld} -64"
6912 esac
6914 esac
6916 rm -rf conftest*
6918 esac
6920 need_locks="$enable_libtool_lock"
6923 case $host_os in
6924 rhapsody* | darwin*)
6925 if test -n "$ac_tool_prefix"; then
6926 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 if test -n "$DSYMUTIL"; then
6934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6947 done
6948 done
6949 IFS=$as_save_IFS
6953 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6954 if test -n "$DSYMUTIL"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6956 $as_echo "$DSYMUTIL" >&6; }
6957 else
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6964 if test -z "$ac_cv_prog_DSYMUTIL"; then
6965 ac_ct_DSYMUTIL=$DSYMUTIL
6966 # Extract the first word of "dsymutil", so it can be a program name with args.
6967 set dummy dsymutil; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$ac_ct_DSYMUTIL"; then
6974 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6987 done
6988 done
6989 IFS=$as_save_IFS
6993 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6994 if test -n "$ac_ct_DSYMUTIL"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6996 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7002 if test "x$ac_ct_DSYMUTIL" = x; then
7003 DSYMUTIL=":"
7004 else
7005 case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011 DSYMUTIL=$ac_ct_DSYMUTIL
7013 else
7014 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$NMEDIT"; then
7026 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 NMEDIT=$ac_cv_prog_NMEDIT
7046 if test -n "$NMEDIT"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7048 $as_echo "$NMEDIT" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7056 if test -z "$ac_cv_prog_NMEDIT"; then
7057 ac_ct_NMEDIT=$NMEDIT
7058 # Extract the first word of "nmedit", so it can be a program name with args.
7059 set dummy nmedit; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$ac_ct_NMEDIT"; then
7066 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7079 done
7080 done
7081 IFS=$as_save_IFS
7085 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7086 if test -n "$ac_ct_NMEDIT"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7088 $as_echo "$ac_ct_NMEDIT" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7094 if test "x$ac_ct_NMEDIT" = x; then
7095 NMEDIT=":"
7096 else
7097 case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103 NMEDIT=$ac_ct_NMEDIT
7105 else
7106 NMEDIT="$ac_cv_prog_NMEDIT"
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_prog_LIPO+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$LIPO"; then
7118 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7131 done
7132 done
7133 IFS=$as_save_IFS
7137 LIPO=$ac_cv_prog_LIPO
7138 if test -n "$LIPO"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7140 $as_echo "$LIPO" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_LIPO"; then
7149 ac_ct_LIPO=$LIPO
7150 # Extract the first word of "lipo", so it can be a program name with args.
7151 set dummy lipo; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_LIPO"; then
7158 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_LIPO="lipo"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7177 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7178 if test -n "$ac_ct_LIPO"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7180 $as_echo "$ac_ct_LIPO" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_LIPO" = x; then
7187 LIPO=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 LIPO=$ac_ct_LIPO
7197 else
7198 LIPO="$ac_cv_prog_LIPO"
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}otool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$OTOOL"; then
7210 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7229 OTOOL=$ac_cv_prog_OTOOL
7230 if test -n "$OTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7232 $as_echo "$OTOOL" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_OTOOL"; then
7241 ac_ct_OTOOL=$OTOOL
7242 # Extract the first word of "otool", so it can be a program name with args.
7243 set dummy otool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_OTOOL"; then
7250 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_OTOOL="otool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7270 if test -n "$ac_ct_OTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7272 $as_echo "$ac_ct_OTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_OTOOL" = x; then
7279 OTOOL=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 OTOOL=$ac_ct_OTOOL
7289 else
7290 OTOOL="$ac_cv_prog_OTOOL"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$OTOOL64"; then
7302 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7317 IFS=$as_save_IFS
7321 OTOOL64=$ac_cv_prog_OTOOL64
7322 if test -n "$OTOOL64"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7324 $as_echo "$OTOOL64" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_OTOOL64"; then
7333 ac_ct_OTOOL64=$OTOOL64
7334 # Extract the first word of "otool64", so it can be a program name with args.
7335 set dummy otool64; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_OTOOL64"; then
7342 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_OTOOL64="otool64"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7362 if test -n "$ac_ct_OTOOL64"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7364 $as_echo "$ac_ct_OTOOL64" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_OTOOL64" = x; then
7371 OTOOL64=":"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 OTOOL64=$ac_ct_OTOOL64
7381 else
7382 OTOOL64="$ac_cv_prog_OTOOL64"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7412 $as_echo_n "checking for -single_module linker flag... " >&6; }
7413 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 lt_cv_apple_cc_single_mod=no
7417 if test -z "${LT_MULTI_MODULE}"; then
7418 # By default we will add the -single_module flag. You can override
7419 # by either setting the environment variable LT_MULTI_MODULE
7420 # non-empty at configure time, or by adding -multi_module to the
7421 # link flags.
7422 rm -rf libconftest.dylib*
7423 echo "int foo(void){return 1;}" > conftest.c
7424 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7425 -dynamiclib -Wl,-single_module conftest.c" >&5
7426 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7427 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7428 _lt_result=$?
7429 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7430 lt_cv_apple_cc_single_mod=yes
7431 else
7432 cat conftest.err >&5
7434 rm -rf libconftest.dylib*
7435 rm -f conftest.*
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7439 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7441 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7442 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 lt_cv_ld_exported_symbols_list=no
7446 save_LDFLAGS=$LDFLAGS
7447 echo "_main" > conftest.sym
7448 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 main ()
7457 return 0;
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 lt_cv_ld_exported_symbols_list=yes
7462 else
7463 lt_cv_ld_exported_symbols_list=no
7465 rm -f core conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 LDFLAGS="$save_LDFLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7471 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7472 case $host_os in
7473 rhapsody* | darwin1.[012])
7474 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7475 darwin1.*)
7476 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7477 darwin*) # darwin 5.x on
7478 # if running on 10.5 or later, the deployment target defaults
7479 # to the OS version, if on x86, and 10.4, the deployment
7480 # target defaults to 10.4. Don't you love it?
7481 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7482 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7483 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7484 10.[012]*)
7485 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7486 10.*)
7487 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7488 esac
7490 esac
7491 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7492 _lt_dar_single_mod='$single_module'
7494 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7495 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7496 else
7497 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7499 if test "$DSYMUTIL" != ":"; then
7500 _lt_dsymutil='~$DSYMUTIL $lib || :'
7501 else
7502 _lt_dsymutil=
7505 esac
7507 ac_ext=c
7508 ac_cpp='$CPP $CPPFLAGS'
7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7513 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7514 # On Suns, sometimes $CPP names a directory.
7515 if test -n "$CPP" && test -d "$CPP"; then
7516 CPP=
7518 if test -z "$CPP"; then
7519 if test "${ac_cv_prog_CPP+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 # Double quotes because CPP needs to be expanded
7523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7525 ac_preproc_ok=false
7526 for ac_c_preproc_warn_flag in '' yes
7528 # Use a header file that comes with gcc, so configuring glibc
7529 # with a fresh cross-compiler works.
7530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 # <limits.h> exists even on freestanding compilers.
7532 # On the NeXT, cc -E runs the code through the compiler's parser,
7533 # not just through cpp. "Syntax error" is here to catch this case.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #ifdef __STDC__
7537 # include <limits.h>
7538 #else
7539 # include <assert.h>
7540 #endif
7541 Syntax error
7542 _ACEOF
7543 if ac_fn_c_try_cpp "$LINENO"; then :
7545 else
7546 # Broken: fails on valid input.
7547 continue
7549 rm -f conftest.err conftest.$ac_ext
7551 # OK, works on sane cases. Now check whether nonexistent headers
7552 # can be detected and how.
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <ac_nonexistent.h>
7556 _ACEOF
7557 if ac_fn_c_try_cpp "$LINENO"; then :
7558 # Broken: success on invalid input.
7559 continue
7560 else
7561 # Passes both tests.
7562 ac_preproc_ok=:
7563 break
7565 rm -f conftest.err conftest.$ac_ext
7567 done
7568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7569 rm -f conftest.err conftest.$ac_ext
7570 if $ac_preproc_ok; then :
7571 break
7574 done
7575 ac_cv_prog_CPP=$CPP
7578 CPP=$ac_cv_prog_CPP
7579 else
7580 ac_cv_prog_CPP=$CPP
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7583 $as_echo "$CPP" >&6; }
7584 ac_preproc_ok=false
7585 for ac_c_preproc_warn_flag in '' yes
7587 # Use a header file that comes with gcc, so configuring glibc
7588 # with a fresh cross-compiler works.
7589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590 # <limits.h> exists even on freestanding compilers.
7591 # On the NeXT, cc -E runs the code through the compiler's parser,
7592 # not just through cpp. "Syntax error" is here to catch this case.
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 #ifdef __STDC__
7596 # include <limits.h>
7597 #else
7598 # include <assert.h>
7599 #endif
7600 Syntax error
7601 _ACEOF
7602 if ac_fn_c_try_cpp "$LINENO"; then :
7604 else
7605 # Broken: fails on valid input.
7606 continue
7608 rm -f conftest.err conftest.$ac_ext
7610 # OK, works on sane cases. Now check whether nonexistent headers
7611 # can be detected and how.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 #include <ac_nonexistent.h>
7615 _ACEOF
7616 if ac_fn_c_try_cpp "$LINENO"; then :
7617 # Broken: success on invalid input.
7618 continue
7619 else
7620 # Passes both tests.
7621 ac_preproc_ok=:
7622 break
7624 rm -f conftest.err conftest.$ac_ext
7626 done
7627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7628 rm -f conftest.err conftest.$ac_ext
7629 if $ac_preproc_ok; then :
7631 else
7632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7634 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7635 See \`config.log' for more details." "$LINENO" 5; }
7638 ac_ext=c
7639 ac_cpp='$CPP $CPPFLAGS'
7640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <stdlib.h>
7653 #include <stdarg.h>
7654 #include <string.h>
7655 #include <float.h>
7658 main ()
7662 return 0;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_header_stdc=yes
7667 else
7668 ac_cv_header_stdc=no
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <string.h>
7678 _ACEOF
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev/null 2>&1; then :
7682 else
7683 ac_cv_header_stdc=no
7685 rm -f conftest*
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <stdlib.h>
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev/null 2>&1; then :
7699 else
7700 ac_cv_header_stdc=no
7702 rm -f conftest*
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <ctype.h>
7714 #include <stdlib.h>
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 #else
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7724 #endif
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 main ()
7730 int i;
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7734 return 2;
7735 return 0;
7737 _ACEOF
7738 if ac_fn_c_try_run "$LINENO"; then :
7740 else
7741 ac_cv_header_stdc=no
7743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7744 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7759 inttypes.h stdint.h unistd.h
7760 do :
7761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7764 eval as_val=\$$as_ac_Header
7765 if test "x$as_val" = x""yes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768 _ACEOF
7772 done
7775 for ac_header in dlfcn.h
7776 do :
7777 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7779 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DLFCN_H 1
7782 _ACEOF
7786 done
7790 ac_ext=cpp
7791 ac_cpp='$CXXCPP $CPPFLAGS'
7792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7795 if test -z "$CXX"; then
7796 if test -n "$CCC"; then
7797 CXX=$CCC
7798 else
7799 if test -n "$ac_tool_prefix"; then
7800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_CXX+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$CXX"; then
7810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7829 CXX=$ac_cv_prog_CXX
7830 if test -n "$CXX"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7832 $as_echo "$CXX" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7839 test -n "$CXX" && break
7840 done
7842 if test -z "$CXX"; then
7843 ac_ct_CXX=$CXX
7844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$ac_ct_CXX"; then
7854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_ac_ct_CXX="$ac_prog"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7874 if test -n "$ac_ct_CXX"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7876 $as_echo "$ac_ct_CXX" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7883 test -n "$ac_ct_CXX" && break
7884 done
7886 if test "x$ac_ct_CXX" = x; then
7887 CXX="g++"
7888 else
7889 case $cross_compiling:$ac_tool_warned in
7890 yes:)
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893 ac_tool_warned=yes ;;
7894 esac
7895 CXX=$ac_ct_CXX
7901 # Provide some information about the compiler.
7902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7903 set X $ac_compile
7904 ac_compiler=$2
7905 for ac_option in --version -v -V -qversion; do
7906 { { ac_try="$ac_compiler $ac_option >&5"
7907 case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7910 esac
7911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7912 $as_echo "$ac_try_echo"; } >&5
7913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7914 ac_status=$?
7915 if test -s conftest.err; then
7916 sed '10a\
7917 ... rest of stderr output deleted ...
7918 10q' conftest.err >conftest.er1
7919 cat conftest.er1 >&5
7920 rm -f conftest.er1 conftest.err
7922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923 test $ac_status = 0; }
7924 done
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7927 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7935 main ()
7937 #ifndef __GNUC__
7938 choke me
7939 #endif
7942 return 0;
7944 _ACEOF
7945 if ac_fn_cxx_try_compile "$LINENO"; then :
7946 ac_compiler_gnu=yes
7947 else
7948 ac_compiler_gnu=no
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7956 if test $ac_compiler_gnu = yes; then
7957 GXX=yes
7958 else
7959 GXX=
7961 ac_test_CXXFLAGS=${CXXFLAGS+set}
7962 ac_save_CXXFLAGS=$CXXFLAGS
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7965 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7969 ac_cxx_werror_flag=yes
7970 ac_cv_prog_cxx_g=no
7971 CXXFLAGS="-g"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7976 main ()
7980 return 0;
7982 _ACEOF
7983 if ac_fn_cxx_try_compile "$LINENO"; then :
7984 ac_cv_prog_cxx_g=yes
7985 else
7986 CXXFLAGS=""
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7991 main ()
7995 return 0;
7997 _ACEOF
7998 if ac_fn_cxx_try_compile "$LINENO"; then :
8000 else
8001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8002 CXXFLAGS="-g"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8007 main ()
8011 return 0;
8013 _ACEOF
8014 if ac_fn_cxx_try_compile "$LINENO"; then :
8015 ac_cv_prog_cxx_g=yes
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8025 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8026 if test "$ac_test_CXXFLAGS" = set; then
8027 CXXFLAGS=$ac_save_CXXFLAGS
8028 elif test $ac_cv_prog_cxx_g = yes; then
8029 if test "$GXX" = yes; then
8030 CXXFLAGS="-g -O2"
8031 else
8032 CXXFLAGS="-g"
8034 else
8035 if test "$GXX" = yes; then
8036 CXXFLAGS="-O2"
8037 else
8038 CXXFLAGS=
8041 ac_ext=c
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8048 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8049 (test "X$CXX" != "Xg++"))) ; then
8050 ac_ext=cpp
8051 ac_cpp='$CXXCPP $CPPFLAGS'
8052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8056 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8057 if test -z "$CXXCPP"; then
8058 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 # Double quotes because CXXCPP needs to be expanded
8062 for CXXCPP in "$CXX -E" "/lib/cpp"
8064 ac_preproc_ok=false
8065 for ac_cxx_preproc_warn_flag in '' yes
8067 # Use a header file that comes with gcc, so configuring glibc
8068 # with a fresh cross-compiler works.
8069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070 # <limits.h> exists even on freestanding compilers.
8071 # On the NeXT, cc -E runs the code through the compiler's parser,
8072 # not just through cpp. "Syntax error" is here to catch this case.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #ifdef __STDC__
8076 # include <limits.h>
8077 #else
8078 # include <assert.h>
8079 #endif
8080 Syntax error
8081 _ACEOF
8082 if ac_fn_cxx_try_cpp "$LINENO"; then :
8084 else
8085 # Broken: fails on valid input.
8086 continue
8088 rm -f conftest.err conftest.$ac_ext
8090 # OK, works on sane cases. Now check whether nonexistent headers
8091 # can be detected and how.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <ac_nonexistent.h>
8095 _ACEOF
8096 if ac_fn_cxx_try_cpp "$LINENO"; then :
8097 # Broken: success on invalid input.
8098 continue
8099 else
8100 # Passes both tests.
8101 ac_preproc_ok=:
8102 break
8104 rm -f conftest.err conftest.$ac_ext
8106 done
8107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8108 rm -f conftest.err conftest.$ac_ext
8109 if $ac_preproc_ok; then :
8110 break
8113 done
8114 ac_cv_prog_CXXCPP=$CXXCPP
8117 CXXCPP=$ac_cv_prog_CXXCPP
8118 else
8119 ac_cv_prog_CXXCPP=$CXXCPP
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8122 $as_echo "$CXXCPP" >&6; }
8123 ac_preproc_ok=false
8124 for ac_cxx_preproc_warn_flag in '' yes
8126 # Use a header file that comes with gcc, so configuring glibc
8127 # with a fresh cross-compiler works.
8128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 # <limits.h> exists even on freestanding compilers.
8130 # On the NeXT, cc -E runs the code through the compiler's parser,
8131 # not just through cpp. "Syntax error" is here to catch this case.
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 #ifdef __STDC__
8135 # include <limits.h>
8136 #else
8137 # include <assert.h>
8138 #endif
8139 Syntax error
8140 _ACEOF
8141 if ac_fn_cxx_try_cpp "$LINENO"; then :
8143 else
8144 # Broken: fails on valid input.
8145 continue
8147 rm -f conftest.err conftest.$ac_ext
8149 # OK, works on sane cases. Now check whether nonexistent headers
8150 # can be detected and how.
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #include <ac_nonexistent.h>
8154 _ACEOF
8155 if ac_fn_cxx_try_cpp "$LINENO"; then :
8156 # Broken: success on invalid input.
8157 continue
8158 else
8159 # Passes both tests.
8160 ac_preproc_ok=:
8161 break
8163 rm -f conftest.err conftest.$ac_ext
8165 done
8166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8167 rm -f conftest.err conftest.$ac_ext
8168 if $ac_preproc_ok; then :
8170 else
8171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8173 _lt_caught_CXX_error=yes; }
8176 ac_ext=c
8177 ac_cpp='$CPP $CPPFLAGS'
8178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182 else
8183 _lt_caught_CXX_error=yes
8190 # Set options
8194 enable_dlopen=no
8197 enable_win32_dll=no
8200 # Check whether --enable-shared was given.
8201 if test "${enable_shared+set}" = set; then :
8202 enableval=$enable_shared; p=${PACKAGE-default}
8203 case $enableval in
8204 yes) enable_shared=yes ;;
8205 no) enable_shared=no ;;
8207 enable_shared=no
8208 # Look at the argument we got. We use all the common list separators.
8209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210 for pkg in $enableval; do
8211 IFS="$lt_save_ifs"
8212 if test "X$pkg" = "X$p"; then
8213 enable_shared=yes
8215 done
8216 IFS="$lt_save_ifs"
8218 esac
8219 else
8220 enable_shared=yes
8231 # Check whether --enable-static was given.
8232 if test "${enable_static+set}" = set; then :
8233 enableval=$enable_static; p=${PACKAGE-default}
8234 case $enableval in
8235 yes) enable_static=yes ;;
8236 no) enable_static=no ;;
8238 enable_static=no
8239 # Look at the argument we got. We use all the common list separators.
8240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8241 for pkg in $enableval; do
8242 IFS="$lt_save_ifs"
8243 if test "X$pkg" = "X$p"; then
8244 enable_static=yes
8246 done
8247 IFS="$lt_save_ifs"
8249 esac
8250 else
8251 enable_static=yes
8263 # Check whether --with-pic was given.
8264 if test "${with_pic+set}" = set; then :
8265 withval=$with_pic; pic_mode="$withval"
8266 else
8267 pic_mode=default
8271 test -z "$pic_mode" && pic_mode=default
8279 # Check whether --enable-fast-install was given.
8280 if test "${enable_fast_install+set}" = set; then :
8281 enableval=$enable_fast_install; p=${PACKAGE-default}
8282 case $enableval in
8283 yes) enable_fast_install=yes ;;
8284 no) enable_fast_install=no ;;
8286 enable_fast_install=no
8287 # Look at the argument we got. We use all the common list separators.
8288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8289 for pkg in $enableval; do
8290 IFS="$lt_save_ifs"
8291 if test "X$pkg" = "X$p"; then
8292 enable_fast_install=yes
8294 done
8295 IFS="$lt_save_ifs"
8297 esac
8298 else
8299 enable_fast_install=yes
8312 # This can be used to rebuild libtool when needed
8313 LIBTOOL_DEPS="$ltmain"
8315 # Always use our own libtool.
8316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8342 test -z "$LN_S" && LN_S="ln -s"
8357 if test -n "${ZSH_VERSION+set}" ; then
8358 setopt NO_GLOB_SUBST
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8362 $as_echo_n "checking for objdir... " >&6; }
8363 if test "${lt_cv_objdir+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 rm -f .libs 2>/dev/null
8367 mkdir .libs 2>/dev/null
8368 if test -d .libs; then
8369 lt_cv_objdir=.libs
8370 else
8371 # MS-DOS does not allow filenames that begin with a dot.
8372 lt_cv_objdir=_libs
8374 rmdir .libs 2>/dev/null
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8377 $as_echo "$lt_cv_objdir" >&6; }
8378 objdir=$lt_cv_objdir
8384 cat >>confdefs.h <<_ACEOF
8385 #define LT_OBJDIR "$lt_cv_objdir/"
8386 _ACEOF
8404 case $host_os in
8405 aix3*)
8406 # AIX sometimes has problems with the GCC collect2 program. For some
8407 # reason, if we set the COLLECT_NAMES environment variable, the problems
8408 # vanish in a puff of smoke.
8409 if test "X${COLLECT_NAMES+set}" != Xset; then
8410 COLLECT_NAMES=
8411 export COLLECT_NAMES
8414 esac
8416 # Sed substitution that helps us do robust quoting. It backslashifies
8417 # metacharacters that are still active within double-quoted strings.
8418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8420 # Same as above, but do not quote variable references.
8421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8423 # Sed substitution to delay expansion of an escaped shell variable in a
8424 # double_quote_subst'ed string.
8425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8427 # Sed substitution to delay expansion of an escaped single quote.
8428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8430 # Sed substitution to avoid accidental globbing in evaled expressions
8431 no_glob_subst='s/\*/\\\*/g'
8433 # Global variables:
8434 ofile=libtool
8435 can_build_shared=yes
8437 # All known linkers require a `.a' archive for static linking (except MSVC,
8438 # which needs '.lib').
8439 libext=a
8441 with_gnu_ld="$lt_cv_prog_gnu_ld"
8443 old_CC="$CC"
8444 old_CFLAGS="$CFLAGS"
8446 # Set sane defaults for various variables
8447 test -z "$CC" && CC=cc
8448 test -z "$LTCC" && LTCC=$CC
8449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8450 test -z "$LD" && LD=ld
8451 test -z "$ac_objext" && ac_objext=o
8453 for cc_temp in $compiler""; do
8454 case $cc_temp in
8455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8457 \-*) ;;
8458 *) break;;
8459 esac
8460 done
8461 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8464 # Only perform the check for file, if the check method requires it
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 case $deplibs_check_method in
8467 file_magic*)
8468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 case $MAGIC_CMD in
8475 [\\/*] | ?:[\\/]*)
8476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8479 lt_save_MAGIC_CMD="$MAGIC_CMD"
8480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8482 for ac_dir in $ac_dummy; do
8483 IFS="$lt_save_ifs"
8484 test -z "$ac_dir" && ac_dir=.
8485 if test -f $ac_dir/${ac_tool_prefix}file; then
8486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8487 if test -n "$file_magic_test_file"; then
8488 case $deplibs_check_method in
8489 "file_magic "*)
8490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8493 $EGREP "$file_magic_regex" > /dev/null; then
8495 else
8496 cat <<_LT_EOF 1>&2
8498 *** Warning: the command libtool uses to detect shared libraries,
8499 *** $file_magic_cmd, produces output that libtool cannot recognize.
8500 *** The result is that libtool may fail to recognize shared libraries
8501 *** as such. This will affect the creation of libtool libraries that
8502 *** depend on shared libraries, but programs linked with such libtool
8503 *** libraries will work regardless of this problem. Nevertheless, you
8504 *** may want to report the problem to your system manager and/or to
8505 *** bug-libtool@gnu.org
8507 _LT_EOF
8508 fi ;;
8509 esac
8511 break
8513 done
8514 IFS="$lt_save_ifs"
8515 MAGIC_CMD="$lt_save_MAGIC_CMD"
8517 esac
8520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8521 if test -n "$MAGIC_CMD"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8523 $as_echo "$MAGIC_CMD" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8533 if test -z "$lt_cv_path_MAGIC_CMD"; then
8534 if test -n "$ac_tool_prefix"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8536 $as_echo_n "checking for file... " >&6; }
8537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 case $MAGIC_CMD in
8541 [\\/*] | ?:[\\/]*)
8542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8545 lt_save_MAGIC_CMD="$MAGIC_CMD"
8546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548 for ac_dir in $ac_dummy; do
8549 IFS="$lt_save_ifs"
8550 test -z "$ac_dir" && ac_dir=.
8551 if test -f $ac_dir/file; then
8552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8553 if test -n "$file_magic_test_file"; then
8554 case $deplibs_check_method in
8555 "file_magic "*)
8556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559 $EGREP "$file_magic_regex" > /dev/null; then
8561 else
8562 cat <<_LT_EOF 1>&2
8564 *** Warning: the command libtool uses to detect shared libraries,
8565 *** $file_magic_cmd, produces output that libtool cannot recognize.
8566 *** The result is that libtool may fail to recognize shared libraries
8567 *** as such. This will affect the creation of libtool libraries that
8568 *** depend on shared libraries, but programs linked with such libtool
8569 *** libraries will work regardless of this problem. Nevertheless, you
8570 *** may want to report the problem to your system manager and/or to
8571 *** bug-libtool@gnu.org
8573 _LT_EOF
8574 fi ;;
8575 esac
8577 break
8579 done
8580 IFS="$lt_save_ifs"
8581 MAGIC_CMD="$lt_save_MAGIC_CMD"
8583 esac
8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587 if test -n "$MAGIC_CMD"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8589 $as_echo "$MAGIC_CMD" >&6; }
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8596 else
8597 MAGIC_CMD=:
8603 esac
8605 # Use C for the default configuration in the libtool script
8607 lt_save_CC="$CC"
8608 ac_ext=c
8609 ac_cpp='$CPP $CPPFLAGS'
8610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8615 # Source file extension for C test sources.
8616 ac_ext=c
8618 # Object file extension for compiled C test sources.
8619 objext=o
8620 objext=$objext
8622 # Code to be used in simple compile tests
8623 lt_simple_compile_test_code="int some_variable = 0;"
8625 # Code to be used in simple link tests
8626 lt_simple_link_test_code='int main(){return(0);}'
8634 # If no C compiler was specified, use CC.
8635 LTCC=${LTCC-"$CC"}
8637 # If no C compiler flags were specified, use CFLAGS.
8638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8640 # Allow CC to be a program name with arguments.
8641 compiler=$CC
8643 # Save the default compiler, since it gets overwritten when the other
8644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8645 compiler_DEFAULT=$CC
8647 # save warnings/boilerplate of simple test code
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_compiler_boilerplate=`cat conftest.err`
8652 $RM conftest*
8654 ac_outfile=conftest.$ac_objext
8655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_linker_boilerplate=`cat conftest.err`
8658 $RM -r conftest*
8661 if test -n "$compiler"; then
8663 lt_prog_compiler_no_builtin_flag=
8665 if test "$GCC" = yes; then
8666 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8672 else
8673 lt_cv_prog_compiler_rtti_exceptions=no
8674 ac_outfile=conftest.$ac_objext
8675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8676 lt_compiler_flag="-fno-rtti -fno-exceptions"
8677 # Insert the option either (1) after the last *FLAGS variable, or
8678 # (2) before a word containing "conftest.", or (3) at the end.
8679 # Note that $ac_compile itself does not contain backslashes and begins
8680 # with a dollar sign (not a hyphen), so the echo should work correctly.
8681 # The option is referenced via a variable to avoid confusing sed.
8682 lt_compile=`echo "$ac_compile" | $SED \
8683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685 -e 's:$: $lt_compiler_flag:'`
8686 (eval echo "\"\$as_me:8686: $lt_compile\"" >&5)
8687 (eval "$lt_compile" 2>conftest.err)
8688 ac_status=$?
8689 cat conftest.err >&5
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 if (exit $ac_status) && test -s "$ac_outfile"; then
8692 # The compiler can only warn and ignore the option if not recognized
8693 # So say no if there are warnings other than the usual output.
8694 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8697 lt_cv_prog_compiler_rtti_exceptions=yes
8700 $RM conftest*
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8708 else
8719 lt_prog_compiler_wl=
8720 lt_prog_compiler_pic=
8721 lt_prog_compiler_static=
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8724 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_static='-static'
8730 case $host_os in
8731 aix*)
8732 # All AIX code is PIC.
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8739 amigaos*)
8740 case $host_cpu in
8741 powerpc)
8742 # see comment about AmigaOS4 .so support
8743 lt_prog_compiler_pic='-fPIC'
8745 m68k)
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8748 # like `-m68040'.
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8751 esac
8754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755 # PIC is the default for these OSes.
8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762 # (--disable-auto-import) libraries
8763 lt_prog_compiler_pic='-DDLL_EXPORT'
8766 darwin* | rhapsody*)
8767 # PIC is the default on this platform
8768 # Common symbols not allowed in MH_DYLIB files
8769 lt_prog_compiler_pic='-fno-common'
8772 hpux*)
8773 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8774 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8775 # sets the default TLS model and affects inlining.
8776 case $host_cpu in
8777 hppa*64*)
8778 # +Z the default
8781 lt_prog_compiler_pic='-fPIC'
8783 esac
8786 interix[3-9]*)
8787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8788 # Instead, we relocate shared libraries at runtime.
8791 msdosdjgpp*)
8792 # Just because we use GCC doesn't mean we suddenly get shared libraries
8793 # on systems that don't support them.
8794 lt_prog_compiler_can_build_shared=no
8795 enable_shared=no
8798 *nto* | *qnx*)
8799 # QNX uses GNU C++, but need to define -shared option too, otherwise
8800 # it will coredump.
8801 lt_prog_compiler_pic='-fPIC -shared'
8804 sysv4*MP*)
8805 if test -d /usr/nec; then
8806 lt_prog_compiler_pic=-Kconform_pic
8811 lt_prog_compiler_pic='-fPIC'
8813 esac
8814 else
8815 # PORTME Check for flag to pass linker flags through the system compiler.
8816 case $host_os in
8817 aix*)
8818 lt_prog_compiler_wl='-Wl,'
8819 if test "$host_cpu" = ia64; then
8820 # AIX 5 now supports IA64 processor
8821 lt_prog_compiler_static='-Bstatic'
8822 else
8823 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8827 mingw* | cygwin* | pw32* | os2* | cegcc*)
8828 # This hack is so that the source file can tell whether it is being
8829 # built for inclusion in a dll (and should export symbols for example).
8830 lt_prog_compiler_pic='-DDLL_EXPORT'
8833 hpux9* | hpux10* | hpux11*)
8834 lt_prog_compiler_wl='-Wl,'
8835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 # not for PA HP-UX.
8837 case $host_cpu in
8838 hppa*64*|ia64*)
8839 # +Z the default
8842 lt_prog_compiler_pic='+Z'
8844 esac
8845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8846 lt_prog_compiler_static='${wl}-a ${wl}archive'
8849 irix5* | irix6* | nonstopux*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # PIC (with -KPIC) is the default.
8852 lt_prog_compiler_static='-non_shared'
8855 linux* | k*bsd*-gnu)
8856 case $cc_basename in
8857 # old Intel for x86_64 which still supported -KPIC.
8858 ecc*)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-static'
8863 # icc used to be incompatible with GCC.
8864 # ICC 10 doesn't accept -KPIC any more.
8865 icc* | ifort*)
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-fPIC'
8868 lt_prog_compiler_static='-static'
8870 # Lahey Fortran 8.1.
8871 lf95*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='--shared'
8874 lt_prog_compiler_static='--static'
8876 pgcc* | pgf77* | pgf90* | pgf95*)
8877 # Portland Group compilers (*not* the Pentium gcc compiler,
8878 # which looks to be a dead project)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fpic'
8881 lt_prog_compiler_static='-Bstatic'
8883 ccc*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # All Alpha code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8888 xl*)
8889 # IBM XL C 8.0/Fortran 10.1 on PPC
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-qpic'
8892 lt_prog_compiler_static='-qstaticlink'
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ C*)
8897 # Sun C 5.9
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_wl='-Wl,'
8902 *Sun\ F*)
8903 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_wl=''
8908 esac
8910 esac
8913 newsos6)
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8918 *nto* | *qnx*)
8919 # QNX uses GNU C++, but need to define -shared option too, otherwise
8920 # it will coredump.
8921 lt_prog_compiler_pic='-fPIC -shared'
8924 osf3* | osf4* | osf5*)
8925 lt_prog_compiler_wl='-Wl,'
8926 # All OSF/1 code is PIC.
8927 lt_prog_compiler_static='-non_shared'
8930 rdos*)
8931 lt_prog_compiler_static='-non_shared'
8934 solaris*)
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 case $cc_basename in
8938 f77* | f90* | f95*)
8939 lt_prog_compiler_wl='-Qoption ld ';;
8941 lt_prog_compiler_wl='-Wl,';;
8942 esac
8945 sunos4*)
8946 lt_prog_compiler_wl='-Qoption ld '
8947 lt_prog_compiler_pic='-PIC'
8948 lt_prog_compiler_static='-Bstatic'
8951 sysv4 | sysv4.2uw2* | sysv4.3*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8957 sysv4*MP*)
8958 if test -d /usr/nec ;then
8959 lt_prog_compiler_pic='-Kconform_pic'
8960 lt_prog_compiler_static='-Bstatic'
8964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8970 unicos*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_can_build_shared=no
8975 uts4*)
8976 lt_prog_compiler_pic='-pic'
8977 lt_prog_compiler_static='-Bstatic'
8981 lt_prog_compiler_can_build_shared=no
8983 esac
8986 case $host_os in
8987 # For platforms which do not support PIC, -DPIC is meaningless:
8988 *djgpp*)
8989 lt_prog_compiler_pic=
8992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8994 esac
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8996 $as_echo "$lt_prog_compiler_pic" >&6; }
9004 # Check to make sure the PIC flag actually works.
9006 if test -n "$lt_prog_compiler_pic"; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9009 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 lt_cv_prog_compiler_pic_works=no
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
9025 (eval echo "\"\$as_me:9025: $lt_compile\"" >&5)
9026 (eval "$lt_compile" 2>conftest.err)
9027 ac_status=$?
9028 cat conftest.err >&5
9029 echo "$as_me:9029: \$? = $ac_status" >&5
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
9033 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_pic_works=yes
9039 $RM conftest*
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9045 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9046 case $lt_prog_compiler_pic in
9047 "" | " "*) ;;
9048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049 esac
9050 else
9051 lt_prog_compiler_pic=
9052 lt_prog_compiler_can_build_shared=no
9063 # Check to make sure the static flag actually works.
9065 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9067 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9068 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 lt_cv_prog_compiler_static_works=no
9072 save_LDFLAGS="$LDFLAGS"
9073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076 # The linker can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 if test -s conftest.err; then
9079 # Append any errors to the config.log.
9080 cat conftest.err 1>&5
9081 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_static_works=yes
9086 else
9087 lt_cv_prog_compiler_static_works=yes
9090 $RM -r conftest*
9091 LDFLAGS="$save_LDFLAGS"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9095 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9097 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9099 else
9100 lt_prog_compiler_static=
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9111 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_prog_compiler_c_o=no
9115 $RM -r conftest 2>/dev/null
9116 mkdir conftest
9117 cd conftest
9118 mkdir out
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9121 lt_compiler_flag="-o out/conftest2.$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
9130 (eval echo "\"\$as_me:9130: $lt_compile\"" >&5)
9131 (eval "$lt_compile" 2>out/conftest.err)
9132 ac_status=$?
9133 cat out/conftest.err >&5
9134 echo "$as_me:9134: \$? = $ac_status" >&5
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 then
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9145 chmod u+w . 2>&5
9146 $RM conftest*
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9150 $RM out/* && rmdir out
9151 cd ..
9152 $RM -r conftest
9153 $RM conftest*
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9166 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 lt_cv_prog_compiler_c_o=no
9170 $RM -r conftest 2>/dev/null
9171 mkdir conftest
9172 cd conftest
9173 mkdir out
9174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9176 lt_compiler_flag="-o out/conftest2.$ac_objext"
9177 # Insert the option either (1) after the last *FLAGS variable, or
9178 # (2) before a word containing "conftest.", or (3) at the end.
9179 # Note that $ac_compile itself does not contain backslashes and begins
9180 # with a dollar sign (not a hyphen), so the echo should work correctly.
9181 lt_compile=`echo "$ac_compile" | $SED \
9182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184 -e 's:$: $lt_compiler_flag:'`
9185 (eval echo "\"\$as_me:9185: $lt_compile\"" >&5)
9186 (eval "$lt_compile" 2>out/conftest.err)
9187 ac_status=$?
9188 cat out/conftest.err >&5
9189 echo "$as_me:9189: \$? = $ac_status" >&5
9190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9191 then
9192 # The compiler can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9197 lt_cv_prog_compiler_c_o=yes
9200 chmod u+w . 2>&5
9201 $RM conftest*
9202 # SGI C++ compiler will create directory out/ii_files/ for
9203 # template instantiation
9204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9205 $RM out/* && rmdir out
9206 cd ..
9207 $RM -r conftest
9208 $RM conftest*
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9217 hard_links="nottested"
9218 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9219 # do not overwrite the value of need_locks provided by the user
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9221 $as_echo_n "checking if we can lock with hard links... " >&6; }
9222 hard_links=yes
9223 $RM conftest*
9224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9225 touch conftest.a
9226 ln conftest.a conftest.b 2>&5 || hard_links=no
9227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9229 $as_echo "$hard_links" >&6; }
9230 if test "$hard_links" = no; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9233 need_locks=warn
9235 else
9236 need_locks=no
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9247 runpath_var=
9248 allow_undefined_flag=
9249 always_export_symbols=no
9250 archive_cmds=
9251 archive_expsym_cmds=
9252 compiler_needs_object=no
9253 enable_shared_with_static_runtimes=no
9254 export_dynamic_flag_spec=
9255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9256 hardcode_automatic=no
9257 hardcode_direct=no
9258 hardcode_direct_absolute=no
9259 hardcode_libdir_flag_spec=
9260 hardcode_libdir_flag_spec_ld=
9261 hardcode_libdir_separator=
9262 hardcode_minus_L=no
9263 hardcode_shlibpath_var=unsupported
9264 inherit_rpath=no
9265 link_all_deplibs=unknown
9266 module_cmds=
9267 module_expsym_cmds=
9268 old_archive_from_new_cmds=
9269 old_archive_from_expsyms_cmds=
9270 thread_safe_flag_spec=
9271 whole_archive_flag_spec=
9272 # include_expsyms should be a list of space-separated symbols to be *always*
9273 # included in the symbol list
9274 include_expsyms=
9275 # exclude_expsyms can be an extended regexp of symbols to exclude
9276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9278 # as well as any symbol that contains `d'.
9279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9281 # platforms (ab)use it in PIC code, but their linkers get confused if
9282 # the symbol is explicitly referenced. Since portable code cannot
9283 # rely on this symbol name, it's probably fine to never include it in
9284 # preloaded symbol tables.
9285 # Exclude shared library initialization/finalization symbols.
9286 extract_expsyms_cmds=
9288 case $host_os in
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 if test "$GCC" != yes; then
9294 with_gnu_ld=no
9297 interix*)
9298 # we just hope/assume this is gcc and not c89 (= MSVC++)
9299 with_gnu_ld=yes
9301 openbsd*)
9302 with_gnu_ld=no
9304 linux* | k*bsd*-gnu)
9305 link_all_deplibs=no
9307 esac
9309 ld_shlibs=yes
9310 if test "$with_gnu_ld" = yes; then
9311 # If archive_cmds runs LD, not CC, wlarc should be empty
9312 wlarc='${wl}'
9314 # Set some defaults for GNU ld with shared library support. These
9315 # are reset later if shared libraries are not supported. Putting them
9316 # here allows them to be overridden if necessary.
9317 runpath_var=LD_RUN_PATH
9318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319 export_dynamic_flag_spec='${wl}--export-dynamic'
9320 # ancient GNU ld didn't support --whole-archive et. al.
9321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323 else
9324 whole_archive_flag_spec=
9326 supports_anon_versioning=no
9327 case `$LD -v 2>&1` in
9328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9331 *\ 2.11.*) ;; # other 2.11 versions
9332 *) supports_anon_versioning=yes ;;
9333 esac
9335 # See if GNU ld supports shared libraries.
9336 case $host_os in
9337 aix[3-9]*)
9338 # On AIX/PPC, the GNU linker is very broken
9339 if test "$host_cpu" != ia64; then
9340 ld_shlibs=no
9341 cat <<_LT_EOF 1>&2
9343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9344 *** to be unable to reliably create shared libraries on AIX.
9345 *** Therefore, libtool is disabling shared libraries support. If you
9346 *** really care for shared libraries, you may want to modify your PATH
9347 *** so that a non-GNU linker is found, and then restart.
9349 _LT_EOF
9353 amigaos*)
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds=''
9360 m68k)
9361 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)'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9365 esac
9368 beos*)
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 allow_undefined_flag=unsupported
9371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9372 # support --undefined. This deserves some investigation. FIXME
9373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 else
9375 ld_shlibs=no
9379 cygwin* | mingw* | pw32* | cegcc*)
9380 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381 # as there is no search path for DLLs.
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 allow_undefined_flag=unsupported
9384 always_export_symbols=no
9385 enable_shared_with_static_runtimes=yes
9386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9388 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9390 # If the export-symbols file already is a .def file (1st line
9391 # is EXPORTS), use it as is; otherwise, prepend...
9392 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9393 cp $export_symbols $output_objdir/$soname.def;
9394 else
9395 echo EXPORTS > $output_objdir/$soname.def;
9396 cat $export_symbols >> $output_objdir/$soname.def;
9398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9399 else
9400 ld_shlibs=no
9404 interix[3-9]*)
9405 hardcode_direct=no
9406 hardcode_shlibpath_var=no
9407 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9408 export_dynamic_flag_spec='${wl}-E'
9409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9410 # Instead, shared libraries are loaded at an image base (0x10000000 by
9411 # default) and relocated if they conflict, which is a slow very memory
9412 # consuming and fragmenting process. To avoid this, we pick a random,
9413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9416 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'
9419 gnu* | linux* | tpf* | k*bsd*-gnu)
9420 tmp_diet=no
9421 if test "$host_os" = linux-dietlibc; then
9422 case $cc_basename in
9423 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9424 esac
9426 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9427 && test "$tmp_diet" = no
9428 then
9429 tmp_addflag=
9430 tmp_sharedflag='-shared'
9431 case $cc_basename,$host_cpu in
9432 pgcc*) # Portland Group C compiler
9433 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'
9434 tmp_addflag=' $pic_flag'
9436 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9437 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'
9438 tmp_addflag=' $pic_flag -Mnomain' ;;
9439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9440 tmp_addflag=' -i_dynamic' ;;
9441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9442 tmp_addflag=' -i_dynamic -nofor_main' ;;
9443 ifc* | ifort*) # Intel Fortran compiler
9444 tmp_addflag=' -nofor_main' ;;
9445 lf95*) # Lahey Fortran 8.1
9446 whole_archive_flag_spec=
9447 tmp_sharedflag='--shared' ;;
9448 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449 tmp_sharedflag='-qmkshrobj'
9450 tmp_addflag= ;;
9451 esac
9452 case `$CC -V 2>&1 | sed 5q` in
9453 *Sun\ C*) # Sun C 5.9
9454 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'
9455 compiler_needs_object=yes
9456 tmp_sharedflag='-G' ;;
9457 *Sun\ F*) # Sun Fortran 8.3
9458 tmp_sharedflag='-G' ;;
9459 esac
9460 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 if test "x$supports_anon_versioning" = xyes; then
9463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9465 echo "local: *; };" >> $output_objdir/$libname.ver~
9466 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9469 case $cc_basename in
9470 xlf*)
9471 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9472 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9473 hardcode_libdir_flag_spec=
9474 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9475 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9476 if test "x$supports_anon_versioning" = xyes; then
9477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9479 echo "local: *; };" >> $output_objdir/$libname.ver~
9480 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9483 esac
9484 else
9485 ld_shlibs=no
9489 netbsd* | netbsdelf*-gnu)
9490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9491 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9492 wlarc=
9493 else
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499 solaris*)
9500 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9501 ld_shlibs=no
9502 cat <<_LT_EOF 1>&2
9504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9505 *** create shared libraries on Solaris systems. Therefore, libtool
9506 *** is disabling shared libraries support. We urge you to upgrade GNU
9507 *** binutils to release 2.9.1 or newer. Another option is to modify
9508 *** your PATH or compiler configuration so that the native linker is
9509 *** used, and then restart.
9511 _LT_EOF
9512 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515 else
9516 ld_shlibs=no
9520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9521 case `$LD -v 2>&1` in
9522 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9523 ld_shlibs=no
9524 cat <<_LT_EOF 1>&2
9526 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9527 *** reliably create shared libraries on SCO systems. Therefore, libtool
9528 *** is disabling shared libraries support. We urge you to upgrade GNU
9529 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9530 *** your PATH or compiler configuration so that the native linker is
9531 *** used, and then restart.
9533 _LT_EOF
9536 # For security reasons, it is highly recommended that you always
9537 # use absolute paths for naming shared libraries, and exclude the
9538 # DT_RUNPATH tag from executables and libraries. But doing so
9539 # requires that you compile everything twice, which is a pain.
9540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 else
9545 ld_shlibs=no
9548 esac
9551 sunos4*)
9552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9553 wlarc=
9554 hardcode_direct=yes
9555 hardcode_shlibpath_var=no
9559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9562 else
9563 ld_shlibs=no
9566 esac
9568 if test "$ld_shlibs" = no; then
9569 runpath_var=
9570 hardcode_libdir_flag_spec=
9571 export_dynamic_flag_spec=
9572 whole_archive_flag_spec=
9574 else
9575 # PORTME fill in a description of your system's linker (not GNU ld)
9576 case $host_os in
9577 aix3*)
9578 allow_undefined_flag=unsupported
9579 always_export_symbols=yes
9580 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'
9581 # Note: this linker hardcodes the directories in LIBPATH if there
9582 # are no directories specified by -L.
9583 hardcode_minus_L=yes
9584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9585 # Neither direct hardcoding nor static linking is supported with a
9586 # broken collect2.
9587 hardcode_direct=unsupported
9591 aix[4-9]*)
9592 if test "$host_cpu" = ia64; then
9593 # On IA64, the linker does run time linking by default, so we don't
9594 # have to do anything special.
9595 aix_use_runtimelinking=no
9596 exp_sym_flag='-Bexport'
9597 no_entry_flag=""
9598 else
9599 # If we're using GNU nm, then we don't want the "-C" option.
9600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9602 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'
9603 else
9604 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'
9606 aix_use_runtimelinking=no
9608 # Test if we are trying to use run time linking or normal
9609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9610 # need to do runtime linking.
9611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9612 for ld_flag in $LDFLAGS; do
9613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9614 aix_use_runtimelinking=yes
9615 break
9617 done
9619 esac
9621 exp_sym_flag='-bexport'
9622 no_entry_flag='-bnoentry'
9625 # When large executables or shared objects are built, AIX ld can
9626 # have problems creating the table of contents. If linking a library
9627 # or program results in "error TOC overflow" add -mminimal-toc to
9628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9631 archive_cmds=''
9632 hardcode_direct=yes
9633 hardcode_direct_absolute=yes
9634 hardcode_libdir_separator=':'
9635 link_all_deplibs=yes
9636 file_list_spec='${wl}-f,'
9638 if test "$GCC" = yes; then
9639 case $host_os in aix4.[012]|aix4.[012].*)
9640 # We only want to do this on AIX 4.2 and lower, the check
9641 # below for broken collect2 doesn't work under 4.3+
9642 collect2name=`${CC} -print-prog-name=collect2`
9643 if test -f "$collect2name" &&
9644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9645 then
9646 # We have reworked collect2
9648 else
9649 # We have old collect2
9650 hardcode_direct=unsupported
9651 # It fails to find uninstalled libraries when the uninstalled
9652 # path is not listed in the libpath. Setting hardcode_minus_L
9653 # to unsupported forces relinking
9654 hardcode_minus_L=yes
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_libdir_separator=
9659 esac
9660 shared_flag='-shared'
9661 if test "$aix_use_runtimelinking" = yes; then
9662 shared_flag="$shared_flag "'${wl}-G'
9664 link_all_deplibs=no
9665 else
9666 # not using gcc
9667 if test "$host_cpu" = ia64; then
9668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9669 # chokes on -Wl,-G. The following line is correct:
9670 shared_flag='-G'
9671 else
9672 if test "$aix_use_runtimelinking" = yes; then
9673 shared_flag='${wl}-G'
9674 else
9675 shared_flag='${wl}-bM:SRE'
9680 export_dynamic_flag_spec='${wl}-bexpall'
9681 # It seems that -bexpall does not export symbols beginning with
9682 # underscore (_), so it is better to generate a list of symbols to export.
9683 always_export_symbols=yes
9684 if test "$aix_use_runtimelinking" = yes; then
9685 # Warning - without using the other runtime loading flags (-brtl),
9686 # -berok will link without error, but may produce a broken library.
9687 allow_undefined_flag='-berok'
9688 # Determine the default libpath from the value encoded in an
9689 # empty executable.
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9694 main ()
9698 return 0;
9700 _ACEOF
9701 if ac_fn_c_try_link "$LINENO"; then :
9703 lt_aix_libpath_sed='
9704 /Import File Strings/,/^$/ {
9705 /^0/ {
9706 s/^0 *\(.*\)$/\1/
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9721 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"
9722 else
9723 if test "$host_cpu" = ia64; then
9724 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9725 allow_undefined_flag="-z nodefs"
9726 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"
9727 else
9728 # Determine the default libpath from the value encoded in an
9729 # empty executable.
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9734 main ()
9738 return 0;
9740 _ACEOF
9741 if ac_fn_c_try_link "$LINENO"; then :
9743 lt_aix_libpath_sed='
9744 /Import File Strings/,/^$/ {
9745 /^0/ {
9746 s/^0 *\(.*\)$/\1/
9750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 # Check for a 64-bit object if we didn't find anything.
9752 if test -z "$aix_libpath"; then
9753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9761 # Warning - without using the other run time loading flags,
9762 # -berok will link without error, but may produce a broken library.
9763 no_undefined_flag=' ${wl}-bernotok'
9764 allow_undefined_flag=' ${wl}-berok'
9765 # Exported symbols can be pulled into shared objects from archives
9766 whole_archive_flag_spec='$convenience'
9767 archive_cmds_need_lc=yes
9768 # This is similar to how AIX traditionally builds its shared libraries.
9769 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'
9774 amigaos*)
9775 case $host_cpu in
9776 powerpc)
9777 # see comment about AmigaOS4 .so support
9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 archive_expsym_cmds=''
9781 m68k)
9782 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)'
9783 hardcode_libdir_flag_spec='-L$libdir'
9784 hardcode_minus_L=yes
9786 esac
9789 bsdi[45]*)
9790 export_dynamic_flag_spec=-rdynamic
9793 cygwin* | mingw* | pw32* | cegcc*)
9794 # When not using gcc, we currently assume that we are using
9795 # Microsoft Visual C++.
9796 # hardcode_libdir_flag_spec is actually meaningless, as there is
9797 # no search path for DLLs.
9798 hardcode_libdir_flag_spec=' '
9799 allow_undefined_flag=unsupported
9800 # Tell ltmain to make .lib files, not .a files.
9801 libext=lib
9802 # Tell ltmain to make .dll files, not .so files.
9803 shrext_cmds=".dll"
9804 # FIXME: Setting linknames here is a bad hack.
9805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9806 # The linker will automatically build a .lib file if we build a DLL.
9807 old_archive_from_new_cmds='true'
9808 # FIXME: Should let the user specify the lib program.
9809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9810 fix_srcfile_path='`cygpath -w "$srcfile"`'
9811 enable_shared_with_static_runtimes=yes
9814 darwin* | rhapsody*)
9817 archive_cmds_need_lc=no
9818 hardcode_direct=no
9819 hardcode_automatic=yes
9820 hardcode_shlibpath_var=unsupported
9821 whole_archive_flag_spec=''
9822 link_all_deplibs=yes
9823 allow_undefined_flag="$_lt_dar_allow_undefined"
9824 case $cc_basename in
9825 ifort*) _lt_dar_can_shared=yes ;;
9826 *) _lt_dar_can_shared=$GCC ;;
9827 esac
9828 if test "$_lt_dar_can_shared" = "yes"; then
9829 output_verbose_link_cmd=echo
9830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9832 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}"
9833 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}"
9835 else
9836 ld_shlibs=no
9841 dgux*)
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_shlibpath_var=no
9847 freebsd1*)
9848 ld_shlibs=no
9851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9852 # support. Future versions do this automatically, but an explicit c++rt0.o
9853 # does not break anything, and helps significantly (at the cost of a little
9854 # extra space).
9855 freebsd2.2*)
9856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9857 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_direct=yes
9859 hardcode_shlibpath_var=no
9862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9863 freebsd2*)
9864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_direct=yes
9866 hardcode_minus_L=yes
9867 hardcode_shlibpath_var=no
9870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9871 freebsd* | dragonfly*)
9872 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9873 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_direct=yes
9875 hardcode_shlibpath_var=no
9878 hpux9*)
9879 if test "$GCC" = yes; then
9880 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'
9881 else
9882 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'
9884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9885 hardcode_libdir_separator=:
9886 hardcode_direct=yes
9888 # hardcode_minus_L: Not really in the search PATH,
9889 # but as the default location of the library.
9890 hardcode_minus_L=yes
9891 export_dynamic_flag_spec='${wl}-E'
9894 hpux10*)
9895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9897 else
9898 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9900 if test "$with_gnu_ld" = no; then
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_flag_spec_ld='+b $libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_direct=yes
9905 hardcode_direct_absolute=yes
9906 export_dynamic_flag_spec='${wl}-E'
9907 # hardcode_minus_L: Not really in the search PATH,
9908 # but as the default location of the library.
9909 hardcode_minus_L=yes
9913 hpux11*)
9914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9915 case $host_cpu in
9916 hppa*64*)
9917 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 ia64*)
9920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9925 esac
9926 else
9927 case $host_cpu in
9928 hppa*64*)
9929 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 ia64*)
9932 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9937 esac
9939 if test "$with_gnu_ld" = no; then
9940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941 hardcode_libdir_separator=:
9943 case $host_cpu in
9944 hppa*64*|ia64*)
9945 hardcode_direct=no
9946 hardcode_shlibpath_var=no
9949 hardcode_direct=yes
9950 hardcode_direct_absolute=yes
9951 export_dynamic_flag_spec='${wl}-E'
9953 # hardcode_minus_L: Not really in the search PATH,
9954 # but as the default location of the library.
9955 hardcode_minus_L=yes
9957 esac
9961 irix5* | irix6* | nonstopux*)
9962 if test "$GCC" = yes; then
9963 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'
9964 # Try to use the -exported_symbol ld option, if it does not
9965 # work, assume that -exports_file does not work either and
9966 # implicitly export all symbols.
9967 save_LDFLAGS="$LDFLAGS"
9968 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int foo(void) {}
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 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'
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 LDFLAGS="$save_LDFLAGS"
9980 else
9981 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'
9982 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'
9984 archive_cmds_need_lc='no'
9985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9986 hardcode_libdir_separator=:
9987 inherit_rpath=yes
9988 link_all_deplibs=yes
9991 netbsd* | netbsdelf*-gnu)
9992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9994 else
9995 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9997 hardcode_libdir_flag_spec='-R$libdir'
9998 hardcode_direct=yes
9999 hardcode_shlibpath_var=no
10002 newsos6)
10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_direct=yes
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 hardcode_libdir_separator=:
10007 hardcode_shlibpath_var=no
10010 *nto* | *qnx*)
10013 openbsd*)
10014 if test -f /usr/libexec/ld.so; then
10015 hardcode_direct=yes
10016 hardcode_shlibpath_var=no
10017 hardcode_direct_absolute=yes
10018 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10019 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10022 export_dynamic_flag_spec='${wl}-E'
10023 else
10024 case $host_os in
10025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10027 hardcode_libdir_flag_spec='-R$libdir'
10030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10031 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10033 esac
10035 else
10036 ld_shlibs=no
10040 os2*)
10041 hardcode_libdir_flag_spec='-L$libdir'
10042 hardcode_minus_L=yes
10043 allow_undefined_flag=unsupported
10044 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'
10045 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10048 osf3*)
10049 if test "$GCC" = yes; then
10050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10051 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'
10052 else
10053 allow_undefined_flag=' -expect_unresolved \*'
10054 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'
10056 archive_cmds_need_lc='no'
10057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058 hardcode_libdir_separator=:
10061 osf4* | osf5*) # as osf3* with the addition of -msym flag
10062 if test "$GCC" = yes; then
10063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10064 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'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 else
10067 allow_undefined_flag=' -expect_unresolved \*'
10068 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'
10069 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~
10070 $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'
10072 # Both c and cxx compiler support -rpath directly
10073 hardcode_libdir_flag_spec='-rpath $libdir'
10075 archive_cmds_need_lc='no'
10076 hardcode_libdir_separator=:
10079 solaris*)
10080 no_undefined_flag=' -z defs'
10081 if test "$GCC" = yes; then
10082 wlarc='${wl}'
10083 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10085 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10086 else
10087 case `$CC -V 2>&1` in
10088 *"Compilers 5.0"*)
10089 wlarc=''
10090 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10095 wlarc='${wl}'
10096 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10098 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10100 esac
10102 hardcode_libdir_flag_spec='-R$libdir'
10103 hardcode_shlibpath_var=no
10104 case $host_os in
10105 solaris2.[0-5] | solaris2.[0-5].*) ;;
10107 # The compiler driver will combine and reorder linker options,
10108 # but understands `-z linker_flag'. GCC discards it without `$wl',
10109 # but is careful enough not to reorder.
10110 # Supported since Solaris 2.6 (maybe 2.5.1?)
10111 if test "$GCC" = yes; then
10112 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10113 else
10114 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10117 esac
10118 link_all_deplibs=yes
10121 sunos4*)
10122 if test "x$host_vendor" = xsequent; then
10123 # Use $CC to link under sequent, because it throws in some extra .o
10124 # files that make .init and .fini sections work.
10125 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10126 else
10127 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_direct=yes
10131 hardcode_minus_L=yes
10132 hardcode_shlibpath_var=no
10135 sysv4)
10136 case $host_vendor in
10137 sni)
10138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139 hardcode_direct=yes # is this really true???
10141 siemens)
10142 ## LD is ld it makes a PLAMLIB
10143 ## CC just makes a GrossModule.
10144 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10145 reload_cmds='$CC -r -o $output$reload_objs'
10146 hardcode_direct=no
10148 motorola)
10149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10152 esac
10153 runpath_var='LD_RUN_PATH'
10154 hardcode_shlibpath_var=no
10157 sysv4.3*)
10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_shlibpath_var=no
10160 export_dynamic_flag_spec='-Bexport'
10163 sysv4*MP*)
10164 if test -d /usr/nec; then
10165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_shlibpath_var=no
10167 runpath_var=LD_RUN_PATH
10168 hardcode_runpath_var=yes
10169 ld_shlibs=yes
10173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10174 no_undefined_flag='${wl}-z,text'
10175 archive_cmds_need_lc=no
10176 hardcode_shlibpath_var=no
10177 runpath_var='LD_RUN_PATH'
10179 if test "$GCC" = yes; then
10180 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 sysv5* | sco3.2v5* | sco5v6*)
10189 # Note: We can NOT use -z defs as we might desire, because we do not
10190 # link with -lc, and that would cause any symbols used from libc to
10191 # always be unresolved, which means just about no library would
10192 # ever link correctly. If we're not using GNU ld we use -z text
10193 # though, which does catch some bad symbols but isn't as heavy-handed
10194 # as -z defs.
10195 no_undefined_flag='${wl}-z,text'
10196 allow_undefined_flag='${wl}-z,nodefs'
10197 archive_cmds_need_lc=no
10198 hardcode_shlibpath_var=no
10199 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10200 hardcode_libdir_separator=':'
10201 link_all_deplibs=yes
10202 export_dynamic_flag_spec='${wl}-Bexport'
10203 runpath_var='LD_RUN_PATH'
10205 if test "$GCC" = yes; then
10206 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 else
10209 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 uts4*)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_shlibpath_var=no
10221 ld_shlibs=no
10223 esac
10225 if test x$host_vendor = xsni; then
10226 case $host in
10227 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10228 export_dynamic_flag_spec='${wl}-Blargedynsym'
10230 esac
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10235 $as_echo "$ld_shlibs" >&6; }
10236 test "$ld_shlibs" = no && can_build_shared=no
10238 with_gnu_ld=$with_gnu_ld
10255 # Do we need to explicitly link libc?
10257 case "x$archive_cmds_need_lc" in
10258 x|xyes)
10259 # Assume -lc should be added
10260 archive_cmds_need_lc=yes
10262 if test "$enable_shared" = yes && test "$GCC" = yes; then
10263 case $archive_cmds in
10264 *'~'*)
10265 # FIXME: we may have to deal with multi-command sequences.
10267 '$CC '*)
10268 # Test whether the compiler implicitly links with -lc since on some
10269 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10270 # to ld, don't add -lc before -lgcc.
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10272 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10273 $RM conftest*
10274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
10279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; } 2>conftest.err; then
10281 soname=conftest
10282 lib=conftest
10283 libobjs=conftest.$ac_objext
10284 deplibs=
10285 wl=$lt_prog_compiler_wl
10286 pic_flag=$lt_prog_compiler_pic
10287 compiler_flags=-v
10288 linker_flags=-v
10289 verstring=
10290 output_objdir=.
10291 libname=conftest
10292 lt_save_allow_undefined_flag=$allow_undefined_flag
10293 allow_undefined_flag=
10294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10296 ac_status=$?
10297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298 test $ac_status = 0; }
10299 then
10300 archive_cmds_need_lc=no
10301 else
10302 archive_cmds_need_lc=yes
10304 allow_undefined_flag=$lt_save_allow_undefined_flag
10305 else
10306 cat conftest.err 1>&5
10308 $RM conftest*
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10310 $as_echo "$archive_cmds_need_lc" >&6; }
10312 esac
10315 esac
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10476 if test "$GCC" = yes; then
10477 case $host_os in
10478 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10479 *) lt_awk_arg="/^libraries:/" ;;
10480 esac
10481 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10482 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10483 # if the path contains ";" then we assume it to be the separator
10484 # otherwise default to the standard path separator (i.e. ":") - it is
10485 # assumed that no part of a normal pathname contains ";" but that should
10486 # okay in the real world where ";" in dirpaths is itself problematic.
10487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10488 else
10489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10491 # Ok, now we have the path, separated by spaces, we can step through it
10492 # and add multilib dir if necessary.
10493 lt_tmp_lt_search_path_spec=
10494 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10495 for lt_sys_path in $lt_search_path_spec; do
10496 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10497 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10498 else
10499 test -d "$lt_sys_path" && \
10500 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10502 done
10503 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10504 BEGIN {RS=" "; FS="/|\n";} {
10505 lt_foo="";
10506 lt_count=0;
10507 for (lt_i = NF; lt_i > 0; lt_i--) {
10508 if ($lt_i != "" && $lt_i != ".") {
10509 if ($lt_i == "..") {
10510 lt_count++;
10511 } else {
10512 if (lt_count == 0) {
10513 lt_foo="/" $lt_i lt_foo;
10514 } else {
10515 lt_count--;
10520 if (lt_foo != "") { lt_freq[lt_foo]++; }
10521 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10523 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10524 else
10525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10527 library_names_spec=
10528 libname_spec='lib$name'
10529 soname_spec=
10530 shrext_cmds=".so"
10531 postinstall_cmds=
10532 postuninstall_cmds=
10533 finish_cmds=
10534 finish_eval=
10535 shlibpath_var=
10536 shlibpath_overrides_runpath=unknown
10537 version_type=none
10538 dynamic_linker="$host_os ld.so"
10539 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10540 need_lib_prefix=unknown
10541 hardcode_into_libs=no
10543 # when you set need_version to no, make sure it does not cause -set_version
10544 # flags to be left without arguments
10545 need_version=unknown
10547 case $host_os in
10548 aix3*)
10549 version_type=linux
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10551 shlibpath_var=LIBPATH
10553 # AIX 3 has no versioning support, so we append a major version to the name.
10554 soname_spec='${libname}${release}${shared_ext}$major'
10557 aix[4-9]*)
10558 version_type=linux
10559 need_lib_prefix=no
10560 need_version=no
10561 hardcode_into_libs=yes
10562 if test "$host_cpu" = ia64; then
10563 # AIX 5 supports IA64
10564 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 else
10567 # With GCC up to 2.95.x, collect2 would create an import file
10568 # for dependence libraries. The import file would start with
10569 # the line `#! .'. This would cause the generated library to
10570 # depend on `.', always an invalid library. This was fixed in
10571 # development snapshots of GCC prior to 3.0.
10572 case $host_os in
10573 aix4 | aix4.[01] | aix4.[01].*)
10574 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10575 echo ' yes '
10576 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10578 else
10579 can_build_shared=no
10582 esac
10583 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10584 # soname into executable. Probably we can add versioning support to
10585 # collect2, so additional links can be useful in future.
10586 if test "$aix_use_runtimelinking" = yes; then
10587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10588 # instead of lib<name>.a to let people know that these are not
10589 # typical AIX shared libraries.
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 else
10592 # We preserve .a as extension for shared libraries through AIX4.2
10593 # and later when we are not doing run time linking.
10594 library_names_spec='${libname}${release}.a $libname.a'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LIBPATH
10601 amigaos*)
10602 case $host_cpu in
10603 powerpc)
10604 # Since July 2007 AmigaOS4 officially supports .so libraries.
10605 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 m68k)
10609 library_names_spec='$libname.ixlibrary $libname.a'
10610 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10611 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'
10613 esac
10616 beos*)
10617 library_names_spec='${libname}${shared_ext}'
10618 dynamic_linker="$host_os ld.so"
10619 shlibpath_var=LIBRARY_PATH
10622 bsdi[45]*)
10623 version_type=linux
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10631 # the default ld.so.conf also contains /usr/contrib/lib and
10632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10633 # libtool to hard-code these into programs
10636 cygwin* | mingw* | pw32* | cegcc*)
10637 version_type=windows
10638 shrext_cmds=".dll"
10639 need_version=no
10640 need_lib_prefix=no
10642 case $GCC,$host_os in
10643 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10644 library_names_spec='$libname.dll.a'
10645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10646 postinstall_cmds='base_file=`basename \${file}`~
10647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10648 dldir=$destdir/`dirname \$dlpath`~
10649 test -d \$dldir || mkdir -p \$dldir~
10650 $install_prog $dir/$dlname \$dldir/$dlname~
10651 chmod a+x \$dldir/$dlname~
10652 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10653 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10656 dlpath=$dir/\$dldll~
10657 $RM \$dlpath'
10658 shlibpath_overrides_runpath=yes
10660 case $host_os in
10661 cygwin*)
10662 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10663 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10666 mingw* | cegcc*)
10667 # MinGW DLLs use traditional 'lib' prefix
10668 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10670 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10671 # It is most probably a Windows format PATH printed by
10672 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10673 # path with ; separators, and with drive letters. We can handle the
10674 # drive letters (cygwin fileutils understands them), so leave them,
10675 # especially as we might pass files found there to a mingw objdump,
10676 # which wouldn't understand a cygwinified path. Ahh.
10677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10678 else
10679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10682 pw32*)
10683 # pw32 DLLs use 'pw' prefix rather than 'lib'
10684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10686 esac
10690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10692 esac
10693 dynamic_linker='Win32 ld.exe'
10694 # FIXME: first we should search . and the directory the executable is in
10695 shlibpath_var=PATH
10698 darwin* | rhapsody*)
10699 dynamic_linker="$host_os dyld"
10700 version_type=darwin
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10704 soname_spec='${libname}${release}${major}$shared_ext'
10705 shlibpath_overrides_runpath=yes
10706 shlibpath_var=DYLD_LIBRARY_PATH
10707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10713 dgux*)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10722 freebsd1*)
10723 dynamic_linker=no
10726 freebsd* | dragonfly*)
10727 # DragonFly does not have aout. When/if they implement a new
10728 # versioning mechanism, adjust this.
10729 if test -x /usr/bin/objformat; then
10730 objformat=`/usr/bin/objformat`
10731 else
10732 case $host_os in
10733 freebsd[123]*) objformat=aout ;;
10734 *) objformat=elf ;;
10735 esac
10737 version_type=freebsd-$objformat
10738 case $version_type in
10739 freebsd-elf*)
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10741 need_version=no
10742 need_lib_prefix=no
10744 freebsd-*)
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10746 need_version=yes
10748 esac
10749 shlibpath_var=LD_LIBRARY_PATH
10750 case $host_os in
10751 freebsd2*)
10752 shlibpath_overrides_runpath=yes
10754 freebsd3.[01]* | freebsdelf3.[01]*)
10755 shlibpath_overrides_runpath=yes
10756 hardcode_into_libs=yes
10758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10763 *) # from 4.6 on, and DragonFly
10764 shlibpath_overrides_runpath=yes
10765 hardcode_into_libs=yes
10767 esac
10770 gnu*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 hardcode_into_libs=yes
10780 hpux9* | hpux10* | hpux11*)
10781 # Give a soname corresponding to the major version so that dld.sl refuses to
10782 # link against other versions.
10783 version_type=sunos
10784 need_lib_prefix=no
10785 need_version=no
10786 case $host_cpu in
10787 ia64*)
10788 shrext_cmds='.so'
10789 hardcode_into_libs=yes
10790 dynamic_linker="$host_os dld.so"
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 if test "X$HPUX_IA64_MODE" = X32; then
10796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10797 else
10798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10802 hppa*64*)
10803 shrext_cmds='.sl'
10804 hardcode_into_libs=yes
10805 dynamic_linker="$host_os dld.sl"
10806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10814 shrext_cmds='.sl'
10815 dynamic_linker="$host_os dld.sl"
10816 shlibpath_var=SHLIB_PATH
10817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10821 esac
10822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10823 postinstall_cmds='chmod 555 $lib'
10826 interix[3-9]*)
10827 version_type=linux
10828 need_lib_prefix=no
10829 need_version=no
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 shlibpath_overrides_runpath=no
10835 hardcode_into_libs=yes
10838 irix5* | irix6* | nonstopux*)
10839 case $host_os in
10840 nonstopux*) version_type=nonstopux ;;
10842 if test "$lt_cv_prog_gnu_ld" = yes; then
10843 version_type=linux
10844 else
10845 version_type=irix
10846 fi ;;
10847 esac
10848 need_lib_prefix=no
10849 need_version=no
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10852 case $host_os in
10853 irix5* | nonstopux*)
10854 libsuff= shlibsuff=
10857 case $LD in # libtool.m4 will add one of these switches to LD
10858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10859 libsuff= shlibsuff= libmagic=32-bit;;
10860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10861 libsuff=32 shlibsuff=N32 libmagic=N32;;
10862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10864 *) libsuff= shlibsuff= libmagic=never-match;;
10865 esac
10867 esac
10868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10869 shlibpath_overrides_runpath=no
10870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10872 hardcode_into_libs=yes
10875 # No shared lib support for Linux oldld, aout, or coff.
10876 linux*oldld* | linux*aout* | linux*coff*)
10877 dynamic_linker=no
10880 # This must be Linux ELF.
10881 linux* | k*bsd*-gnu)
10882 version_type=linux
10883 need_lib_prefix=no
10884 need_version=no
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=no
10890 # Some binutils ld are patched to set DT_RUNPATH
10891 save_LDFLAGS=$LDFLAGS
10892 save_libdir=$libdir
10893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10899 main ()
10903 return 0;
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10908 shlibpath_overrides_runpath=yes
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LDFLAGS=$save_LDFLAGS
10914 libdir=$save_libdir
10916 # This implies no fast_install, which is unacceptable.
10917 # Some rework will be needed to allow for fast_install
10918 # before this can be enabled.
10919 hardcode_into_libs=yes
10921 # Append ld.so.conf contents to the search path
10922 if test -f /etc/ld.so.conf; then
10923 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' ' '`
10924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10927 # We used to test for /lib/ld.so.1 and disable shared libraries on
10928 # powerpc, because MkLinux only supported shared libraries with the
10929 # GNU dynamic linker. Since this was broken with cross compilers,
10930 # most powerpc-linux boxes support dynamic linking these days and
10931 # people can always --disable-shared, the test was removed, and we
10932 # assume the GNU/Linux dynamic linker is in use.
10933 dynamic_linker='GNU/Linux ld.so'
10936 netbsdelf*-gnu)
10937 version_type=linux
10938 need_lib_prefix=no
10939 need_version=no
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 dynamic_linker='NetBSD ld.elf_so'
10948 netbsd*)
10949 version_type=sunos
10950 need_lib_prefix=no
10951 need_version=no
10952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10955 dynamic_linker='NetBSD (a.out) ld.so'
10956 else
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 dynamic_linker='NetBSD ld.elf_so'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10966 newsos6)
10967 version_type=linux
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=yes
10973 *nto* | *qnx*)
10974 version_type=qnx
10975 need_lib_prefix=no
10976 need_version=no
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=no
10981 hardcode_into_libs=yes
10982 dynamic_linker='ldqnx.so'
10985 openbsd*)
10986 version_type=sunos
10987 sys_lib_dlsearch_path_spec="/usr/lib"
10988 need_lib_prefix=no
10989 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10990 case $host_os in
10991 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10992 *) need_version=no ;;
10993 esac
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10998 case $host_os in
10999 openbsd2.[89] | openbsd2.[89].*)
11000 shlibpath_overrides_runpath=no
11003 shlibpath_overrides_runpath=yes
11005 esac
11006 else
11007 shlibpath_overrides_runpath=yes
11011 os2*)
11012 libname_spec='$name'
11013 shrext_cmds=".dll"
11014 need_lib_prefix=no
11015 library_names_spec='$libname${shared_ext} $libname.a'
11016 dynamic_linker='OS/2 ld.exe'
11017 shlibpath_var=LIBPATH
11020 osf3* | osf4* | osf5*)
11021 version_type=osf
11022 need_lib_prefix=no
11023 need_version=no
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11031 rdos*)
11032 dynamic_linker=no
11035 solaris*)
11036 version_type=linux
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 hardcode_into_libs=yes
11044 # ldd complains unless libraries are executable
11045 postinstall_cmds='chmod +x $lib'
11048 sunos4*)
11049 version_type=sunos
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11054 if test "$with_gnu_ld" = yes; then
11055 need_lib_prefix=no
11057 need_version=yes
11060 sysv4 | sysv4.3*)
11061 version_type=linux
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 case $host_vendor in
11066 sni)
11067 shlibpath_overrides_runpath=no
11068 need_lib_prefix=no
11069 runpath_var=LD_RUN_PATH
11071 siemens)
11072 need_lib_prefix=no
11074 motorola)
11075 need_lib_prefix=no
11076 need_version=no
11077 shlibpath_overrides_runpath=no
11078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11080 esac
11083 sysv4*MP*)
11084 if test -d /usr/nec ;then
11085 version_type=linux
11086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11087 soname_spec='$libname${shared_ext}.$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11093 version_type=freebsd-elf
11094 need_lib_prefix=no
11095 need_version=no
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 hardcode_into_libs=yes
11101 if test "$with_gnu_ld" = yes; then
11102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11103 else
11104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11105 case $host_os in
11106 sco3.2v5*)
11107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11109 esac
11111 sys_lib_dlsearch_path_spec='/usr/lib'
11114 tpf*)
11115 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11116 version_type=linux
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11125 uts4*)
11126 version_type=linux
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11133 dynamic_linker=no
11135 esac
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11137 $as_echo "$dynamic_linker" >&6; }
11138 test "$dynamic_linker" = no && can_build_shared=no
11140 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11141 if test "$GCC" = yes; then
11142 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11145 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11146 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11148 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11149 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11239 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11240 hardcode_action=
11241 if test -n "$hardcode_libdir_flag_spec" ||
11242 test -n "$runpath_var" ||
11243 test "X$hardcode_automatic" = "Xyes" ; then
11245 # We can hardcode non-existent directories.
11246 if test "$hardcode_direct" != no &&
11247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11248 # have to relink, otherwise we might link with an installed library
11249 # when we should be linking with a yet-to-be-installed one
11250 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11251 test "$hardcode_minus_L" != no; then
11252 # Linking always hardcodes the temporary library directory.
11253 hardcode_action=relink
11254 else
11255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11256 hardcode_action=immediate
11258 else
11259 # We cannot hardcode anything, or else we can only hardcode existing
11260 # directories.
11261 hardcode_action=unsupported
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11264 $as_echo "$hardcode_action" >&6; }
11266 if test "$hardcode_action" = relink ||
11267 test "$inherit_rpath" = yes; then
11268 # Fast installation is not supported
11269 enable_fast_install=no
11270 elif test "$shlibpath_overrides_runpath" = yes ||
11271 test "$enable_shared" = no; then
11272 # Fast installation is not necessary
11273 enable_fast_install=needless
11281 if test "x$enable_dlopen" != xyes; then
11282 enable_dlopen=unknown
11283 enable_dlopen_self=unknown
11284 enable_dlopen_self_static=unknown
11285 else
11286 lt_cv_dlopen=no
11287 lt_cv_dlopen_libs=
11289 case $host_os in
11290 beos*)
11291 lt_cv_dlopen="load_add_on"
11292 lt_cv_dlopen_libs=
11293 lt_cv_dlopen_self=yes
11296 mingw* | pw32* | cegcc*)
11297 lt_cv_dlopen="LoadLibrary"
11298 lt_cv_dlopen_libs=
11301 cygwin*)
11302 lt_cv_dlopen="dlopen"
11303 lt_cv_dlopen_libs=
11306 darwin*)
11307 # if libdl is installed we need to link against it
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11309 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-ldl $LIBS"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 /* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char dlopen ();
11326 main ()
11328 return dlopen ();
11330 return 0;
11332 _ACEOF
11333 if ac_fn_c_try_link "$LINENO"; then :
11334 ac_cv_lib_dl_dlopen=yes
11335 else
11336 ac_cv_lib_dl_dlopen=no
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_lib_save_LIBS
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11344 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11346 else
11348 lt_cv_dlopen="dyld"
11349 lt_cv_dlopen_libs=
11350 lt_cv_dlopen_self=yes
11357 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11358 if test "x$ac_cv_func_shl_load" = x""yes; then :
11359 lt_cv_dlopen="shl_load"
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11362 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11363 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-ldld $LIBS"
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 char shl_load ();
11379 main ()
11381 return shl_load ();
11383 return 0;
11385 _ACEOF
11386 if ac_fn_c_try_link "$LINENO"; then :
11387 ac_cv_lib_dld_shl_load=yes
11388 else
11389 ac_cv_lib_dld_shl_load=no
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_lib_save_LIBS
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11396 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11397 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11398 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11399 else
11400 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11401 if test "x$ac_cv_func_dlopen" = x""yes; then :
11402 lt_cv_dlopen="dlopen"
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 ac_check_lib_save_LIBS=$LIBS
11410 LIBS="-ldl $LIBS"
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11414 /* Override any GCC internal prototype to avoid an error.
11415 Use char because int might match the return type of a GCC
11416 builtin and then its argument prototype would still apply. */
11417 #ifdef __cplusplus
11418 extern "C"
11419 #endif
11420 char dlopen ();
11422 main ()
11424 return dlopen ();
11426 return 0;
11428 _ACEOF
11429 if ac_fn_c_try_link "$LINENO"; then :
11430 ac_cv_lib_dl_dlopen=yes
11431 else
11432 ac_cv_lib_dl_dlopen=no
11434 rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11439 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11440 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11444 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11445 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-lsvld $LIBS"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char dlopen ();
11461 main ()
11463 return dlopen ();
11465 return 0;
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 ac_cv_lib_svld_dlopen=yes
11470 else
11471 ac_cv_lib_svld_dlopen=no
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-ldld $LIBS"
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char dld_link ();
11500 main ()
11502 return dld_link ();
11504 return 0;
11506 _ACEOF
11507 if ac_fn_c_try_link "$LINENO"; then :
11508 ac_cv_lib_dld_dld_link=yes
11509 else
11510 ac_cv_lib_dld_dld_link=no
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11517 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11518 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11538 esac
11540 if test "x$lt_cv_dlopen" != xno; then
11541 enable_dlopen=yes
11542 else
11543 enable_dlopen=no
11546 case $lt_cv_dlopen in
11547 dlopen)
11548 save_CPPFLAGS="$CPPFLAGS"
11549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11551 save_LDFLAGS="$LDFLAGS"
11552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11554 save_LIBS="$LIBS"
11555 LIBS="$lt_cv_dlopen_libs $LIBS"
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11558 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11559 if test "${lt_cv_dlopen_self+set}" = set; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 if test "$cross_compiling" = yes; then :
11563 lt_cv_dlopen_self=cross
11564 else
11565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11566 lt_status=$lt_dlunknown
11567 cat > conftest.$ac_ext <<_LT_EOF
11568 #line 11568 "configure"
11569 #include "confdefs.h"
11571 #if HAVE_DLFCN_H
11572 #include <dlfcn.h>
11573 #endif
11575 #include <stdio.h>
11577 #ifdef RTLD_GLOBAL
11578 # define LT_DLGLOBAL RTLD_GLOBAL
11579 #else
11580 # ifdef DL_GLOBAL
11581 # define LT_DLGLOBAL DL_GLOBAL
11582 # else
11583 # define LT_DLGLOBAL 0
11584 # endif
11585 #endif
11587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11588 find out it does not work in some platform. */
11589 #ifndef LT_DLLAZY_OR_NOW
11590 # ifdef RTLD_LAZY
11591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11592 # else
11593 # ifdef DL_LAZY
11594 # define LT_DLLAZY_OR_NOW DL_LAZY
11595 # else
11596 # ifdef RTLD_NOW
11597 # define LT_DLLAZY_OR_NOW RTLD_NOW
11598 # else
11599 # ifdef DL_NOW
11600 # define LT_DLLAZY_OR_NOW DL_NOW
11601 # else
11602 # define LT_DLLAZY_OR_NOW 0
11603 # endif
11604 # endif
11605 # endif
11606 # endif
11607 #endif
11609 void fnord() { int i=42;}
11610 int main ()
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11615 if (self)
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11621 else
11622 puts (dlerror ());
11624 return status;
11626 _LT_EOF
11627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11628 (eval $ac_link) 2>&5
11629 ac_status=$?
11630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11632 (./conftest; exit; ) >&5 2>/dev/null
11633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11636 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11637 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11638 esac
11639 else :
11640 # compilation failed
11641 lt_cv_dlopen_self=no
11644 rm -fr conftest*
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11649 $as_echo "$lt_cv_dlopen_self" >&6; }
11651 if test "x$lt_cv_dlopen_self" = xyes; then
11652 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11654 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11655 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 if test "$cross_compiling" = yes; then :
11659 lt_cv_dlopen_self_static=cross
11660 else
11661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11662 lt_status=$lt_dlunknown
11663 cat > conftest.$ac_ext <<_LT_EOF
11664 #line 11664 "configure"
11665 #include "confdefs.h"
11667 #if HAVE_DLFCN_H
11668 #include <dlfcn.h>
11669 #endif
11671 #include <stdio.h>
11673 #ifdef RTLD_GLOBAL
11674 # define LT_DLGLOBAL RTLD_GLOBAL
11675 #else
11676 # ifdef DL_GLOBAL
11677 # define LT_DLGLOBAL DL_GLOBAL
11678 # else
11679 # define LT_DLGLOBAL 0
11680 # endif
11681 #endif
11683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11684 find out it does not work in some platform. */
11685 #ifndef LT_DLLAZY_OR_NOW
11686 # ifdef RTLD_LAZY
11687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11688 # else
11689 # ifdef DL_LAZY
11690 # define LT_DLLAZY_OR_NOW DL_LAZY
11691 # else
11692 # ifdef RTLD_NOW
11693 # define LT_DLLAZY_OR_NOW RTLD_NOW
11694 # else
11695 # ifdef DL_NOW
11696 # define LT_DLLAZY_OR_NOW DL_NOW
11697 # else
11698 # define LT_DLLAZY_OR_NOW 0
11699 # endif
11700 # endif
11701 # endif
11702 # endif
11703 #endif
11705 void fnord() { int i=42;}
11706 int main ()
11708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11709 int status = $lt_dlunknown;
11711 if (self)
11713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11715 /* dlclose (self); */
11717 else
11718 puts (dlerror ());
11720 return status;
11722 _LT_EOF
11723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11724 (eval $ac_link) 2>&5
11725 ac_status=$?
11726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11728 (./conftest; exit; ) >&5 2>/dev/null
11729 lt_status=$?
11730 case x$lt_status in
11731 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11732 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11733 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11734 esac
11735 else :
11736 # compilation failed
11737 lt_cv_dlopen_self_static=no
11740 rm -fr conftest*
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11745 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11748 CPPFLAGS="$save_CPPFLAGS"
11749 LDFLAGS="$save_LDFLAGS"
11750 LIBS="$save_LIBS"
11752 esac
11754 case $lt_cv_dlopen_self in
11755 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11756 *) enable_dlopen_self=unknown ;;
11757 esac
11759 case $lt_cv_dlopen_self_static in
11760 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11761 *) enable_dlopen_self_static=unknown ;;
11762 esac
11781 striplib=
11782 old_striplib=
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11784 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11785 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11786 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11787 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 else
11791 # FIXME - insert some real tests, host_os isn't really good enough
11792 case $host_os in
11793 darwin*)
11794 if test -n "$STRIP" ; then
11795 striplib="$STRIP -x"
11796 old_striplib="$STRIP -S"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11808 esac
11822 # Report which library types will actually be built
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11826 $as_echo "$can_build_shared" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11829 $as_echo_n "checking whether to build shared libraries... " >&6; }
11830 test "$can_build_shared" = "no" && enable_shared=no
11832 # On AIX, shared libraries and static libraries use the same namespace, and
11833 # are all built from PIC.
11834 case $host_os in
11835 aix3*)
11836 test "$enable_shared" = yes && enable_static=no
11837 if test -n "$RANLIB"; then
11838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11839 postinstall_cmds='$RANLIB $lib'
11843 aix[4-9]*)
11844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11845 test "$enable_shared" = yes && enable_static=no
11848 esac
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11850 $as_echo "$enable_shared" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11853 $as_echo_n "checking whether to build static libraries... " >&6; }
11854 # Make sure either enable_shared or enable_static is yes.
11855 test "$enable_shared" = yes || enable_static=yes
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11857 $as_echo "$enable_static" >&6; }
11863 ac_ext=c
11864 ac_cpp='$CPP $CPPFLAGS'
11865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11869 CC="$lt_save_CC"
11872 ac_ext=cpp
11873 ac_cpp='$CXXCPP $CPPFLAGS'
11874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11878 archive_cmds_need_lc_CXX=no
11879 allow_undefined_flag_CXX=
11880 always_export_symbols_CXX=no
11881 archive_expsym_cmds_CXX=
11882 compiler_needs_object_CXX=no
11883 export_dynamic_flag_spec_CXX=
11884 hardcode_direct_CXX=no
11885 hardcode_direct_absolute_CXX=no
11886 hardcode_libdir_flag_spec_CXX=
11887 hardcode_libdir_flag_spec_ld_CXX=
11888 hardcode_libdir_separator_CXX=
11889 hardcode_minus_L_CXX=no
11890 hardcode_shlibpath_var_CXX=unsupported
11891 hardcode_automatic_CXX=no
11892 inherit_rpath_CXX=no
11893 module_cmds_CXX=
11894 module_expsym_cmds_CXX=
11895 link_all_deplibs_CXX=unknown
11896 old_archive_cmds_CXX=$old_archive_cmds
11897 no_undefined_flag_CXX=
11898 whole_archive_flag_spec_CXX=
11899 enable_shared_with_static_runtimes_CXX=no
11901 # Source file extension for C++ test sources.
11902 ac_ext=cpp
11904 # Object file extension for compiled C++ test sources.
11905 objext=o
11906 objext_CXX=$objext
11908 # No sense in running all these tests if we already determined that
11909 # the CXX compiler isn't working. Some variables (like enable_shared)
11910 # are currently assumed to apply to all compilers on this platform,
11911 # and will be corrupted by setting them based on a non-working compiler.
11912 if test "$_lt_caught_CXX_error" != yes; then
11913 # Code to be used in simple compile tests
11914 lt_simple_compile_test_code="int some_variable = 0;"
11916 # Code to be used in simple link tests
11917 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11926 # If no C compiler was specified, use CC.
11927 LTCC=${LTCC-"$CC"}
11929 # If no C compiler flags were specified, use CFLAGS.
11930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11932 # Allow CC to be a program name with arguments.
11933 compiler=$CC
11936 # save warnings/boilerplate of simple test code
11937 ac_outfile=conftest.$ac_objext
11938 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11939 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940 _lt_compiler_boilerplate=`cat conftest.err`
11941 $RM conftest*
11943 ac_outfile=conftest.$ac_objext
11944 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11945 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11946 _lt_linker_boilerplate=`cat conftest.err`
11947 $RM -r conftest*
11950 # Allow CC to be a program name with arguments.
11951 lt_save_CC=$CC
11952 lt_save_LD=$LD
11953 lt_save_GCC=$GCC
11954 GCC=$GXX
11955 lt_save_with_gnu_ld=$with_gnu_ld
11956 lt_save_path_LD=$lt_cv_path_LD
11957 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11958 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11959 else
11960 $as_unset lt_cv_prog_gnu_ld
11962 if test -n "${lt_cv_path_LDCXX+set}"; then
11963 lt_cv_path_LD=$lt_cv_path_LDCXX
11964 else
11965 $as_unset lt_cv_path_LD
11967 test -z "${LDCXX+set}" || LD=$LDCXX
11968 CC=${CXX-"c++"}
11969 compiler=$CC
11970 compiler_CXX=$CC
11971 for cc_temp in $compiler""; do
11972 case $cc_temp in
11973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11975 \-*) ;;
11976 *) break;;
11977 esac
11978 done
11979 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11982 if test -n "$compiler"; then
11983 # We don't want -fno-exception when compiling C++ code, so set the
11984 # no_builtin_flag separately
11985 if test "$GXX" = yes; then
11986 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11987 else
11988 lt_prog_compiler_no_builtin_flag_CXX=
11991 if test "$GXX" = yes; then
11992 # Set up default GNU C++ configuration
11996 # Check whether --with-gnu-ld was given.
11997 if test "${with_gnu_ld+set}" = set; then :
11998 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11999 else
12000 with_gnu_ld=no
12003 ac_prog=ld
12004 if test "$GCC" = yes; then
12005 # Check if gcc -print-prog-name=ld gives a path.
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12007 $as_echo_n "checking for ld used by $CC... " >&6; }
12008 case $host in
12009 *-*-mingw*)
12010 # gcc leaves a trailing carriage return which upsets mingw
12011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12014 esac
12015 case $ac_prog in
12016 # Accept absolute paths.
12017 [\\/]* | ?:[\\/]*)
12018 re_direlt='/[^/][^/]*/\.\./'
12019 # Canonicalize the pathname of ld
12020 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12021 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12022 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12023 done
12024 test -z "$LD" && LD="$ac_prog"
12027 # If it fails, then pretend we aren't using GCC.
12028 ac_prog=ld
12031 # If it is relative, then search for the first ld in PATH.
12032 with_gnu_ld=unknown
12034 esac
12035 elif test "$with_gnu_ld" = yes; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12037 $as_echo_n "checking for GNU ld... " >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12040 $as_echo_n "checking for non-GNU ld... " >&6; }
12042 if test "${lt_cv_path_LD+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 if test -z "$LD"; then
12046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12047 for ac_dir in $PATH; do
12048 IFS="$lt_save_ifs"
12049 test -z "$ac_dir" && ac_dir=.
12050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12051 lt_cv_path_LD="$ac_dir/$ac_prog"
12052 # Check to see if the program is GNU ld. I'd rather use --version,
12053 # but apparently some variants of GNU ld only accept -v.
12054 # Break only if it was the GNU/non-GNU ld that we prefer.
12055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12056 *GNU* | *'with BFD'*)
12057 test "$with_gnu_ld" != no && break
12060 test "$with_gnu_ld" != yes && break
12062 esac
12064 done
12065 IFS="$lt_save_ifs"
12066 else
12067 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12071 LD="$lt_cv_path_LD"
12072 if test -n "$LD"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12074 $as_echo "$LD" >&6; }
12075 else
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077 $as_echo "no" >&6; }
12079 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12082 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12086 case `$LD -v 2>&1 </dev/null` in
12087 *GNU* | *'with BFD'*)
12088 lt_cv_prog_gnu_ld=yes
12091 lt_cv_prog_gnu_ld=no
12093 esac
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12096 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12097 with_gnu_ld=$lt_cv_prog_gnu_ld
12105 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12106 # archiving commands below assume that GNU ld is being used.
12107 if test "$with_gnu_ld" = yes; then
12108 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12109 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12112 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12114 # If archive_cmds runs LD, not CC, wlarc should be empty
12115 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12116 # investigate it a little bit more. (MM)
12117 wlarc='${wl}'
12119 # ancient GNU ld didn't support --whole-archive et. al.
12120 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12121 $GREP 'no-whole-archive' > /dev/null; then
12122 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12123 else
12124 whole_archive_flag_spec_CXX=
12126 else
12127 with_gnu_ld=no
12128 wlarc=
12130 # A generic and very simple default shared library creation
12131 # command for GNU C++ for the case where it uses the native
12132 # linker, instead of GNU ld. If possible, this setting should
12133 # overridden to take advantage of the native linker features on
12134 # the platform it is being used on.
12135 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12138 # Commands to make compiler produce verbose output that lists
12139 # what "hidden" libraries, object files and flags are used when
12140 # linking a shared library.
12141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12143 else
12144 GXX=no
12145 with_gnu_ld=no
12146 wlarc=
12149 # PORTME: fill in a description of your system's C++ link characteristics
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12151 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12152 ld_shlibs_CXX=yes
12153 case $host_os in
12154 aix3*)
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12158 aix[4-9]*)
12159 if test "$host_cpu" = ia64; then
12160 # On IA64, the linker does run time linking by default, so we don't
12161 # have to do anything special.
12162 aix_use_runtimelinking=no
12163 exp_sym_flag='-Bexport'
12164 no_entry_flag=""
12165 else
12166 aix_use_runtimelinking=no
12168 # Test if we are trying to use run time linking or normal
12169 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12170 # need to do runtime linking.
12171 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12172 for ld_flag in $LDFLAGS; do
12173 case $ld_flag in
12174 *-brtl*)
12175 aix_use_runtimelinking=yes
12176 break
12178 esac
12179 done
12181 esac
12183 exp_sym_flag='-bexport'
12184 no_entry_flag='-bnoentry'
12187 # When large executables or shared objects are built, AIX ld can
12188 # have problems creating the table of contents. If linking a library
12189 # or program results in "error TOC overflow" add -mminimal-toc to
12190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12193 archive_cmds_CXX=''
12194 hardcode_direct_CXX=yes
12195 hardcode_direct_absolute_CXX=yes
12196 hardcode_libdir_separator_CXX=':'
12197 link_all_deplibs_CXX=yes
12198 file_list_spec_CXX='${wl}-f,'
12200 if test "$GXX" = yes; then
12201 case $host_os in aix4.[012]|aix4.[012].*)
12202 # We only want to do this on AIX 4.2 and lower, the check
12203 # below for broken collect2 doesn't work under 4.3+
12204 collect2name=`${CC} -print-prog-name=collect2`
12205 if test -f "$collect2name" &&
12206 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12207 then
12208 # We have reworked collect2
12210 else
12211 # We have old collect2
12212 hardcode_direct_CXX=unsupported
12213 # It fails to find uninstalled libraries when the uninstalled
12214 # path is not listed in the libpath. Setting hardcode_minus_L
12215 # to unsupported forces relinking
12216 hardcode_minus_L_CXX=yes
12217 hardcode_libdir_flag_spec_CXX='-L$libdir'
12218 hardcode_libdir_separator_CXX=
12220 esac
12221 shared_flag='-shared'
12222 if test "$aix_use_runtimelinking" = yes; then
12223 shared_flag="$shared_flag "'${wl}-G'
12225 else
12226 # not using gcc
12227 if test "$host_cpu" = ia64; then
12228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12229 # chokes on -Wl,-G. The following line is correct:
12230 shared_flag='-G'
12231 else
12232 if test "$aix_use_runtimelinking" = yes; then
12233 shared_flag='${wl}-G'
12234 else
12235 shared_flag='${wl}-bM:SRE'
12240 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12241 # It seems that -bexpall does not export symbols beginning with
12242 # underscore (_), so it is better to generate a list of symbols to
12243 # export.
12244 always_export_symbols_CXX=yes
12245 if test "$aix_use_runtimelinking" = yes; then
12246 # Warning - without using the other runtime loading flags (-brtl),
12247 # -berok will link without error, but may produce a broken library.
12248 allow_undefined_flag_CXX='-berok'
12249 # Determine the default libpath from the value encoded in an empty
12250 # executable.
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12255 main ()
12259 return 0;
12261 _ACEOF
12262 if ac_fn_cxx_try_link "$LINENO"; then :
12264 lt_aix_libpath_sed='
12265 /Import File Strings/,/^$/ {
12266 /^0/ {
12267 s/^0 *\(.*\)$/\1/
12271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12272 # Check for a 64-bit object if we didn't find anything.
12273 if test -z "$aix_libpath"; then
12274 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12281 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12283 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12284 else
12285 if test "$host_cpu" = ia64; then
12286 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12287 allow_undefined_flag_CXX="-z nodefs"
12288 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12289 else
12290 # Determine the default libpath from the value encoded in an
12291 # empty executable.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12296 main ()
12300 return 0;
12302 _ACEOF
12303 if ac_fn_cxx_try_link "$LINENO"; then :
12305 lt_aix_libpath_sed='
12306 /Import File Strings/,/^$/ {
12307 /^0/ {
12308 s/^0 *\(.*\)$/\1/
12312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12313 # Check for a 64-bit object if we didn't find anything.
12314 if test -z "$aix_libpath"; then
12315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12322 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12323 # Warning - without using the other run time loading flags,
12324 # -berok will link without error, but may produce a broken library.
12325 no_undefined_flag_CXX=' ${wl}-bernotok'
12326 allow_undefined_flag_CXX=' ${wl}-berok'
12327 # Exported symbols can be pulled into shared objects from archives
12328 whole_archive_flag_spec_CXX='$convenience'
12329 archive_cmds_need_lc_CXX=yes
12330 # This is similar to how AIX traditionally builds its shared
12331 # libraries.
12332 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12337 beos*)
12338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12339 allow_undefined_flag_CXX=unsupported
12340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12341 # support --undefined. This deserves some investigation. FIXME
12342 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12343 else
12344 ld_shlibs_CXX=no
12348 chorus*)
12349 case $cc_basename in
12351 # FIXME: insert proper C++ library support
12352 ld_shlibs_CXX=no
12354 esac
12357 cygwin* | mingw* | pw32* | cegcc*)
12358 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12359 # as there is no search path for DLLs.
12360 hardcode_libdir_flag_spec_CXX='-L$libdir'
12361 allow_undefined_flag_CXX=unsupported
12362 always_export_symbols_CXX=no
12363 enable_shared_with_static_runtimes_CXX=yes
12365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12367 # If the export-symbols file already is a .def file (1st line
12368 # is EXPORTS), use it as is; otherwise, prepend...
12369 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12370 cp $export_symbols $output_objdir/$soname.def;
12371 else
12372 echo EXPORTS > $output_objdir/$soname.def;
12373 cat $export_symbols >> $output_objdir/$soname.def;
12375 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12376 else
12377 ld_shlibs_CXX=no
12380 darwin* | rhapsody*)
12383 archive_cmds_need_lc_CXX=no
12384 hardcode_direct_CXX=no
12385 hardcode_automatic_CXX=yes
12386 hardcode_shlibpath_var_CXX=unsupported
12387 whole_archive_flag_spec_CXX=''
12388 link_all_deplibs_CXX=yes
12389 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12390 case $cc_basename in
12391 ifort*) _lt_dar_can_shared=yes ;;
12392 *) _lt_dar_can_shared=$GCC ;;
12393 esac
12394 if test "$_lt_dar_can_shared" = "yes"; then
12395 output_verbose_link_cmd=echo
12396 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12397 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12398 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12399 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12400 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12401 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12402 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12405 else
12406 ld_shlibs_CXX=no
12411 dgux*)
12412 case $cc_basename in
12413 ec++*)
12414 # FIXME: insert proper C++ library support
12415 ld_shlibs_CXX=no
12417 ghcx*)
12418 # Green Hills C++ Compiler
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12426 esac
12429 freebsd[12]*)
12430 # C++ shared libraries reported to be fairly broken before
12431 # switch to ELF
12432 ld_shlibs_CXX=no
12435 freebsd-elf*)
12436 archive_cmds_need_lc_CXX=no
12439 freebsd* | dragonfly*)
12440 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12441 # conventions
12442 ld_shlibs_CXX=yes
12445 gnu*)
12448 hpux9*)
12449 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12450 hardcode_libdir_separator_CXX=:
12451 export_dynamic_flag_spec_CXX='${wl}-E'
12452 hardcode_direct_CXX=yes
12453 hardcode_minus_L_CXX=yes # Not in the search PATH,
12454 # but as the default
12455 # location of the library.
12457 case $cc_basename in
12458 CC*)
12459 # FIXME: insert proper C++ library support
12460 ld_shlibs_CXX=no
12462 aCC*)
12463 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12464 # Commands to make compiler produce verbose output that lists
12465 # what "hidden" libraries, object files and flags are used when
12466 # linking a shared library.
12468 # There doesn't appear to be a way to prevent this compiler from
12469 # explicitly linking system object files so we need to strip them
12470 # from the output so that they don't get included in the library
12471 # dependencies.
12472 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12475 if test "$GXX" = yes; then
12476 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12477 else
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12482 esac
12485 hpux10*|hpux11*)
12486 if test $with_gnu_ld = no; then
12487 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12488 hardcode_libdir_separator_CXX=:
12490 case $host_cpu in
12491 hppa*64*|ia64*)
12494 export_dynamic_flag_spec_CXX='${wl}-E'
12496 esac
12498 case $host_cpu in
12499 hppa*64*|ia64*)
12500 hardcode_direct_CXX=no
12501 hardcode_shlibpath_var_CXX=no
12504 hardcode_direct_CXX=yes
12505 hardcode_direct_absolute_CXX=yes
12506 hardcode_minus_L_CXX=yes # Not in the search PATH,
12507 # but as the default
12508 # location of the library.
12510 esac
12512 case $cc_basename in
12513 CC*)
12514 # FIXME: insert proper C++ library support
12515 ld_shlibs_CXX=no
12517 aCC*)
12518 case $host_cpu in
12519 hppa*64*)
12520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12522 ia64*)
12523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12528 esac
12529 # Commands to make compiler produce verbose output that lists
12530 # what "hidden" libraries, object files and flags are used when
12531 # linking a shared library.
12533 # There doesn't appear to be a way to prevent this compiler from
12534 # explicitly linking system object files so we need to strip them
12535 # from the output so that they don't get included in the library
12536 # dependencies.
12537 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12540 if test "$GXX" = yes; then
12541 if test $with_gnu_ld = no; then
12542 case $host_cpu in
12543 hppa*64*)
12544 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12546 ia64*)
12547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12550 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12552 esac
12554 else
12555 # FIXME: insert proper C++ library support
12556 ld_shlibs_CXX=no
12559 esac
12562 interix[3-9]*)
12563 hardcode_direct_CXX=no
12564 hardcode_shlibpath_var_CXX=no
12565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12566 export_dynamic_flag_spec_CXX='${wl}-E'
12567 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12568 # Instead, shared libraries are loaded at an image base (0x10000000 by
12569 # default) and relocated if they conflict, which is a slow very memory
12570 # consuming and fragmenting process. To avoid this, we pick a random,
12571 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12572 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12573 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12574 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12576 irix5* | irix6*)
12577 case $cc_basename in
12578 CC*)
12579 # SGI C++
12580 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12582 # Archives containing C++ object files must be created using
12583 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12584 # necessary to make sure instantiated templates are included
12585 # in the archive.
12586 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12589 if test "$GXX" = yes; then
12590 if test "$with_gnu_ld" = no; then
12591 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12592 else
12593 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12596 link_all_deplibs_CXX=yes
12598 esac
12599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12600 hardcode_libdir_separator_CXX=:
12601 inherit_rpath_CXX=yes
12604 linux* | k*bsd*-gnu)
12605 case $cc_basename in
12606 KCC*)
12607 # Kuck and Associates, Inc. (KAI) C++ Compiler
12609 # KCC will only create a shared library if the output file
12610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12611 # to its proper name (with version) after linking.
12612 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12613 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12614 # Commands to make compiler produce verbose output that lists
12615 # what "hidden" libraries, object files and flags are used when
12616 # linking a shared library.
12618 # There doesn't appear to be a way to prevent this compiler from
12619 # explicitly linking system object files so we need to strip them
12620 # from the output so that they don't get included in the library
12621 # dependencies.
12622 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12627 # Archives containing C++ object files must be created using
12628 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12629 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12631 icpc* | ecpc* )
12632 # Intel C++
12633 with_gnu_ld=yes
12634 # version 8.0 and above of icpc choke on multiply defined symbols
12635 # if we add $predep_objects and $postdep_objects, however 7.1 and
12636 # earlier do not add the objects themselves.
12637 case `$CC -V 2>&1` in
12638 *"Version 7."*)
12639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12640 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12642 *) # Version 8.0 or newer
12643 tmp_idyn=
12644 case $host_cpu in
12645 ia64*) tmp_idyn=' -i_dynamic';;
12646 esac
12647 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12648 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12650 esac
12651 archive_cmds_need_lc_CXX=no
12652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12654 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12656 pgCC* | pgcpp*)
12657 # Portland Group C++ compiler
12658 case `$CC -V` in
12659 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12660 prelink_cmds_CXX='tpldir=Template.dir~
12661 rm -rf $tpldir~
12662 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12663 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12664 old_archive_cmds_CXX='tpldir=Template.dir~
12665 rm -rf $tpldir~
12666 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12667 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12668 $RANLIB $oldlib'
12669 archive_cmds_CXX='tpldir=Template.dir~
12670 rm -rf $tpldir~
12671 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12672 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12673 archive_expsym_cmds_CXX='tpldir=Template.dir~
12674 rm -rf $tpldir~
12675 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12676 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12678 *) # Version 6 will use weak symbols
12679 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12680 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12682 esac
12684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12686 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12688 cxx*)
12689 # Compaq C++
12690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12693 runpath_var=LD_RUN_PATH
12694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12695 hardcode_libdir_separator_CXX=:
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12701 # There doesn't appear to be a way to prevent this compiler from
12702 # explicitly linking system object files so we need to strip them
12703 # from the output so that they don't get included in the library
12704 # dependencies.
12705 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12707 xl*)
12708 # IBM XL 8.0 on PPC, with GNU ld
12709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12711 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712 if test "x$supports_anon_versioning" = xyes; then
12713 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12715 echo "local: *; };" >> $output_objdir/$libname.ver~
12716 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12720 case `$CC -V 2>&1 | sed 5q` in
12721 *Sun\ C*)
12722 # Sun C++ 5.9
12723 no_undefined_flag_CXX=' -zdefs'
12724 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12725 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12726 hardcode_libdir_flag_spec_CXX='-R$libdir'
12727 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12728 compiler_needs_object_CXX=yes
12730 # Not sure whether something based on
12731 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12732 # would be better.
12733 output_verbose_link_cmd='echo'
12735 # Archives containing C++ object files must be created using
12736 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12737 # necessary to make sure instantiated templates are included
12738 # in the archive.
12739 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12741 esac
12743 esac
12746 lynxos*)
12747 # FIXME: insert proper C++ library support
12748 ld_shlibs_CXX=no
12751 m88k*)
12752 # FIXME: insert proper C++ library support
12753 ld_shlibs_CXX=no
12756 mvs*)
12757 case $cc_basename in
12758 cxx*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12766 esac
12769 netbsd*)
12770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12772 wlarc=
12773 hardcode_libdir_flag_spec_CXX='-R$libdir'
12774 hardcode_direct_CXX=yes
12775 hardcode_shlibpath_var_CXX=no
12777 # Workaround some broken pre-1.5 toolchains
12778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12781 *nto* | *qnx*)
12782 ld_shlibs_CXX=yes
12785 openbsd2*)
12786 # C++ shared libraries are fairly broken
12787 ld_shlibs_CXX=no
12790 openbsd*)
12791 if test -f /usr/libexec/ld.so; then
12792 hardcode_direct_CXX=yes
12793 hardcode_shlibpath_var_CXX=no
12794 hardcode_direct_absolute_CXX=yes
12795 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12798 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12799 export_dynamic_flag_spec_CXX='${wl}-E'
12800 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12802 output_verbose_link_cmd=echo
12803 else
12804 ld_shlibs_CXX=no
12808 osf3* | osf4* | osf5*)
12809 case $cc_basename in
12810 KCC*)
12811 # Kuck and Associates, Inc. (KAI) C++ Compiler
12813 # KCC will only create a shared library if the output file
12814 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12815 # to its proper name (with version) after linking.
12816 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12819 hardcode_libdir_separator_CXX=:
12821 # Archives containing C++ object files must be created using
12822 # the KAI C++ compiler.
12823 case $host in
12824 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12825 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12826 esac
12828 RCC*)
12829 # Rational C++ 2.4.1
12830 # FIXME: insert proper C++ library support
12831 ld_shlibs_CXX=no
12833 cxx*)
12834 case $host in
12835 osf3*)
12836 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12837 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12841 allow_undefined_flag_CXX=' -expect_unresolved \*'
12842 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12843 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12844 echo "-hidden">> $lib.exp~
12845 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12846 $RM $lib.exp'
12847 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12849 esac
12851 hardcode_libdir_separator_CXX=:
12853 # Commands to make compiler produce verbose output that lists
12854 # what "hidden" libraries, object files and flags are used when
12855 # linking a shared library.
12857 # There doesn't appear to be a way to prevent this compiler from
12858 # explicitly linking system object files so we need to strip them
12859 # from the output so that they don't get included in the library
12860 # dependencies.
12861 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12864 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12865 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12866 case $host in
12867 osf3*)
12868 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12871 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12873 esac
12875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator_CXX=:
12878 # Commands to make compiler produce verbose output that lists
12879 # what "hidden" libraries, object files and flags are used when
12880 # linking a shared library.
12881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12883 else
12884 # FIXME: insert proper C++ library support
12885 ld_shlibs_CXX=no
12888 esac
12891 psos*)
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12896 sunos4*)
12897 case $cc_basename in
12898 CC*)
12899 # Sun C++ 4.x
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12903 lcc*)
12904 # Lucid
12905 # FIXME: insert proper C++ library support
12906 ld_shlibs_CXX=no
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12912 esac
12915 solaris*)
12916 case $cc_basename in
12917 CC*)
12918 # Sun C++ 4.2, 5.x and Centerline C++
12919 archive_cmds_need_lc_CXX=yes
12920 no_undefined_flag_CXX=' -zdefs'
12921 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12922 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12923 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12925 hardcode_libdir_flag_spec_CXX='-R$libdir'
12926 hardcode_shlibpath_var_CXX=no
12927 case $host_os in
12928 solaris2.[0-5] | solaris2.[0-5].*) ;;
12930 # The compiler driver will combine and reorder linker options,
12931 # but understands `-z linker_flag'.
12932 # Supported since Solaris 2.6 (maybe 2.5.1?)
12933 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12935 esac
12936 link_all_deplibs_CXX=yes
12938 output_verbose_link_cmd='echo'
12940 # Archives containing C++ object files must be created using
12941 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12942 # necessary to make sure instantiated templates are included
12943 # in the archive.
12944 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12946 gcx*)
12947 # Green Hills C++ Compiler
12948 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12950 # The C++ compiler must be used to create the archive.
12951 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12954 # GNU C++ compiler with Solaris linker
12955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12956 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12957 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12958 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12959 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12960 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12962 # Commands to make compiler produce verbose output that lists
12963 # what "hidden" libraries, object files and flags are used when
12964 # linking a shared library.
12965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12966 else
12967 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12968 # platform.
12969 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12970 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12971 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12973 # Commands to make compiler produce verbose output that lists
12974 # what "hidden" libraries, object files and flags are used when
12975 # linking a shared library.
12976 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12979 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12980 case $host_os in
12981 solaris2.[0-5] | solaris2.[0-5].*) ;;
12983 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12985 esac
12988 esac
12991 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12992 no_undefined_flag_CXX='${wl}-z,text'
12993 archive_cmds_need_lc_CXX=no
12994 hardcode_shlibpath_var_CXX=no
12995 runpath_var='LD_RUN_PATH'
12997 case $cc_basename in
12998 CC*)
12999 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13004 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13006 esac
13009 sysv5* | sco3.2v5* | sco5v6*)
13010 # Note: We can NOT use -z defs as we might desire, because we do not
13011 # link with -lc, and that would cause any symbols used from libc to
13012 # always be unresolved, which means just about no library would
13013 # ever link correctly. If we're not using GNU ld we use -z text
13014 # though, which does catch some bad symbols but isn't as heavy-handed
13015 # as -z defs.
13016 no_undefined_flag_CXX='${wl}-z,text'
13017 allow_undefined_flag_CXX='${wl}-z,nodefs'
13018 archive_cmds_need_lc_CXX=no
13019 hardcode_shlibpath_var_CXX=no
13020 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13021 hardcode_libdir_separator_CXX=':'
13022 link_all_deplibs_CXX=yes
13023 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13024 runpath_var='LD_RUN_PATH'
13026 case $cc_basename in
13027 CC*)
13028 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 esac
13038 tandem*)
13039 case $cc_basename in
13040 NCC*)
13041 # NonStop-UX NCC 3.20
13042 # FIXME: insert proper C++ library support
13043 ld_shlibs_CXX=no
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13049 esac
13052 vxworks*)
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13061 esac
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13064 $as_echo "$ld_shlibs_CXX" >&6; }
13065 test "$ld_shlibs_CXX" = no && can_build_shared=no
13067 GCC_CXX="$GXX"
13068 LD_CXX="$LD"
13070 ## CAVEAT EMPTOR:
13071 ## There is no encapsulation within the following macros, do not change
13072 ## the running order or otherwise move them around unless you know exactly
13073 ## what you are doing...
13074 # Dependencies to place before and after the object being linked:
13075 predep_objects_CXX=
13076 postdep_objects_CXX=
13077 predeps_CXX=
13078 postdeps_CXX=
13079 compiler_lib_search_path_CXX=
13081 cat > conftest.$ac_ext <<_LT_EOF
13082 class Foo
13084 public:
13085 Foo (void) { a = 0; }
13086 private:
13087 int a;
13089 _LT_EOF
13091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092 (eval $ac_compile) 2>&5
13093 ac_status=$?
13094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095 test $ac_status = 0; }; then
13096 # Parse the compiler output and extract the necessary
13097 # objects, libraries and library flags.
13099 # Sentinel used to keep track of whether or not we are before
13100 # the conftest object file.
13101 pre_test_object_deps_done=no
13103 for p in `eval "$output_verbose_link_cmd"`; do
13104 case $p in
13106 -L* | -R* | -l*)
13107 # Some compilers place space between "-{L,R}" and the path.
13108 # Remove the space.
13109 if test $p = "-L" ||
13110 test $p = "-R"; then
13111 prev=$p
13112 continue
13113 else
13114 prev=
13117 if test "$pre_test_object_deps_done" = no; then
13118 case $p in
13119 -L* | -R*)
13120 # Internal compiler library paths should come after those
13121 # provided the user. The postdeps already come after the
13122 # user supplied libs so there is no need to process them.
13123 if test -z "$compiler_lib_search_path_CXX"; then
13124 compiler_lib_search_path_CXX="${prev}${p}"
13125 else
13126 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13129 # The "-l" case would never come before the object being
13130 # linked, so don't bother handling this case.
13131 esac
13132 else
13133 if test -z "$postdeps_CXX"; then
13134 postdeps_CXX="${prev}${p}"
13135 else
13136 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13141 *.$objext)
13142 # This assumes that the test object file only shows up
13143 # once in the compiler output.
13144 if test "$p" = "conftest.$objext"; then
13145 pre_test_object_deps_done=yes
13146 continue
13149 if test "$pre_test_object_deps_done" = no; then
13150 if test -z "$predep_objects_CXX"; then
13151 predep_objects_CXX="$p"
13152 else
13153 predep_objects_CXX="$predep_objects_CXX $p"
13155 else
13156 if test -z "$postdep_objects_CXX"; then
13157 postdep_objects_CXX="$p"
13158 else
13159 postdep_objects_CXX="$postdep_objects_CXX $p"
13164 *) ;; # Ignore the rest.
13166 esac
13167 done
13169 # Clean up.
13170 rm -f a.out a.exe
13171 else
13172 echo "libtool.m4: error: problem compiling CXX test program"
13175 $RM -f confest.$objext
13177 # PORTME: override above test on systems where it is broken
13178 case $host_os in
13179 interix[3-9]*)
13180 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13181 # hack all around it, let's just trust "g++" to DTRT.
13182 predep_objects_CXX=
13183 postdep_objects_CXX=
13184 postdeps_CXX=
13187 linux*)
13188 case `$CC -V 2>&1 | sed 5q` in
13189 *Sun\ C*)
13190 # Sun C++ 5.9
13192 # The more standards-conforming stlport4 library is
13193 # incompatible with the Cstd library. Avoid specifying
13194 # it if it's in CXXFLAGS. Ignore libCrun as
13195 # -library=stlport4 depends on it.
13196 case " $CXX $CXXFLAGS " in
13197 *" -library=stlport4 "*)
13198 solaris_use_stlport4=yes
13200 esac
13202 if test "$solaris_use_stlport4" != yes; then
13203 postdeps_CXX='-library=Cstd -library=Crun'
13206 esac
13209 solaris*)
13210 case $cc_basename in
13211 CC*)
13212 # The more standards-conforming stlport4 library is
13213 # incompatible with the Cstd library. Avoid specifying
13214 # it if it's in CXXFLAGS. Ignore libCrun as
13215 # -library=stlport4 depends on it.
13216 case " $CXX $CXXFLAGS " in
13217 *" -library=stlport4 "*)
13218 solaris_use_stlport4=yes
13220 esac
13222 # Adding this requires a known-good setup of shared libraries for
13223 # Sun compiler versions before 5.6, else PIC objects from an old
13224 # archive will be linked into the output, leading to subtle bugs.
13225 if test "$solaris_use_stlport4" != yes; then
13226 postdeps_CXX='-library=Cstd -library=Crun'
13229 esac
13231 esac
13234 case " $postdeps_CXX " in
13235 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13236 esac
13237 compiler_lib_search_dirs_CXX=
13238 if test -n "${compiler_lib_search_path_CXX}"; then
13239 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13272 lt_prog_compiler_wl_CXX=
13273 lt_prog_compiler_pic_CXX=
13274 lt_prog_compiler_static_CXX=
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13277 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13279 # C++ specific cases for pic, static, wl, etc.
13280 if test "$GXX" = yes; then
13281 lt_prog_compiler_wl_CXX='-Wl,'
13282 lt_prog_compiler_static_CXX='-static'
13284 case $host_os in
13285 aix*)
13286 # All AIX code is PIC.
13287 if test "$host_cpu" = ia64; then
13288 # AIX 5 now supports IA64 processor
13289 lt_prog_compiler_static_CXX='-Bstatic'
13293 amigaos*)
13294 case $host_cpu in
13295 powerpc)
13296 # see comment about AmigaOS4 .so support
13297 lt_prog_compiler_pic_CXX='-fPIC'
13299 m68k)
13300 # FIXME: we need at least 68020 code to build shared libraries, but
13301 # adding the `-m68020' flag to GCC prevents building anything better,
13302 # like `-m68040'.
13303 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13305 esac
13308 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13309 # PIC is the default for these OSes.
13311 mingw* | cygwin* | os2* | pw32* | cegcc*)
13312 # This hack is so that the source file can tell whether it is being
13313 # built for inclusion in a dll (and should export symbols for example).
13314 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13315 # (--disable-auto-import) libraries
13316 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13318 darwin* | rhapsody*)
13319 # PIC is the default on this platform
13320 # Common symbols not allowed in MH_DYLIB files
13321 lt_prog_compiler_pic_CXX='-fno-common'
13323 *djgpp*)
13324 # DJGPP does not support shared libraries at all
13325 lt_prog_compiler_pic_CXX=
13327 interix[3-9]*)
13328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13329 # Instead, we relocate shared libraries at runtime.
13331 sysv4*MP*)
13332 if test -d /usr/nec; then
13333 lt_prog_compiler_pic_CXX=-Kconform_pic
13336 hpux*)
13337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13339 # sets the default TLS model and affects inlining.
13340 case $host_cpu in
13341 hppa*64*)
13344 lt_prog_compiler_pic_CXX='-fPIC'
13346 esac
13348 *qnx* | *nto*)
13349 # QNX uses GNU C++, but need to define -shared option too, otherwise
13350 # it will coredump.
13351 lt_prog_compiler_pic_CXX='-fPIC -shared'
13354 lt_prog_compiler_pic_CXX='-fPIC'
13356 esac
13357 else
13358 case $host_os in
13359 aix[4-9]*)
13360 # All AIX code is PIC.
13361 if test "$host_cpu" = ia64; then
13362 # AIX 5 now supports IA64 processor
13363 lt_prog_compiler_static_CXX='-Bstatic'
13364 else
13365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13368 chorus*)
13369 case $cc_basename in
13370 cxch68*)
13371 # Green Hills C++ Compiler
13372 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13374 esac
13376 dgux*)
13377 case $cc_basename in
13378 ec++*)
13379 lt_prog_compiler_pic_CXX='-KPIC'
13381 ghcx*)
13382 # Green Hills C++ Compiler
13383 lt_prog_compiler_pic_CXX='-pic'
13387 esac
13389 freebsd* | dragonfly*)
13390 # FreeBSD uses GNU C++
13392 hpux9* | hpux10* | hpux11*)
13393 case $cc_basename in
13394 CC*)
13395 lt_prog_compiler_wl_CXX='-Wl,'
13396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13397 if test "$host_cpu" != ia64; then
13398 lt_prog_compiler_pic_CXX='+Z'
13401 aCC*)
13402 lt_prog_compiler_wl_CXX='-Wl,'
13403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13404 case $host_cpu in
13405 hppa*64*|ia64*)
13406 # +Z the default
13409 lt_prog_compiler_pic_CXX='+Z'
13411 esac
13415 esac
13417 interix*)
13418 # This is c89, which is MS Visual C++ (no shared libs)
13419 # Anyone wants to do a port?
13421 irix5* | irix6* | nonstopux*)
13422 case $cc_basename in
13423 CC*)
13424 lt_prog_compiler_wl_CXX='-Wl,'
13425 lt_prog_compiler_static_CXX='-non_shared'
13426 # CC pic flag -KPIC is the default.
13430 esac
13432 linux* | k*bsd*-gnu)
13433 case $cc_basename in
13434 KCC*)
13435 # KAI C++ Compiler
13436 lt_prog_compiler_wl_CXX='--backend -Wl,'
13437 lt_prog_compiler_pic_CXX='-fPIC'
13439 ecpc* )
13440 # old Intel C++ for x86_64 which still supported -KPIC.
13441 lt_prog_compiler_wl_CXX='-Wl,'
13442 lt_prog_compiler_pic_CXX='-KPIC'
13443 lt_prog_compiler_static_CXX='-static'
13445 icpc* )
13446 # Intel C++, used to be incompatible with GCC.
13447 # ICC 10 doesn't accept -KPIC any more.
13448 lt_prog_compiler_wl_CXX='-Wl,'
13449 lt_prog_compiler_pic_CXX='-fPIC'
13450 lt_prog_compiler_static_CXX='-static'
13452 pgCC* | pgcpp*)
13453 # Portland Group C++ compiler
13454 lt_prog_compiler_wl_CXX='-Wl,'
13455 lt_prog_compiler_pic_CXX='-fpic'
13456 lt_prog_compiler_static_CXX='-Bstatic'
13458 cxx*)
13459 # Compaq C++
13460 # Make sure the PIC flag is empty. It appears that all Alpha
13461 # Linux and Compaq Tru64 Unix objects are PIC.
13462 lt_prog_compiler_pic_CXX=
13463 lt_prog_compiler_static_CXX='-non_shared'
13465 xlc* | xlC*)
13466 # IBM XL 8.0 on PPC
13467 lt_prog_compiler_wl_CXX='-Wl,'
13468 lt_prog_compiler_pic_CXX='-qpic'
13469 lt_prog_compiler_static_CXX='-qstaticlink'
13472 case `$CC -V 2>&1 | sed 5q` in
13473 *Sun\ C*)
13474 # Sun C++ 5.9
13475 lt_prog_compiler_pic_CXX='-KPIC'
13476 lt_prog_compiler_static_CXX='-Bstatic'
13477 lt_prog_compiler_wl_CXX='-Qoption ld '
13479 esac
13481 esac
13483 lynxos*)
13485 m88k*)
13487 mvs*)
13488 case $cc_basename in
13489 cxx*)
13490 lt_prog_compiler_pic_CXX='-W c,exportall'
13494 esac
13496 netbsd* | netbsdelf*-gnu)
13498 *qnx* | *nto*)
13499 # QNX uses GNU C++, but need to define -shared option too, otherwise
13500 # it will coredump.
13501 lt_prog_compiler_pic_CXX='-fPIC -shared'
13503 osf3* | osf4* | osf5*)
13504 case $cc_basename in
13505 KCC*)
13506 lt_prog_compiler_wl_CXX='--backend -Wl,'
13508 RCC*)
13509 # Rational C++ 2.4.1
13510 lt_prog_compiler_pic_CXX='-pic'
13512 cxx*)
13513 # Digital/Compaq C++
13514 lt_prog_compiler_wl_CXX='-Wl,'
13515 # Make sure the PIC flag is empty. It appears that all Alpha
13516 # Linux and Compaq Tru64 Unix objects are PIC.
13517 lt_prog_compiler_pic_CXX=
13518 lt_prog_compiler_static_CXX='-non_shared'
13522 esac
13524 psos*)
13526 solaris*)
13527 case $cc_basename in
13528 CC*)
13529 # Sun C++ 4.2, 5.x and Centerline C++
13530 lt_prog_compiler_pic_CXX='-KPIC'
13531 lt_prog_compiler_static_CXX='-Bstatic'
13532 lt_prog_compiler_wl_CXX='-Qoption ld '
13534 gcx*)
13535 # Green Hills C++ Compiler
13536 lt_prog_compiler_pic_CXX='-PIC'
13540 esac
13542 sunos4*)
13543 case $cc_basename in
13544 CC*)
13545 # Sun C++ 4.x
13546 lt_prog_compiler_pic_CXX='-pic'
13547 lt_prog_compiler_static_CXX='-Bstatic'
13549 lcc*)
13550 # Lucid
13551 lt_prog_compiler_pic_CXX='-pic'
13555 esac
13557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13558 case $cc_basename in
13559 CC*)
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_pic_CXX='-KPIC'
13562 lt_prog_compiler_static_CXX='-Bstatic'
13564 esac
13566 tandem*)
13567 case $cc_basename in
13568 NCC*)
13569 # NonStop-UX NCC 3.20
13570 lt_prog_compiler_pic_CXX='-KPIC'
13574 esac
13576 vxworks*)
13579 lt_prog_compiler_can_build_shared_CXX=no
13581 esac
13584 case $host_os in
13585 # For platforms which do not support PIC, -DPIC is meaningless:
13586 *djgpp*)
13587 lt_prog_compiler_pic_CXX=
13590 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13592 esac
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13594 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13599 # Check to make sure the PIC flag actually works.
13601 if test -n "$lt_prog_compiler_pic_CXX"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13603 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13604 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 lt_cv_prog_compiler_pic_works_CXX=no
13608 ac_outfile=conftest.$ac_objext
13609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13610 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13611 # Insert the option either (1) after the last *FLAGS variable, or
13612 # (2) before a word containing "conftest.", or (3) at the end.
13613 # Note that $ac_compile itself does not contain backslashes and begins
13614 # with a dollar sign (not a hyphen), so the echo should work correctly.
13615 # The option is referenced via a variable to avoid confusing sed.
13616 lt_compile=`echo "$ac_compile" | $SED \
13617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619 -e 's:$: $lt_compiler_flag:'`
13620 (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621 (eval "$lt_compile" 2>conftest.err)
13622 ac_status=$?
13623 cat conftest.err >&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 if (exit $ac_status) && test -s "$ac_outfile"; then
13626 # The compiler can only warn and ignore the option if not recognized
13627 # So say no if there are warnings other than the usual output.
13628 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13631 lt_cv_prog_compiler_pic_works_CXX=yes
13634 $RM conftest*
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13638 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13640 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13641 case $lt_prog_compiler_pic_CXX in
13642 "" | " "*) ;;
13643 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13644 esac
13645 else
13646 lt_prog_compiler_pic_CXX=
13647 lt_prog_compiler_can_build_shared_CXX=no
13655 # Check to make sure the static flag actually works.
13657 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13659 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13660 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 lt_cv_prog_compiler_static_works_CXX=no
13664 save_LDFLAGS="$LDFLAGS"
13665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13666 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13668 # The linker can only warn and ignore the option if not recognized
13669 # So say no if there are warnings
13670 if test -s conftest.err; then
13671 # Append any errors to the config.log.
13672 cat conftest.err 1>&5
13673 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13675 if diff conftest.exp conftest.er2 >/dev/null; then
13676 lt_cv_prog_compiler_static_works_CXX=yes
13678 else
13679 lt_cv_prog_compiler_static_works_CXX=yes
13682 $RM -r conftest*
13683 LDFLAGS="$save_LDFLAGS"
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13687 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13689 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13691 else
13692 lt_prog_compiler_static_CXX=
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13700 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 lt_cv_prog_compiler_c_o_CXX=no
13704 $RM -r conftest 2>/dev/null
13705 mkdir conftest
13706 cd conftest
13707 mkdir out
13708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 lt_compiler_flag="-o out/conftest2.$ac_objext"
13711 # Insert the option either (1) after the last *FLAGS variable, or
13712 # (2) before a word containing "conftest.", or (3) at the end.
13713 # Note that $ac_compile itself does not contain backslashes and begins
13714 # with a dollar sign (not a hyphen), so the echo should work correctly.
13715 lt_compile=`echo "$ac_compile" | $SED \
13716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13718 -e 's:$: $lt_compiler_flag:'`
13719 (eval echo "\"\$as_me:13719: $lt_compile\"" >&5)
13720 (eval "$lt_compile" 2>out/conftest.err)
13721 ac_status=$?
13722 cat out/conftest.err >&5
13723 echo "$as_me:13723: \$? = $ac_status" >&5
13724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13725 then
13726 # The compiler can only warn and ignore the option if not recognized
13727 # So say no if there are warnings
13728 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13731 lt_cv_prog_compiler_c_o_CXX=yes
13734 chmod u+w . 2>&5
13735 $RM conftest*
13736 # SGI C++ compiler will create directory out/ii_files/ for
13737 # template instantiation
13738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13739 $RM out/* && rmdir out
13740 cd ..
13741 $RM -r conftest
13742 $RM conftest*
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13746 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13752 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 lt_cv_prog_compiler_c_o_CXX=no
13756 $RM -r conftest 2>/dev/null
13757 mkdir conftest
13758 cd conftest
13759 mkdir out
13760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13762 lt_compiler_flag="-o out/conftest2.$ac_objext"
13763 # Insert the option either (1) after the last *FLAGS variable, or
13764 # (2) before a word containing "conftest.", or (3) at the end.
13765 # Note that $ac_compile itself does not contain backslashes and begins
13766 # with a dollar sign (not a hyphen), so the echo should work correctly.
13767 lt_compile=`echo "$ac_compile" | $SED \
13768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13770 -e 's:$: $lt_compiler_flag:'`
13771 (eval echo "\"\$as_me:13771: $lt_compile\"" >&5)
13772 (eval "$lt_compile" 2>out/conftest.err)
13773 ac_status=$?
13774 cat out/conftest.err >&5
13775 echo "$as_me:13775: \$? = $ac_status" >&5
13776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13777 then
13778 # The compiler can only warn and ignore the option if not recognized
13779 # So say no if there are warnings
13780 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13783 lt_cv_prog_compiler_c_o_CXX=yes
13786 chmod u+w . 2>&5
13787 $RM conftest*
13788 # SGI C++ compiler will create directory out/ii_files/ for
13789 # template instantiation
13790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13791 $RM out/* && rmdir out
13792 cd ..
13793 $RM -r conftest
13794 $RM conftest*
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13798 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13803 hard_links="nottested"
13804 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13805 # do not overwrite the value of need_locks provided by the user
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13807 $as_echo_n "checking if we can lock with hard links... " >&6; }
13808 hard_links=yes
13809 $RM conftest*
13810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13811 touch conftest.a
13812 ln conftest.a conftest.b 2>&5 || hard_links=no
13813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13815 $as_echo "$hard_links" >&6; }
13816 if test "$hard_links" = no; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13818 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13819 need_locks=warn
13821 else
13822 need_locks=no
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13828 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13831 case $host_os in
13832 aix[4-9]*)
13833 # If we're using GNU nm, then we don't want the "-C" option.
13834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13835 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13836 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13837 else
13838 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13841 pw32*)
13842 export_symbols_cmds_CXX="$ltdll_cmds"
13844 cygwin* | mingw* | cegcc*)
13845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13847 linux* | k*bsd*-gnu)
13848 link_all_deplibs_CXX=no
13851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13853 esac
13854 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13857 $as_echo "$ld_shlibs_CXX" >&6; }
13858 test "$ld_shlibs_CXX" = no && can_build_shared=no
13860 with_gnu_ld_CXX=$with_gnu_ld
13868 # Do we need to explicitly link libc?
13870 case "x$archive_cmds_need_lc_CXX" in
13871 x|xyes)
13872 # Assume -lc should be added
13873 archive_cmds_need_lc_CXX=yes
13875 if test "$enable_shared" = yes && test "$GCC" = yes; then
13876 case $archive_cmds_CXX in
13877 *'~'*)
13878 # FIXME: we may have to deal with multi-command sequences.
13880 '$CC '*)
13881 # Test whether the compiler implicitly links with -lc since on some
13882 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13883 # to ld, don't add -lc before -lgcc.
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13885 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13886 $RM conftest*
13887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; } 2>conftest.err; then
13894 soname=conftest
13895 lib=conftest
13896 libobjs=conftest.$ac_objext
13897 deplibs=
13898 wl=$lt_prog_compiler_wl_CXX
13899 pic_flag=$lt_prog_compiler_pic_CXX
13900 compiler_flags=-v
13901 linker_flags=-v
13902 verstring=
13903 output_objdir=.
13904 libname=conftest
13905 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13906 allow_undefined_flag_CXX=
13907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13908 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911 test $ac_status = 0; }
13912 then
13913 archive_cmds_need_lc_CXX=no
13914 else
13915 archive_cmds_need_lc_CXX=yes
13917 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13918 else
13919 cat conftest.err 1>&5
13921 $RM conftest*
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13923 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13925 esac
13928 esac
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13996 library_names_spec=
13997 libname_spec='lib$name'
13998 soname_spec=
13999 shrext_cmds=".so"
14000 postinstall_cmds=
14001 postuninstall_cmds=
14002 finish_cmds=
14003 finish_eval=
14004 shlibpath_var=
14005 shlibpath_overrides_runpath=unknown
14006 version_type=none
14007 dynamic_linker="$host_os ld.so"
14008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14009 need_lib_prefix=unknown
14010 hardcode_into_libs=no
14012 # when you set need_version to no, make sure it does not cause -set_version
14013 # flags to be left without arguments
14014 need_version=unknown
14016 case $host_os in
14017 aix3*)
14018 version_type=linux
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14020 shlibpath_var=LIBPATH
14022 # AIX 3 has no versioning support, so we append a major version to the name.
14023 soname_spec='${libname}${release}${shared_ext}$major'
14026 aix[4-9]*)
14027 version_type=linux
14028 need_lib_prefix=no
14029 need_version=no
14030 hardcode_into_libs=yes
14031 if test "$host_cpu" = ia64; then
14032 # AIX 5 supports IA64
14033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 else
14036 # With GCC up to 2.95.x, collect2 would create an import file
14037 # for dependence libraries. The import file would start with
14038 # the line `#! .'. This would cause the generated library to
14039 # depend on `.', always an invalid library. This was fixed in
14040 # development snapshots of GCC prior to 3.0.
14041 case $host_os in
14042 aix4 | aix4.[01] | aix4.[01].*)
14043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14044 echo ' yes '
14045 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14047 else
14048 can_build_shared=no
14051 esac
14052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14053 # soname into executable. Probably we can add versioning support to
14054 # collect2, so additional links can be useful in future.
14055 if test "$aix_use_runtimelinking" = yes; then
14056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14057 # instead of lib<name>.a to let people know that these are not
14058 # typical AIX shared libraries.
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 else
14061 # We preserve .a as extension for shared libraries through AIX4.2
14062 # and later when we are not doing run time linking.
14063 library_names_spec='${libname}${release}.a $libname.a'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14066 shlibpath_var=LIBPATH
14070 amigaos*)
14071 case $host_cpu in
14072 powerpc)
14073 # Since July 2007 AmigaOS4 officially supports .so libraries.
14074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 m68k)
14078 library_names_spec='$libname.ixlibrary $libname.a'
14079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14080 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'
14082 esac
14085 beos*)
14086 library_names_spec='${libname}${shared_ext}'
14087 dynamic_linker="$host_os ld.so"
14088 shlibpath_var=LIBRARY_PATH
14091 bsdi[45]*)
14092 version_type=linux
14093 need_version=no
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14100 # the default ld.so.conf also contains /usr/contrib/lib and
14101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14102 # libtool to hard-code these into programs
14105 cygwin* | mingw* | pw32* | cegcc*)
14106 version_type=windows
14107 shrext_cmds=".dll"
14108 need_version=no
14109 need_lib_prefix=no
14111 case $GCC,$host_os in
14112 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14113 library_names_spec='$libname.dll.a'
14114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14115 postinstall_cmds='base_file=`basename \${file}`~
14116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14117 dldir=$destdir/`dirname \$dlpath`~
14118 test -d \$dldir || mkdir -p \$dldir~
14119 $install_prog $dir/$dlname \$dldir/$dlname~
14120 chmod a+x \$dldir/$dlname~
14121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14125 dlpath=$dir/\$dldll~
14126 $RM \$dlpath'
14127 shlibpath_overrides_runpath=yes
14129 case $host_os in
14130 cygwin*)
14131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14135 mingw* | cegcc*)
14136 # MinGW DLLs use traditional 'lib' prefix
14137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14138 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14139 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14140 # It is most probably a Windows format PATH printed by
14141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14142 # path with ; separators, and with drive letters. We can handle the
14143 # drive letters (cygwin fileutils understands them), so leave them,
14144 # especially as we might pass files found there to a mingw objdump,
14145 # which wouldn't understand a cygwinified path. Ahh.
14146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14147 else
14148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14151 pw32*)
14152 # pw32 DLLs use 'pw' prefix rather than 'lib'
14153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14155 esac
14159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14161 esac
14162 dynamic_linker='Win32 ld.exe'
14163 # FIXME: first we should search . and the directory the executable is in
14164 shlibpath_var=PATH
14167 darwin* | rhapsody*)
14168 dynamic_linker="$host_os dyld"
14169 version_type=darwin
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14173 soname_spec='${libname}${release}${major}$shared_ext'
14174 shlibpath_overrides_runpath=yes
14175 shlibpath_var=DYLD_LIBRARY_PATH
14176 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14181 dgux*)
14182 version_type=linux
14183 need_lib_prefix=no
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14190 freebsd1*)
14191 dynamic_linker=no
14194 freebsd* | dragonfly*)
14195 # DragonFly does not have aout. When/if they implement a new
14196 # versioning mechanism, adjust this.
14197 if test -x /usr/bin/objformat; then
14198 objformat=`/usr/bin/objformat`
14199 else
14200 case $host_os in
14201 freebsd[123]*) objformat=aout ;;
14202 *) objformat=elf ;;
14203 esac
14205 version_type=freebsd-$objformat
14206 case $version_type in
14207 freebsd-elf*)
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14209 need_version=no
14210 need_lib_prefix=no
14212 freebsd-*)
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14214 need_version=yes
14216 esac
14217 shlibpath_var=LD_LIBRARY_PATH
14218 case $host_os in
14219 freebsd2*)
14220 shlibpath_overrides_runpath=yes
14222 freebsd3.[01]* | freebsdelf3.[01]*)
14223 shlibpath_overrides_runpath=yes
14224 hardcode_into_libs=yes
14226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14231 *) # from 4.6 on, and DragonFly
14232 shlibpath_overrides_runpath=yes
14233 hardcode_into_libs=yes
14235 esac
14238 gnu*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 hardcode_into_libs=yes
14248 hpux9* | hpux10* | hpux11*)
14249 # Give a soname corresponding to the major version so that dld.sl refuses to
14250 # link against other versions.
14251 version_type=sunos
14252 need_lib_prefix=no
14253 need_version=no
14254 case $host_cpu in
14255 ia64*)
14256 shrext_cmds='.so'
14257 hardcode_into_libs=yes
14258 dynamic_linker="$host_os dld.so"
14259 shlibpath_var=LD_LIBRARY_PATH
14260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 if test "X$HPUX_IA64_MODE" = X32; then
14264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14265 else
14266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14270 hppa*64*)
14271 shrext_cmds='.sl'
14272 hardcode_into_libs=yes
14273 dynamic_linker="$host_os dld.sl"
14274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14282 shrext_cmds='.sl'
14283 dynamic_linker="$host_os dld.sl"
14284 shlibpath_var=SHLIB_PATH
14285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14289 esac
14290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14291 postinstall_cmds='chmod 555 $lib'
14294 interix[3-9]*)
14295 version_type=linux
14296 need_lib_prefix=no
14297 need_version=no
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath=no
14303 hardcode_into_libs=yes
14306 irix5* | irix6* | nonstopux*)
14307 case $host_os in
14308 nonstopux*) version_type=nonstopux ;;
14310 if test "$lt_cv_prog_gnu_ld" = yes; then
14311 version_type=linux
14312 else
14313 version_type=irix
14314 fi ;;
14315 esac
14316 need_lib_prefix=no
14317 need_version=no
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14320 case $host_os in
14321 irix5* | nonstopux*)
14322 libsuff= shlibsuff=
14325 case $LD in # libtool.m4 will add one of these switches to LD
14326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14327 libsuff= shlibsuff= libmagic=32-bit;;
14328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14329 libsuff=32 shlibsuff=N32 libmagic=N32;;
14330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14332 *) libsuff= shlibsuff= libmagic=never-match;;
14333 esac
14335 esac
14336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14337 shlibpath_overrides_runpath=no
14338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14340 hardcode_into_libs=yes
14343 # No shared lib support for Linux oldld, aout, or coff.
14344 linux*oldld* | linux*aout* | linux*coff*)
14345 dynamic_linker=no
14348 # This must be Linux ELF.
14349 linux* | k*bsd*-gnu)
14350 version_type=linux
14351 need_lib_prefix=no
14352 need_version=no
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14358 # Some binutils ld are patched to set DT_RUNPATH
14359 save_LDFLAGS=$LDFLAGS
14360 save_libdir=$libdir
14361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14367 main ()
14371 return 0;
14373 _ACEOF
14374 if ac_fn_cxx_try_link "$LINENO"; then :
14375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14376 shlibpath_overrides_runpath=yes
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LDFLAGS=$save_LDFLAGS
14382 libdir=$save_libdir
14384 # This implies no fast_install, which is unacceptable.
14385 # Some rework will be needed to allow for fast_install
14386 # before this can be enabled.
14387 hardcode_into_libs=yes
14389 # Append ld.so.conf contents to the search path
14390 if test -f /etc/ld.so.conf; then
14391 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' ' '`
14392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14395 # We used to test for /lib/ld.so.1 and disable shared libraries on
14396 # powerpc, because MkLinux only supported shared libraries with the
14397 # GNU dynamic linker. Since this was broken with cross compilers,
14398 # most powerpc-linux boxes support dynamic linking these days and
14399 # people can always --disable-shared, the test was removed, and we
14400 # assume the GNU/Linux dynamic linker is in use.
14401 dynamic_linker='GNU/Linux ld.so'
14404 netbsdelf*-gnu)
14405 version_type=linux
14406 need_lib_prefix=no
14407 need_version=no
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14409 soname_spec='${libname}${release}${shared_ext}$major'
14410 shlibpath_var=LD_LIBRARY_PATH
14411 shlibpath_overrides_runpath=no
14412 hardcode_into_libs=yes
14413 dynamic_linker='NetBSD ld.elf_so'
14416 netbsd*)
14417 version_type=sunos
14418 need_lib_prefix=no
14419 need_version=no
14420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14423 dynamic_linker='NetBSD (a.out) ld.so'
14424 else
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 dynamic_linker='NetBSD ld.elf_so'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=yes
14431 hardcode_into_libs=yes
14434 newsos6)
14435 version_type=linux
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14437 shlibpath_var=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath=yes
14441 *nto* | *qnx*)
14442 version_type=qnx
14443 need_lib_prefix=no
14444 need_version=no
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=no
14449 hardcode_into_libs=yes
14450 dynamic_linker='ldqnx.so'
14453 openbsd*)
14454 version_type=sunos
14455 sys_lib_dlsearch_path_spec="/usr/lib"
14456 need_lib_prefix=no
14457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14458 case $host_os in
14459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14460 *) need_version=no ;;
14461 esac
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14466 case $host_os in
14467 openbsd2.[89] | openbsd2.[89].*)
14468 shlibpath_overrides_runpath=no
14471 shlibpath_overrides_runpath=yes
14473 esac
14474 else
14475 shlibpath_overrides_runpath=yes
14479 os2*)
14480 libname_spec='$name'
14481 shrext_cmds=".dll"
14482 need_lib_prefix=no
14483 library_names_spec='$libname${shared_ext} $libname.a'
14484 dynamic_linker='OS/2 ld.exe'
14485 shlibpath_var=LIBPATH
14488 osf3* | osf4* | osf5*)
14489 version_type=osf
14490 need_lib_prefix=no
14491 need_version=no
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14499 rdos*)
14500 dynamic_linker=no
14503 solaris*)
14504 version_type=linux
14505 need_lib_prefix=no
14506 need_version=no
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=yes
14511 hardcode_into_libs=yes
14512 # ldd complains unless libraries are executable
14513 postinstall_cmds='chmod +x $lib'
14516 sunos4*)
14517 version_type=sunos
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 shlibpath_overrides_runpath=yes
14522 if test "$with_gnu_ld" = yes; then
14523 need_lib_prefix=no
14525 need_version=yes
14528 sysv4 | sysv4.3*)
14529 version_type=linux
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 case $host_vendor in
14534 sni)
14535 shlibpath_overrides_runpath=no
14536 need_lib_prefix=no
14537 runpath_var=LD_RUN_PATH
14539 siemens)
14540 need_lib_prefix=no
14542 motorola)
14543 need_lib_prefix=no
14544 need_version=no
14545 shlibpath_overrides_runpath=no
14546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14548 esac
14551 sysv4*MP*)
14552 if test -d /usr/nec ;then
14553 version_type=linux
14554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14555 soname_spec='$libname${shared_ext}.$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14561 version_type=freebsd-elf
14562 need_lib_prefix=no
14563 need_version=no
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 shlibpath_overrides_runpath=yes
14568 hardcode_into_libs=yes
14569 if test "$with_gnu_ld" = yes; then
14570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14571 else
14572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14573 case $host_os in
14574 sco3.2v5*)
14575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14577 esac
14579 sys_lib_dlsearch_path_spec='/usr/lib'
14582 tpf*)
14583 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14584 version_type=linux
14585 need_lib_prefix=no
14586 need_version=no
14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=no
14590 hardcode_into_libs=yes
14593 uts4*)
14594 version_type=linux
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 shlibpath_var=LD_LIBRARY_PATH
14601 dynamic_linker=no
14603 esac
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14605 $as_echo "$dynamic_linker" >&6; }
14606 test "$dynamic_linker" = no && can_build_shared=no
14608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14609 if test "$GCC" = yes; then
14610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14613 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14614 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14616 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14617 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14657 hardcode_action_CXX=
14658 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14659 test -n "$runpath_var_CXX" ||
14660 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14662 # We can hardcode non-existent directories.
14663 if test "$hardcode_direct_CXX" != no &&
14664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14665 # have to relink, otherwise we might link with an installed library
14666 # when we should be linking with a yet-to-be-installed one
14667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14668 test "$hardcode_minus_L_CXX" != no; then
14669 # Linking always hardcodes the temporary library directory.
14670 hardcode_action_CXX=relink
14671 else
14672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14673 hardcode_action_CXX=immediate
14675 else
14676 # We cannot hardcode anything, or else we can only hardcode existing
14677 # directories.
14678 hardcode_action_CXX=unsupported
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14681 $as_echo "$hardcode_action_CXX" >&6; }
14683 if test "$hardcode_action_CXX" = relink ||
14684 test "$inherit_rpath_CXX" = yes; then
14685 # Fast installation is not supported
14686 enable_fast_install=no
14687 elif test "$shlibpath_overrides_runpath" = yes ||
14688 test "$enable_shared" = no; then
14689 # Fast installation is not necessary
14690 enable_fast_install=needless
14699 fi # test -n "$compiler"
14701 CC=$lt_save_CC
14702 LDCXX=$LD
14703 LD=$lt_save_LD
14704 GCC=$lt_save_GCC
14705 with_gnu_ld=$lt_save_with_gnu_ld
14706 lt_cv_path_LDCXX=$lt_cv_path_LD
14707 lt_cv_path_LD=$lt_save_path_LD
14708 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14709 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14710 fi # test "$_lt_caught_CXX_error" != yes
14712 ac_ext=c
14713 ac_cpp='$CPP $CPPFLAGS'
14714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14730 ac_config_commands="$ac_config_commands libtool"
14735 # Only expand once:
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14739 $as_echo_n "checking for ANSI C header files... " >&6; }
14740 if test "${ac_cv_header_stdc+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 #include <stdlib.h>
14746 #include <stdarg.h>
14747 #include <string.h>
14748 #include <float.h>
14751 main ()
14755 return 0;
14757 _ACEOF
14758 if ac_fn_c_try_compile "$LINENO"; then :
14759 ac_cv_header_stdc=yes
14760 else
14761 ac_cv_header_stdc=no
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 if test $ac_cv_header_stdc = yes; then
14766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 #include <string.h>
14771 _ACEOF
14772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14773 $EGREP "memchr" >/dev/null 2>&1; then :
14775 else
14776 ac_cv_header_stdc=no
14778 rm -f conftest*
14782 if test $ac_cv_header_stdc = yes; then
14783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 #include <stdlib.h>
14788 _ACEOF
14789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14790 $EGREP "free" >/dev/null 2>&1; then :
14792 else
14793 ac_cv_header_stdc=no
14795 rm -f conftest*
14799 if test $ac_cv_header_stdc = yes; then
14800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14801 if test "$cross_compiling" = yes; then :
14803 else
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806 #include <ctype.h>
14807 #include <stdlib.h>
14808 #if ((' ' & 0x0FF) == 0x020)
14809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14811 #else
14812 # define ISLOWER(c) \
14813 (('a' <= (c) && (c) <= 'i') \
14814 || ('j' <= (c) && (c) <= 'r') \
14815 || ('s' <= (c) && (c) <= 'z'))
14816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14817 #endif
14819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14821 main ()
14823 int i;
14824 for (i = 0; i < 256; i++)
14825 if (XOR (islower (i), ISLOWER (i))
14826 || toupper (i) != TOUPPER (i))
14827 return 2;
14828 return 0;
14830 _ACEOF
14831 if ac_fn_c_try_run "$LINENO"; then :
14833 else
14834 ac_cv_header_stdc=no
14836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14837 conftest.$ac_objext conftest.beam conftest.$ac_ext
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14843 $as_echo "$ac_cv_header_stdc" >&6; }
14844 if test $ac_cv_header_stdc = yes; then
14846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14852 $as_echo_n "checking whether ln -s works... " >&6; }
14853 LN_S=$as_ln_s
14854 if test "$LN_S" = "ln -s"; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14856 $as_echo "yes" >&6; }
14857 else
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14859 $as_echo "no, using $LN_S" >&6; }
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14864 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14865 if test "${ac_cv_c_const+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14872 main ()
14874 /* FIXME: Include the comments suggested by Paul. */
14875 #ifndef __cplusplus
14876 /* Ultrix mips cc rejects this. */
14877 typedef int charset[2];
14878 const charset cs;
14879 /* SunOS 4.1.1 cc rejects this. */
14880 char const *const *pcpcc;
14881 char **ppc;
14882 /* NEC SVR4.0.2 mips cc rejects this. */
14883 struct point {int x, y;};
14884 static struct point const zero = {0,0};
14885 /* AIX XL C 1.02.0.0 rejects this.
14886 It does not let you subtract one const X* pointer from another in
14887 an arm of an if-expression whose if-part is not a constant
14888 expression */
14889 const char *g = "string";
14890 pcpcc = &g + (g ? g-g : 0);
14891 /* HPUX 7.0 cc rejects these. */
14892 ++pcpcc;
14893 ppc = (char**) pcpcc;
14894 pcpcc = (char const *const *) ppc;
14895 { /* SCO 3.2v4 cc rejects this. */
14896 char *t;
14897 char const *s = 0 ? (char *) 0 : (char const *) 0;
14899 *t++ = 0;
14900 if (s) return 0;
14902 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14903 int x[] = {25, 17};
14904 const int *foo = &x[0];
14905 ++foo;
14907 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14908 typedef const int *iptr;
14909 iptr p = 0;
14910 ++p;
14912 { /* AIX XL C 1.02.0.0 rejects this saying
14913 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14914 struct s { int j; const int *ap[3]; };
14915 struct s *b; b->j = 5;
14917 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14918 const int foo = 10;
14919 if (!foo) return 0;
14921 return !cs[0] && !zero.x;
14922 #endif
14925 return 0;
14927 _ACEOF
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929 ac_cv_c_const=yes
14930 else
14931 ac_cv_c_const=no
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14936 $as_echo "$ac_cv_c_const" >&6; }
14937 if test $ac_cv_c_const = no; then
14939 $as_echo "#define const /**/" >>confdefs.h
14943 for ac_func in vprintf
14944 do :
14945 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14946 if test "x$ac_cv_func_vprintf" = x""yes; then :
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_VPRINTF 1
14949 _ACEOF
14951 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14952 if test "x$ac_cv_func__doprnt" = x""yes; then :
14954 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14959 done
14962 for ac_prog in gawk mawk nawk awk
14964 # Extract the first word of "$ac_prog", so it can be a program name with args.
14965 set dummy $ac_prog; ac_word=$2
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14967 $as_echo_n "checking for $ac_word... " >&6; }
14968 if test "${ac_cv_prog_AWK+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 if test -n "$AWK"; then
14972 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14973 else
14974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14975 for as_dir in $PATH
14977 IFS=$as_save_IFS
14978 test -z "$as_dir" && as_dir=.
14979 for ac_exec_ext in '' $ac_executable_extensions; do
14980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14981 ac_cv_prog_AWK="$ac_prog"
14982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14983 break 2
14985 done
14986 done
14987 IFS=$as_save_IFS
14991 AWK=$ac_cv_prog_AWK
14992 if test -n "$AWK"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14994 $as_echo "$AWK" >&6; }
14995 else
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14997 $as_echo "no" >&6; }
15001 test -n "$AWK" && break
15002 done
15004 if test -n "$ac_tool_prefix"; then
15005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15008 $as_echo_n "checking for $ac_word... " >&6; }
15009 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 if test -n "$RANLIB"; then
15013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15014 else
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15018 IFS=$as_save_IFS
15019 test -z "$as_dir" && as_dir=.
15020 for ac_exec_ext in '' $ac_executable_extensions; do
15021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15024 break 2
15026 done
15027 done
15028 IFS=$as_save_IFS
15032 RANLIB=$ac_cv_prog_RANLIB
15033 if test -n "$RANLIB"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15035 $as_echo "$RANLIB" >&6; }
15036 else
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15043 if test -z "$ac_cv_prog_RANLIB"; then
15044 ac_ct_RANLIB=$RANLIB
15045 # Extract the first word of "ranlib", so it can be a program name with args.
15046 set dummy ranlib; ac_word=$2
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15048 $as_echo_n "checking for $ac_word... " >&6; }
15049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 if test -n "$ac_ct_RANLIB"; then
15053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15054 else
15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15056 for as_dir in $PATH
15058 IFS=$as_save_IFS
15059 test -z "$as_dir" && as_dir=.
15060 for ac_exec_ext in '' $ac_executable_extensions; do
15061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15062 ac_cv_prog_ac_ct_RANLIB="ranlib"
15063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15064 break 2
15066 done
15067 done
15068 IFS=$as_save_IFS
15072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15073 if test -n "$ac_ct_RANLIB"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15075 $as_echo "$ac_ct_RANLIB" >&6; }
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15081 if test "x$ac_ct_RANLIB" = x; then
15082 RANLIB=":"
15083 else
15084 case $cross_compiling:$ac_tool_warned in
15085 yes:)
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15088 ac_tool_warned=yes ;;
15089 esac
15090 RANLIB=$ac_ct_RANLIB
15092 else
15093 RANLIB="$ac_cv_prog_RANLIB"
15096 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15097 if test "x$ac_cv_type_size_t" = x""yes; then :
15099 else
15101 cat >>confdefs.h <<_ACEOF
15102 #define size_t unsigned int
15103 _ACEOF
15109 # Extract the first word of "gnuplot", so it can be a program name with args.
15110 set dummy gnuplot; ac_word=$2
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15112 $as_echo_n "checking for $ac_word... " >&6; }
15113 if test "${ac_cv_prog_GNUPLOT+set}" = set; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 if test -n "$GNUPLOT"; then
15117 ac_cv_prog_GNUPLOT="$GNUPLOT" # Let the user override the test.
15118 else
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15122 IFS=$as_save_IFS
15123 test -z "$as_dir" && as_dir=.
15124 for ac_exec_ext in '' $ac_executable_extensions; do
15125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15126 ac_cv_prog_GNUPLOT="true"
15127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15128 break 2
15130 done
15131 done
15132 IFS=$as_save_IFS
15134 test -z "$ac_cv_prog_GNUPLOT" && ac_cv_prog_GNUPLOT="false"
15137 GNUPLOT=$ac_cv_prog_GNUPLOT
15138 if test -n "$GNUPLOT"; then
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
15140 $as_echo "$GNUPLOT" >&6; }
15141 else
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143 $as_echo "no" >&6; }
15147 if $GNUPLOT; then
15148 HAVE_GNUPLOT_TRUE=
15149 HAVE_GNUPLOT_FALSE='#'
15150 else
15151 HAVE_GNUPLOT_TRUE='#'
15152 HAVE_GNUPLOT_FALSE=
15156 # Extract the first word of "perl", so it can be a program name with args.
15157 set dummy perl; ac_word=$2
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15159 $as_echo_n "checking for $ac_word... " >&6; }
15160 if test "${ac_cv_prog_PERL+set}" = set; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 if test -n "$PERL"; then
15164 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15165 else
15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15169 IFS=$as_save_IFS
15170 test -z "$as_dir" && as_dir=.
15171 for ac_exec_ext in '' $ac_executable_extensions; do
15172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15173 ac_cv_prog_PERL="true"
15174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15175 break 2
15177 done
15178 done
15179 IFS=$as_save_IFS
15181 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
15184 PERL=$ac_cv_prog_PERL
15185 if test -n "$PERL"; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15187 $as_echo "$PERL" >&6; }
15188 else
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15194 if $PERL; then
15195 HAVE_PERL_TRUE=
15196 HAVE_PERL_FALSE='#'
15197 else
15198 HAVE_PERL_TRUE='#'
15199 HAVE_PERL_FALSE=
15203 # Extract the first word of "doxygen", so it can be a program name with args.
15204 set dummy doxygen; ac_word=$2
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15206 $as_echo_n "checking for $ac_word... " >&6; }
15207 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 case $DOXYGEN in
15211 [\\/]* | ?:[\\/]*)
15212 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
15215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216 for as_dir in $PATH
15218 IFS=$as_save_IFS
15219 test -z "$as_dir" && as_dir=.
15220 for ac_exec_ext in '' $ac_executable_extensions; do
15221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15222 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15224 break 2
15226 done
15227 done
15228 IFS=$as_save_IFS
15231 esac
15233 DOXYGEN=$ac_cv_path_DOXYGEN
15234 if test -n "$DOXYGEN"; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
15236 $as_echo "$DOXYGEN" >&6; }
15237 else
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239 $as_echo "no" >&6; }
15243 if test x"$DOXYGEN" = "x"; then
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find doxygen to build documentation.
15245 Have a look at http://www.doxygen.org/" >&5
15246 $as_echo "$as_me: WARNING: Cannot find doxygen to build documentation.
15247 Have a look at http://www.doxygen.org/" >&2;}
15261 # Files:
15262 DX_PROJECT=$PACKAGE
15264 DX_CONFIG=Doxyfile
15266 DX_DOCDIR=doxygen-doc
15269 # Environment variables used inside doxygen.cfg:
15270 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
15272 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
15274 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
15276 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
15279 # Doxygen itself:
15283 # Check whether --enable-doxygen-doc was given.
15284 if test "${enable_doxygen_doc+set}" = set; then :
15285 enableval=$enable_doxygen_doc;
15286 case "$enableval" in
15288 y|Y|yes|Yes|YES)
15289 DX_FLAG_doc=1
15292 ;; #(
15293 n|N|no|No|NO)
15294 DX_FLAG_doc=0
15296 ;; #(
15298 as_fn_error "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15300 esac
15302 else
15304 DX_FLAG_doc=1
15310 if test "$DX_FLAG_doc" = 1; then
15312 if test -n "$ac_tool_prefix"; then
15313 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
15314 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15316 $as_echo_n "checking for $ac_word... " >&6; }
15317 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 case $DX_DOXYGEN in
15321 [\\/]* | ?:[\\/]*)
15322 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
15325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326 for as_dir in $PATH
15328 IFS=$as_save_IFS
15329 test -z "$as_dir" && as_dir=.
15330 for ac_exec_ext in '' $ac_executable_extensions; do
15331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15332 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334 break 2
15336 done
15337 done
15338 IFS=$as_save_IFS
15341 esac
15343 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
15344 if test -n "$DX_DOXYGEN"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
15346 $as_echo "$DX_DOXYGEN" >&6; }
15347 else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15354 if test -z "$ac_cv_path_DX_DOXYGEN"; then
15355 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
15356 # Extract the first word of "doxygen", so it can be a program name with args.
15357 set dummy doxygen; ac_word=$2
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15359 $as_echo_n "checking for $ac_word... " >&6; }
15360 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 case $ac_pt_DX_DOXYGEN in
15364 [\\/]* | ?:[\\/]*)
15365 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $PATH
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
15373 for ac_exec_ext in '' $ac_executable_extensions; do
15374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15375 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15377 break 2
15379 done
15380 done
15381 IFS=$as_save_IFS
15384 esac
15386 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
15387 if test -n "$ac_pt_DX_DOXYGEN"; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
15389 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
15390 else
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392 $as_echo "no" >&6; }
15395 if test "x$ac_pt_DX_DOXYGEN" = x; then
15396 DX_DOXYGEN=""
15397 else
15398 case $cross_compiling:$ac_tool_warned in
15399 yes:)
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15402 ac_tool_warned=yes ;;
15403 esac
15404 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
15406 else
15407 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
15410 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
15412 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
15413 DX_FLAG_doc=0
15418 if test -n "$ac_tool_prefix"; then
15419 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
15420 set dummy ${ac_tool_prefix}perl; ac_word=$2
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15422 $as_echo_n "checking for $ac_word... " >&6; }
15423 if test "${ac_cv_path_DX_PERL+set}" = set; then :
15424 $as_echo_n "(cached) " >&6
15425 else
15426 case $DX_PERL in
15427 [\\/]* | ?:[\\/]*)
15428 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
15431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15432 for as_dir in $PATH
15434 IFS=$as_save_IFS
15435 test -z "$as_dir" && as_dir=.
15436 for ac_exec_ext in '' $ac_executable_extensions; do
15437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15438 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
15439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15440 break 2
15442 done
15443 done
15444 IFS=$as_save_IFS
15447 esac
15449 DX_PERL=$ac_cv_path_DX_PERL
15450 if test -n "$DX_PERL"; then
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
15452 $as_echo "$DX_PERL" >&6; }
15453 else
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15455 $as_echo "no" >&6; }
15460 if test -z "$ac_cv_path_DX_PERL"; then
15461 ac_pt_DX_PERL=$DX_PERL
15462 # Extract the first word of "perl", so it can be a program name with args.
15463 set dummy perl; ac_word=$2
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15465 $as_echo_n "checking for $ac_word... " >&6; }
15466 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then :
15467 $as_echo_n "(cached) " >&6
15468 else
15469 case $ac_pt_DX_PERL in
15470 [\\/]* | ?:[\\/]*)
15471 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
15474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475 for as_dir in $PATH
15477 IFS=$as_save_IFS
15478 test -z "$as_dir" && as_dir=.
15479 for ac_exec_ext in '' $ac_executable_extensions; do
15480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15481 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
15482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15483 break 2
15485 done
15486 done
15487 IFS=$as_save_IFS
15490 esac
15492 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
15493 if test -n "$ac_pt_DX_PERL"; then
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
15495 $as_echo "$ac_pt_DX_PERL" >&6; }
15496 else
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15501 if test "x$ac_pt_DX_PERL" = x; then
15502 DX_PERL=""
15503 else
15504 case $cross_compiling:$ac_tool_warned in
15505 yes:)
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15508 ac_tool_warned=yes ;;
15509 esac
15510 DX_PERL=$ac_pt_DX_PERL
15512 else
15513 DX_PERL="$ac_cv_path_DX_PERL"
15516 if test "$DX_FLAG_doc$DX_PERL" = 1; then
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
15518 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
15519 DX_FLAG_doc=0
15525 if test "$DX_FLAG_doc" = 1; then
15526 if :; then
15527 DX_COND_doc_TRUE=
15528 DX_COND_doc_FALSE='#'
15529 else
15530 DX_COND_doc_TRUE='#'
15531 DX_COND_doc_FALSE=
15534 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
15537 else
15538 if false; then
15539 DX_COND_doc_TRUE=
15540 DX_COND_doc_FALSE='#'
15541 else
15542 DX_COND_doc_TRUE='#'
15543 DX_COND_doc_FALSE=
15551 # Dot for graphics:
15555 # Check whether --enable-doxygen-dot was given.
15556 if test "${enable_doxygen_dot+set}" = set; then :
15557 enableval=$enable_doxygen_dot;
15558 case "$enableval" in
15560 y|Y|yes|Yes|YES)
15561 DX_FLAG_dot=1
15564 test "$DX_FLAG_doc" = "1" \
15565 || as_fn_error "doxygen-dot requires doxygen-dot" "$LINENO" 5
15567 ;; #(
15568 n|N|no|No|NO)
15569 DX_FLAG_dot=0
15571 ;; #(
15573 as_fn_error "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
15575 esac
15577 else
15579 DX_FLAG_dot=1
15582 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
15588 if test "$DX_FLAG_dot" = 1; then
15590 if test -n "$ac_tool_prefix"; then
15591 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
15592 set dummy ${ac_tool_prefix}dot; ac_word=$2
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15594 $as_echo_n "checking for $ac_word... " >&6; }
15595 if test "${ac_cv_path_DX_DOT+set}" = set; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 case $DX_DOT in
15599 [\\/]* | ?:[\\/]*)
15600 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15610 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 break 2
15614 done
15615 done
15616 IFS=$as_save_IFS
15619 esac
15621 DX_DOT=$ac_cv_path_DX_DOT
15622 if test -n "$DX_DOT"; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
15624 $as_echo "$DX_DOT" >&6; }
15625 else
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15627 $as_echo "no" >&6; }
15632 if test -z "$ac_cv_path_DX_DOT"; then
15633 ac_pt_DX_DOT=$DX_DOT
15634 # Extract the first word of "dot", so it can be a program name with args.
15635 set dummy dot; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 case $ac_pt_DX_DOT in
15642 [\\/]* | ?:[\\/]*)
15643 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
15646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15649 IFS=$as_save_IFS
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15653 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 break 2
15657 done
15658 done
15659 IFS=$as_save_IFS
15662 esac
15664 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
15665 if test -n "$ac_pt_DX_DOT"; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
15667 $as_echo "$ac_pt_DX_DOT" >&6; }
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15673 if test "x$ac_pt_DX_DOT" = x; then
15674 DX_DOT=""
15675 else
15676 case $cross_compiling:$ac_tool_warned in
15677 yes:)
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15680 ac_tool_warned=yes ;;
15681 esac
15682 DX_DOT=$ac_pt_DX_DOT
15684 else
15685 DX_DOT="$ac_cv_path_DX_DOT"
15688 if test "$DX_FLAG_dot$DX_DOT" = 1; then
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
15690 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
15691 DX_FLAG_dot=0
15697 if test "$DX_FLAG_dot" = 1; then
15698 if :; then
15699 DX_COND_dot_TRUE=
15700 DX_COND_dot_FALSE='#'
15701 else
15702 DX_COND_dot_TRUE='#'
15703 DX_COND_dot_FALSE=
15706 DX_ENV="$DX_ENV HAVE_DOT='YES'"
15708 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
15711 else
15712 if false; then
15713 DX_COND_dot_TRUE=
15714 DX_COND_dot_FALSE='#'
15715 else
15716 DX_COND_dot_TRUE='#'
15717 DX_COND_dot_FALSE=
15720 DX_ENV="$DX_ENV HAVE_DOT='NO'"
15726 # Man pages generation:
15730 # Check whether --enable-doxygen-man was given.
15731 if test "${enable_doxygen_man+set}" = set; then :
15732 enableval=$enable_doxygen_man;
15733 case "$enableval" in
15735 y|Y|yes|Yes|YES)
15736 DX_FLAG_man=1
15739 test "$DX_FLAG_doc" = "1" \
15740 || as_fn_error "doxygen-man requires doxygen-man" "$LINENO" 5
15742 ;; #(
15743 n|N|no|No|NO)
15744 DX_FLAG_man=0
15746 ;; #(
15748 as_fn_error "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
15750 esac
15752 else
15754 DX_FLAG_man=0
15757 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
15763 if test "$DX_FLAG_man" = 1; then
15767 if test "$DX_FLAG_man" = 1; then
15768 if :; then
15769 DX_COND_man_TRUE=
15770 DX_COND_man_FALSE='#'
15771 else
15772 DX_COND_man_TRUE='#'
15773 DX_COND_man_FALSE=
15776 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
15779 else
15780 if false; then
15781 DX_COND_man_TRUE=
15782 DX_COND_man_FALSE='#'
15783 else
15784 DX_COND_man_TRUE='#'
15785 DX_COND_man_FALSE=
15788 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
15794 # RTF file generation:
15798 # Check whether --enable-doxygen-rtf was given.
15799 if test "${enable_doxygen_rtf+set}" = set; then :
15800 enableval=$enable_doxygen_rtf;
15801 case "$enableval" in
15803 y|Y|yes|Yes|YES)
15804 DX_FLAG_rtf=1
15807 test "$DX_FLAG_doc" = "1" \
15808 || as_fn_error "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
15810 ;; #(
15811 n|N|no|No|NO)
15812 DX_FLAG_rtf=0
15814 ;; #(
15816 as_fn_error "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
15818 esac
15820 else
15822 DX_FLAG_rtf=0
15825 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
15831 if test "$DX_FLAG_rtf" = 1; then
15835 if test "$DX_FLAG_rtf" = 1; then
15836 if :; then
15837 DX_COND_rtf_TRUE=
15838 DX_COND_rtf_FALSE='#'
15839 else
15840 DX_COND_rtf_TRUE='#'
15841 DX_COND_rtf_FALSE=
15844 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
15847 else
15848 if false; then
15849 DX_COND_rtf_TRUE=
15850 DX_COND_rtf_FALSE='#'
15851 else
15852 DX_COND_rtf_TRUE='#'
15853 DX_COND_rtf_FALSE=
15856 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
15862 # XML file generation:
15866 # Check whether --enable-doxygen-xml was given.
15867 if test "${enable_doxygen_xml+set}" = set; then :
15868 enableval=$enable_doxygen_xml;
15869 case "$enableval" in
15871 y|Y|yes|Yes|YES)
15872 DX_FLAG_xml=1
15875 test "$DX_FLAG_doc" = "1" \
15876 || as_fn_error "doxygen-xml requires doxygen-xml" "$LINENO" 5
15878 ;; #(
15879 n|N|no|No|NO)
15880 DX_FLAG_xml=0
15882 ;; #(
15884 as_fn_error "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
15886 esac
15888 else
15890 DX_FLAG_xml=0
15893 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
15899 if test "$DX_FLAG_xml" = 1; then
15903 if test "$DX_FLAG_xml" = 1; then
15904 if :; then
15905 DX_COND_xml_TRUE=
15906 DX_COND_xml_FALSE='#'
15907 else
15908 DX_COND_xml_TRUE='#'
15909 DX_COND_xml_FALSE=
15912 DX_ENV="$DX_ENV GENERATE_XML='YES'"
15915 else
15916 if false; then
15917 DX_COND_xml_TRUE=
15918 DX_COND_xml_FALSE='#'
15919 else
15920 DX_COND_xml_TRUE='#'
15921 DX_COND_xml_FALSE=
15924 DX_ENV="$DX_ENV GENERATE_XML='NO'"
15930 # (Compressed) HTML help generation:
15934 # Check whether --enable-doxygen-chm was given.
15935 if test "${enable_doxygen_chm+set}" = set; then :
15936 enableval=$enable_doxygen_chm;
15937 case "$enableval" in
15939 y|Y|yes|Yes|YES)
15940 DX_FLAG_chm=1
15943 test "$DX_FLAG_doc" = "1" \
15944 || as_fn_error "doxygen-chm requires doxygen-chm" "$LINENO" 5
15946 ;; #(
15947 n|N|no|No|NO)
15948 DX_FLAG_chm=0
15950 ;; #(
15952 as_fn_error "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
15954 esac
15956 else
15958 DX_FLAG_chm=0
15961 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
15967 if test "$DX_FLAG_chm" = 1; then
15969 if test -n "$ac_tool_prefix"; then
15970 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
15971 set dummy ${ac_tool_prefix}hhc; ac_word=$2
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15973 $as_echo_n "checking for $ac_word... " >&6; }
15974 if test "${ac_cv_path_DX_HHC+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 case $DX_HHC in
15978 [\\/]* | ?:[\\/]*)
15979 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
15982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15983 for as_dir in $PATH
15985 IFS=$as_save_IFS
15986 test -z "$as_dir" && as_dir=.
15987 for ac_exec_ext in '' $ac_executable_extensions; do
15988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15989 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
15990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15991 break 2
15993 done
15994 done
15995 IFS=$as_save_IFS
15998 esac
16000 DX_HHC=$ac_cv_path_DX_HHC
16001 if test -n "$DX_HHC"; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
16003 $as_echo "$DX_HHC" >&6; }
16004 else
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006 $as_echo "no" >&6; }
16011 if test -z "$ac_cv_path_DX_HHC"; then
16012 ac_pt_DX_HHC=$DX_HHC
16013 # Extract the first word of "hhc", so it can be a program name with args.
16014 set dummy hhc; ac_word=$2
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16016 $as_echo_n "checking for $ac_word... " >&6; }
16017 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16020 case $ac_pt_DX_HHC in
16021 [\\/]* | ?:[\\/]*)
16022 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
16025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16026 for as_dir in $PATH
16028 IFS=$as_save_IFS
16029 test -z "$as_dir" && as_dir=.
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16032 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16034 break 2
16036 done
16037 done
16038 IFS=$as_save_IFS
16041 esac
16043 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
16044 if test -n "$ac_pt_DX_HHC"; then
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
16046 $as_echo "$ac_pt_DX_HHC" >&6; }
16047 else
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16052 if test "x$ac_pt_DX_HHC" = x; then
16053 DX_HHC=""
16054 else
16055 case $cross_compiling:$ac_tool_warned in
16056 yes:)
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16059 ac_tool_warned=yes ;;
16060 esac
16061 DX_HHC=$ac_pt_DX_HHC
16063 else
16064 DX_HHC="$ac_cv_path_DX_HHC"
16067 if test "$DX_FLAG_chm$DX_HHC" = 1; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
16069 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
16070 DX_FLAG_chm=0
16076 if test "$DX_FLAG_chm" = 1; then
16077 if :; then
16078 DX_COND_chm_TRUE=
16079 DX_COND_chm_FALSE='#'
16080 else
16081 DX_COND_chm_TRUE='#'
16082 DX_COND_chm_FALSE=
16085 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
16087 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16089 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
16092 else
16093 if false; then
16094 DX_COND_chm_TRUE=
16095 DX_COND_chm_FALSE='#'
16096 else
16097 DX_COND_chm_TRUE='#'
16098 DX_COND_chm_FALSE=
16101 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
16107 # Seperate CHI file generation.
16111 # Check whether --enable-doxygen-chi was given.
16112 if test "${enable_doxygen_chi+set}" = set; then :
16113 enableval=$enable_doxygen_chi;
16114 case "$enableval" in
16116 y|Y|yes|Yes|YES)
16117 DX_FLAG_chi=1
16120 test "$DX_FLAG_chm" = "1" \
16121 || as_fn_error "doxygen-chi requires doxygen-chi" "$LINENO" 5
16123 ;; #(
16124 n|N|no|No|NO)
16125 DX_FLAG_chi=0
16127 ;; #(
16129 as_fn_error "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16131 esac
16133 else
16135 DX_FLAG_chi=0
16138 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
16144 if test "$DX_FLAG_chi" = 1; then
16148 if test "$DX_FLAG_chi" = 1; then
16149 if :; then
16150 DX_COND_chi_TRUE=
16151 DX_COND_chi_FALSE='#'
16152 else
16153 DX_COND_chi_TRUE='#'
16154 DX_COND_chi_FALSE=
16157 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
16160 else
16161 if false; then
16162 DX_COND_chi_TRUE=
16163 DX_COND_chi_FALSE='#'
16164 else
16165 DX_COND_chi_TRUE='#'
16166 DX_COND_chi_FALSE=
16169 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
16175 # Plain HTML pages generation:
16179 # Check whether --enable-doxygen-html was given.
16180 if test "${enable_doxygen_html+set}" = set; then :
16181 enableval=$enable_doxygen_html;
16182 case "$enableval" in
16184 y|Y|yes|Yes|YES)
16185 DX_FLAG_html=1
16188 test "$DX_FLAG_doc" = "1" \
16189 || as_fn_error "doxygen-html requires doxygen-html" "$LINENO" 5
16191 test "$DX_FLAG_chm" = "0" \
16192 || as_fn_error "doxygen-html contradicts doxygen-html" "$LINENO" 5
16194 ;; #(
16195 n|N|no|No|NO)
16196 DX_FLAG_html=0
16198 ;; #(
16200 as_fn_error "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16202 esac
16204 else
16206 DX_FLAG_html=1
16209 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
16212 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
16218 if test "$DX_FLAG_html" = 1; then
16222 if test "$DX_FLAG_html" = 1; then
16223 if :; then
16224 DX_COND_html_TRUE=
16225 DX_COND_html_FALSE='#'
16226 else
16227 DX_COND_html_TRUE='#'
16228 DX_COND_html_FALSE=
16231 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16234 else
16235 if false; then
16236 DX_COND_html_TRUE=
16237 DX_COND_html_FALSE='#'
16238 else
16239 DX_COND_html_TRUE='#'
16240 DX_COND_html_FALSE=
16243 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
16249 # PostScript file generation:
16253 # Check whether --enable-doxygen-ps was given.
16254 if test "${enable_doxygen_ps+set}" = set; then :
16255 enableval=$enable_doxygen_ps;
16256 case "$enableval" in
16258 y|Y|yes|Yes|YES)
16259 DX_FLAG_ps=1
16262 test "$DX_FLAG_doc" = "1" \
16263 || as_fn_error "doxygen-ps requires doxygen-ps" "$LINENO" 5
16265 ;; #(
16266 n|N|no|No|NO)
16267 DX_FLAG_ps=0
16269 ;; #(
16271 as_fn_error "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16273 esac
16275 else
16277 DX_FLAG_ps=0
16280 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
16286 if test "$DX_FLAG_ps" = 1; then
16288 if test -n "$ac_tool_prefix"; then
16289 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
16290 set dummy ${ac_tool_prefix}latex; ac_word=$2
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16292 $as_echo_n "checking for $ac_word... " >&6; }
16293 if test "${ac_cv_path_DX_LATEX+set}" = set; then :
16294 $as_echo_n "(cached) " >&6
16295 else
16296 case $DX_LATEX in
16297 [\\/]* | ?:[\\/]*)
16298 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
16301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16302 for as_dir in $PATH
16304 IFS=$as_save_IFS
16305 test -z "$as_dir" && as_dir=.
16306 for ac_exec_ext in '' $ac_executable_extensions; do
16307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16308 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16310 break 2
16312 done
16313 done
16314 IFS=$as_save_IFS
16317 esac
16319 DX_LATEX=$ac_cv_path_DX_LATEX
16320 if test -n "$DX_LATEX"; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
16322 $as_echo "$DX_LATEX" >&6; }
16323 else
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16330 if test -z "$ac_cv_path_DX_LATEX"; then
16331 ac_pt_DX_LATEX=$DX_LATEX
16332 # Extract the first word of "latex", so it can be a program name with args.
16333 set dummy latex; ac_word=$2
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16335 $as_echo_n "checking for $ac_word... " >&6; }
16336 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 case $ac_pt_DX_LATEX in
16340 [\\/]* | ?:[\\/]*)
16341 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
16344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16345 for as_dir in $PATH
16347 IFS=$as_save_IFS
16348 test -z "$as_dir" && as_dir=.
16349 for ac_exec_ext in '' $ac_executable_extensions; do
16350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16351 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16353 break 2
16355 done
16356 done
16357 IFS=$as_save_IFS
16360 esac
16362 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
16363 if test -n "$ac_pt_DX_LATEX"; then
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
16365 $as_echo "$ac_pt_DX_LATEX" >&6; }
16366 else
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16368 $as_echo "no" >&6; }
16371 if test "x$ac_pt_DX_LATEX" = x; then
16372 DX_LATEX=""
16373 else
16374 case $cross_compiling:$ac_tool_warned in
16375 yes:)
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16378 ac_tool_warned=yes ;;
16379 esac
16380 DX_LATEX=$ac_pt_DX_LATEX
16382 else
16383 DX_LATEX="$ac_cv_path_DX_LATEX"
16386 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
16388 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
16389 DX_FLAG_ps=0
16394 if test -n "$ac_tool_prefix"; then
16395 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16396 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16398 $as_echo_n "checking for $ac_word... " >&6; }
16399 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 case $DX_MAKEINDEX in
16403 [\\/]* | ?:[\\/]*)
16404 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16410 IFS=$as_save_IFS
16411 test -z "$as_dir" && as_dir=.
16412 for ac_exec_ext in '' $ac_executable_extensions; do
16413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16414 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16416 break 2
16418 done
16419 done
16420 IFS=$as_save_IFS
16423 esac
16425 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16426 if test -n "$DX_MAKEINDEX"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16428 $as_echo "$DX_MAKEINDEX" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16436 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16437 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16438 # Extract the first word of "makeindex", so it can be a program name with args.
16439 set dummy makeindex; ac_word=$2
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16441 $as_echo_n "checking for $ac_word... " >&6; }
16442 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
16443 $as_echo_n "(cached) " >&6
16444 else
16445 case $ac_pt_DX_MAKEINDEX in
16446 [\\/]* | ?:[\\/]*)
16447 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16451 for as_dir in $PATH
16453 IFS=$as_save_IFS
16454 test -z "$as_dir" && as_dir=.
16455 for ac_exec_ext in '' $ac_executable_extensions; do
16456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16457 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16459 break 2
16461 done
16462 done
16463 IFS=$as_save_IFS
16466 esac
16468 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
16469 if test -n "$ac_pt_DX_MAKEINDEX"; then
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
16471 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
16472 else
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16474 $as_echo "no" >&6; }
16477 if test "x$ac_pt_DX_MAKEINDEX" = x; then
16478 DX_MAKEINDEX=""
16479 else
16480 case $cross_compiling:$ac_tool_warned in
16481 yes:)
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16484 ac_tool_warned=yes ;;
16485 esac
16486 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
16488 else
16489 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
16492 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
16494 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
16495 DX_FLAG_ps=0
16500 if test -n "$ac_tool_prefix"; then
16501 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
16502 set dummy ${ac_tool_prefix}dvips; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if test "${ac_cv_path_DX_DVIPS+set}" = set; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 case $DX_DVIPS in
16509 [\\/]* | ?:[\\/]*)
16510 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16516 IFS=$as_save_IFS
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
16521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16522 break 2
16524 done
16525 done
16526 IFS=$as_save_IFS
16529 esac
16531 DX_DVIPS=$ac_cv_path_DX_DVIPS
16532 if test -n "$DX_DVIPS"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
16534 $as_echo "$DX_DVIPS" >&6; }
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16542 if test -z "$ac_cv_path_DX_DVIPS"; then
16543 ac_pt_DX_DVIPS=$DX_DVIPS
16544 # Extract the first word of "dvips", so it can be a program name with args.
16545 set dummy dvips; ac_word=$2
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16547 $as_echo_n "checking for $ac_word... " >&6; }
16548 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 case $ac_pt_DX_DVIPS in
16552 [\\/]* | ?:[\\/]*)
16553 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
16556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16557 for as_dir in $PATH
16559 IFS=$as_save_IFS
16560 test -z "$as_dir" && as_dir=.
16561 for ac_exec_ext in '' $ac_executable_extensions; do
16562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16563 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
16564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16565 break 2
16567 done
16568 done
16569 IFS=$as_save_IFS
16572 esac
16574 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
16575 if test -n "$ac_pt_DX_DVIPS"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
16577 $as_echo "$ac_pt_DX_DVIPS" >&6; }
16578 else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16583 if test "x$ac_pt_DX_DVIPS" = x; then
16584 DX_DVIPS=""
16585 else
16586 case $cross_compiling:$ac_tool_warned in
16587 yes:)
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16590 ac_tool_warned=yes ;;
16591 esac
16592 DX_DVIPS=$ac_pt_DX_DVIPS
16594 else
16595 DX_DVIPS="$ac_cv_path_DX_DVIPS"
16598 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
16600 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
16601 DX_FLAG_ps=0
16606 if test -n "$ac_tool_prefix"; then
16607 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
16608 set dummy ${ac_tool_prefix}egrep; ac_word=$2
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16610 $as_echo_n "checking for $ac_word... " >&6; }
16611 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 case $DX_EGREP in
16615 [\\/]* | ?:[\\/]*)
16616 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
16619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16620 for as_dir in $PATH
16622 IFS=$as_save_IFS
16623 test -z "$as_dir" && as_dir=.
16624 for ac_exec_ext in '' $ac_executable_extensions; do
16625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16626 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
16627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16628 break 2
16630 done
16631 done
16632 IFS=$as_save_IFS
16635 esac
16637 DX_EGREP=$ac_cv_path_DX_EGREP
16638 if test -n "$DX_EGREP"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
16640 $as_echo "$DX_EGREP" >&6; }
16641 else
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643 $as_echo "no" >&6; }
16648 if test -z "$ac_cv_path_DX_EGREP"; then
16649 ac_pt_DX_EGREP=$DX_EGREP
16650 # Extract the first word of "egrep", so it can be a program name with args.
16651 set dummy egrep; ac_word=$2
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16653 $as_echo_n "checking for $ac_word... " >&6; }
16654 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 case $ac_pt_DX_EGREP in
16658 [\\/]* | ?:[\\/]*)
16659 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
16662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16663 for as_dir in $PATH
16665 IFS=$as_save_IFS
16666 test -z "$as_dir" && as_dir=.
16667 for ac_exec_ext in '' $ac_executable_extensions; do
16668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16669 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
16670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16671 break 2
16673 done
16674 done
16675 IFS=$as_save_IFS
16678 esac
16680 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
16681 if test -n "$ac_pt_DX_EGREP"; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
16683 $as_echo "$ac_pt_DX_EGREP" >&6; }
16684 else
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16686 $as_echo "no" >&6; }
16689 if test "x$ac_pt_DX_EGREP" = x; then
16690 DX_EGREP=""
16691 else
16692 case $cross_compiling:$ac_tool_warned in
16693 yes:)
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16696 ac_tool_warned=yes ;;
16697 esac
16698 DX_EGREP=$ac_pt_DX_EGREP
16700 else
16701 DX_EGREP="$ac_cv_path_DX_EGREP"
16704 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
16706 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
16707 DX_FLAG_ps=0
16713 if test "$DX_FLAG_ps" = 1; then
16714 if :; then
16715 DX_COND_ps_TRUE=
16716 DX_COND_ps_FALSE='#'
16717 else
16718 DX_COND_ps_TRUE='#'
16719 DX_COND_ps_FALSE=
16724 else
16725 if false; then
16726 DX_COND_ps_TRUE=
16727 DX_COND_ps_FALSE='#'
16728 else
16729 DX_COND_ps_TRUE='#'
16730 DX_COND_ps_FALSE=
16738 # PDF file generation:
16742 # Check whether --enable-doxygen-pdf was given.
16743 if test "${enable_doxygen_pdf+set}" = set; then :
16744 enableval=$enable_doxygen_pdf;
16745 case "$enableval" in
16747 y|Y|yes|Yes|YES)
16748 DX_FLAG_pdf=1
16751 test "$DX_FLAG_doc" = "1" \
16752 || as_fn_error "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
16754 ;; #(
16755 n|N|no|No|NO)
16756 DX_FLAG_pdf=0
16758 ;; #(
16760 as_fn_error "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
16762 esac
16764 else
16766 DX_FLAG_pdf=0
16769 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
16775 if test "$DX_FLAG_pdf" = 1; then
16777 if test -n "$ac_tool_prefix"; then
16778 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
16779 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16781 $as_echo_n "checking for $ac_word... " >&6; }
16782 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then :
16783 $as_echo_n "(cached) " >&6
16784 else
16785 case $DX_PDFLATEX in
16786 [\\/]* | ?:[\\/]*)
16787 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
16790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16793 IFS=$as_save_IFS
16794 test -z "$as_dir" && as_dir=.
16795 for ac_exec_ext in '' $ac_executable_extensions; do
16796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16797 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799 break 2
16801 done
16802 done
16803 IFS=$as_save_IFS
16806 esac
16808 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
16809 if test -n "$DX_PDFLATEX"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
16811 $as_echo "$DX_PDFLATEX" >&6; }
16812 else
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814 $as_echo "no" >&6; }
16819 if test -z "$ac_cv_path_DX_PDFLATEX"; then
16820 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
16821 # Extract the first word of "pdflatex", so it can be a program name with args.
16822 set dummy pdflatex; ac_word=$2
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16824 $as_echo_n "checking for $ac_word... " >&6; }
16825 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 case $ac_pt_DX_PDFLATEX in
16829 [\\/]* | ?:[\\/]*)
16830 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
16833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16834 for as_dir in $PATH
16836 IFS=$as_save_IFS
16837 test -z "$as_dir" && as_dir=.
16838 for ac_exec_ext in '' $ac_executable_extensions; do
16839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16840 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16842 break 2
16844 done
16845 done
16846 IFS=$as_save_IFS
16849 esac
16851 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
16852 if test -n "$ac_pt_DX_PDFLATEX"; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
16854 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 $as_echo "no" >&6; }
16860 if test "x$ac_pt_DX_PDFLATEX" = x; then
16861 DX_PDFLATEX=""
16862 else
16863 case $cross_compiling:$ac_tool_warned in
16864 yes:)
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16867 ac_tool_warned=yes ;;
16868 esac
16869 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
16871 else
16872 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
16875 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
16877 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
16878 DX_FLAG_pdf=0
16883 if test -n "$ac_tool_prefix"; then
16884 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16885 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16887 $as_echo_n "checking for $ac_word... " >&6; }
16888 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then :
16889 $as_echo_n "(cached) " >&6
16890 else
16891 case $DX_MAKEINDEX in
16892 [\\/]* | ?:[\\/]*)
16893 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16897 for as_dir in $PATH
16899 IFS=$as_save_IFS
16900 test -z "$as_dir" && as_dir=.
16901 for ac_exec_ext in '' $ac_executable_extensions; do
16902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16903 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16905 break 2
16907 done
16908 done
16909 IFS=$as_save_IFS
16912 esac
16914 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16915 if test -n "$DX_MAKEINDEX"; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16917 $as_echo "$DX_MAKEINDEX" >&6; }
16918 else
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16920 $as_echo "no" >&6; }
16925 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16926 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16927 # Extract the first word of "makeindex", so it can be a program name with args.
16928 set dummy makeindex; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then :
16932 $as_echo_n "(cached) " >&6
16933 else
16934 case $ac_pt_DX_MAKEINDEX in
16935 [\\/]* | ?:[\\/]*)
16936 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940 for as_dir in $PATH
16942 IFS=$as_save_IFS
16943 test -z "$as_dir" && as_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16948 break 2
16950 done
16951 done
16952 IFS=$as_save_IFS
16955 esac
16957 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
16958 if test -n "$ac_pt_DX_MAKEINDEX"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
16960 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
16961 else
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16966 if test "x$ac_pt_DX_MAKEINDEX" = x; then
16967 DX_MAKEINDEX=""
16968 else
16969 case $cross_compiling:$ac_tool_warned in
16970 yes:)
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16973 ac_tool_warned=yes ;;
16974 esac
16975 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
16977 else
16978 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
16981 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
16983 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
16984 DX_FLAG_pdf=0
16989 if test -n "$ac_tool_prefix"; then
16990 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
16991 set dummy ${ac_tool_prefix}egrep; ac_word=$2
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16993 $as_echo_n "checking for $ac_word... " >&6; }
16994 if test "${ac_cv_path_DX_EGREP+set}" = set; then :
16995 $as_echo_n "(cached) " >&6
16996 else
16997 case $DX_EGREP in
16998 [\\/]* | ?:[\\/]*)
16999 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003 for as_dir in $PATH
17005 IFS=$as_save_IFS
17006 test -z "$as_dir" && as_dir=.
17007 for ac_exec_ext in '' $ac_executable_extensions; do
17008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17009 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17011 break 2
17013 done
17014 done
17015 IFS=$as_save_IFS
17018 esac
17020 DX_EGREP=$ac_cv_path_DX_EGREP
17021 if test -n "$DX_EGREP"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17023 $as_echo "$DX_EGREP" >&6; }
17024 else
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17026 $as_echo "no" >&6; }
17031 if test -z "$ac_cv_path_DX_EGREP"; then
17032 ac_pt_DX_EGREP=$DX_EGREP
17033 # Extract the first word of "egrep", so it can be a program name with args.
17034 set dummy egrep; ac_word=$2
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17036 $as_echo_n "checking for $ac_word... " >&6; }
17037 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then :
17038 $as_echo_n "(cached) " >&6
17039 else
17040 case $ac_pt_DX_EGREP in
17041 [\\/]* | ?:[\\/]*)
17042 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046 for as_dir in $PATH
17048 IFS=$as_save_IFS
17049 test -z "$as_dir" && as_dir=.
17050 for ac_exec_ext in '' $ac_executable_extensions; do
17051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17052 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17054 break 2
17056 done
17057 done
17058 IFS=$as_save_IFS
17061 esac
17063 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17064 if test -n "$ac_pt_DX_EGREP"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17066 $as_echo "$ac_pt_DX_EGREP" >&6; }
17067 else
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17072 if test "x$ac_pt_DX_EGREP" = x; then
17073 DX_EGREP=""
17074 else
17075 case $cross_compiling:$ac_tool_warned in
17076 yes:)
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17079 ac_tool_warned=yes ;;
17080 esac
17081 DX_EGREP=$ac_pt_DX_EGREP
17083 else
17084 DX_EGREP="$ac_cv_path_DX_EGREP"
17087 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
17089 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
17090 DX_FLAG_pdf=0
17096 if test "$DX_FLAG_pdf" = 1; then
17097 if :; then
17098 DX_COND_pdf_TRUE=
17099 DX_COND_pdf_FALSE='#'
17100 else
17101 DX_COND_pdf_TRUE='#'
17102 DX_COND_pdf_FALSE=
17107 else
17108 if false; then
17109 DX_COND_pdf_TRUE=
17110 DX_COND_pdf_FALSE='#'
17111 else
17112 DX_COND_pdf_TRUE='#'
17113 DX_COND_pdf_FALSE=
17121 # LaTeX generation for PS and/or PDF:
17122 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17123 if :; then
17124 DX_COND_latex_TRUE=
17125 DX_COND_latex_FALSE='#'
17126 else
17127 DX_COND_latex_TRUE='#'
17128 DX_COND_latex_FALSE=
17131 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
17133 else
17134 if false; then
17135 DX_COND_latex_TRUE=
17136 DX_COND_latex_FALSE='#'
17137 else
17138 DX_COND_latex_TRUE='#'
17139 DX_COND_latex_FALSE=
17142 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
17146 # Paper size for PS and/or PDF:
17148 case "$DOXYGEN_PAPER_SIZE" in
17151 DOXYGEN_PAPER_SIZE=""
17153 ;; #(
17154 a4wide|a4|letter|legal|executive)
17155 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
17157 ;; #(
17159 as_fn_error "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17161 esac
17163 #For debugging:
17164 #echo DX_FLAG_doc=$DX_FLAG_doc
17165 #echo DX_FLAG_dot=$DX_FLAG_dot
17166 #echo DX_FLAG_man=$DX_FLAG_man
17167 #echo DX_FLAG_html=$DX_FLAG_html
17168 #echo DX_FLAG_chm=$DX_FLAG_chm
17169 #echo DX_FLAG_chi=$DX_FLAG_chi
17170 #echo DX_FLAG_rtf=$DX_FLAG_rtf
17171 #echo DX_FLAG_xml=$DX_FLAG_xml
17172 #echo DX_FLAG_pdf=$DX_FLAG_pdf
17173 #echo DX_FLAG_ps=$DX_FLAG_ps
17174 #echo DX_ENV=$DX_ENV
17178 am__api_version='1.11'
17180 # Find a good install program. We prefer a C program (faster),
17181 # so one script is as good as another. But avoid the broken or
17182 # incompatible versions:
17183 # SysV /etc/install, /usr/sbin/install
17184 # SunOS /usr/etc/install
17185 # IRIX /sbin/install
17186 # AIX /bin/install
17187 # AmigaOS /C/install, which installs bootblocks on floppy discs
17188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
17190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17191 # OS/2's system install, which has a completely different semantic
17192 # ./install, which can be erroneously created by make from ./install.sh.
17193 # Reject install programs that cannot install multiple files.
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
17195 $as_echo_n "checking for a BSD-compatible install... " >&6; }
17196 if test -z "$INSTALL"; then
17197 if test "${ac_cv_path_install+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201 for as_dir in $PATH
17203 IFS=$as_save_IFS
17204 test -z "$as_dir" && as_dir=.
17205 # Account for people who put trailing slashes in PATH elements.
17206 case $as_dir/ in #((
17207 ./ | .// | /[cC]/* | \
17208 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17209 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
17210 /usr/ucb/* ) ;;
17212 # OSF1 and SCO ODT 3.0 have their own names for install.
17213 # Don't use installbsd from OSF since it installs stuff as root
17214 # by default.
17215 for ac_prog in ginstall scoinst install; do
17216 for ac_exec_ext in '' $ac_executable_extensions; do
17217 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17218 if test $ac_prog = install &&
17219 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17220 # AIX install. It has an incompatible calling convention.
17222 elif test $ac_prog = install &&
17223 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17224 # program-specific install script used by HP pwplus--don't use.
17226 else
17227 rm -rf conftest.one conftest.two conftest.dir
17228 echo one > conftest.one
17229 echo two > conftest.two
17230 mkdir conftest.dir
17231 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17232 test -s conftest.one && test -s conftest.two &&
17233 test -s conftest.dir/conftest.one &&
17234 test -s conftest.dir/conftest.two
17235 then
17236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17237 break 3
17241 done
17242 done
17244 esac
17246 done
17247 IFS=$as_save_IFS
17249 rm -rf conftest.one conftest.two conftest.dir
17252 if test "${ac_cv_path_install+set}" = set; then
17253 INSTALL=$ac_cv_path_install
17254 else
17255 # As a last resort, use the slow shell script. Don't cache a
17256 # value for INSTALL within a source directory, because that will
17257 # break other packages using the cache if that directory is
17258 # removed, or if the value is a relative name.
17259 INSTALL=$ac_install_sh
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
17263 $as_echo "$INSTALL" >&6; }
17265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17266 # It thinks the first close brace ends the variable substitution.
17267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17273 test "$program_prefix" != NONE &&
17274 program_transform_name="s&^&$program_prefix&;$program_transform_name"
17275 # Use a double $ so make ignores it.
17276 test "$program_suffix" != NONE &&
17277 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
17278 # Double any \ or $.
17279 # By default was `s,x,x', remove it if useless.
17280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
17281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
17283 # expand $ac_aux_dir to an absolute path
17284 am_aux_dir=`cd $ac_aux_dir && pwd`
17286 if test x"${MISSING+set}" != xset; then
17287 case $am_aux_dir in
17288 *\ * | *\ *)
17289 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
17291 MISSING="\${SHELL} $am_aux_dir/missing" ;;
17292 esac
17294 # Use eval to expand $SHELL
17295 if eval "$MISSING --run true"; then
17296 am_missing_run="$MISSING --run "
17297 else
17298 am_missing_run=
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
17300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17303 if test x"${install_sh}" != xset; then
17304 case $am_aux_dir in
17305 *\ * | *\ *)
17306 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
17308 install_sh="\${SHELL} $am_aux_dir/install-sh"
17309 esac
17312 # Installed binaries are usually stripped using `strip' when the user
17313 # run `make install-strip'. However `strip' might not be the right
17314 # tool to use in cross-compilation environments, therefore Automake
17315 # will honor the `STRIP' environment variable to overrule this program.
17316 if test "$cross_compiling" != no; then
17317 if test -n "$ac_tool_prefix"; then
17318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17319 set dummy ${ac_tool_prefix}strip; ac_word=$2
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17321 $as_echo_n "checking for $ac_word... " >&6; }
17322 if test "${ac_cv_prog_STRIP+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 if test -n "$STRIP"; then
17326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17327 else
17328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17329 for as_dir in $PATH
17331 IFS=$as_save_IFS
17332 test -z "$as_dir" && as_dir=.
17333 for ac_exec_ext in '' $ac_executable_extensions; do
17334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17337 break 2
17339 done
17340 done
17341 IFS=$as_save_IFS
17345 STRIP=$ac_cv_prog_STRIP
17346 if test -n "$STRIP"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17348 $as_echo "$STRIP" >&6; }
17349 else
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17356 if test -z "$ac_cv_prog_STRIP"; then
17357 ac_ct_STRIP=$STRIP
17358 # Extract the first word of "strip", so it can be a program name with args.
17359 set dummy strip; ac_word=$2
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17361 $as_echo_n "checking for $ac_word... " >&6; }
17362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
17363 $as_echo_n "(cached) " >&6
17364 else
17365 if test -n "$ac_ct_STRIP"; then
17366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17367 else
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17371 IFS=$as_save_IFS
17372 test -z "$as_dir" && as_dir=.
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17375 ac_cv_prog_ac_ct_STRIP="strip"
17376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17377 break 2
17379 done
17380 done
17381 IFS=$as_save_IFS
17385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17386 if test -n "$ac_ct_STRIP"; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17388 $as_echo "$ac_ct_STRIP" >&6; }
17389 else
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17394 if test "x$ac_ct_STRIP" = x; then
17395 STRIP=":"
17396 else
17397 case $cross_compiling:$ac_tool_warned in
17398 yes:)
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17401 ac_tool_warned=yes ;;
17402 esac
17403 STRIP=$ac_ct_STRIP
17405 else
17406 STRIP="$ac_cv_prog_STRIP"
17410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
17413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
17414 if test -z "$MKDIR_P"; then
17415 if test "${ac_cv_path_mkdir+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
17421 IFS=$as_save_IFS
17422 test -z "$as_dir" && as_dir=.
17423 for ac_prog in mkdir gmkdir; do
17424 for ac_exec_ext in '' $ac_executable_extensions; do
17425 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
17426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
17427 'mkdir (GNU coreutils) '* | \
17428 'mkdir (coreutils) '* | \
17429 'mkdir (fileutils) '4.1*)
17430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
17431 break 3;;
17432 esac
17433 done
17434 done
17435 done
17436 IFS=$as_save_IFS
17440 if test "${ac_cv_path_mkdir+set}" = set; then
17441 MKDIR_P="$ac_cv_path_mkdir -p"
17442 else
17443 # As a last resort, use the slow shell script. Don't cache a
17444 # value for MKDIR_P within a source directory, because that will
17445 # break other packages using the cache if that directory is
17446 # removed, or if the value is a relative name.
17447 test -d ./--version && rmdir ./--version
17448 MKDIR_P="$ac_install_sh -d"
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
17452 $as_echo "$MKDIR_P" >&6; }
17454 mkdir_p="$MKDIR_P"
17455 case $mkdir_p in
17456 [\\/$]* | ?:[\\/]*) ;;
17457 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
17458 esac
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17462 set x ${MAKE-make}
17463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 cat >conftest.make <<\_ACEOF
17468 SHELL = /bin/sh
17469 all:
17470 @echo '@@@%%%=$(MAKE)=@@@%%%'
17471 _ACEOF
17472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17474 *@@@%%%=?*=@@@%%%*)
17475 eval ac_cv_prog_make_${ac_make}_set=yes;;
17477 eval ac_cv_prog_make_${ac_make}_set=no;;
17478 esac
17479 rm -f conftest.make
17481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17483 $as_echo "yes" >&6; }
17484 SET_MAKE=
17485 else
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17487 $as_echo "no" >&6; }
17488 SET_MAKE="MAKE=${MAKE-make}"
17491 rm -rf .tst 2>/dev/null
17492 mkdir .tst 2>/dev/null
17493 if test -d .tst; then
17494 am__leading_dot=.
17495 else
17496 am__leading_dot=_
17498 rmdir .tst 2>/dev/null
17500 DEPDIR="${am__leading_dot}deps"
17502 ac_config_commands="$ac_config_commands depfiles"
17505 am_make=${MAKE-make}
17506 cat > confinc << 'END'
17507 am__doit:
17508 @echo this is the am__doit target
17509 .PHONY: am__doit
17511 # If we don't find an include directive, just comment out the code.
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
17513 $as_echo_n "checking for style of include used by $am_make... " >&6; }
17514 am__include="#"
17515 am__quote=
17516 _am_result=none
17517 # First try GNU make style include.
17518 echo "include confinc" > confmf
17519 # Ignore all kinds of additional output from `make'.
17520 case `$am_make -s -f confmf 2> /dev/null` in #(
17521 *the\ am__doit\ target*)
17522 am__include=include
17523 am__quote=
17524 _am_result=GNU
17526 esac
17527 # Now try BSD make style include.
17528 if test "$am__include" = "#"; then
17529 echo '.include "confinc"' > confmf
17530 case `$am_make -s -f confmf 2> /dev/null` in #(
17531 *the\ am__doit\ target*)
17532 am__include=.include
17533 am__quote="\""
17534 _am_result=BSD
17536 esac
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17541 $as_echo "$_am_result" >&6; }
17542 rm -f confinc confmf
17544 # Check whether --enable-dependency-tracking was given.
17545 if test "${enable_dependency_tracking+set}" = set; then :
17546 enableval=$enable_dependency_tracking;
17549 if test "x$enable_dependency_tracking" != xno; then
17550 am_depcomp="$ac_aux_dir/depcomp"
17551 AMDEPBACKSLASH='\'
17553 if test "x$enable_dependency_tracking" != xno; then
17554 AMDEP_TRUE=
17555 AMDEP_FALSE='#'
17556 else
17557 AMDEP_TRUE='#'
17558 AMDEP_FALSE=
17562 if test "`cd $srcdir && pwd`" != "`pwd`"; then
17563 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17564 # is not polluted with repeated "-I."
17565 am__isrc=' -I$(srcdir)'
17566 # test to see if srcdir already configured
17567 if test -f $srcdir/config.status; then
17568 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17572 # test whether we have cygpath
17573 if test -z "$CYGPATH_W"; then
17574 if (cygpath --version) >/dev/null 2>/dev/null; then
17575 CYGPATH_W='cygpath -w'
17576 else
17577 CYGPATH_W=echo
17582 # Define the identity of the package.
17583 PACKAGE=$PACKAGE
17584 VERSION=$VERSION
17587 # Some tools Automake needs.
17589 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17592 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17595 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17598 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17601 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
17603 # We need awk for the "check" target. The system "awk" is bad on
17604 # some platforms.
17605 # Always define AMTAR for backward compatibility.
17607 AMTAR=${AMTAR-"${am_missing_run}tar"}
17609 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
17614 depcc="$CC" am_compiler_list=
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17617 $as_echo_n "checking dependency style of $depcc... " >&6; }
17618 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17622 # We make a subdir and do the tests there. Otherwise we can end up
17623 # making bogus files that we don't know about and never remove. For
17624 # instance it was reported that on HP-UX the gcc test will end up
17625 # making a dummy file named `D' -- because `-MD' means `put the output
17626 # in D'.
17627 mkdir conftest.dir
17628 # Copy depcomp to subdir because otherwise we won't find it if we're
17629 # using a relative directory.
17630 cp "$am_depcomp" conftest.dir
17631 cd conftest.dir
17632 # We will build objects and dependencies in a subdirectory because
17633 # it helps to detect inapplicable dependency modes. For instance
17634 # both Tru64's cc and ICC support -MD to output dependencies as a
17635 # side effect of compilation, but ICC will put the dependencies in
17636 # the current directory while Tru64 will put them in the object
17637 # directory.
17638 mkdir sub
17640 am_cv_CC_dependencies_compiler_type=none
17641 if test "$am_compiler_list" = ""; then
17642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17644 am__universal=false
17645 case " $depcc " in #(
17646 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17647 esac
17649 for depmode in $am_compiler_list; do
17650 # Setup a source with many dependencies, because some compilers
17651 # like to wrap large dependency lists on column 80 (with \), and
17652 # we should not choose a depcomp mode which is confused by this.
17654 # We need to recreate these files for each test, as the compiler may
17655 # overwrite some of them when testing with obscure command lines.
17656 # This happens at least with the AIX C compiler.
17657 : > sub/conftest.c
17658 for i in 1 2 3 4 5 6; do
17659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17661 # Solaris 8's {/usr,}/bin/sh.
17662 touch sub/conftst$i.h
17663 done
17664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17667 # mode. It turns out that the SunPro C++ compiler does not properly
17668 # handle `-M -o', and we need to detect this. Also, some Intel
17669 # versions had trouble with output in subdirs
17670 am__obj=sub/conftest.${OBJEXT-o}
17671 am__minus_obj="-o $am__obj"
17672 case $depmode in
17673 gcc)
17674 # This depmode causes a compiler race in universal mode.
17675 test "$am__universal" = false || continue
17677 nosideeffect)
17678 # after this tag, mechanisms are not by side-effect, so they'll
17679 # only be used when explicitly requested
17680 if test "x$enable_dependency_tracking" = xyes; then
17681 continue
17682 else
17683 break
17686 msvisualcpp | msvcmsys)
17687 # This compiler won't grok `-c -o', but also, the minuso test has
17688 # not run yet. These depmodes are late enough in the game, and
17689 # so weak that their functioning should not be impacted.
17690 am__obj=conftest.${OBJEXT-o}
17691 am__minus_obj=
17693 none) break ;;
17694 esac
17695 if depmode=$depmode \
17696 source=sub/conftest.c object=$am__obj \
17697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17698 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17699 >/dev/null 2>conftest.err &&
17700 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17702 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17704 # icc doesn't choke on unknown options, it will just issue warnings
17705 # or remarks (even with -Werror). So we grep stderr for any message
17706 # that says an option was ignored or not supported.
17707 # When given -MP, icc 7.0 and 7.1 complain thusly:
17708 # icc: Command line warning: ignoring option '-M'; no argument required
17709 # The diagnosis changed in icc 8.0:
17710 # icc: Command line remark: option '-MP' not supported
17711 if (grep 'ignoring option' conftest.err ||
17712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17713 am_cv_CC_dependencies_compiler_type=$depmode
17714 break
17717 done
17719 cd ..
17720 rm -rf conftest.dir
17721 else
17722 am_cv_CC_dependencies_compiler_type=none
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17727 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17728 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17731 test "x$enable_dependency_tracking" != xno \
17732 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17733 am__fastdepCC_TRUE=
17734 am__fastdepCC_FALSE='#'
17735 else
17736 am__fastdepCC_TRUE='#'
17737 am__fastdepCC_FALSE=
17741 depcc="$CXX" am_compiler_list=
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17744 $as_echo_n "checking dependency style of $depcc... " >&6; }
17745 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17749 # We make a subdir and do the tests there. Otherwise we can end up
17750 # making bogus files that we don't know about and never remove. For
17751 # instance it was reported that on HP-UX the gcc test will end up
17752 # making a dummy file named `D' -- because `-MD' means `put the output
17753 # in D'.
17754 mkdir conftest.dir
17755 # Copy depcomp to subdir because otherwise we won't find it if we're
17756 # using a relative directory.
17757 cp "$am_depcomp" conftest.dir
17758 cd conftest.dir
17759 # We will build objects and dependencies in a subdirectory because
17760 # it helps to detect inapplicable dependency modes. For instance
17761 # both Tru64's cc and ICC support -MD to output dependencies as a
17762 # side effect of compilation, but ICC will put the dependencies in
17763 # the current directory while Tru64 will put them in the object
17764 # directory.
17765 mkdir sub
17767 am_cv_CXX_dependencies_compiler_type=none
17768 if test "$am_compiler_list" = ""; then
17769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17771 am__universal=false
17772 case " $depcc " in #(
17773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17774 esac
17776 for depmode in $am_compiler_list; do
17777 # Setup a source with many dependencies, because some compilers
17778 # like to wrap large dependency lists on column 80 (with \), and
17779 # we should not choose a depcomp mode which is confused by this.
17781 # We need to recreate these files for each test, as the compiler may
17782 # overwrite some of them when testing with obscure command lines.
17783 # This happens at least with the AIX C compiler.
17784 : > sub/conftest.c
17785 for i in 1 2 3 4 5 6; do
17786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17787 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17788 # Solaris 8's {/usr,}/bin/sh.
17789 touch sub/conftst$i.h
17790 done
17791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17794 # mode. It turns out that the SunPro C++ compiler does not properly
17795 # handle `-M -o', and we need to detect this. Also, some Intel
17796 # versions had trouble with output in subdirs
17797 am__obj=sub/conftest.${OBJEXT-o}
17798 am__minus_obj="-o $am__obj"
17799 case $depmode in
17800 gcc)
17801 # This depmode causes a compiler race in universal mode.
17802 test "$am__universal" = false || continue
17804 nosideeffect)
17805 # after this tag, mechanisms are not by side-effect, so they'll
17806 # only be used when explicitly requested
17807 if test "x$enable_dependency_tracking" = xyes; then
17808 continue
17809 else
17810 break
17813 msvisualcpp | msvcmsys)
17814 # This compiler won't grok `-c -o', but also, the minuso test has
17815 # not run yet. These depmodes are late enough in the game, and
17816 # so weak that their functioning should not be impacted.
17817 am__obj=conftest.${OBJEXT-o}
17818 am__minus_obj=
17820 none) break ;;
17821 esac
17822 if depmode=$depmode \
17823 source=sub/conftest.c object=$am__obj \
17824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17826 >/dev/null 2>conftest.err &&
17827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17831 # icc doesn't choke on unknown options, it will just issue warnings
17832 # or remarks (even with -Werror). So we grep stderr for any message
17833 # that says an option was ignored or not supported.
17834 # When given -MP, icc 7.0 and 7.1 complain thusly:
17835 # icc: Command line warning: ignoring option '-M'; no argument required
17836 # The diagnosis changed in icc 8.0:
17837 # icc: Command line remark: option '-MP' not supported
17838 if (grep 'ignoring option' conftest.err ||
17839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17840 am_cv_CXX_dependencies_compiler_type=$depmode
17841 break
17844 done
17846 cd ..
17847 rm -rf conftest.dir
17848 else
17849 am_cv_CXX_dependencies_compiler_type=none
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17854 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17855 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17858 test "x$enable_dependency_tracking" != xno \
17859 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17860 am__fastdepCXX_TRUE=
17861 am__fastdepCXX_FALSE='#'
17862 else
17863 am__fastdepCXX_TRUE='#'
17864 am__fastdepCXX_FALSE=
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
17871 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
17872 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 ac_check_lib_save_LIBS=$LIBS
17876 LIBS="-lfftw3 $LIBS"
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char fftw_plan_dft_r2c_2d ();
17888 main ()
17890 return fftw_plan_dft_r2c_2d ();
17892 return 0;
17894 _ACEOF
17895 if ac_fn_c_try_link "$LINENO"; then :
17896 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
17897 else
17898 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
17905 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
17906 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then :
17907 cat >>confdefs.h <<_ACEOF
17908 #define HAVE_LIBFFTW3 1
17909 _ACEOF
17911 LIBS="-lfftw3 $LIBS"
17913 else
17914 as_fn_error "\"libfftw3 not installed\"" "$LINENO" 5
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
17919 $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
17920 if test "${ac_cv_lib_hdf5_H5Fopen+set}" = set; then :
17921 $as_echo_n "(cached) " >&6
17922 else
17923 ac_check_lib_save_LIBS=$LIBS
17924 LIBS="-lhdf5 $LIBS"
17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h. */
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 char H5Fopen ();
17936 main ()
17938 return H5Fopen ();
17940 return 0;
17942 _ACEOF
17943 if ac_fn_c_try_link "$LINENO"; then :
17944 ac_cv_lib_hdf5_H5Fopen=yes
17945 else
17946 ac_cv_lib_hdf5_H5Fopen=no
17948 rm -f core conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17950 LIBS=$ac_check_lib_save_LIBS
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
17953 $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
17954 if test "x$ac_cv_lib_hdf5_H5Fopen" = x""yes; then :
17955 cat >>confdefs.h <<_ACEOF
17956 #define HAVE_LIBHDF5 1
17957 _ACEOF
17959 LIBS="-lhdf5 $LIBS"
17961 else
17962 as_fn_error "\"libhdf5 not installed\"" "$LINENO" 5
17968 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17969 if test -n "$ac_tool_prefix"; then
17970 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17971 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17973 $as_echo_n "checking for $ac_word... " >&6; }
17974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17975 $as_echo_n "(cached) " >&6
17976 else
17977 case $PKG_CONFIG in
17978 [\\/]* | ?:[\\/]*)
17979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17983 for as_dir in $PATH
17985 IFS=$as_save_IFS
17986 test -z "$as_dir" && as_dir=.
17987 for ac_exec_ext in '' $ac_executable_extensions; do
17988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17991 break 2
17993 done
17994 done
17995 IFS=$as_save_IFS
17998 esac
18000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18001 if test -n "$PKG_CONFIG"; then
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18003 $as_echo "$PKG_CONFIG" >&6; }
18004 else
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18006 $as_echo "no" >&6; }
18011 if test -z "$ac_cv_path_PKG_CONFIG"; then
18012 ac_pt_PKG_CONFIG=$PKG_CONFIG
18013 # Extract the first word of "pkg-config", so it can be a program name with args.
18014 set dummy pkg-config; ac_word=$2
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18016 $as_echo_n "checking for $ac_word... " >&6; }
18017 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 case $ac_pt_PKG_CONFIG in
18021 [\\/]* | ?:[\\/]*)
18022 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18026 for as_dir in $PATH
18028 IFS=$as_save_IFS
18029 test -z "$as_dir" && as_dir=.
18030 for ac_exec_ext in '' $ac_executable_extensions; do
18031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18034 break 2
18036 done
18037 done
18038 IFS=$as_save_IFS
18041 esac
18043 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18044 if test -n "$ac_pt_PKG_CONFIG"; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18046 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18047 else
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18049 $as_echo "no" >&6; }
18052 if test "x$ac_pt_PKG_CONFIG" = x; then
18053 PKG_CONFIG=""
18054 else
18055 case $cross_compiling:$ac_tool_warned in
18056 yes:)
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18059 ac_tool_warned=yes ;;
18060 esac
18061 PKG_CONFIG=$ac_pt_PKG_CONFIG
18063 else
18064 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18068 if test -n "$PKG_CONFIG"; then
18069 _pkg_min_version=0.9.0
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18071 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18072 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18074 $as_echo "yes" >&6; }
18075 else
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18078 PKG_CONFIG=""
18083 pkg_failed=no
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
18085 $as_echo_n "checking for GLIB... " >&6; }
18087 if test -n "$PKG_CONFIG"; then
18088 if test -n "$GLIB_CFLAGS"; then
18089 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
18090 else
18091 if test -n "$PKG_CONFIG" && \
18092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0.0\""; } >&5
18093 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0") 2>&5
18094 ac_status=$?
18095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18096 test $ac_status = 0; }; then
18097 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.0" 2>/dev/null`
18098 else
18099 pkg_failed=yes
18102 else
18103 pkg_failed=untried
18105 if test -n "$PKG_CONFIG"; then
18106 if test -n "$GLIB_LIBS"; then
18107 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
18108 else
18109 if test -n "$PKG_CONFIG" && \
18110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0.0\""; } >&5
18111 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0") 2>&5
18112 ac_status=$?
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; }; then
18115 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.0" 2>/dev/null`
18116 else
18117 pkg_failed=yes
18120 else
18121 pkg_failed=untried
18126 if test $pkg_failed = yes; then
18128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18129 _pkg_short_errors_supported=yes
18130 else
18131 _pkg_short_errors_supported=no
18133 if test $_pkg_short_errors_supported = yes; then
18134 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
18135 else
18136 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
18138 # Put the nasty error message in config.log where it belongs
18139 echo "$GLIB_PKG_ERRORS" >&5
18141 as_fn_error "Package requirements (glib-2.0 >= 2.0.0) were not met:
18143 $GLIB_PKG_ERRORS
18145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18146 installed software in a non-standard prefix.
18148 Alternatively, you may set the environment variables GLIB_CFLAGS
18149 and GLIB_LIBS to avoid the need to call pkg-config.
18150 See the pkg-config man page for more details.
18151 " "$LINENO" 5
18152 elif test $pkg_failed = untried; then
18153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18155 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
18156 is in your PATH or set the PKG_CONFIG environment variable to the full
18157 path to pkg-config.
18159 Alternatively, you may set the environment variables GLIB_CFLAGS
18160 and GLIB_LIBS to avoid the need to call pkg-config.
18161 See the pkg-config man page for more details.
18163 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18164 See \`config.log' for more details." "$LINENO" 5; }
18165 else
18166 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
18167 GLIB_LIBS=$pkg_cv_GLIB_LIBS
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18169 $as_echo "yes" >&6; }
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
18176 $as_echo_n "checking for main in -lm... " >&6; }
18177 if test "${ac_cv_lib_m_main+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180 ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lm $LIBS"
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18187 main ()
18189 return main ();
18191 return 0;
18193 _ACEOF
18194 if ac_fn_c_try_link "$LINENO"; then :
18195 ac_cv_lib_m_main=yes
18196 else
18197 ac_cv_lib_m_main=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
18204 $as_echo "$ac_cv_lib_m_main" >&6; }
18205 if test "x$ac_cv_lib_m_main" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define HAVE_LIBM 1
18208 _ACEOF
18210 LIBS="-lm $LIBS"
18212 else
18213 as_fn_error "\"libm not installed\"" "$LINENO" 5
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgslcblas" >&5
18218 $as_echo_n "checking for main in -lgslcblas... " >&6; }
18219 if test "${ac_cv_lib_gslcblas_main+set}" = set; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 ac_check_lib_save_LIBS=$LIBS
18223 LIBS="-lgslcblas $LIBS"
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18229 main ()
18231 return main ();
18233 return 0;
18235 _ACEOF
18236 if ac_fn_c_try_link "$LINENO"; then :
18237 ac_cv_lib_gslcblas_main=yes
18238 else
18239 ac_cv_lib_gslcblas_main=no
18241 rm -f core conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_main" >&5
18246 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
18247 if test "x$ac_cv_lib_gslcblas_main" = x""yes; then :
18248 cat >>confdefs.h <<_ACEOF
18249 #define HAVE_LIBGSLCBLAS 1
18250 _ACEOF
18252 LIBS="-lgslcblas $LIBS"
18254 else
18255 as_fn_error "\"libgslcblas not installed\"" "$LINENO" 5
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgsl" >&5
18260 $as_echo_n "checking for main in -lgsl... " >&6; }
18261 if test "${ac_cv_lib_gsl_main+set}" = set; then :
18262 $as_echo_n "(cached) " >&6
18263 else
18264 ac_check_lib_save_LIBS=$LIBS
18265 LIBS="-lgsl $LIBS"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18271 main ()
18273 return main ();
18275 return 0;
18277 _ACEOF
18278 if ac_fn_c_try_link "$LINENO"; then :
18279 ac_cv_lib_gsl_main=yes
18280 else
18281 ac_cv_lib_gsl_main=no
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_main" >&5
18288 $as_echo "$ac_cv_lib_gsl_main" >&6; }
18289 if test "x$ac_cv_lib_gsl_main" = x""yes; then :
18290 cat >>confdefs.h <<_ACEOF
18291 #define HAVE_LIBGSL 1
18292 _ACEOF
18294 LIBS="-lgsl $LIBS"
18296 else
18297 as_fn_error "\"libgsl not installed\"" "$LINENO" 5
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_malloc0 in -lglib-2.0" >&5
18302 $as_echo_n "checking for g_malloc0 in -lglib-2.0... " >&6; }
18303 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 ac_check_lib_save_LIBS=$LIBS
18307 LIBS="-lglib-2.0 $LIBS"
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char g_malloc0 ();
18319 main ()
18321 return g_malloc0 ();
18323 return 0;
18325 _ACEOF
18326 if ac_fn_c_try_link "$LINENO"; then :
18327 ac_cv_lib_glib_2_0_g_malloc0=yes
18328 else
18329 ac_cv_lib_glib_2_0_g_malloc0=no
18331 rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
18336 $as_echo "$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
18337 if test "x$ac_cv_lib_glib_2_0_g_malloc0" = x""yes; then :
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_LIBGLIB_2_0 1
18340 _ACEOF
18342 LIBS="-lglib-2.0 $LIBS"
18344 else
18345 as_fn_error "\"libglib-2.0 not installed\"" "$LINENO" 5
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
18350 $as_echo_n "checking for main in -lpng... " >&6; }
18351 if test "${ac_cv_lib_png_main+set}" = set; then :
18352 $as_echo_n "(cached) " >&6
18353 else
18354 ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-lpng $LIBS"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18361 main ()
18363 return main ();
18365 return 0;
18367 _ACEOF
18368 if ac_fn_c_try_link "$LINENO"; then :
18369 ac_cv_lib_png_main=yes
18370 else
18371 ac_cv_lib_png_main=no
18373 rm -f core conftest.err conftest.$ac_objext \
18374 conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
18378 $as_echo "$ac_cv_lib_png_main" >&6; }
18379 if test "x$ac_cv_lib_png_main" = x""yes; then :
18380 cat >>confdefs.h <<_ACEOF
18381 #define HAVE_LIBPNG 1
18382 _ACEOF
18384 LIBS="-lpng $LIBS"
18386 else
18387 as_fn_error "\"libpng not installed\"" "$LINENO" 5
18391 # Extract the first word of "pnmtopng", so it can be a program name with args.
18392 set dummy pnmtopng; ac_word=$2
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18394 $as_echo_n "checking for $ac_word... " >&6; }
18395 if test "${ac_cv_prog_PNMTOPNG+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 if test -n "$PNMTOPNG"; then
18399 ac_cv_prog_PNMTOPNG="$PNMTOPNG" # Let the user override the test.
18400 else
18401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18404 IFS=$as_save_IFS
18405 test -z "$as_dir" && as_dir=.
18406 for ac_exec_ext in '' $ac_executable_extensions; do
18407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18408 ac_cv_prog_PNMTOPNG="true"
18409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18410 break 2
18412 done
18413 done
18414 IFS=$as_save_IFS
18416 test -z "$ac_cv_prog_PNMTOPNG" && ac_cv_prog_PNMTOPNG="false"
18419 PNMTOPNG=$ac_cv_prog_PNMTOPNG
18420 if test -n "$PNMTOPNG"; then
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNMTOPNG" >&5
18422 $as_echo "$PNMTOPNG" >&6; }
18423 else
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18425 $as_echo "no" >&6; }
18429 if test x$PNMTOPNG = xfalse ; then
18430 as_fn_error "\"pnmtopng from netpbm not installed\"" "$LINENO" 5;
18434 # Check whether --enable-cam was given.
18435 if test "${enable_cam+set}" = set; then :
18436 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
18443 # Check whether --enable-trig was given.
18444 if test "${enable_trig+set}" = set; then :
18445 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
18452 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_destroy_handle in -lraw1394" >&5
18454 $as_echo_n "checking for raw1394_destroy_handle in -lraw1394... " >&6; }
18455 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then :
18456 $as_echo_n "(cached) " >&6
18457 else
18458 ac_check_lib_save_LIBS=$LIBS
18459 LIBS="-lraw1394 $LIBS"
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char raw1394_destroy_handle ();
18471 main ()
18473 return raw1394_destroy_handle ();
18475 return 0;
18477 _ACEOF
18478 if ac_fn_c_try_link "$LINENO"; then :
18479 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
18480 else
18481 ac_cv_lib_raw1394_raw1394_destroy_handle=no
18483 rm -f core conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
18488 $as_echo "$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
18489 if test "x$ac_cv_lib_raw1394_raw1394_destroy_handle" = x""yes; then :
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_LIBRAW1394 1
18492 _ACEOF
18494 LIBS="-lraw1394 $LIBS"
18496 else
18497 as_fn_error "\"libraw1394 not installed\"" "$LINENO" 5
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_create_handle in -ldc1394_control" >&5
18502 $as_echo_n "checking for dc1394_create_handle in -ldc1394_control... " >&6; }
18503 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then :
18504 $as_echo_n "(cached) " >&6
18505 else
18506 ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-ldc1394_control $LIBS"
18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18511 /* Override any GCC internal prototype to avoid an error.
18512 Use char because int might match the return type of a GCC
18513 builtin and then its argument prototype would still apply. */
18514 #ifdef __cplusplus
18515 extern "C"
18516 #endif
18517 char dc1394_create_handle ();
18519 main ()
18521 return dc1394_create_handle ();
18523 return 0;
18525 _ACEOF
18526 if ac_fn_c_try_link "$LINENO"; then :
18527 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
18528 else
18529 ac_cv_lib_dc1394_control_dc1394_create_handle=no
18531 rm -f core conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18533 LIBS=$ac_check_lib_save_LIBS
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
18536 $as_echo "$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
18537 if test "x$ac_cv_lib_dc1394_control_dc1394_create_handle" = x""yes; then :
18538 cat >>confdefs.h <<_ACEOF
18539 #define HAVE_LIBDC1394_CONTROL 1
18540 _ACEOF
18542 LIBS="-ldc1394_control $LIBS"
18544 else
18545 as_fn_error "\"libdc1394_control not installed\"" "$LINENO" 5
18549 ac_fn_c_check_header_mongrel "$LINENO" "libdc1394/dc1394_control.h" "ac_cv_header_libdc1394_dc1394_control_h" "$ac_includes_default"
18550 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then :
18552 else
18553 as_fn_error "\"missing dc1394_control.h\"" "$LINENO" 5
18558 ac_fn_c_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
18559 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
18561 else
18562 as_fn_error "\"missing raw1394.h\"" "$LINENO" 5
18569 # Check whether --enable-rta was given.
18570 if test "${enable_rta+set}" = set; then :
18571 enableval=$enable_rta; RTA_TOPDIR="$enableval"
18572 else
18573 RTA_TOPDIR="/usr/lib/realtime"
18581 # Check whether --enable-mpi was given.
18582 if test "${enable_mpi+set}" = set; then :
18583 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
18590 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
18596 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
18598 # Extract the first word of "$ac_prog", so it can be a program name with args.
18599 set dummy $ac_prog; ac_word=$2
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18601 $as_echo_n "checking for $ac_word... " >&6; }
18602 if test "${ac_cv_prog_MPICC+set}" = set; then :
18603 $as_echo_n "(cached) " >&6
18604 else
18605 if test -n "$MPICC"; then
18606 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
18607 else
18608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18609 for as_dir in $PATH
18611 IFS=$as_save_IFS
18612 test -z "$as_dir" && as_dir=.
18613 for ac_exec_ext in '' $ac_executable_extensions; do
18614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18615 ac_cv_prog_MPICC="$ac_prog"
18616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18617 break 2
18619 done
18620 done
18621 IFS=$as_save_IFS
18625 MPICC=$ac_cv_prog_MPICC
18626 if test -n "$MPICC"; then
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
18628 $as_echo "$MPICC" >&6; }
18629 else
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18635 test -n "$MPICC" && break
18636 done
18637 test -n "$MPICC" || MPICC="$CC"
18639 acx_mpi_save_CC="$CC"
18640 CC="$MPICC"
18644 if test x = x"$MPILIBS"; then
18645 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
18646 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
18647 MPILIBS=" "
18651 if test x = x"$MPILIBS"; then
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
18653 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
18654 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
18655 $as_echo_n "(cached) " >&6
18656 else
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lmpi $LIBS"
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char MPI_Init ();
18670 main ()
18672 return MPI_Init ();
18674 return 0;
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678 ac_cv_lib_mpi_MPI_Init=yes
18679 else
18680 ac_cv_lib_mpi_MPI_Init=no
18682 rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
18687 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
18688 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
18689 MPILIBS="-lmpi"
18693 if test x = x"$MPILIBS"; then
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
18695 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
18696 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18698 else
18699 ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lmpich $LIBS"
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18704 /* Override any GCC internal prototype to avoid an error.
18705 Use char because int might match the return type of a GCC
18706 builtin and then its argument prototype would still apply. */
18707 #ifdef __cplusplus
18708 extern "C"
18709 #endif
18710 char MPI_Init ();
18712 main ()
18714 return MPI_Init ();
18716 return 0;
18718 _ACEOF
18719 if ac_fn_c_try_link "$LINENO"; then :
18720 ac_cv_lib_mpich_MPI_Init=yes
18721 else
18722 ac_cv_lib_mpich_MPI_Init=no
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
18729 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
18730 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
18731 MPILIBS="-lmpich"
18736 if test x != x"$MPILIBS"; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
18738 $as_echo_n "checking for mpi.h... " >&6; }
18739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18741 #include <mpi.h>
18743 main ()
18747 return 0;
18749 _ACEOF
18750 if ac_fn_c_try_compile "$LINENO"; then :
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18753 else
18754 MPILIBS=""
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 CC="$acx_mpi_save_CC"
18765 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18766 if test x = x"$MPILIBS"; then
18767 as_fn_error "\"libmpi IS NOT installed\"" "$LINENO" 5
18769 else
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmpi HAS BEEN installed\"" >&5
18771 $as_echo "$as_me: WARNING: \"libmpi HAS BEEN installed\"" >&2;}
18776 CC="$MPICC"
18777 LIBS="$MPILIBS $LIBS"
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpi" >&5
18780 $as_echo_n "checking for main in -lmpi... " >&6; }
18781 if test "${ac_cv_lib_mpi_main+set}" = set; then :
18782 $as_echo_n "(cached) " >&6
18783 else
18784 ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lmpi $LIBS"
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18791 main ()
18793 return main ();
18795 return 0;
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 ac_cv_lib_mpi_main=yes
18800 else
18801 ac_cv_lib_mpi_main=no
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_main" >&5
18808 $as_echo "$ac_cv_lib_mpi_main" >&6; }
18809 if test "x$ac_cv_lib_mpi_main" = x""yes; then :
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_LIBMPI 1
18812 _ACEOF
18814 LIBS="-lmpi $LIBS"
18816 else
18817 as_fn_error "\"libmpi not installed\"" "$LINENO" 5
18820 ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
18821 if test "x$ac_cv_header_mpi_h" = x""yes; then :
18823 else
18824 as_fn_error "\"missing mpi.h\"" "$LINENO" 5
18830 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
18831 BUILD_MPI_TRUE=
18832 BUILD_MPI_FALSE='#'
18833 else
18834 BUILD_MPI_TRUE='#'
18835 BUILD_MPI_FALSE=
18842 # Check whether --enable-omp was given.
18843 if test "${enable_omp+set}" = set; then :
18844 enableval=$enable_omp; ENABLE_OMP="ENABLE_OMP"
18849 if test "${ENABLE_OMP}" == 'ENABLE_OMP'; then
18850 CC="$CC -fopenmp"
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgomp" >&5
18853 $as_echo_n "checking for main in -lgomp... " >&6; }
18854 if test "${ac_cv_lib_gomp_main+set}" = set; then :
18855 $as_echo_n "(cached) " >&6
18856 else
18857 ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-lgomp $LIBS"
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18864 main ()
18866 return main ();
18868 return 0;
18870 _ACEOF
18871 if ac_fn_c_try_link "$LINENO"; then :
18872 ac_cv_lib_gomp_main=yes
18873 else
18874 ac_cv_lib_gomp_main=no
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_main" >&5
18881 $as_echo "$ac_cv_lib_gomp_main" >&6; }
18882 if test "x$ac_cv_lib_gomp_main" = x""yes; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define HAVE_LIBGOMP 1
18885 _ACEOF
18887 LIBS="-lgomp $LIBS"
18889 else
18890 as_fn_error "\"libgomp not installed\"" "$LINENO" 5
18893 ac_fn_c_check_header_mongrel "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
18894 if test "x$ac_cv_header_omp_h" = x""yes; then :
18896 else
18897 as_fn_error "\"missing omp.h\"" "$LINENO" 5
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfftw3_threads" >&5
18903 $as_echo_n "checking for main in -lfftw3_threads... " >&6; }
18904 if test "${ac_cv_lib_fftw3_threads_main+set}" = set; then :
18905 $as_echo_n "(cached) " >&6
18906 else
18907 ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-lfftw3_threads $LIBS"
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18914 main ()
18916 return main ();
18918 return 0;
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 ac_cv_lib_fftw3_threads_main=yes
18923 else
18924 ac_cv_lib_fftw3_threads_main=no
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_threads_main" >&5
18931 $as_echo "$ac_cv_lib_fftw3_threads_main" >&6; }
18932 if test "x$ac_cv_lib_fftw3_threads_main" = x""yes; then :
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_LIBFFTW3_THREADS 1
18935 _ACEOF
18937 LIBS="-lfftw3_threads $LIBS"
18939 else
18940 as_fn_error "\"libfftw3_threads not installed\"" "$LINENO" 5
18947 for ac_header in stdlib.h string.h time.h unistd.h fftw3.h hdf5.h \
18948 png.h
18949 do :
18950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18951 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18952 eval as_val=\$$as_ac_Header
18953 if test "x$as_val" = x""yes; then :
18954 cat >>confdefs.h <<_ACEOF
18955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18956 _ACEOF
18960 done
18963 for ac_func in memset sqrt strstr
18964 do :
18965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18967 eval as_val=\$$as_ac_var
18968 if test "x$as_val" = x""yes; then :
18969 cat >>confdefs.h <<_ACEOF
18970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18971 _ACEOF
18974 done
18978 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/gpiv/Makefile"
18980 cat >confcache <<\_ACEOF
18981 # This file is a shell script that caches the results of configure
18982 # tests run on this system so they can be shared between configure
18983 # scripts and configure runs, see configure's option --config-cache.
18984 # It is not useful on other systems. If it contains results you don't
18985 # want to keep, you may remove or edit it.
18987 # config.status only pays attention to the cache file if you give it
18988 # the --recheck option to rerun configure.
18990 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18991 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18992 # following values.
18994 _ACEOF
18996 # The following way of writing the cache mishandles newlines in values,
18997 # but we know of no workaround that is simple, portable, and efficient.
18998 # So, we kill variables containing newlines.
18999 # Ultrix sh set writes to stderr and can't be redirected directly,
19000 # and sets the high bit in the cache file unless we assign to the vars.
19002 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19003 eval ac_val=\$$ac_var
19004 case $ac_val in #(
19005 *${as_nl}*)
19006 case $ac_var in #(
19007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19009 esac
19010 case $ac_var in #(
19011 _ | IFS | as_nl) ;; #(
19012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19013 *) { eval $ac_var=; unset $ac_var;} ;;
19014 esac ;;
19015 esac
19016 done
19018 (set) 2>&1 |
19019 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19020 *${as_nl}ac_space=\ *)
19021 # `set' does not quote correctly, so add quotes: double-quote
19022 # substitution turns \\\\ into \\, and sed turns \\ into \.
19023 sed -n \
19024 "s/'/'\\\\''/g;
19025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19026 ;; #(
19028 # `set' quotes correctly as required by POSIX, so do not add quotes.
19029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19031 esac |
19032 sort
19034 sed '
19035 /^ac_cv_env_/b end
19036 t clear
19037 :clear
19038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19039 t end
19040 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19041 :end' >>confcache
19042 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19043 if test -w "$cache_file"; then
19044 test "x$cache_file" != "x/dev/null" &&
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19046 $as_echo "$as_me: updating cache $cache_file" >&6;}
19047 cat confcache >$cache_file
19048 else
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19050 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19053 rm -f confcache
19055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19056 # Let make expand exec_prefix.
19057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19059 DEFS=-DHAVE_CONFIG_H
19061 ac_libobjs=
19062 ac_ltlibobjs=
19063 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19064 # 1. Remove the extension, and $U if already installed.
19065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19066 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19068 # will be set to the directory where LIBOBJS objects are built.
19069 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19070 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19071 done
19072 LIBOBJS=$ac_libobjs
19074 LTLIBOBJS=$ac_ltlibobjs
19077 if test -z "${HAVE_GNUPLOT_TRUE}" && test -z "${HAVE_GNUPLOT_FALSE}"; then
19078 as_fn_error "conditional \"HAVE_GNUPLOT\" was never defined.
19079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19081 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
19082 as_fn_error "conditional \"HAVE_PERL\" was never defined.
19083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19085 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19086 as_fn_error "conditional \"DX_COND_doc\" was never defined.
19087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19089 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19090 as_fn_error "conditional \"DX_COND_doc\" was never defined.
19091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19094 as_fn_error "conditional \"DX_COND_dot\" was never defined.
19095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19098 as_fn_error "conditional \"DX_COND_dot\" was never defined.
19099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19101 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19102 as_fn_error "conditional \"DX_COND_man\" was never defined.
19103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19105 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19106 as_fn_error "conditional \"DX_COND_man\" was never defined.
19107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19109 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19110 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
19111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19113 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19114 as_fn_error "conditional \"DX_COND_rtf\" was never defined.
19115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19117 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19118 as_fn_error "conditional \"DX_COND_xml\" was never defined.
19119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19121 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19122 as_fn_error "conditional \"DX_COND_xml\" was never defined.
19123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19125 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19126 as_fn_error "conditional \"DX_COND_chm\" was never defined.
19127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19129 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19130 as_fn_error "conditional \"DX_COND_chm\" was never defined.
19131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19133 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19134 as_fn_error "conditional \"DX_COND_chi\" was never defined.
19135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19137 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19138 as_fn_error "conditional \"DX_COND_chi\" was never defined.
19139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19141 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19142 as_fn_error "conditional \"DX_COND_html\" was never defined.
19143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19145 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19146 as_fn_error "conditional \"DX_COND_html\" was never defined.
19147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19149 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19150 as_fn_error "conditional \"DX_COND_ps\" was never defined.
19151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19153 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19154 as_fn_error "conditional \"DX_COND_ps\" was never defined.
19155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19157 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19158 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
19159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19161 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19162 as_fn_error "conditional \"DX_COND_pdf\" was never defined.
19163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19165 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19166 as_fn_error "conditional \"DX_COND_latex\" was never defined.
19167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19169 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19170 as_fn_error "conditional \"DX_COND_latex\" was never defined.
19171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19173 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19174 as_fn_error "conditional \"AMDEP\" was never defined.
19175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19178 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19181 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19182 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19185 if test -n "$EXEEXT"; then
19186 am__EXEEXT_TRUE=
19187 am__EXEEXT_FALSE='#'
19188 else
19189 am__EXEEXT_TRUE='#'
19190 am__EXEEXT_FALSE=
19193 if test -z "${BUILD_MPI_TRUE}" && test -z "${BUILD_MPI_FALSE}"; then
19194 as_fn_error "conditional \"BUILD_MPI\" was never defined.
19195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19198 : ${CONFIG_STATUS=./config.status}
19199 ac_write_fail=0
19200 ac_clean_files_save=$ac_clean_files
19201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19203 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19204 as_write_fail=0
19205 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19206 #! $SHELL
19207 # Generated by $as_me.
19208 # Run this file to recreate the current configuration.
19209 # Compiler output produced by configure, useful for debugging
19210 # configure, is in config.log if it exists.
19212 debug=false
19213 ac_cs_recheck=false
19214 ac_cs_silent=false
19216 SHELL=\${CONFIG_SHELL-$SHELL}
19217 export SHELL
19218 _ASEOF
19219 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19220 ## -------------------- ##
19221 ## M4sh Initialization. ##
19222 ## -------------------- ##
19224 # Be more Bourne compatible
19225 DUALCASE=1; export DUALCASE # for MKS sh
19226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19227 emulate sh
19228 NULLCMD=:
19229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19230 # is contrary to our usage. Disable this feature.
19231 alias -g '${1+"$@"}'='"$@"'
19232 setopt NO_GLOB_SUBST
19233 else
19234 case `(set -o) 2>/dev/null` in #(
19235 *posix*) :
19236 set -o posix ;; #(
19237 *) :
19239 esac
19243 as_nl='
19245 export as_nl
19246 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19247 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19250 # Prefer a ksh shell builtin over an external printf program on Solaris,
19251 # but without wasting forks for bash or zsh.
19252 if test -z "$BASH_VERSION$ZSH_VERSION" \
19253 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19254 as_echo='print -r --'
19255 as_echo_n='print -rn --'
19256 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19257 as_echo='printf %s\n'
19258 as_echo_n='printf %s'
19259 else
19260 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19261 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19262 as_echo_n='/usr/ucb/echo -n'
19263 else
19264 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19265 as_echo_n_body='eval
19266 arg=$1;
19267 case $arg in #(
19268 *"$as_nl"*)
19269 expr "X$arg" : "X\\(.*\\)$as_nl";
19270 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19271 esac;
19272 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19274 export as_echo_n_body
19275 as_echo_n='sh -c $as_echo_n_body as_echo'
19277 export as_echo_body
19278 as_echo='sh -c $as_echo_body as_echo'
19281 # The user is always right.
19282 if test "${PATH_SEPARATOR+set}" != set; then
19283 PATH_SEPARATOR=:
19284 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19285 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19286 PATH_SEPARATOR=';'
19291 # IFS
19292 # We need space, tab and new line, in precisely that order. Quoting is
19293 # there to prevent editors from complaining about space-tab.
19294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19295 # splitting by setting IFS to empty value.)
19296 IFS=" "" $as_nl"
19298 # Find who we are. Look in the path if we contain no directory separator.
19299 case $0 in #((
19300 *[\\/]* ) as_myself=$0 ;;
19301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19302 for as_dir in $PATH
19304 IFS=$as_save_IFS
19305 test -z "$as_dir" && as_dir=.
19306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19307 done
19308 IFS=$as_save_IFS
19311 esac
19312 # We did not find ourselves, most probably we were run as `sh COMMAND'
19313 # in which case we are not to be found in the path.
19314 if test "x$as_myself" = x; then
19315 as_myself=$0
19317 if test ! -f "$as_myself"; then
19318 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19319 exit 1
19322 # Unset variables that we do not need and which cause bugs (e.g. in
19323 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19324 # suppresses any "Segmentation fault" message there. '((' could
19325 # trigger a bug in pdksh 5.2.14.
19326 for as_var in BASH_ENV ENV MAIL MAILPATH
19327 do eval test x\${$as_var+set} = xset \
19328 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19329 done
19330 PS1='$ '
19331 PS2='> '
19332 PS4='+ '
19334 # NLS nuisances.
19335 LC_ALL=C
19336 export LC_ALL
19337 LANGUAGE=C
19338 export LANGUAGE
19340 # CDPATH.
19341 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19344 # as_fn_error ERROR [LINENO LOG_FD]
19345 # ---------------------------------
19346 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19347 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19348 # script with status $?, using 1 if that was 0.
19349 as_fn_error ()
19351 as_status=$?; test $as_status -eq 0 && as_status=1
19352 if test "$3"; then
19353 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19354 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19356 $as_echo "$as_me: error: $1" >&2
19357 as_fn_exit $as_status
19358 } # as_fn_error
19361 # as_fn_set_status STATUS
19362 # -----------------------
19363 # Set $? to STATUS, without forking.
19364 as_fn_set_status ()
19366 return $1
19367 } # as_fn_set_status
19369 # as_fn_exit STATUS
19370 # -----------------
19371 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19372 as_fn_exit ()
19374 set +e
19375 as_fn_set_status $1
19376 exit $1
19377 } # as_fn_exit
19379 # as_fn_unset VAR
19380 # ---------------
19381 # Portably unset VAR.
19382 as_fn_unset ()
19384 { eval $1=; unset $1;}
19386 as_unset=as_fn_unset
19387 # as_fn_append VAR VALUE
19388 # ----------------------
19389 # Append the text in VALUE to the end of the definition contained in VAR. Take
19390 # advantage of any shell optimizations that allow amortized linear growth over
19391 # repeated appends, instead of the typical quadratic growth present in naive
19392 # implementations.
19393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19394 eval 'as_fn_append ()
19396 eval $1+=\$2
19398 else
19399 as_fn_append ()
19401 eval $1=\$$1\$2
19403 fi # as_fn_append
19405 # as_fn_arith ARG...
19406 # ------------------
19407 # Perform arithmetic evaluation on the ARGs, and store the result in the
19408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19409 # must be portable across $(()) and expr.
19410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19411 eval 'as_fn_arith ()
19413 as_val=$(( $* ))
19415 else
19416 as_fn_arith ()
19418 as_val=`expr "$@" || test $? -eq 1`
19420 fi # as_fn_arith
19423 if expr a : '\(a\)' >/dev/null 2>&1 &&
19424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19425 as_expr=expr
19426 else
19427 as_expr=false
19430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19431 as_basename=basename
19432 else
19433 as_basename=false
19436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19437 as_dirname=dirname
19438 else
19439 as_dirname=false
19442 as_me=`$as_basename -- "$0" ||
19443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19444 X"$0" : 'X\(//\)$' \| \
19445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19446 $as_echo X/"$0" |
19447 sed '/^.*\/\([^/][^/]*\)\/*$/{
19448 s//\1/
19451 /^X\/\(\/\/\)$/{
19452 s//\1/
19455 /^X\/\(\/\).*/{
19456 s//\1/
19459 s/.*/./; q'`
19461 # Avoid depending upon Character Ranges.
19462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19465 as_cr_digits='0123456789'
19466 as_cr_alnum=$as_cr_Letters$as_cr_digits
19468 ECHO_C= ECHO_N= ECHO_T=
19469 case `echo -n x` in #(((((
19470 -n*)
19471 case `echo 'xy\c'` in
19472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19473 xy) ECHO_C='\c';;
19474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19475 ECHO_T=' ';;
19476 esac;;
19478 ECHO_N='-n';;
19479 esac
19481 rm -f conf$$ conf$$.exe conf$$.file
19482 if test -d conf$$.dir; then
19483 rm -f conf$$.dir/conf$$.file
19484 else
19485 rm -f conf$$.dir
19486 mkdir conf$$.dir 2>/dev/null
19488 if (echo >conf$$.file) 2>/dev/null; then
19489 if ln -s conf$$.file conf$$ 2>/dev/null; then
19490 as_ln_s='ln -s'
19491 # ... but there are two gotchas:
19492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19494 # In both cases, we have to default to `cp -p'.
19495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19496 as_ln_s='cp -p'
19497 elif ln conf$$.file conf$$ 2>/dev/null; then
19498 as_ln_s=ln
19499 else
19500 as_ln_s='cp -p'
19502 else
19503 as_ln_s='cp -p'
19505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19506 rmdir conf$$.dir 2>/dev/null
19509 # as_fn_mkdir_p
19510 # -------------
19511 # Create "$as_dir" as a directory, including parents if necessary.
19512 as_fn_mkdir_p ()
19515 case $as_dir in #(
19516 -*) as_dir=./$as_dir;;
19517 esac
19518 test -d "$as_dir" || eval $as_mkdir_p || {
19519 as_dirs=
19520 while :; do
19521 case $as_dir in #(
19522 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19523 *) as_qdir=$as_dir;;
19524 esac
19525 as_dirs="'$as_qdir' $as_dirs"
19526 as_dir=`$as_dirname -- "$as_dir" ||
19527 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528 X"$as_dir" : 'X\(//\)[^/]' \| \
19529 X"$as_dir" : 'X\(//\)$' \| \
19530 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19531 $as_echo X"$as_dir" |
19532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19533 s//\1/
19536 /^X\(\/\/\)[^/].*/{
19537 s//\1/
19540 /^X\(\/\/\)$/{
19541 s//\1/
19544 /^X\(\/\).*/{
19545 s//\1/
19548 s/.*/./; q'`
19549 test -d "$as_dir" && break
19550 done
19551 test -z "$as_dirs" || eval "mkdir $as_dirs"
19552 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19555 } # as_fn_mkdir_p
19556 if mkdir -p . 2>/dev/null; then
19557 as_mkdir_p='mkdir -p "$as_dir"'
19558 else
19559 test -d ./-p && rmdir ./-p
19560 as_mkdir_p=false
19563 if test -x / >/dev/null 2>&1; then
19564 as_test_x='test -x'
19565 else
19566 if ls -dL / >/dev/null 2>&1; then
19567 as_ls_L_option=L
19568 else
19569 as_ls_L_option=
19571 as_test_x='
19572 eval sh -c '\''
19573 if test -d "$1"; then
19574 test -d "$1/.";
19575 else
19576 case $1 in #(
19577 -*)set "./$1";;
19578 esac;
19579 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19580 ???[sx]*):;;*)false;;esac;fi
19581 '\'' sh
19584 as_executable_p=$as_test_x
19586 # Sed expression to map a string onto a valid CPP name.
19587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19589 # Sed expression to map a string onto a valid variable name.
19590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19593 exec 6>&1
19594 ## ----------------------------------- ##
19595 ## Main body of $CONFIG_STATUS script. ##
19596 ## ----------------------------------- ##
19597 _ASEOF
19598 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19601 # Save the log message, to keep $0 and so on meaningful, and to
19602 # report actual input values of CONFIG_FILES etc. instead of their
19603 # values after options handling.
19604 ac_log="
19605 This file was extended by libgpiv $as_me 0.6.1, which was
19606 generated by GNU Autoconf 2.64. Invocation command line was
19608 CONFIG_FILES = $CONFIG_FILES
19609 CONFIG_HEADERS = $CONFIG_HEADERS
19610 CONFIG_LINKS = $CONFIG_LINKS
19611 CONFIG_COMMANDS = $CONFIG_COMMANDS
19612 $ $0 $@
19614 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19617 _ACEOF
19619 case $ac_config_files in *"
19620 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19621 esac
19623 case $ac_config_headers in *"
19624 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19625 esac
19628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19629 # Files that config.status was made for.
19630 config_files="$ac_config_files"
19631 config_headers="$ac_config_headers"
19632 config_commands="$ac_config_commands"
19634 _ACEOF
19636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19637 ac_cs_usage="\
19638 \`$as_me' instantiates files and other configuration actions
19639 from templates according to the current configuration. Unless the files
19640 and actions are specified as TAGs, all are instantiated by default.
19642 Usage: $0 [OPTION]... [TAG]...
19644 -h, --help print this help, then exit
19645 -V, --version print version number and configuration settings, then exit
19646 -q, --quiet, --silent
19647 do not print progress messages
19648 -d, --debug don't remove temporary files
19649 --recheck update $as_me by reconfiguring in the same conditions
19650 --file=FILE[:TEMPLATE]
19651 instantiate the configuration file FILE
19652 --header=FILE[:TEMPLATE]
19653 instantiate the configuration header FILE
19655 Configuration files:
19656 $config_files
19658 Configuration headers:
19659 $config_headers
19661 Configuration commands:
19662 $config_commands
19664 Report bugs to the package provider."
19666 _ACEOF
19667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19668 ac_cs_version="\\
19669 libgpiv config.status 0.6.1
19670 configured by $0, generated by GNU Autoconf 2.64,
19671 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19673 Copyright (C) 2009 Free Software Foundation, Inc.
19674 This config.status script is free software; the Free Software Foundation
19675 gives unlimited permission to copy, distribute and modify it."
19677 ac_pwd='$ac_pwd'
19678 srcdir='$srcdir'
19679 INSTALL='$INSTALL'
19680 MKDIR_P='$MKDIR_P'
19681 AWK='$AWK'
19682 test -n "\$AWK" || AWK=awk
19683 _ACEOF
19685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19686 # The default lists apply if the user does not specify any file.
19687 ac_need_defaults=:
19688 while test $# != 0
19690 case $1 in
19691 --*=*)
19692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19693 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19694 ac_shift=:
19697 ac_option=$1
19698 ac_optarg=$2
19699 ac_shift=shift
19701 esac
19703 case $ac_option in
19704 # Handling of the options.
19705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19706 ac_cs_recheck=: ;;
19707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19708 $as_echo "$ac_cs_version"; exit ;;
19709 --debug | --debu | --deb | --de | --d | -d )
19710 debug=: ;;
19711 --file | --fil | --fi | --f )
19712 $ac_shift
19713 case $ac_optarg in
19714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19715 esac
19716 as_fn_append CONFIG_FILES " '$ac_optarg'"
19717 ac_need_defaults=false;;
19718 --header | --heade | --head | --hea )
19719 $ac_shift
19720 case $ac_optarg in
19721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19722 esac
19723 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19724 ac_need_defaults=false;;
19725 --he | --h)
19726 # Conflict between --help and --header
19727 as_fn_error "ambiguous option: \`$1'
19728 Try \`$0 --help' for more information.";;
19729 --help | --hel | -h )
19730 $as_echo "$ac_cs_usage"; exit ;;
19731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19732 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19733 ac_cs_silent=: ;;
19735 # This is an error.
19736 -*) as_fn_error "unrecognized option: \`$1'
19737 Try \`$0 --help' for more information." ;;
19739 *) as_fn_append ac_config_targets " $1"
19740 ac_need_defaults=false ;;
19742 esac
19743 shift
19744 done
19746 ac_configure_extra_args=
19748 if $ac_cs_silent; then
19749 exec 6>/dev/null
19750 ac_configure_extra_args="$ac_configure_extra_args --silent"
19753 _ACEOF
19754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19755 if \$ac_cs_recheck; then
19756 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19757 shift
19758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19759 CONFIG_SHELL='$SHELL'
19760 export CONFIG_SHELL
19761 exec "\$@"
19764 _ACEOF
19765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19766 exec 5>>config.log
19768 echo
19769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19770 ## Running $as_me. ##
19771 _ASBOX
19772 $as_echo "$ac_log"
19773 } >&5
19775 _ACEOF
19776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 # INIT-COMMANDS
19782 # The HP-UX ksh and POSIX shell print the target directory to stdout
19783 # if CDPATH is set.
19784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19786 sed_quote_subst='$sed_quote_subst'
19787 double_quote_subst='$double_quote_subst'
19788 delay_variable_subst='$delay_variable_subst'
19789 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19790 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19791 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19792 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19793 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19794 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19795 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19796 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19797 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19798 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19799 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19800 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19801 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19802 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19803 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19804 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19805 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19806 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19807 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19808 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19809 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19810 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19811 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19812 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19813 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19814 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19815 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19816 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19817 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19818 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19819 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19820 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19821 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19822 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19823 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19824 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19825 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19826 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19827 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19828 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19829 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19830 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19831 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19832 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19833 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"`'
19834 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"`'
19835 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19836 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19837 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19838 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19839 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19840 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19841 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19842 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19843 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19844 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19845 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19846 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19847 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19848 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19849 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19850 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19851 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19852 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19853 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19854 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19855 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19856 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19857 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19858 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19859 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19860 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19861 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19862 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19863 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19864 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19865 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19866 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19867 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19868 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19869 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19870 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19871 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19872 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19873 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19874 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19875 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19876 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19877 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19878 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19879 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19880 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19881 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19882 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19883 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19884 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19885 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19886 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19887 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19888 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19889 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19890 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19891 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19892 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19893 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19894 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19895 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19896 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19897 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19898 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19899 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19900 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19901 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19902 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19903 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19904 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19905 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19906 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19907 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19908 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19909 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19910 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19911 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19912 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19913 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19914 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19915 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19916 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19917 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19918 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19919 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19920 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19921 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19922 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19923 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19924 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19925 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19926 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19927 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19928 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19929 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19930 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19931 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19932 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19933 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19934 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19935 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19936 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19937 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19938 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19939 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19940 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19941 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19942 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19943 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19944 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19945 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19946 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19947 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19948 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19949 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19950 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19951 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19952 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19953 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19954 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19955 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19956 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19957 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19958 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19959 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19961 LTCC='$LTCC'
19962 LTCFLAGS='$LTCFLAGS'
19963 compiler='$compiler_DEFAULT'
19965 # Quote evaled strings.
19966 for var in SED \
19967 GREP \
19968 EGREP \
19969 FGREP \
19970 LD \
19971 NM \
19972 LN_S \
19973 lt_SP2NL \
19974 lt_NL2SP \
19975 reload_flag \
19976 OBJDUMP \
19977 deplibs_check_method \
19978 file_magic_cmd \
19979 AR \
19980 AR_FLAGS \
19981 STRIP \
19982 RANLIB \
19983 CC \
19984 CFLAGS \
19985 compiler \
19986 lt_cv_sys_global_symbol_pipe \
19987 lt_cv_sys_global_symbol_to_cdecl \
19988 lt_cv_sys_global_symbol_to_c_name_address \
19989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19990 SHELL \
19991 ECHO \
19992 lt_prog_compiler_no_builtin_flag \
19993 lt_prog_compiler_wl \
19994 lt_prog_compiler_pic \
19995 lt_prog_compiler_static \
19996 lt_cv_prog_compiler_c_o \
19997 need_locks \
19998 DSYMUTIL \
19999 NMEDIT \
20000 LIPO \
20001 OTOOL \
20002 OTOOL64 \
20003 shrext_cmds \
20004 export_dynamic_flag_spec \
20005 whole_archive_flag_spec \
20006 compiler_needs_object \
20007 with_gnu_ld \
20008 allow_undefined_flag \
20009 no_undefined_flag \
20010 hardcode_libdir_flag_spec \
20011 hardcode_libdir_flag_spec_ld \
20012 hardcode_libdir_separator \
20013 fix_srcfile_path \
20014 exclude_expsyms \
20015 include_expsyms \
20016 file_list_spec \
20017 variables_saved_for_relink \
20018 libname_spec \
20019 library_names_spec \
20020 soname_spec \
20021 finish_eval \
20022 old_striplib \
20023 striplib \
20024 compiler_lib_search_dirs \
20025 predep_objects \
20026 postdep_objects \
20027 predeps \
20028 postdeps \
20029 compiler_lib_search_path \
20030 LD_CXX \
20031 compiler_CXX \
20032 lt_prog_compiler_no_builtin_flag_CXX \
20033 lt_prog_compiler_wl_CXX \
20034 lt_prog_compiler_pic_CXX \
20035 lt_prog_compiler_static_CXX \
20036 lt_cv_prog_compiler_c_o_CXX \
20037 export_dynamic_flag_spec_CXX \
20038 whole_archive_flag_spec_CXX \
20039 compiler_needs_object_CXX \
20040 with_gnu_ld_CXX \
20041 allow_undefined_flag_CXX \
20042 no_undefined_flag_CXX \
20043 hardcode_libdir_flag_spec_CXX \
20044 hardcode_libdir_flag_spec_ld_CXX \
20045 hardcode_libdir_separator_CXX \
20046 fix_srcfile_path_CXX \
20047 exclude_expsyms_CXX \
20048 include_expsyms_CXX \
20049 file_list_spec_CXX \
20050 compiler_lib_search_dirs_CXX \
20051 predep_objects_CXX \
20052 postdep_objects_CXX \
20053 predeps_CXX \
20054 postdeps_CXX \
20055 compiler_lib_search_path_CXX; do
20056 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20057 *[\\\\\\\`\\"\\\$]*)
20058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20063 esac
20064 done
20066 # Double-quote double-evaled strings.
20067 for var in reload_cmds \
20068 old_postinstall_cmds \
20069 old_postuninstall_cmds \
20070 old_archive_cmds \
20071 extract_expsyms_cmds \
20072 old_archive_from_new_cmds \
20073 old_archive_from_expsyms_cmds \
20074 archive_cmds \
20075 archive_expsym_cmds \
20076 module_cmds \
20077 module_expsym_cmds \
20078 export_symbols_cmds \
20079 prelink_cmds \
20080 postinstall_cmds \
20081 postuninstall_cmds \
20082 finish_cmds \
20083 sys_lib_search_path_spec \
20084 sys_lib_dlsearch_path_spec \
20085 old_archive_cmds_CXX \
20086 old_archive_from_new_cmds_CXX \
20087 old_archive_from_expsyms_cmds_CXX \
20088 archive_cmds_CXX \
20089 archive_expsym_cmds_CXX \
20090 module_cmds_CXX \
20091 module_expsym_cmds_CXX \
20092 export_symbols_cmds_CXX \
20093 prelink_cmds_CXX; do
20094 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20095 *[\\\\\\\`\\"\\\$]*)
20096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20101 esac
20102 done
20104 # Fix-up fallback echo if it was mangled by the above quoting rules.
20105 case \$lt_ECHO in
20106 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20108 esac
20110 ac_aux_dir='$ac_aux_dir'
20111 xsi_shell='$xsi_shell'
20112 lt_shell_append='$lt_shell_append'
20114 # See if we are running on zsh, and set the options which allow our
20115 # commands through without removal of \ escapes INIT.
20116 if test -n "\${ZSH_VERSION+set}" ; then
20117 setopt NO_GLOB_SUBST
20121 PACKAGE='$PACKAGE'
20122 VERSION='$VERSION'
20123 TIMESTAMP='$TIMESTAMP'
20124 RM='$RM'
20125 ofile='$ofile'
20131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20133 _ACEOF
20135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20137 # Handling of arguments.
20138 for ac_config_target in $ac_config_targets
20140 case $ac_config_target in
20141 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20142 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20144 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20145 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20146 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20147 "include/gpiv/Makefile") CONFIG_FILES="$CONFIG_FILES include/gpiv/Makefile" ;;
20149 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20150 esac
20151 done
20154 # If the user did not use the arguments to specify the items to instantiate,
20155 # then the envvar interface is used. Set only those that are not.
20156 # We use the long form for the default assignment because of an extremely
20157 # bizarre bug on SunOS 4.1.3.
20158 if $ac_need_defaults; then
20159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20164 # Have a temporary directory for convenience. Make it in the build tree
20165 # simply because there is no reason against having it here, and in addition,
20166 # creating and moving files from /tmp can sometimes cause problems.
20167 # Hook for its removal unless debugging.
20168 # Note that there is a small window in which the directory will not be cleaned:
20169 # after its creation but before its name has been assigned to `$tmp'.
20170 $debug ||
20172 tmp=
20173 trap 'exit_status=$?
20174 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20176 trap 'as_fn_exit 1' 1 2 13 15
20178 # Create a (secure) tmp directory for tmp files.
20181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20182 test -n "$tmp" && test -d "$tmp"
20183 } ||
20185 tmp=./conf$$-$RANDOM
20186 (umask 077 && mkdir "$tmp")
20187 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20189 # Set up the scripts for CONFIG_FILES section.
20190 # No need to generate them if there are no CONFIG_FILES.
20191 # This happens for instance with `./config.status config.h'.
20192 if test -n "$CONFIG_FILES"; then
20195 ac_cr=`echo X | tr X '\015'`
20196 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20197 # But we know of no other shell where ac_cr would be empty at this
20198 # point, so we can use a bashism as a fallback.
20199 if test "x$ac_cr" = x; then
20200 eval ac_cr=\$\'\\r\'
20202 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20203 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20204 ac_cs_awk_cr='\r'
20205 else
20206 ac_cs_awk_cr=$ac_cr
20209 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20210 _ACEOF
20214 echo "cat >conf$$subs.awk <<_ACEOF" &&
20215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20216 echo "_ACEOF"
20217 } >conf$$subs.sh ||
20218 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20219 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20220 ac_delim='%!_!# '
20221 for ac_last_try in false false false false false :; do
20222 . ./conf$$subs.sh ||
20223 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20226 if test $ac_delim_n = $ac_delim_num; then
20227 break
20228 elif $ac_last_try; then
20229 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20230 else
20231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20233 done
20234 rm -f conf$$subs.sh
20236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20238 _ACEOF
20239 sed -n '
20241 s/^/S["/; s/!.*/"]=/
20244 s/^[^!]*!//
20245 :repl
20246 t repl
20247 s/'"$ac_delim"'$//
20248 t delim
20251 s/\(.\{148\}\).*/\1/
20252 t more1
20253 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20256 b repl
20257 :more1
20258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20261 s/.\{148\}//
20262 t nl
20263 :delim
20265 s/\(.\{148\}\).*/\1/
20266 t more2
20267 s/["\\]/\\&/g; s/^/"/; s/$/"/
20270 :more2
20271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20274 s/.\{148\}//
20275 t delim
20276 ' <conf$$subs.awk | sed '
20277 /^[^""]/{
20279 s/\n//
20281 ' >>$CONFIG_STATUS || ac_write_fail=1
20282 rm -f conf$$subs.awk
20283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284 _ACAWK
20285 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20286 for (key in S) S_is_set[key] = 1
20287 FS = "\a"
20291 line = $ 0
20292 nfields = split(line, field, "@")
20293 substed = 0
20294 len = length(field[1])
20295 for (i = 2; i < nfields; i++) {
20296 key = field[i]
20297 keylen = length(key)
20298 if (S_is_set[key]) {
20299 value = S[key]
20300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20301 len += length(value) + length(field[++i])
20302 substed = 1
20303 } else
20304 len += 1 + keylen
20307 print line
20310 _ACAWK
20311 _ACEOF
20312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20313 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20315 else
20317 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20318 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20319 _ACEOF
20321 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20323 # trailing colons and then remove the whole line if VPATH becomes empty
20324 # (actually we leave an empty line to preserve line numbers).
20325 if test "x$srcdir" = x.; then
20326 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20327 s/:*\$(srcdir):*/:/
20328 s/:*\${srcdir}:*/:/
20329 s/:*@srcdir@:*/:/
20330 s/^\([^=]*=[ ]*\):*/\1/
20331 s/:*$//
20332 s/^[^=]*=[ ]*$//
20336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337 fi # test -n "$CONFIG_FILES"
20339 # Set up the scripts for CONFIG_HEADERS section.
20340 # No need to generate them if there are no CONFIG_HEADERS.
20341 # This happens for instance with `./config.status Makefile'.
20342 if test -n "$CONFIG_HEADERS"; then
20343 cat >"$tmp/defines.awk" <<\_ACAWK ||
20344 BEGIN {
20345 _ACEOF
20347 # Transform confdefs.h into an awk script `defines.awk', embedded as
20348 # here-document in config.status, that substitutes the proper values into
20349 # config.h.in to produce config.h.
20351 # Create a delimiter string that does not exist in confdefs.h, to ease
20352 # handling of long lines.
20353 ac_delim='%!_!# '
20354 for ac_last_try in false false :; do
20355 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20356 if test -z "$ac_t"; then
20357 break
20358 elif $ac_last_try; then
20359 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20360 else
20361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20363 done
20365 # For the awk script, D is an array of macro values keyed by name,
20366 # likewise P contains macro parameters if any. Preserve backslash
20367 # newline sequences.
20369 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20370 sed -n '
20371 s/.\{148\}/&'"$ac_delim"'/g
20372 t rset
20373 :rset
20374 s/^[ ]*#[ ]*define[ ][ ]*/ /
20375 t def
20377 :def
20378 s/\\$//
20379 t bsnl
20380 s/["\\]/\\&/g
20381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20382 D["\1"]=" \3"/p
20383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20385 :bsnl
20386 s/["\\]/\\&/g
20387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20388 D["\1"]=" \3\\\\\\n"\\/p
20389 t cont
20390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20391 t cont
20393 :cont
20395 s/.\{148\}/&'"$ac_delim"'/g
20396 t clear
20397 :clear
20398 s/\\$//
20399 t bsnlc
20400 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20402 :bsnlc
20403 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20404 b cont
20405 ' <confdefs.h | sed '
20406 s/'"$ac_delim"'/"\\\
20407 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20410 for (key in D) D_is_set[key] = 1
20411 FS = "\a"
20413 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20414 line = \$ 0
20415 split(line, arg, " ")
20416 if (arg[1] == "#") {
20417 defundef = arg[2]
20418 mac1 = arg[3]
20419 } else {
20420 defundef = substr(arg[1], 2)
20421 mac1 = arg[2]
20423 split(mac1, mac2, "(") #)
20424 macro = mac2[1]
20425 prefix = substr(line, 1, index(line, defundef) - 1)
20426 if (D_is_set[macro]) {
20427 # Preserve the white space surrounding the "#".
20428 print prefix "define", macro P[macro] D[macro]
20429 next
20430 } else {
20431 # Replace #undef with comments. This is necessary, for example,
20432 # in the case of _POSIX_SOURCE, which is predefined and required
20433 # on some systems where configure will not decide to define it.
20434 if (defundef == "undef") {
20435 print "/*", prefix defundef, macro, "*/"
20436 next
20440 { print }
20441 _ACAWK
20442 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20444 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20445 fi # test -n "$CONFIG_HEADERS"
20448 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20449 shift
20450 for ac_tag
20452 case $ac_tag in
20453 :[FHLC]) ac_mode=$ac_tag; continue;;
20454 esac
20455 case $ac_mode$ac_tag in
20456 :[FHL]*:*);;
20457 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20458 :[FH]-) ac_tag=-:-;;
20459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20460 esac
20461 ac_save_IFS=$IFS
20462 IFS=:
20463 set x $ac_tag
20464 IFS=$ac_save_IFS
20465 shift
20466 ac_file=$1
20467 shift
20469 case $ac_mode in
20470 :L) ac_source=$1;;
20471 :[FH])
20472 ac_file_inputs=
20473 for ac_f
20475 case $ac_f in
20476 -) ac_f="$tmp/stdin";;
20477 *) # Look for the file first in the build tree, then in the source tree
20478 # (if the path is not absolute). The absolute path cannot be DOS-style,
20479 # because $ac_f cannot contain `:'.
20480 test -f "$ac_f" ||
20481 case $ac_f in
20482 [\\/$]*) false;;
20483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20484 esac ||
20485 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20486 esac
20487 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20488 as_fn_append ac_file_inputs " '$ac_f'"
20489 done
20491 # Let's still pretend it is `configure' which instantiates (i.e., don't
20492 # use $as_me), people would be surprised to read:
20493 # /* config.h. Generated by config.status. */
20494 configure_input='Generated from '`
20495 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20496 `' by configure.'
20497 if test x"$ac_file" != x-; then
20498 configure_input="$ac_file. $configure_input"
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20500 $as_echo "$as_me: creating $ac_file" >&6;}
20502 # Neutralize special characters interpreted by sed in replacement strings.
20503 case $configure_input in #(
20504 *\&* | *\|* | *\\* )
20505 ac_sed_conf_input=`$as_echo "$configure_input" |
20506 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20507 *) ac_sed_conf_input=$configure_input;;
20508 esac
20510 case $ac_tag in
20511 *:-:* | *:-) cat >"$tmp/stdin" \
20512 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20513 esac
20515 esac
20517 ac_dir=`$as_dirname -- "$ac_file" ||
20518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20519 X"$ac_file" : 'X\(//\)[^/]' \| \
20520 X"$ac_file" : 'X\(//\)$' \| \
20521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20522 $as_echo X"$ac_file" |
20523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20524 s//\1/
20527 /^X\(\/\/\)[^/].*/{
20528 s//\1/
20531 /^X\(\/\/\)$/{
20532 s//\1/
20535 /^X\(\/\).*/{
20536 s//\1/
20539 s/.*/./; q'`
20540 as_dir="$ac_dir"; as_fn_mkdir_p
20541 ac_builddir=.
20543 case "$ac_dir" in
20544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20547 # A ".." for each directory in $ac_dir_suffix.
20548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20549 case $ac_top_builddir_sub in
20550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20552 esac ;;
20553 esac
20554 ac_abs_top_builddir=$ac_pwd
20555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20556 # for backward compatibility:
20557 ac_top_builddir=$ac_top_build_prefix
20559 case $srcdir in
20560 .) # We are building in place.
20561 ac_srcdir=.
20562 ac_top_srcdir=$ac_top_builddir_sub
20563 ac_abs_top_srcdir=$ac_pwd ;;
20564 [\\/]* | ?:[\\/]* ) # Absolute name.
20565 ac_srcdir=$srcdir$ac_dir_suffix;
20566 ac_top_srcdir=$srcdir
20567 ac_abs_top_srcdir=$srcdir ;;
20568 *) # Relative name.
20569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20570 ac_top_srcdir=$ac_top_build_prefix$srcdir
20571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20572 esac
20573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20576 case $ac_mode in
20579 # CONFIG_FILE
20582 case $INSTALL in
20583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20584 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20585 esac
20586 ac_MKDIR_P=$MKDIR_P
20587 case $MKDIR_P in
20588 [\\/$]* | ?:[\\/]* ) ;;
20589 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20590 esac
20591 _ACEOF
20593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20594 # If the template does not know about datarootdir, expand it.
20595 # FIXME: This hack should be removed a few years after 2.60.
20596 ac_datarootdir_hack=; ac_datarootdir_seen=
20597 ac_sed_dataroot='
20598 /datarootdir/ {
20602 /@datadir@/p
20603 /@docdir@/p
20604 /@infodir@/p
20605 /@localedir@/p
20606 /@mandir@/p'
20607 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20608 *datarootdir*) ac_datarootdir_seen=yes;;
20609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20611 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20612 _ACEOF
20613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20614 ac_datarootdir_hack='
20615 s&@datadir@&$datadir&g
20616 s&@docdir@&$docdir&g
20617 s&@infodir@&$infodir&g
20618 s&@localedir@&$localedir&g
20619 s&@mandir@&$mandir&g
20620 s&\\\${datarootdir}&$datarootdir&g' ;;
20621 esac
20622 _ACEOF
20624 # Neutralize VPATH when `$srcdir' = `.'.
20625 # Shell code in configure.ac might set extrasub.
20626 # FIXME: do we really want to maintain this feature?
20627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20628 ac_sed_extra="$ac_vpsub
20629 $extrasub
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20634 s|@configure_input@|$ac_sed_conf_input|;t t
20635 s&@top_builddir@&$ac_top_builddir_sub&;t t
20636 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20637 s&@srcdir@&$ac_srcdir&;t t
20638 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20639 s&@top_srcdir@&$ac_top_srcdir&;t t
20640 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20641 s&@builddir@&$ac_builddir&;t t
20642 s&@abs_builddir@&$ac_abs_builddir&;t t
20643 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20644 s&@INSTALL@&$ac_INSTALL&;t t
20645 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20646 $ac_datarootdir_hack
20648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20649 || as_fn_error "could not create $ac_file" "$LINENO" 5
20651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20652 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20655 which seems to be undefined. Please make sure it is defined." >&5
20656 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20657 which seems to be undefined. Please make sure it is defined." >&2;}
20659 rm -f "$tmp/stdin"
20660 case $ac_file in
20661 -) cat "$tmp/out" && rm -f "$tmp/out";;
20662 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20663 esac \
20664 || as_fn_error "could not create $ac_file" "$LINENO" 5
20668 # CONFIG_HEADER
20670 if test x"$ac_file" != x-; then
20672 $as_echo "/* $configure_input */" \
20673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20674 } >"$tmp/config.h" \
20675 || as_fn_error "could not create $ac_file" "$LINENO" 5
20676 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20678 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20679 else
20680 rm -f "$ac_file"
20681 mv "$tmp/config.h" "$ac_file" \
20682 || as_fn_error "could not create $ac_file" "$LINENO" 5
20684 else
20685 $as_echo "/* $configure_input */" \
20686 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20687 || as_fn_error "could not create -" "$LINENO" 5
20689 # Compute "$ac_file"'s index in $config_headers.
20690 _am_arg="$ac_file"
20691 _am_stamp_count=1
20692 for _am_header in $config_headers :; do
20693 case $_am_header in
20694 $_am_arg | $_am_arg:* )
20695 break ;;
20697 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20698 esac
20699 done
20700 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20701 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20702 X"$_am_arg" : 'X\(//\)[^/]' \| \
20703 X"$_am_arg" : 'X\(//\)$' \| \
20704 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20705 $as_echo X"$_am_arg" |
20706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20707 s//\1/
20710 /^X\(\/\/\)[^/].*/{
20711 s//\1/
20714 /^X\(\/\/\)$/{
20715 s//\1/
20718 /^X\(\/\).*/{
20719 s//\1/
20722 s/.*/./; q'`/stamp-h$_am_stamp_count
20725 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20726 $as_echo "$as_me: executing $ac_file commands" >&6;}
20728 esac
20731 case $ac_file$ac_mode in
20732 "libtool":C)
20734 # See if we are running on zsh, and set the options which allow our
20735 # commands through without removal of \ escapes.
20736 if test -n "${ZSH_VERSION+set}" ; then
20737 setopt NO_GLOB_SUBST
20740 cfgfile="${ofile}T"
20741 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20742 $RM "$cfgfile"
20744 cat <<_LT_EOF >> "$cfgfile"
20745 #! $SHELL
20747 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20748 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20752 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20753 # 2006, 2007, 2008 Free Software Foundation, Inc.
20754 # Written by Gordon Matzigkeit, 1996
20756 # This file is part of GNU Libtool.
20758 # GNU Libtool is free software; you can redistribute it and/or
20759 # modify it under the terms of the GNU General Public License as
20760 # published by the Free Software Foundation; either version 2 of
20761 # the License, or (at your option) any later version.
20763 # As a special exception to the GNU General Public License,
20764 # if you distribute this file as part of a program or library that
20765 # is built using GNU Libtool, you may include this file under the
20766 # same distribution terms that you use for the rest of that program.
20768 # GNU Libtool is distributed in the hope that it will be useful,
20769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20771 # GNU General Public License for more details.
20773 # You should have received a copy of the GNU General Public License
20774 # along with GNU Libtool; see the file COPYING. If not, a copy
20775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20776 # obtained by writing to the Free Software Foundation, Inc.,
20777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20780 # The names of the tagged configurations supported by this script.
20781 available_tags="CXX "
20783 # ### BEGIN LIBTOOL CONFIG
20785 # Which release of libtool.m4 was used?
20786 macro_version=$macro_version
20787 macro_revision=$macro_revision
20789 # Whether or not to build shared libraries.
20790 build_libtool_libs=$enable_shared
20792 # Whether or not to build static libraries.
20793 build_old_libs=$enable_static
20795 # What type of objects to build.
20796 pic_mode=$pic_mode
20798 # Whether or not to optimize for fast installation.
20799 fast_install=$enable_fast_install
20801 # The host system.
20802 host_alias=$host_alias
20803 host=$host
20804 host_os=$host_os
20806 # The build system.
20807 build_alias=$build_alias
20808 build=$build
20809 build_os=$build_os
20811 # A sed program that does not truncate output.
20812 SED=$lt_SED
20814 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20815 Xsed="\$SED -e 1s/^X//"
20817 # A grep program that handles long lines.
20818 GREP=$lt_GREP
20820 # An ERE matcher.
20821 EGREP=$lt_EGREP
20823 # A literal string matcher.
20824 FGREP=$lt_FGREP
20826 # A BSD- or MS-compatible name lister.
20827 NM=$lt_NM
20829 # Whether we need soft or hard links.
20830 LN_S=$lt_LN_S
20832 # What is the maximum length of a command?
20833 max_cmd_len=$max_cmd_len
20835 # Object file suffix (normally "o").
20836 objext=$ac_objext
20838 # Executable file suffix (normally "").
20839 exeext=$exeext
20841 # whether the shell understands "unset".
20842 lt_unset=$lt_unset
20844 # turn spaces into newlines.
20845 SP2NL=$lt_lt_SP2NL
20847 # turn newlines into spaces.
20848 NL2SP=$lt_lt_NL2SP
20850 # How to create reloadable object files.
20851 reload_flag=$lt_reload_flag
20852 reload_cmds=$lt_reload_cmds
20854 # An object symbol dumper.
20855 OBJDUMP=$lt_OBJDUMP
20857 # Method to check whether dependent libraries are shared objects.
20858 deplibs_check_method=$lt_deplibs_check_method
20860 # Command to use when deplibs_check_method == "file_magic".
20861 file_magic_cmd=$lt_file_magic_cmd
20863 # The archiver.
20864 AR=$lt_AR
20865 AR_FLAGS=$lt_AR_FLAGS
20867 # A symbol stripping program.
20868 STRIP=$lt_STRIP
20870 # Commands used to install an old-style archive.
20871 RANLIB=$lt_RANLIB
20872 old_postinstall_cmds=$lt_old_postinstall_cmds
20873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20875 # A C compiler.
20876 LTCC=$lt_CC
20878 # LTCC compiler flags.
20879 LTCFLAGS=$lt_CFLAGS
20881 # Take the output of nm and produce a listing of raw symbols and C names.
20882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20884 # Transform the output of nm in a proper C declaration.
20885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20887 # Transform the output of nm in a C name address pair.
20888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20890 # Transform the output of nm in a C name address pair when lib prefix is needed.
20891 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20893 # The name of the directory that contains temporary libtool files.
20894 objdir=$objdir
20896 # Shell to use when invoking shell scripts.
20897 SHELL=$lt_SHELL
20899 # An echo program that does not interpret backslashes.
20900 ECHO=$lt_ECHO
20902 # Used to examine libraries when file_magic_cmd begins with "file".
20903 MAGIC_CMD=$MAGIC_CMD
20905 # Must we lock files when doing compilation?
20906 need_locks=$lt_need_locks
20908 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20909 DSYMUTIL=$lt_DSYMUTIL
20911 # Tool to change global to local symbols on Mac OS X.
20912 NMEDIT=$lt_NMEDIT
20914 # Tool to manipulate fat objects and archives on Mac OS X.
20915 LIPO=$lt_LIPO
20917 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20918 OTOOL=$lt_OTOOL
20920 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20921 OTOOL64=$lt_OTOOL64
20923 # Old archive suffix (normally "a").
20924 libext=$libext
20926 # Shared library suffix (normally ".so").
20927 shrext_cmds=$lt_shrext_cmds
20929 # The commands to extract the exported symbol list from a shared archive.
20930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20932 # Variables whose values should be saved in libtool wrapper scripts and
20933 # restored at link time.
20934 variables_saved_for_relink=$lt_variables_saved_for_relink
20936 # Do we need the "lib" prefix for modules?
20937 need_lib_prefix=$need_lib_prefix
20939 # Do we need a version for libraries?
20940 need_version=$need_version
20942 # Library versioning type.
20943 version_type=$version_type
20945 # Shared library runtime path variable.
20946 runpath_var=$runpath_var
20948 # Shared library path variable.
20949 shlibpath_var=$shlibpath_var
20951 # Is shlibpath searched before the hard-coded library search path?
20952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20954 # Format of library name prefix.
20955 libname_spec=$lt_libname_spec
20957 # List of archive names. First name is the real one, the rest are links.
20958 # The last name is the one that the linker finds with -lNAME
20959 library_names_spec=$lt_library_names_spec
20961 # The coded name of the library, if different from the real name.
20962 soname_spec=$lt_soname_spec
20964 # Command to use after installation of a shared archive.
20965 postinstall_cmds=$lt_postinstall_cmds
20967 # Command to use after uninstallation of a shared archive.
20968 postuninstall_cmds=$lt_postuninstall_cmds
20970 # Commands used to finish a libtool library installation in a directory.
20971 finish_cmds=$lt_finish_cmds
20973 # As "finish_cmds", except a single script fragment to be evaled but
20974 # not shown.
20975 finish_eval=$lt_finish_eval
20977 # Whether we should hardcode library paths into libraries.
20978 hardcode_into_libs=$hardcode_into_libs
20980 # Compile-time system search path for libraries.
20981 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20983 # Run-time system search path for libraries.
20984 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20986 # Whether dlopen is supported.
20987 dlopen_support=$enable_dlopen
20989 # Whether dlopen of programs is supported.
20990 dlopen_self=$enable_dlopen_self
20992 # Whether dlopen of statically linked programs is supported.
20993 dlopen_self_static=$enable_dlopen_self_static
20995 # Commands to strip libraries.
20996 old_striplib=$lt_old_striplib
20997 striplib=$lt_striplib
21000 # The linker used to build libraries.
21001 LD=$lt_LD
21003 # Commands used to build an old-style archive.
21004 old_archive_cmds=$lt_old_archive_cmds
21006 # A language specific compiler.
21007 CC=$lt_compiler
21009 # Is the compiler the GNU compiler?
21010 with_gcc=$GCC
21012 # Compiler flag to turn off builtin functions.
21013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21015 # How to pass a linker flag through the compiler.
21016 wl=$lt_lt_prog_compiler_wl
21018 # Additional compiler flags for building library objects.
21019 pic_flag=$lt_lt_prog_compiler_pic
21021 # Compiler flag to prevent dynamic linking.
21022 link_static_flag=$lt_lt_prog_compiler_static
21024 # Does compiler simultaneously support -c and -o options?
21025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21027 # Whether or not to add -lc for building shared libraries.
21028 build_libtool_need_lc=$archive_cmds_need_lc
21030 # Whether or not to disallow shared libs when runtime libs are static.
21031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21033 # Compiler flag to allow reflexive dlopens.
21034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21036 # Compiler flag to generate shared objects directly from archives.
21037 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21039 # Whether the compiler copes with passing no objects directly.
21040 compiler_needs_object=$lt_compiler_needs_object
21042 # Create an old-style archive from a shared archive.
21043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21045 # Create a temporary old-style archive to link instead of a shared archive.
21046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21048 # Commands used to build a shared archive.
21049 archive_cmds=$lt_archive_cmds
21050 archive_expsym_cmds=$lt_archive_expsym_cmds
21052 # Commands used to build a loadable module if different from building
21053 # a shared archive.
21054 module_cmds=$lt_module_cmds
21055 module_expsym_cmds=$lt_module_expsym_cmds
21057 # Whether we are building with GNU ld or not.
21058 with_gnu_ld=$lt_with_gnu_ld
21060 # Flag that allows shared libraries with undefined symbols to be built.
21061 allow_undefined_flag=$lt_allow_undefined_flag
21063 # Flag that enforces no undefined symbols.
21064 no_undefined_flag=$lt_no_undefined_flag
21066 # Flag to hardcode \$libdir into a binary during linking.
21067 # This must work even if \$libdir does not exist
21068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21070 # If ld is used when linking, flag to hardcode \$libdir into a binary
21071 # during linking. This must work even if \$libdir does not exist.
21072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21074 # Whether we need a single "-rpath" flag with a separated argument.
21075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21078 # DIR into the resulting binary.
21079 hardcode_direct=$hardcode_direct
21081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21082 # DIR into the resulting binary and the resulting library dependency is
21083 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21084 # library is relocated.
21085 hardcode_direct_absolute=$hardcode_direct_absolute
21087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21088 # into the resulting binary.
21089 hardcode_minus_L=$hardcode_minus_L
21091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21092 # into the resulting binary.
21093 hardcode_shlibpath_var=$hardcode_shlibpath_var
21095 # Set to "yes" if building a shared library automatically hardcodes DIR
21096 # into the library and all subsequent libraries and executables linked
21097 # against it.
21098 hardcode_automatic=$hardcode_automatic
21100 # Set to yes if linker adds runtime paths of dependent libraries
21101 # to runtime path list.
21102 inherit_rpath=$inherit_rpath
21104 # Whether libtool must link a program against all its dependency libraries.
21105 link_all_deplibs=$link_all_deplibs
21107 # Fix the shell variable \$srcfile for the compiler.
21108 fix_srcfile_path=$lt_fix_srcfile_path
21110 # Set to "yes" if exported symbols are required.
21111 always_export_symbols=$always_export_symbols
21113 # The commands to list exported symbols.
21114 export_symbols_cmds=$lt_export_symbols_cmds
21116 # Symbols that should not be listed in the preloaded symbols.
21117 exclude_expsyms=$lt_exclude_expsyms
21119 # Symbols that must always be exported.
21120 include_expsyms=$lt_include_expsyms
21122 # Commands necessary for linking programs (against libraries) with templates.
21123 prelink_cmds=$lt_prelink_cmds
21125 # Specify filename containing input files.
21126 file_list_spec=$lt_file_list_spec
21128 # How to hardcode a shared library path into an executable.
21129 hardcode_action=$hardcode_action
21131 # The directories searched by this compiler when creating a shared library.
21132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21134 # Dependencies to place before and after the objects being linked to
21135 # create a shared library.
21136 predep_objects=$lt_predep_objects
21137 postdep_objects=$lt_postdep_objects
21138 predeps=$lt_predeps
21139 postdeps=$lt_postdeps
21141 # The library search path used internally by the compiler when linking
21142 # a shared library.
21143 compiler_lib_search_path=$lt_compiler_lib_search_path
21145 # ### END LIBTOOL CONFIG
21147 _LT_EOF
21149 case $host_os in
21150 aix3*)
21151 cat <<\_LT_EOF >> "$cfgfile"
21152 # AIX sometimes has problems with the GCC collect2 program. For some
21153 # reason, if we set the COLLECT_NAMES environment variable, the problems
21154 # vanish in a puff of smoke.
21155 if test "X${COLLECT_NAMES+set}" != Xset; then
21156 COLLECT_NAMES=
21157 export COLLECT_NAMES
21159 _LT_EOF
21161 esac
21164 ltmain="$ac_aux_dir/ltmain.sh"
21167 # We use sed instead of cat because bash on DJGPP gets confused if
21168 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21169 # text mode, it properly converts lines to CR/LF. This bash problem
21170 # is reportedly fixed, but why not run on old versions too?
21171 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21172 || (rm -f "$cfgfile"; exit 1)
21174 case $xsi_shell in
21175 yes)
21176 cat << \_LT_EOF >> "$cfgfile"
21178 # func_dirname file append nondir_replacement
21179 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21180 # otherwise set result to NONDIR_REPLACEMENT.
21181 func_dirname ()
21183 case ${1} in
21184 */*) func_dirname_result="${1%/*}${2}" ;;
21185 * ) func_dirname_result="${3}" ;;
21186 esac
21189 # func_basename file
21190 func_basename ()
21192 func_basename_result="${1##*/}"
21195 # func_dirname_and_basename file append nondir_replacement
21196 # perform func_basename and func_dirname in a single function
21197 # call:
21198 # dirname: Compute the dirname of FILE. If nonempty,
21199 # add APPEND to the result, otherwise set result
21200 # to NONDIR_REPLACEMENT.
21201 # value returned in "$func_dirname_result"
21202 # basename: Compute filename of FILE.
21203 # value retuned in "$func_basename_result"
21204 # Implementation must be kept synchronized with func_dirname
21205 # and func_basename. For efficiency, we do not delegate to
21206 # those functions but instead duplicate the functionality here.
21207 func_dirname_and_basename ()
21209 case ${1} in
21210 */*) func_dirname_result="${1%/*}${2}" ;;
21211 * ) func_dirname_result="${3}" ;;
21212 esac
21213 func_basename_result="${1##*/}"
21216 # func_stripname prefix suffix name
21217 # strip PREFIX and SUFFIX off of NAME.
21218 # PREFIX and SUFFIX must not contain globbing or regex special
21219 # characters, hashes, percent signs, but SUFFIX may contain a leading
21220 # dot (in which case that matches only a dot).
21221 func_stripname ()
21223 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21224 # positional parameters, so assign one to ordinary parameter first.
21225 func_stripname_result=${3}
21226 func_stripname_result=${func_stripname_result#"${1}"}
21227 func_stripname_result=${func_stripname_result%"${2}"}
21230 # func_opt_split
21231 func_opt_split ()
21233 func_opt_split_opt=${1%%=*}
21234 func_opt_split_arg=${1#*=}
21237 # func_lo2o object
21238 func_lo2o ()
21240 case ${1} in
21241 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21242 *) func_lo2o_result=${1} ;;
21243 esac
21246 # func_xform libobj-or-source
21247 func_xform ()
21249 func_xform_result=${1%.*}.lo
21252 # func_arith arithmetic-term...
21253 func_arith ()
21255 func_arith_result=$(( $* ))
21258 # func_len string
21259 # STRING may not start with a hyphen.
21260 func_len ()
21262 func_len_result=${#1}
21265 _LT_EOF
21267 *) # Bourne compatible functions.
21268 cat << \_LT_EOF >> "$cfgfile"
21270 # func_dirname file append nondir_replacement
21271 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21272 # otherwise set result to NONDIR_REPLACEMENT.
21273 func_dirname ()
21275 # Extract subdirectory from the argument.
21276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21277 if test "X$func_dirname_result" = "X${1}"; then
21278 func_dirname_result="${3}"
21279 else
21280 func_dirname_result="$func_dirname_result${2}"
21284 # func_basename file
21285 func_basename ()
21287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21291 # func_stripname prefix suffix name
21292 # strip PREFIX and SUFFIX off of NAME.
21293 # PREFIX and SUFFIX must not contain globbing or regex special
21294 # characters, hashes, percent signs, but SUFFIX may contain a leading
21295 # dot (in which case that matches only a dot).
21296 # func_strip_suffix prefix name
21297 func_stripname ()
21299 case ${2} in
21300 .*) func_stripname_result=`$ECHO "X${3}" \
21301 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21302 *) func_stripname_result=`$ECHO "X${3}" \
21303 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21304 esac
21307 # sed scripts:
21308 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21309 my_sed_long_arg='1s/^-[^=]*=//'
21311 # func_opt_split
21312 func_opt_split ()
21314 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21315 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21318 # func_lo2o object
21319 func_lo2o ()
21321 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21324 # func_xform libobj-or-source
21325 func_xform ()
21327 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21330 # func_arith arithmetic-term...
21331 func_arith ()
21333 func_arith_result=`expr "$@"`
21336 # func_len string
21337 # STRING may not start with a hyphen.
21338 func_len ()
21340 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21343 _LT_EOF
21344 esac
21346 case $lt_shell_append in
21347 yes)
21348 cat << \_LT_EOF >> "$cfgfile"
21350 # func_append var value
21351 # Append VALUE to the end of shell variable VAR.
21352 func_append ()
21354 eval "$1+=\$2"
21356 _LT_EOF
21359 cat << \_LT_EOF >> "$cfgfile"
21361 # func_append var value
21362 # Append VALUE to the end of shell variable VAR.
21363 func_append ()
21365 eval "$1=\$$1\$2"
21368 _LT_EOF
21370 esac
21373 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21374 || (rm -f "$cfgfile"; exit 1)
21376 mv -f "$cfgfile" "$ofile" ||
21377 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21378 chmod +x "$ofile"
21381 cat <<_LT_EOF >> "$ofile"
21383 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21385 # The linker used to build libraries.
21386 LD=$lt_LD_CXX
21388 # Commands used to build an old-style archive.
21389 old_archive_cmds=$lt_old_archive_cmds_CXX
21391 # A language specific compiler.
21392 CC=$lt_compiler_CXX
21394 # Is the compiler the GNU compiler?
21395 with_gcc=$GCC_CXX
21397 # Compiler flag to turn off builtin functions.
21398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21400 # How to pass a linker flag through the compiler.
21401 wl=$lt_lt_prog_compiler_wl_CXX
21403 # Additional compiler flags for building library objects.
21404 pic_flag=$lt_lt_prog_compiler_pic_CXX
21406 # Compiler flag to prevent dynamic linking.
21407 link_static_flag=$lt_lt_prog_compiler_static_CXX
21409 # Does compiler simultaneously support -c and -o options?
21410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21412 # Whether or not to add -lc for building shared libraries.
21413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21415 # Whether or not to disallow shared libs when runtime libs are static.
21416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21418 # Compiler flag to allow reflexive dlopens.
21419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21421 # Compiler flag to generate shared objects directly from archives.
21422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21424 # Whether the compiler copes with passing no objects directly.
21425 compiler_needs_object=$lt_compiler_needs_object_CXX
21427 # Create an old-style archive from a shared archive.
21428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21430 # Create a temporary old-style archive to link instead of a shared archive.
21431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21433 # Commands used to build a shared archive.
21434 archive_cmds=$lt_archive_cmds_CXX
21435 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21437 # Commands used to build a loadable module if different from building
21438 # a shared archive.
21439 module_cmds=$lt_module_cmds_CXX
21440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21442 # Whether we are building with GNU ld or not.
21443 with_gnu_ld=$lt_with_gnu_ld_CXX
21445 # Flag that allows shared libraries with undefined symbols to be built.
21446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21448 # Flag that enforces no undefined symbols.
21449 no_undefined_flag=$lt_no_undefined_flag_CXX
21451 # Flag to hardcode \$libdir into a binary during linking.
21452 # This must work even if \$libdir does not exist
21453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21455 # If ld is used when linking, flag to hardcode \$libdir into a binary
21456 # during linking. This must work even if \$libdir does not exist.
21457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21459 # Whether we need a single "-rpath" flag with a separated argument.
21460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21463 # DIR into the resulting binary.
21464 hardcode_direct=$hardcode_direct_CXX
21466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21467 # DIR into the resulting binary and the resulting library dependency is
21468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21469 # library is relocated.
21470 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21473 # into the resulting binary.
21474 hardcode_minus_L=$hardcode_minus_L_CXX
21476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21477 # into the resulting binary.
21478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21480 # Set to "yes" if building a shared library automatically hardcodes DIR
21481 # into the library and all subsequent libraries and executables linked
21482 # against it.
21483 hardcode_automatic=$hardcode_automatic_CXX
21485 # Set to yes if linker adds runtime paths of dependent libraries
21486 # to runtime path list.
21487 inherit_rpath=$inherit_rpath_CXX
21489 # Whether libtool must link a program against all its dependency libraries.
21490 link_all_deplibs=$link_all_deplibs_CXX
21492 # Fix the shell variable \$srcfile for the compiler.
21493 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21495 # Set to "yes" if exported symbols are required.
21496 always_export_symbols=$always_export_symbols_CXX
21498 # The commands to list exported symbols.
21499 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21501 # Symbols that should not be listed in the preloaded symbols.
21502 exclude_expsyms=$lt_exclude_expsyms_CXX
21504 # Symbols that must always be exported.
21505 include_expsyms=$lt_include_expsyms_CXX
21507 # Commands necessary for linking programs (against libraries) with templates.
21508 prelink_cmds=$lt_prelink_cmds_CXX
21510 # Specify filename containing input files.
21511 file_list_spec=$lt_file_list_spec_CXX
21513 # How to hardcode a shared library path into an executable.
21514 hardcode_action=$hardcode_action_CXX
21516 # The directories searched by this compiler when creating a shared library.
21517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21519 # Dependencies to place before and after the objects being linked to
21520 # create a shared library.
21521 predep_objects=$lt_predep_objects_CXX
21522 postdep_objects=$lt_postdep_objects_CXX
21523 predeps=$lt_predeps_CXX
21524 postdeps=$lt_postdeps_CXX
21526 # The library search path used internally by the compiler when linking
21527 # a shared library.
21528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21530 # ### END LIBTOOL TAG CONFIG: CXX
21531 _LT_EOF
21534 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21535 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21536 # are listed without --file. Let's play safe and only enable the eval
21537 # if we detect the quoting.
21538 case $CONFIG_FILES in
21539 *\'*) eval set x "$CONFIG_FILES" ;;
21540 *) set x $CONFIG_FILES ;;
21541 esac
21542 shift
21543 for mf
21545 # Strip MF so we end up with the name of the file.
21546 mf=`echo "$mf" | sed -e 's/:.*$//'`
21547 # Check whether this is an Automake generated Makefile or not.
21548 # We used to match only the files named `Makefile.in', but
21549 # some people rename them; so instead we look at the file content.
21550 # Grep'ing the first line is not enough: some people post-process
21551 # each Makefile.in and add a new line on top of each file to say so.
21552 # Grep'ing the whole file is not good either: AIX grep has a line
21553 # limit of 2048, but all sed's we know have understand at least 4000.
21554 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21555 dirpart=`$as_dirname -- "$mf" ||
21556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21557 X"$mf" : 'X\(//\)[^/]' \| \
21558 X"$mf" : 'X\(//\)$' \| \
21559 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21560 $as_echo X"$mf" |
21561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21562 s//\1/
21565 /^X\(\/\/\)[^/].*/{
21566 s//\1/
21569 /^X\(\/\/\)$/{
21570 s//\1/
21573 /^X\(\/\).*/{
21574 s//\1/
21577 s/.*/./; q'`
21578 else
21579 continue
21581 # Extract the definition of DEPDIR, am__include, and am__quote
21582 # from the Makefile without running `make'.
21583 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21584 test -z "$DEPDIR" && continue
21585 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21586 test -z "am__include" && continue
21587 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21588 # When using ansi2knr, U may be empty or an underscore; expand it
21589 U=`sed -n 's/^U = //p' < "$mf"`
21590 # Find all dependency output files, they are included files with
21591 # $(DEPDIR) in their names. We invoke sed twice because it is the
21592 # simplest approach to changing $(DEPDIR) to its actual value in the
21593 # expansion.
21594 for file in `sed -n "
21595 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21596 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21597 # Make sure the directory exists.
21598 test -f "$dirpart/$file" && continue
21599 fdir=`$as_dirname -- "$file" ||
21600 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21601 X"$file" : 'X\(//\)[^/]' \| \
21602 X"$file" : 'X\(//\)$' \| \
21603 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21604 $as_echo X"$file" |
21605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21606 s//\1/
21609 /^X\(\/\/\)[^/].*/{
21610 s//\1/
21613 /^X\(\/\/\)$/{
21614 s//\1/
21617 /^X\(\/\).*/{
21618 s//\1/
21621 s/.*/./; q'`
21622 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21623 # echo "creating $dirpart/$file"
21624 echo '# dummy' > "$dirpart/$file"
21625 done
21626 done
21630 esac
21631 done # for ac_tag
21634 as_fn_exit 0
21635 _ACEOF
21636 ac_clean_files=$ac_clean_files_save
21638 test $ac_write_fail = 0 ||
21639 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21642 # configure is writing to config.log, and then calls config.status.
21643 # config.status does its own redirection, appending to config.log.
21644 # Unfortunately, on DOS this fails, as config.log is still kept open
21645 # by configure, so config.status won't be able to write to it; its
21646 # output is simply discarded. So we exec the FD to /dev/null,
21647 # effectively closing config.log, so it can be properly (re)opened and
21648 # appended to by config.status. When coming back to configure, we
21649 # need to make the FD available again.
21650 if test "$no_create" != yes; then
21651 ac_cs_success=:
21652 ac_config_status_args=
21653 test "$silent" = yes &&
21654 ac_config_status_args="$ac_config_status_args --quiet"
21655 exec 5>/dev/null
21656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21657 exec 5>>config.log
21658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21659 # would make configure fail if this is the last instruction.
21660 $ac_cs_success || as_fn_exit $?
21662 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21664 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21669 echo "===================================================================="
21670 echo "Configuration succesfully finished"
21672 if test $ENABLE_CAM; then
21673 echo "with (IEEE-1394) camera enabled"
21676 if test $ENABLE_TRIG; then
21677 echo "with (realtime) triggering enabled."
21680 if test $ENABLE_MPI; then
21681 echo "building parallel library using Message Passing Interface (MPI)"
21682 echo "for processing on distributed memory systems"
21685 if test $ENABLE_OMP; then
21686 echo "building parallel library using Open Multi-Processing (OMP)"
21687 echo "for processing on shared memory systems"
21690 echo "Type 'make' and 'make install' to build and install libgpiv"
21692 if test $DOXYGEN; then
21693 echo "Type 'make doxygen-doc/-(un)install' for the API documentation"
21694 else
21695 echo "Cannot find doxygen: API documentation cannot be build"
21698 echo "===================================================================="