Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for comedilib 0.11.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='comedilib'
589 PACKAGE_TARNAME='comedilib'
590 PACKAGE_VERSION='0.11.0'
591 PACKAGE_STRING='comedilib 0.11.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 udevfirmwaredir
636 udevscriptsdir
637 udevrulesdir
638 INSTALL_UDEVHOTPLUG_FALSE
639 INSTALL_UDEVHOTPLUG_TRUE
640 pcmciadir
641 BUILD_PDF_USING_FOP_FALSE
642 BUILD_PDF_USING_FOP_TRUE
643 BUILD_PDF_USING_DBLATEX_FALSE
644 BUILD_PDF_USING_DBLATEX_TRUE
645 BUILD_PDF_FALSE
646 BUILD_PDF_TRUE
647 HAVE_XMLTO_FALSE
648 HAVE_XMLTO_TRUE
649 PDF_BACKEND
650 XMLTO
651 BUILD_SCXI_FALSE
652 BUILD_SCXI_TRUE
653 RUBY_CONFIG_OPTIONS
654 RUBY_SO_DIR
655 RUBY_PREFIX
656 HAVE_RUBY_FALSE
657 HAVE_RUBY_TRUE
658 RUBY
659 PYTHON_QUIET
660 HAVE_PYTHON_FALSE
661 HAVE_PYTHON_TRUE
662 PYTHON_INCLUDES
663 pkgpyexecdir
664 pyexecdir
665 pkgpythondir
666 pythondir
667 PYTHON_PLATFORM
668 PYTHON_EXEC_PREFIX
669 PYTHON_PREFIX
670 PYTHON_VERSION
671 PYTHON
672 SWIG
673 COMEDILIB_LIBS
674 COMEDILIB_CFLAGS
675 SCXI_SO_VERSION
676 COMEDILIB_LT_LDFLAGS
677 COMEDILIB_LIBVERSION
678 COMEDILIB_AGE
679 COMEDILIB_REVISION
680 COMEDILIB_CURRENT
681 CPP
682 LT_SYS_LIBRARY_PATH
683 OTOOL64
684 OTOOL
685 LIPO
686 NMEDIT
687 DSYMUTIL
688 MANIFEST_TOOL
689 RANLIB
690 DLLTOOL
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 LIBTOOL
702 YFLAGS
703 YACC
704 LEXLIB
705 LEX_OUTPUT_ROOT
706 LEX
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 am__nodep
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 ac_ct_AR
725 AR
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
738 AWK
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 COMEDILIB_VERSION_MICRO
757 COMEDILIB_VERSION_MINOR
758 COMEDILIB_VERSION_MAJOR
759 target_os
760 target_vendor
761 target_cpu
762 target
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 runstatedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 enable_silent_rules
814 enable_maintainer_mode
815 enable_dependency_tracking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_aix_soname
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_python_binding
825 enable_ruby_binding
826 enable_scxi
827 enable_docbook
828 with_pdf_backend
829 enable_firmware
830 with_udev_hotplug
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 YACC
841 YFLAGS
842 LT_SYS_LIBRARY_PATH
843 CPP
844 PYTHON
845 RUBY_PREFIX
846 RUBY_SO_DIR'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 runstatedir='${localstatedir}/run'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 # Accept the important Cygnus configure options, so we can diagnose typos.
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -runstatedir | --runstatedir | --runstatedi | --runstated \
1139 | --runstate | --runstat | --runsta | --runst | --runs \
1140 | --run | --ru | --r)
1141 ac_prev=runstatedir ;;
1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144 | --run=* | --ru=* | --r=*)
1145 runstatedir=$ac_optarg ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir runstatedir
1285 do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures comedilib 0.11.0 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/comedilib]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of comedilib 0.11.0:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --disable-maintainer-mode
1480 disable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-python-binding
1492 Disable building of Python binding
1493 --enable-ruby-binding Enable building of Ruby binding
1494 --enable-scxi Enable SCXI convenience library
1495 --disable-docbook Disable docbook
1496 --disable-firmware Disable installation of firmware files
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-aix-soname=aix|svr4|both
1504 shared library versioning (aka "SONAME") variant to
1505 provide on AIX, [default=aix].
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508 compiler's sysroot if not specified).
1509 --with-pdf-backend=[yes|no|dblatex|fop|default]
1510 Enable or disable PDF generation with backend
1511 --with-udev-hotplug=[/lib]
1512 enable udev hotplug
1513
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 YACC The `Yet Another Compiler Compiler' implementation to use.
1523 Defaults to the first program found out of: `bison -y', `byacc',
1524 `yacc'.
1525 YFLAGS The list of arguments that will be passed by default to $YACC.
1526 This script will default YFLAGS to the empty string to avoid a
1527 default value of `-d' given by some make applications.
1528 LT_SYS_LIBRARY_PATH
1529 User-defined run-time library search path.
1530 CPP C preprocessor
1531 PYTHON the Python interpreter
1532 RUBY_PREFIX path prefix for Ruby binding
1533 RUBY_SO_DIR path for Ruby extensions
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to the package provider.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 comedilib configure 0.11.0
1602 generated by GNU Autoconf 2.69
1603
1604 Copyright (C) 2012 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 test -x conftest$ac_exeext
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 eval "$3=yes"
1718 else
1719 eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } > conftest.i && {
1752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=$ac_status
1802 fi
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879 # the include files in INCLUDES and setting the cache variable VAR
1880 # accordingly.
1881 ac_fn_c_check_header_mongrel ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if eval \${$3+:} false; then :
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 else
1894 # Is the header compilable?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896 $as_echo_n "checking $2 usability... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 ac_header_compiler=yes
1904 else
1905 ac_header_compiler=no
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909 $as_echo "$ac_header_compiler" >&6; }
1910
1911 # Is the header present?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913 $as_echo_n "checking $2 presence... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_cpp "$LINENO"; then :
1919 ac_header_preproc=yes
1920 else
1921 ac_header_preproc=no
1922 fi
1923 rm -f conftest.err conftest.i conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925 $as_echo "$ac_header_preproc" >&6; }
1926
1927 # So? What about this header?
1928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 yes:no: )
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 ;;
1935 no:yes:* )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1939 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1943 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 ;;
1947 esac
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 eval "$3=\$ac_header_compiler"
1954 fi
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 fi
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_header_mongrel
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1965
1966 It was created by comedilib $as_me 0.11.0, which was
1967 generated by GNU Autoconf 2.69. Invocation command line was
1968
1969 $ $0 $@
1970
1971 _ACEOF
1972 exec 5>>config.log
1973 {
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1978
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995
1996 _ASUNAME
1997
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2006
2007 } >&5
2008
2009 cat >&5 <<_ACEOF
2010
2011
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2015
2016 _ACEOF
2017
2018
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2029 do
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042 2)
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2055 ;;
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2058 fi
2059 as_fn_append ac_configure_args " '$ac_arg'"
2060 ;;
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2066
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2074 {
2075 echo
2076
2077 $as_echo "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2080 echo
2081 # The following way of writing the cache mishandles newlines in values,
2082 (
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in #(
2086 *${as_nl}*)
2087 case $ac_var in #(
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 esac
2091 case $ac_var in #(
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2095 esac ;;
2096 esac
2097 done
2098 (set) 2>&1 |
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
2101 sed -n \
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 ;; #(
2105 *)
2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 ;;
2108 esac |
2109 sort
2110 )
2111 echo
2112
2113 $as_echo "## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##"
2116 echo
2117 for ac_var in $ac_subst_vars
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126
2127 if test -n "$ac_subst_files"; then
2128 $as_echo "## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##"
2131 echo
2132 for ac_var in $ac_subst_files
2133 do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2141 fi
2142
2143 if test -s confdefs.h; then
2144 $as_echo "## ----------- ##
2145 ## confdefs.h. ##
2146 ## ----------- ##"
2147 echo
2148 cat confdefs.h
2149 echo
2150 fi
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2154 } >&5
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 exit $exit_status
2158 ' 0
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161 done
2162 ac_signal=0
2163
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2166
2167 $as_echo "/* confdefs.h */" > confdefs.h
2168
2169 # Predefined preprocessor variables.
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2193 _ACEOF
2194
2195
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2198 ac_site_file1=NONE
2199 ac_site_file2=NONE
2200 if test -n "$CONFIG_SITE"; then
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2206 esac
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210 else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2213 fi
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215 do
2216 test "x$ac_site_file" = xNONE && continue
2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2221 . "$ac_site_file" \
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 as_fn_error $? "failed to load site script $ac_site_file
2225 See \`config.log' for more details" "$LINENO" 5; }
2226 fi
2227 done
2228
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2239 fi
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2244 fi
2245
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2294 fi
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 fi
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314 ac_aux_dir=
2315 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2316 if test -f "$ac_dir/install-sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2319 break
2320 elif test -f "$ac_dir/install.sh"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2323 break
2324 elif test -f "$ac_dir/shtool"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2327 break
2328 fi
2329 done
2330 if test -z "$ac_aux_dir"; then
2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341
2342
2343 # Make sure we can run config.sub.
2344 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2345 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2348 $as_echo_n "checking build system type... " >&6; }
2349 if ${ac_cv_build+:} false; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 ac_build_alias=$build_alias
2353 test "x$ac_build_alias" = x &&
2354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2355 test "x$ac_build_alias" = x &&
2356 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2362 $as_echo "$ac_cv_build" >&6; }
2363 case $ac_cv_build in
2364 *-*-*) ;;
2365 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2366 esac
2367 build=$ac_cv_build
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_build
2370 shift
2371 build_cpu=$1
2372 build_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 build_os=$*
2377 IFS=$ac_save_IFS
2378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379
2380
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if ${ac_cv_host+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388 else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 fi
2392
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2396 case $ac_cv_host in
2397 *-*-*) ;;
2398 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2399 esac
2400 host=$ac_cv_host
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_host
2403 shift
2404 host_cpu=$1
2405 host_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 host_os=$*
2410 IFS=$ac_save_IFS
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if ${ac_cv_target+:} false; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421 else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 fi
2425
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2430 *-*-*) ;;
2431 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2432 esac
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2435 set x $ac_cv_target
2436 shift
2437 target_cpu=$1
2438 target_vendor=$2
2439 shift; shift
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2442 target_os=$*
2443 IFS=$ac_save_IFS
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445
2446
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
2453
2454 COMEDILIB_VERSION_MAJOR=0
2455 COMEDILIB_VERSION_MINOR=11
2456 COMEDILIB_VERSION_MICRO=0
2457
2458
2459
2460
2461
2462 ac_aux_dir=
2463 for ac_dir in . "$srcdir"/.; do
2464 if test -f "$ac_dir/install-sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 break
2468 elif test -f "$ac_dir/install.sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 break
2472 elif test -f "$ac_dir/shtool"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 break
2476 fi
2477 done
2478 if test -z "$ac_aux_dir"; then
2479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2480 fi
2481
2482 # These three variables are undocumented and unsupported,
2483 # and are intended to be withdrawn in a future Autoconf release.
2484 # They can cause serious problems if a builder's source tree is in a directory
2485 # whose full name contains unusual characters.
2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489
2490
2491 #COMEDILIB_DEBUG="-Wall -Werror"
2492 COMEDILIB_DEBUG="-Wall"
2493 am__api_version='1.15'
2494
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 # Reject install programs that cannot install multiple files.
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2510 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2511 if test -z "$INSTALL"; then
2512 if ${ac_cv_path_install+:} false; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521 case $as_dir/ in #((
2522 ./ | .// | /[cC]/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2525 /usr/ucb/* ) ;;
2526 *)
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2533 if test $ac_prog = install &&
2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2536 :
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2540 :
2541 else
2542 rm -rf conftest.one conftest.two conftest.dir
2543 echo one > conftest.one
2544 echo two > conftest.two
2545 mkdir conftest.dir
2546 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2547 test -s conftest.one && test -s conftest.two &&
2548 test -s conftest.dir/conftest.one &&
2549 test -s conftest.dir/conftest.two
2550 then
2551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2552 break 3
2553 fi
2554 fi
2555 fi
2556 done
2557 done
2558 ;;
2559 esac
2560
2561 done
2562 IFS=$as_save_IFS
2563
2564 rm -rf conftest.one conftest.two conftest.dir
2565
2566 fi
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL=$ac_cv_path_install
2569 else
2570 # As a last resort, use the slow shell script. Don't cache a
2571 # value for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the value is a relative name.
2574 INSTALL=$ac_install_sh
2575 fi
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2578 $as_echo "$INSTALL" >&6; }
2579
2580 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2581 # It thinks the first close brace ends the variable substitution.
2582 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2583
2584 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2585
2586 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2587
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2589 $as_echo_n "checking whether build environment is sane... " >&6; }
2590 # Reject unsafe characters in $srcdir or the absolute working directory
2591 # name. Accept space and tab only in the latter.
2592 am_lf='
2593 '
2594 case `pwd` in
2595 *[\\\"\#\$\&\'\`$am_lf]*)
2596 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2597 esac
2598 case $srcdir in
2599 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2600 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2601 esac
2602
2603 # Do 'set' in a subshell so we don't clobber the current shell's
2604 # arguments. Must try -L first in case configure is actually a
2605 # symlink; some systems play weird games with the mod time of symlinks
2606 # (eg FreeBSD returns the mod time of the symlink's containing
2607 # directory).
2608 if (
2609 am_has_slept=no
2610 for am_try in 1 2; do
2611 echo "timestamp, slept: $am_has_slept" > conftest.file
2612 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2613 if test "$*" = "X"; then
2614 # -L didn't work.
2615 set X `ls -t "$srcdir/configure" conftest.file`
2616 fi
2617 if test "$*" != "X $srcdir/configure conftest.file" \
2618 && test "$*" != "X conftest.file $srcdir/configure"; then
2619
2620 # If neither matched, then we have a broken ls. This can happen
2621 # if, for instance, CONFIG_SHELL is bash and it inherits a
2622 # broken ls alias from the environment. This has actually
2623 # happened. Such a system could not be considered "sane".
2624 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2625 alias in your environment" "$LINENO" 5
2626 fi
2627 if test "$2" = conftest.file || test $am_try -eq 2; then
2628 break
2629 fi
2630 # Just in case.
2631 sleep 1
2632 am_has_slept=yes
2633 done
2634 test "$2" = conftest.file
2635 )
2636 then
2637 # Ok.
2638 :
2639 else
2640 as_fn_error $? "newly created file is older than distributed files!
2641 Check your system clock" "$LINENO" 5
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2645 # If we didn't sleep, we still need to ensure time stamps of config.status and
2646 # generated files are strictly newer.
2647 am_sleep_pid=
2648 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2649 ( sleep 1 ) &
2650 am_sleep_pid=$!
2651 fi
2652
2653 rm -f conftest.file
2654
2655 test "$program_prefix" != NONE &&
2656 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2657 # Use a double $ so make ignores it.
2658 test "$program_suffix" != NONE &&
2659 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2660 # Double any \ or $.
2661 # By default was `s,x,x', remove it if useless.
2662 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2663 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2664
2665 # Expand $ac_aux_dir to an absolute path.
2666 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2667
2668 if test x"${MISSING+set}" != xset; then
2669 case $am_aux_dir in
2670 *\ * | *\ *)
2671 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2672 *)
2673 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2674 esac
2675 fi
2676 # Use eval to expand $SHELL
2677 if eval "$MISSING --is-lightweight"; then
2678 am_missing_run="$MISSING "
2679 else
2680 am_missing_run=
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2682 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2683 fi
2684
2685 if test x"${install_sh+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689 *)
2690 install_sh="\${SHELL} $am_aux_dir/install-sh"
2691 esac
2692 fi
2693
2694 # Installed binaries are usually stripped using 'strip' when the user
2695 # run "make install-strip". However 'strip' might not be the right
2696 # tool to use in cross-compilation environments, therefore Automake
2697 # will honor the 'STRIP' environment variable to overrule this program.
2698 if test "$cross_compiling" != no; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}strip; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_STRIP+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$STRIP"; then
2708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 STRIP=$ac_cv_prog_STRIP
2728 if test -n "$STRIP"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2730 $as_echo "$STRIP" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 if test -z "$ac_cv_prog_STRIP"; then
2739 ac_ct_STRIP=$STRIP
2740 # Extract the first word of "strip", so it can be a program name with args.
2741 set dummy strip; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$ac_ct_STRIP"; then
2748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_ac_ct_STRIP="strip"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2768 if test -n "$ac_ct_STRIP"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2770 $as_echo "$ac_ct_STRIP" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776 if test "x$ac_ct_STRIP" = x; then
2777 STRIP=":"
2778 else
2779 case $cross_compiling:$ac_tool_warned in
2780 yes:)
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2783 ac_tool_warned=yes ;;
2784 esac
2785 STRIP=$ac_ct_STRIP
2786 fi
2787 else
2788 STRIP="$ac_cv_prog_STRIP"
2789 fi
2790
2791 fi
2792 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2795 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2796 if test -z "$MKDIR_P"; then
2797 if ${ac_cv_path_mkdir+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_prog in mkdir gmkdir; do
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2808 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2809 'mkdir (GNU coreutils) '* | \
2810 'mkdir (coreutils) '* | \
2811 'mkdir (fileutils) '4.1*)
2812 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2813 break 3;;
2814 esac
2815 done
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821
2822 test -d ./--version && rmdir ./--version
2823 if test "${ac_cv_path_mkdir+set}" = set; then
2824 MKDIR_P="$ac_cv_path_mkdir -p"
2825 else
2826 # As a last resort, use the slow shell script. Don't cache a
2827 # value for MKDIR_P within a source directory, because that will
2828 # break other packages using the cache if that directory is
2829 # removed, or if the value is a relative name.
2830 MKDIR_P="$ac_install_sh -d"
2831 fi
2832 fi
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2834 $as_echo "$MKDIR_P" >&6; }
2835
2836 for ac_prog in gawk mawk nawk awk
2837 do
2838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2839 set dummy $ac_prog; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_AWK+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$AWK"; then
2846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_AWK="$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 AWK=$ac_cv_prog_AWK
2866 if test -n "$AWK"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2868 $as_echo "$AWK" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875 test -n "$AWK" && break
2876 done
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2879 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2880 set x ${MAKE-make}
2881 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2882 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 cat >conftest.make <<\_ACEOF
2886 SHELL = /bin/sh
2887 all:
2888 @echo '@@@%%%=$(MAKE)=@@@%%%'
2889 _ACEOF
2890 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2891 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2892 *@@@%%%=?*=@@@%%%*)
2893 eval ac_cv_prog_make_${ac_make}_set=yes;;
2894 *)
2895 eval ac_cv_prog_make_${ac_make}_set=no;;
2896 esac
2897 rm -f conftest.make
2898 fi
2899 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2901 $as_echo "yes" >&6; }
2902 SET_MAKE=
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 SET_MAKE="MAKE=${MAKE-make}"
2907 fi
2908
2909 rm -rf .tst 2>/dev/null
2910 mkdir .tst 2>/dev/null
2911 if test -d .tst; then
2912 am__leading_dot=.
2913 else
2914 am__leading_dot=_
2915 fi
2916 rmdir .tst 2>/dev/null
2917
2918 # Check whether --enable-silent-rules was given.
2919 if test "${enable_silent_rules+set}" = set; then :
2920 enableval=$enable_silent_rules;
2921 fi
2922
2923 case $enable_silent_rules in # (((
2924 yes) AM_DEFAULT_VERBOSITY=0;;
2925 no) AM_DEFAULT_VERBOSITY=1;;
2926 *) AM_DEFAULT_VERBOSITY=1;;
2927 esac
2928 am_make=${MAKE-make}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2930 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2931 if ${am_cv_make_support_nested_variables+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if $as_echo 'TRUE=$(BAR$(V))
2935 BAR0=false
2936 BAR1=true
2937 V=1
2938 am__doit:
2939 @$(TRUE)
2940 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2941 am_cv_make_support_nested_variables=yes
2942 else
2943 am_cv_make_support_nested_variables=no
2944 fi
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2947 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2948 if test $am_cv_make_support_nested_variables = yes; then
2949 AM_V='$(V)'
2950 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2951 else
2952 AM_V=$AM_DEFAULT_VERBOSITY
2953 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2954 fi
2955 AM_BACKSLASH='\'
2956
2957 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2958 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2959 # is not polluted with repeated "-I."
2960 am__isrc=' -I$(srcdir)'
2961 # test to see if srcdir already configured
2962 if test -f $srcdir/config.status; then
2963 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2964 fi
2965 fi
2966
2967 # test whether we have cygpath
2968 if test -z "$CYGPATH_W"; then
2969 if (cygpath --version) >/dev/null 2>/dev/null; then
2970 CYGPATH_W='cygpath -w'
2971 else
2972 CYGPATH_W=echo
2973 fi
2974 fi
2975
2976
2977 # Define the identity of the package.
2978 PACKAGE='comedilib'
2979 VERSION='0.11.0'
2980
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE "$PACKAGE"
2984 _ACEOF
2985
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define VERSION "$VERSION"
2989 _ACEOF
2990
2991 # Some tools Automake needs.
2992
2993 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2994
2995
2996 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2997
2998
2999 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3000
3001
3002 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3003
3004
3005 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3006
3007 # For better backward compatibility. To be removed once Automake 1.9.x
3008 # dies out for good. For more background, see:
3009 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3010 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3011 mkdir_p='$(MKDIR_P)'
3012
3013 # We need awk for the "check" target (and possibly the TAP driver). The
3014 # system "awk" is bad on some platforms.
3015 # Always define AMTAR for backward compatibility. Yes, it's still used
3016 # in the wild :-( We should find a proper way to deprecate it ...
3017 AMTAR='$${TAR-tar}'
3018
3019
3020 # We'll loop over all known methods to create a tar archive until one works.
3021 _am_tools='gnutar pax cpio none'
3022
3023 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3024
3025
3026
3027
3028
3029
3030 # POSIX will say in a future version that running "rm -f" with no argument
3031 # is OK; and we want to be able to make that assumption in our Makefile
3032 # recipes. So use an aggressive probe to check that the usage we want is
3033 # actually supported "in the wild" to an acceptable degree.
3034 # See automake bug#10828.
3035 # To make any issue more visible, cause the running configure to be aborted
3036 # by default if the 'rm' program in use doesn't match our expectations; the
3037 # user can still override this though.
3038 if rm -f && rm -fr && rm -rf; then : OK; else
3039 cat >&2 <<'END'
3040 Oops!
3041
3042 Your 'rm' program seems unable to run without file operands specified
3043 on the command line, even when the '-f' option is present. This is contrary
3044 to the behaviour of most rm programs out there, and not conforming with
3045 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3046
3047 Please tell [email protected] about your system, including the value
3048 of your $PATH and any error possibly output before this message. This
3049 can help us improve future automake versions.
3050
3051 END
3052 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3053 echo 'Configuration will proceed anyway, since you have set the' >&2
3054 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3055 echo >&2
3056 else
3057 cat >&2 <<'END'
3058 Aborting the configuration process, to ensure you take notice of the issue.
3059
3060 You can download and install GNU coreutils to get an 'rm' implementation
3061 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3062
3063 If you want to complete the configuration process using your problematic
3064 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3065 to "yes", and re-run configure.
3066
3067 END
3068 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3069 fi
3070 fi
3071
3072
3073 ac_config_headers="$ac_config_headers config.h"
3074
3075
3076 ACLOCAL="$ACLOCAL -I m4"
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3080 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3081 # Check whether --enable-maintainer-mode was given.
3082 if test "${enable_maintainer_mode+set}" = set; then :
3083 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3084 else
3085 USE_MAINTAINER_MODE=yes
3086 fi
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3089 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3090 if test $USE_MAINTAINER_MODE = yes; then
3091 MAINTAINER_MODE_TRUE=
3092 MAINTAINER_MODE_FALSE='#'
3093 else
3094 MAINTAINER_MODE_TRUE='#'
3095 MAINTAINER_MODE_FALSE=
3096 fi
3097
3098 MAINT=$MAINTAINER_MODE_TRUE
3099
3100
3101
3102 DEPDIR="${am__leading_dot}deps"
3103
3104 ac_config_commands="$ac_config_commands depfiles"
3105
3106
3107 am_make=${MAKE-make}
3108 cat > confinc << 'END'
3109 am__doit:
3110 @echo this is the am__doit target
3111 .PHONY: am__doit
3112 END
3113 # If we don't find an include directive, just comment out the code.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116 am__include="#"
3117 am__quote=
3118 _am_result=none
3119 # First try GNU make style include.
3120 echo "include confinc" > confmf
3121 # Ignore all kinds of additional output from 'make'.
3122 case `$am_make -s -f confmf 2> /dev/null` in #(
3123 *the\ am__doit\ target*)
3124 am__include=include
3125 am__quote=
3126 _am_result=GNU
3127 ;;
3128 esac
3129 # Now try BSD make style include.
3130 if test "$am__include" = "#"; then
3131 echo '.include "confinc"' > confmf
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=.include
3135 am__quote="\""
3136 _am_result=BSD
3137 ;;
3138 esac
3139 fi
3140
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143 $as_echo "$_am_result" >&6; }
3144 rm -f confinc confmf
3145
3146 # Check whether --enable-dependency-tracking was given.
3147 if test "${enable_dependency_tracking+set}" = set; then :
3148 enableval=$enable_dependency_tracking;
3149 fi
3150
3151 if test "x$enable_dependency_tracking" != xno; then
3152 am_depcomp="$ac_aux_dir/depcomp"
3153 AMDEPBACKSLASH='\'
3154 am__nodep='_no'
3155 fi
3156 if test "x$enable_dependency_tracking" != xno; then
3157 AMDEP_TRUE=
3158 AMDEP_FALSE='#'
3159 else
3160 AMDEP_TRUE='#'
3161 AMDEP_FALSE=
3162 fi
3163
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 fi
3209 if test -z "$ac_cv_prog_CC"; then
3210 ac_ct_CC=$CC
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212 set dummy gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_ac_ct_CC="gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239 if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241 $as_echo "$ac_ct_CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 CC=$ac_ct_CC
3257 fi
3258 else
3259 CC="$ac_cv_prog_CC"
3260 fi
3261
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 fi
3303 if test -z "$CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305 set dummy cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 ac_prog_rejected=no
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323 ac_prog_rejected=yes
3324 continue
3325 fi
3326 ac_cv_prog_CC="cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3337 shift
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3342 shift
3343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 fi
3345 fi
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358 fi
3359 if test -z "$CC"; then
3360 if test -n "$ac_tool_prefix"; then
3361 for ac_prog in cl.exe
3362 do
3363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_CC+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 test -n "$CC" && break
3401 done
3402 fi
3403 if test -z "$CC"; then
3404 ac_ct_CC=$CC
3405 for ac_prog in cl.exe
3406 do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_CC="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 test -n "$ac_ct_CC" && break
3445 done
3446
3447 if test "x$ac_ct_CC" = x; then
3448 CC=""
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 CC=$ac_ct_CC
3457 fi
3458 fi
3459
3460 fi
3461
3462
3463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "no acceptable C compiler found in \$PATH
3466 See \`config.log' for more details" "$LINENO" 5; }
3467
3468 # Provide some information about the compiler.
3469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470 set X $ac_compile
3471 ac_compiler=$2
3472 for ac_option in --version -v -V -qversion; do
3473 { { ac_try="$ac_compiler $ac_option >&5"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 ac_status=$?
3482 if test -s conftest.err; then
3483 sed '10a\
3484 ... rest of stderr output deleted ...
3485 10q' conftest.err >conftest.er1
3486 cat conftest.er1 >&5
3487 fi
3488 rm -f conftest.er1 conftest.err
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }
3491 done
3492
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main ()
3498 {
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 ac_clean_files_save=$ac_clean_files
3505 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3506 # Try to create an executable without -o first, disregard a.out.
3507 # It will help us diagnose broken compilers, and finding out an intuition
3508 # of exeext.
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3510 $as_echo_n "checking whether the C compiler works... " >&6; }
3511 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512
3513 # The possible output files:
3514 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3515
3516 ac_rmfiles=
3517 for ac_file in $ac_files
3518 do
3519 case $ac_file in
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3522 esac
3523 done
3524 rm -f $ac_rmfiles
3525
3526 if { { ac_try="$ac_link_default"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link_default") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3538 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3539 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3540 # so that the user can short-circuit this test for compilers unknown to
3541 # Autoconf.
3542 for ac_file in $ac_files ''
3543 do
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3547 ;;
3548 [ab].out )
3549 # We found the default executable, but exeext='' is most
3550 # certainly right.
3551 break;;
3552 *.* )
3553 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 then :; else
3555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 fi
3557 # We set ac_cv_exeext here because the later test for it is not
3558 # safe: cross compilers may not add the suffix if given an `-o'
3559 # argument, so we may need to know it at that point already.
3560 # Even if this section looks crufty: it has the advantage of
3561 # actually working.
3562 break;;
3563 * )
3564 break;;
3565 esac
3566 done
3567 test "$ac_cv_exeext" = no && ac_cv_exeext=
3568
3569 else
3570 ac_file=''
3571 fi
3572 if test -z "$ac_file"; then :
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error 77 "C compiler cannot create executables
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3584 $as_echo "yes" >&6; }
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3587 $as_echo_n "checking for C compiler default output file name... " >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3589 $as_echo "$ac_file" >&6; }
3590 ac_exeext=$ac_cv_exeext
3591
3592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3593 ac_clean_files=$ac_clean_files_save
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3595 $as_echo_n "checking for suffix of executables... " >&6; }
3596 if { { ac_try="$ac_link"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_link") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; then :
3607 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3608 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3609 # work properly (i.e., refer to `conftest.exe'), while it won't with
3610 # `rm'.
3611 for ac_file in conftest.exe conftest conftest.*; do
3612 test -f "$ac_file" || continue
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 break;;
3617 * ) break;;
3618 esac
3619 done
3620 else
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3624 See \`config.log' for more details" "$LINENO" 5; }
3625 fi
3626 rm -f conftest conftest$ac_cv_exeext
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3628 $as_echo "$ac_cv_exeext" >&6; }
3629
3630 rm -f conftest.$ac_ext
3631 EXEEXT=$ac_cv_exeext
3632 ac_exeext=$EXEEXT
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <stdio.h>
3636 int
3637 main ()
3638 {
3639 FILE *f = fopen ("conftest.out", "w");
3640 return ferror (f) || fclose (f) != 0;
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 ac_clean_files="$ac_clean_files conftest.out"
3647 # Check that the compiler produces executables we can run. If not, either
3648 # the compiler is broken, or we cross compile.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3650 $as_echo_n "checking whether we are cross compiling... " >&6; }
3651 if test "$cross_compiling" != yes; then
3652 { { ac_try="$ac_link"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3663 if { ac_try='./conftest$ac_cv_exeext'
3664 { { case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_try") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; }; then
3674 cross_compiling=no
3675 else
3676 if test "$cross_compiling" = maybe; then
3677 cross_compiling=yes
3678 else
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $? "cannot run C compiled programs.
3682 If you meant to cross compile, use \`--host'.
3683 See \`config.log' for more details" "$LINENO" 5; }
3684 fi
3685 fi
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3688 $as_echo "$cross_compiling" >&6; }
3689
3690 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3693 $as_echo_n "checking for suffix of object files... " >&6; }
3694 if ${ac_cv_objext+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.o conftest.obj
3709 if { { ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_compile") 2>&5
3717 ac_status=$?
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; then :
3720 for ac_file in conftest.o conftest.obj conftest.*; do
3721 test -f "$ac_file" || continue;
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 break;;
3726 esac
3727 done
3728 else
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $? "cannot compute suffix of object files: cannot compile
3735 See \`config.log' for more details" "$LINENO" 5; }
3736 fi
3737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3740 $as_echo "$ac_cv_objext" >&6; }
3741 OBJEXT=$ac_cv_objext
3742 ac_objext=$OBJEXT
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3744 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3745 if ${ac_cv_c_compiler_gnu+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754 #ifndef __GNUC__
3755 choke me
3756 #endif
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_compiler_gnu=yes
3764 else
3765 ac_compiler_gnu=no
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3772 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3773 if test $ac_compiler_gnu = yes; then
3774 GCC=yes
3775 else
3776 GCC=
3777 fi
3778 ac_test_CFLAGS=${CFLAGS+set}
3779 ac_save_CFLAGS=$CFLAGS
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3781 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3782 if ${ac_cv_prog_cc_g+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_save_c_werror_flag=$ac_c_werror_flag
3786 ac_c_werror_flag=yes
3787 ac_cv_prog_cc_g=no
3788 CFLAGS="-g"
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_g=yes
3802 else
3803 CFLAGS=""
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816
3817 else
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3819 CFLAGS="-g"
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_g=yes
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3842 $as_echo "$ac_cv_prog_cc_g" >&6; }
3843 if test "$ac_test_CFLAGS" = set; then
3844 CFLAGS=$ac_save_CFLAGS
3845 elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3847 CFLAGS="-g -O2"
3848 else
3849 CFLAGS="-g"
3850 fi
3851 else
3852 if test "$GCC" = yes; then
3853 CFLAGS="-O2"
3854 else
3855 CFLAGS=
3856 fi
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860 if ${ac_cv_prog_cc_c89+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_cv_prog_cc_c89=no
3864 ac_save_CC=$CC
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <stdarg.h>
3868 #include <stdio.h>
3869 struct stat;
3870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3871 struct buf { int x; };
3872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3873 static char *e (p, i)
3874 char **p;
3875 int i;
3876 {
3877 return p[i];
3878 }
3879 static char *f (char * (*g) (char **, int), char **p, ...)
3880 {
3881 char *s;
3882 va_list v;
3883 va_start (v,p);
3884 s = g (p, va_arg (v,int));
3885 va_end (v);
3886 return s;
3887 }
3888
3889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3890 function prototypes and stuff, but not '\xHH' hex character constants.
3891 These don't provoke an error unfortunately, instead are silently treated
3892 as 'x'. The following induces an error, until -std is added to get
3893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3894 array size at least. It's necessary to write '\x00'==0 to get something
3895 that's true only with -std. */
3896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3897
3898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3899 inside strings and character constants. */
3900 #define FOO(x) 'x'
3901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3902
3903 int test (int i, double x);
3904 struct s1 {int (*f) (int a);};
3905 struct s2 {int (*f) (double a);};
3906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3907 int argc;
3908 char **argv;
3909 int
3910 main ()
3911 {
3912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3918 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3919 do
3920 CC="$ac_save_CC $ac_arg"
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_prog_cc_c89=$ac_arg
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c89" != "xno" && break
3926 done
3927 rm -f conftest.$ac_ext
3928 CC=$ac_save_CC
3929
3930 fi
3931 # AC_CACHE_VAL
3932 case "x$ac_cv_prog_cc_c89" in
3933 x)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3936 xno)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3939 *)
3940 CC="$CC $ac_cv_prog_cc_c89"
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3943 esac
3944 if test "x$ac_cv_prog_cc_c89" != xno; then :
3945
3946 fi
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3960 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3961 if ${am_cv_prog_cc_c_o+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 # Make sure it works both with $CC and with simple cc.
3976 # Following AC_PROG_CC_C_O, we do the test twice because some
3977 # compilers refuse to overwrite an existing .o file with -o,
3978 # though they will create one.
3979 am_cv_prog_cc_c_o=yes
3980 for am_i in 1 2; do
3981 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3982 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } \
3986 && test -f conftest2.$ac_objext; then
3987 : OK
3988 else
3989 am_cv_prog_cc_c_o=no
3990 break
3991 fi
3992 done
3993 rm -f core conftest*
3994 unset am_i
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3997 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3998 if test "$am_cv_prog_cc_c_o" != yes; then
3999 # Losing compiler, so override with the script.
4000 # FIXME: It is wrong to rewrite CC.
4001 # But if we don't then we get into trouble of one sort or another.
4002 # A longer-term fix would be to have automake use am__CC in this case,
4003 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4004 CC="$am_aux_dir/compile $CC"
4005 fi
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011
4012
4013 depcc="$CC" am_compiler_list=
4014
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4016 $as_echo_n "checking dependency style of $depcc... " >&6; }
4017 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021 # We make a subdir and do the tests there. Otherwise we can end up
4022 # making bogus files that we don't know about and never remove. For
4023 # instance it was reported that on HP-UX the gcc test will end up
4024 # making a dummy file named 'D' -- because '-MD' means "put the output
4025 # in D".
4026 rm -rf conftest.dir
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4039
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 fi
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4048
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4053 #
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4060 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4061 # Solaris 10 /bin/sh.
4062 echo '/* dummy */' > sub/conftst$i.h
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065
4066 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle '-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs.
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4076 ;;
4077 nosideeffect)
4078 # After this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested.
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4084 fi
4085 ;;
4086 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4087 # This compiler won't grok '-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4092 ;;
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4115 fi
4116 fi
4117 done
4118
4119 cd ..
4120 rm -rf conftest.dir
4121 else
4122 am_cv_CC_dependencies_compiler_type=none
4123 fi
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129
4130 if
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135 else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4138 fi
4139
4140
4141
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in ar lib "link -lib"
4144 do
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; 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 ${ac_cv_prog_AR+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$AR"; then
4153 ac_cv_prog_AR="$AR" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 AR=$ac_cv_prog_AR
4173 if test -n "$AR"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4175 $as_echo "$AR" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 test -n "$AR" && break
4183 done
4184 fi
4185 if test -z "$AR"; then
4186 ac_ct_AR=$AR
4187 for ac_prog in ar lib "link -lib"
4188 do
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$ac_ct_AR"; then
4197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_ac_ct_AR="$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4217 if test -n "$ac_ct_AR"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4219 $as_echo "$ac_ct_AR" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 test -n "$ac_ct_AR" && break
4227 done
4228
4229 if test "x$ac_ct_AR" = x; then
4230 AR="false"
4231 else
4232 case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4237 esac
4238 AR=$ac_ct_AR
4239 fi
4240 fi
4241
4242 : ${AR=ar}
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4245 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4246 if ${am_cv_ar_interface+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254
4255 am_cv_ar_interface=ar
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 int some_variable = 0;
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4263 (eval $am_ar_try) 2>&5
4264 ac_status=$?
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }
4267 if test "$ac_status" -eq 0; then
4268 am_cv_ar_interface=ar
4269 else
4270 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4272 (eval $am_ar_try) 2>&5
4273 ac_status=$?
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }
4276 if test "$ac_status" -eq 0; then
4277 am_cv_ar_interface=lib
4278 else
4279 am_cv_ar_interface=unknown
4280 fi
4281 fi
4282 rm -f conftest.lib libconftest.a
4283
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4294 $as_echo "$am_cv_ar_interface" >&6; }
4295
4296 case $am_cv_ar_interface in
4297 ar)
4298 ;;
4299 lib)
4300 # Microsoft lib, so override with the ar-lib wrapper script.
4301 # FIXME: It is wrong to rewrite AR.
4302 # But if we don't then we get into trouble of one sort or another.
4303 # A longer-term fix would be to have automake use am__AR in this case,
4304 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4305 # similar.
4306 AR="$am_aux_dir/ar-lib $AR"
4307 ;;
4308 unknown)
4309 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4310 ;;
4311 esac
4312
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356 fi
4357 if test -z "$ac_cv_prog_CC"; then
4358 ac_ct_CC=$CC
4359 # Extract the first word of "gcc", so it can be a program name with args.
4360 set dummy gcc; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$ac_ct_CC"; then
4367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_ac_ct_CC="gcc"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4387 if test -n "$ac_ct_CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4389 $as_echo "$ac_ct_CC" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395 if test "x$ac_ct_CC" = x; then
4396 CC=""
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 CC=$ac_ct_CC
4405 fi
4406 else
4407 CC="$ac_cv_prog_CC"
4408 fi
4409
4410 if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}cc; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if ${ac_cv_prog_CC+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$CC"; then
4420 ac_cv_prog_CC="$CC" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_CC="${ac_tool_prefix}cc"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 CC=$ac_cv_prog_CC
4440 if test -n "$CC"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442 $as_echo "$CC" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 fi
4451 if test -z "$CC"; then
4452 # Extract the first word of "cc", so it can be a program name with args.
4453 set dummy cc; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_CC+:} false; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4461 else
4462 ac_prog_rejected=no
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4471 ac_prog_rejected=yes
4472 continue
4473 fi
4474 ac_cv_prog_CC="cc"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 if test $ac_prog_rejected = yes; then
4483 # We found a bogon in the path, so make sure we never use it.
4484 set dummy $ac_cv_prog_CC
4485 shift
4486 if test $# != 0; then
4487 # We chose a different compiler from the bogus one.
4488 # However, it has the same basename, so the bogon will be chosen
4489 # first if we set CC to just the basename; use the full file name.
4490 shift
4491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4492 fi
4493 fi
4494 fi
4495 fi
4496 CC=$ac_cv_prog_CC
4497 if test -n "$CC"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4499 $as_echo "$CC" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505
4506 fi
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in cl.exe
4510 do
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_CC+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 CC=$ac_cv_prog_CC
4539 if test -n "$CC"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4541 $as_echo "$CC" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 test -n "$CC" && break
4549 done
4550 fi
4551 if test -z "$CC"; then
4552 ac_ct_CC=$CC
4553 for ac_prog in cl.exe
4554 do
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CC"; then
4563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_ac_ct_CC="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576 done
4577 done
4578 IFS=$as_save_IFS
4579
4580 fi
4581 fi
4582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4583 if test -n "$ac_ct_CC"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4585 $as_echo "$ac_ct_CC" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$ac_ct_CC" && break
4593 done
4594
4595 if test "x$ac_ct_CC" = x; then
4596 CC=""
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CC=$ac_ct_CC
4605 fi
4606 fi
4607
4608 fi
4609
4610
4611 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "no acceptable C compiler found in \$PATH
4614 See \`config.log' for more details" "$LINENO" 5; }
4615
4616 # Provide some information about the compiler.
4617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4618 set X $ac_compile
4619 ac_compiler=$2
4620 for ac_option in --version -v -V -qversion; do
4621 { { ac_try="$ac_compiler $ac_option >&5"
4622 case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 $as_echo "$ac_try_echo"; } >&5
4628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4629 ac_status=$?
4630 if test -s conftest.err; then
4631 sed '10a\
4632 ... rest of stderr output deleted ...
4633 10q' conftest.err >conftest.er1
4634 cat conftest.er1 >&5
4635 fi
4636 rm -f conftest.er1 conftest.err
4637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4638 test $ac_status = 0; }
4639 done
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4643 if ${ac_cv_c_compiler_gnu+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main ()
4651 {
4652 #ifndef __GNUC__
4653 choke me
4654 #endif
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_compiler_gnu=yes
4662 else
4663 ac_compiler_gnu=no
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4671 if test $ac_compiler_gnu = yes; then
4672 GCC=yes
4673 else
4674 GCC=
4675 fi
4676 ac_test_CFLAGS=${CFLAGS+set}
4677 ac_save_CFLAGS=$CFLAGS
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4680 if ${ac_cv_prog_cc_g+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 ac_save_c_werror_flag=$ac_c_werror_flag
4684 ac_c_werror_flag=yes
4685 ac_cv_prog_cc_g=no
4686 CFLAGS="-g"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689
4690 int
4691 main ()
4692 {
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_g=yes
4700 else
4701 CFLAGS=""
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704
4705 int
4706 main ()
4707 {
4708
4709 ;
4710 return 0;
4711 }
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714
4715 else
4716 ac_c_werror_flag=$ac_save_c_werror_flag
4717 CFLAGS="-g"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_g=yes
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_c_werror_flag=$ac_save_c_werror_flag
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4740 $as_echo "$ac_cv_prog_cc_g" >&6; }
4741 if test "$ac_test_CFLAGS" = set; then
4742 CFLAGS=$ac_save_CFLAGS
4743 elif test $ac_cv_prog_cc_g = yes; then
4744 if test "$GCC" = yes; then
4745 CFLAGS="-g -O2"
4746 else
4747 CFLAGS="-g"
4748 fi
4749 else
4750 if test "$GCC" = yes; then
4751 CFLAGS="-O2"
4752 else
4753 CFLAGS=
4754 fi
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4757 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4758 if ${ac_cv_prog_cc_c89+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 ac_cv_prog_cc_c89=no
4762 ac_save_CC=$CC
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <stdarg.h>
4766 #include <stdio.h>
4767 struct stat;
4768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4769 struct buf { int x; };
4770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4771 static char *e (p, i)
4772 char **p;
4773 int i;
4774 {
4775 return p[i];
4776 }
4777 static char *f (char * (*g) (char **, int), char **p, ...)
4778 {
4779 char *s;
4780 va_list v;
4781 va_start (v,p);
4782 s = g (p, va_arg (v,int));
4783 va_end (v);
4784 return s;
4785 }
4786
4787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4788 function prototypes and stuff, but not '\xHH' hex character constants.
4789 These don't provoke an error unfortunately, instead are silently treated
4790 as 'x'. The following induces an error, until -std is added to get
4791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4792 array size at least. It's necessary to write '\x00'==0 to get something
4793 that's true only with -std. */
4794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4795
4796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4797 inside strings and character constants. */
4798 #define FOO(x) 'x'
4799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4800
4801 int test (int i, double x);
4802 struct s1 {int (*f) (int a);};
4803 struct s2 {int (*f) (double a);};
4804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4805 int argc;
4806 char **argv;
4807 int
4808 main ()
4809 {
4810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4817 do
4818 CC="$ac_save_CC $ac_arg"
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 ac_cv_prog_cc_c89=$ac_arg
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext
4823 test "x$ac_cv_prog_cc_c89" != "xno" && break
4824 done
4825 rm -f conftest.$ac_ext
4826 CC=$ac_save_CC
4827
4828 fi
4829 # AC_CACHE_VAL
4830 case "x$ac_cv_prog_cc_c89" in
4831 x)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4833 $as_echo "none needed" >&6; } ;;
4834 xno)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4836 $as_echo "unsupported" >&6; } ;;
4837 *)
4838 CC="$CC $ac_cv_prog_cc_c89"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4841 esac
4842 if test "x$ac_cv_prog_cc_c89" != xno; then :
4843
4844 fi
4845
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852 ac_ext=c
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4858 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4859 if ${am_cv_prog_cc_c_o+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 # Make sure it works both with $CC and with simple cc.
4874 # Following AC_PROG_CC_C_O, we do the test twice because some
4875 # compilers refuse to overwrite an existing .o file with -o,
4876 # though they will create one.
4877 am_cv_prog_cc_c_o=yes
4878 for am_i in 1 2; do
4879 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4880 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } \
4884 && test -f conftest2.$ac_objext; then
4885 : OK
4886 else
4887 am_cv_prog_cc_c_o=no
4888 break
4889 fi
4890 done
4891 rm -f core conftest*
4892 unset am_i
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4895 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4896 if test "$am_cv_prog_cc_c_o" != yes; then
4897 # Losing compiler, so override with the script.
4898 # FIXME: It is wrong to rewrite CC.
4899 # But if we don't then we get into trouble of one sort or another.
4900 # A longer-term fix would be to have automake use am__CC in this case,
4901 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4902 CC="$am_aux_dir/compile $CC"
4903 fi
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
4910
4911 depcc="$CC" am_compiler_list=
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4914 $as_echo_n "checking dependency style of $depcc... " >&6; }
4915 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4919 # We make a subdir and do the tests there. Otherwise we can end up
4920 # making bogus files that we don't know about and never remove. For
4921 # instance it was reported that on HP-UX the gcc test will end up
4922 # making a dummy file named 'D' -- because '-MD' means "put the output
4923 # in D".
4924 rm -rf conftest.dir
4925 mkdir conftest.dir
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4929 cd conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4935 # directory.
4936 mkdir sub
4937
4938 am_cv_CC_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4941 fi
4942 am__universal=false
4943 case " $depcc " in #(
4944 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4945 esac
4946
4947 for depmode in $am_compiler_list; do
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4951 #
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4955 : > sub/conftest.c
4956 for i in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4959 # Solaris 10 /bin/sh.
4960 echo '/* dummy */' > sub/conftst$i.h
4961 done
4962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4963
4964 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4965 # mode. It turns out that the SunPro C++ compiler does not properly
4966 # handle '-M -o', and we need to detect this. Also, some Intel
4967 # versions had trouble with output in subdirs.
4968 am__obj=sub/conftest.${OBJEXT-o}
4969 am__minus_obj="-o $am__obj"
4970 case $depmode in
4971 gcc)
4972 # This depmode causes a compiler race in universal mode.
4973 test "$am__universal" = false || continue
4974 ;;
4975 nosideeffect)
4976 # After this tag, mechanisms are not by side-effect, so they'll
4977 # only be used when explicitly requested.
4978 if test "x$enable_dependency_tracking" = xyes; then
4979 continue
4980 else
4981 break
4982 fi
4983 ;;
4984 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4985 # This compiler won't grok '-c -o', but also, the minuso test has
4986 # not run yet. These depmodes are late enough in the game, and
4987 # so weak that their functioning should not be impacted.
4988 am__obj=conftest.${OBJEXT-o}
4989 am__minus_obj=
4990 ;;
4991 none) break ;;
4992 esac
4993 if depmode=$depmode \
4994 source=sub/conftest.c object=$am__obj \
4995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4997 >/dev/null 2>conftest.err &&
4998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5002 # icc doesn't choke on unknown options, it will just issue warnings
5003 # or remarks (even with -Werror). So we grep stderr for any message
5004 # that says an option was ignored or not supported.
5005 # When given -MP, icc 7.0 and 7.1 complain thusly:
5006 # icc: Command line warning: ignoring option '-M'; no argument required
5007 # The diagnosis changed in icc 8.0:
5008 # icc: Command line remark: option '-MP' not supported
5009 if (grep 'ignoring option' conftest.err ||
5010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5011 am_cv_CC_dependencies_compiler_type=$depmode
5012 break
5013 fi
5014 fi
5015 done
5016
5017 cd ..
5018 rm -rf conftest.dir
5019 else
5020 am_cv_CC_dependencies_compiler_type=none
5021 fi
5022
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5025 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5027
5028 if
5029 test "x$enable_dependency_tracking" != xno \
5030 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5031 am__fastdepCC_TRUE=
5032 am__fastdepCC_FALSE='#'
5033 else
5034 am__fastdepCC_TRUE='#'
5035 am__fastdepCC_FALSE=
5036 fi
5037
5038
5039
5040 case $ac_cv_prog_cc_stdc in #(
5041 no) :
5042 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5043 *) :
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5045 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5046 if ${ac_cv_prog_cc_c99+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 ac_cv_prog_cc_c99=no
5050 ac_save_CC=$CC
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <stdarg.h>
5054 #include <stdbool.h>
5055 #include <stdlib.h>
5056 #include <wchar.h>
5057 #include <stdio.h>
5058
5059 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5060 #define debug(...) fprintf (stderr, __VA_ARGS__)
5061 #define showlist(...) puts (#__VA_ARGS__)
5062 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5063 static void
5064 test_varargs_macros (void)
5065 {
5066 int x = 1234;
5067 int y = 5678;
5068 debug ("Flag");
5069 debug ("X = %d\n", x);
5070 showlist (The first, second, and third items.);
5071 report (x>y, "x is %d but y is %d", x, y);
5072 }
5073
5074 // Check long long types.
5075 #define BIG64 18446744073709551615ull
5076 #define BIG32 4294967295ul
5077 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5078 #if !BIG_OK
5079 your preprocessor is broken;
5080 #endif
5081 #if BIG_OK
5082 #else
5083 your preprocessor is broken;
5084 #endif
5085 static long long int bignum = -9223372036854775807LL;
5086 static unsigned long long int ubignum = BIG64;
5087
5088 struct incomplete_array
5089 {
5090 int datasize;
5091 double data[];
5092 };
5093
5094 struct named_init {
5095 int number;
5096 const wchar_t *name;
5097 double average;
5098 };
5099
5100 typedef const char *ccp;
5101
5102 static inline int
5103 test_restrict (ccp restrict text)
5104 {
5105 // See if C++-style comments work.
5106 // Iterate through items via the restricted pointer.
5107 // Also check for declarations in for loops.
5108 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5109 continue;
5110 return 0;
5111 }
5112
5113 // Check varargs and va_copy.
5114 static void
5115 test_varargs (const char *format, ...)
5116 {
5117 va_list args;
5118 va_start (args, format);
5119 va_list args_copy;
5120 va_copy (args_copy, args);
5121
5122 const char *str;
5123 int number;
5124 float fnumber;
5125
5126 while (*format)
5127 {
5128 switch (*format++)
5129 {
5130 case 's': // string
5131 str = va_arg (args_copy, const char *);
5132 break;
5133 case 'd': // int
5134 number = va_arg (args_copy, int);
5135 break;
5136 case 'f': // float
5137 fnumber = va_arg (args_copy, double);
5138 break;
5139 default:
5140 break;
5141 }
5142 }
5143 va_end (args_copy);
5144 va_end (args);
5145 }
5146
5147 int
5148 main ()
5149 {
5150
5151 // Check bool.
5152 _Bool success = false;
5153
5154 // Check restrict.
5155 if (test_restrict ("String literal") == 0)
5156 success = true;
5157 char *restrict newvar = "Another string";
5158
5159 // Check varargs.
5160 test_varargs ("s, d' f .", "string", 65, 34.234);
5161 test_varargs_macros ();
5162
5163 // Check flexible array members.
5164 struct incomplete_array *ia =
5165 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5166 ia->datasize = 10;
5167 for (int i = 0; i < ia->datasize; ++i)
5168 ia->data[i] = i * 1.234;
5169
5170 // Check named initializers.
5171 struct named_init ni = {
5172 .number = 34,
5173 .name = L"Test wide string",
5174 .average = 543.34343,
5175 };
5176
5177 ni.number = 58;
5178
5179 int dynamic_array[ni.number];
5180 dynamic_array[ni.number - 1] = 543;
5181
5182 // work around unused variable warnings
5183 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5184 || dynamic_array[ni.number - 1] != 543);
5185
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5191 do
5192 CC="$ac_save_CC $ac_arg"
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_prog_cc_c99=$ac_arg
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext
5197 test "x$ac_cv_prog_cc_c99" != "xno" && break
5198 done
5199 rm -f conftest.$ac_ext
5200 CC=$ac_save_CC
5201
5202 fi
5203 # AC_CACHE_VAL
5204 case "x$ac_cv_prog_cc_c99" in
5205 x)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5207 $as_echo "none needed" >&6; } ;;
5208 xno)
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5210 $as_echo "unsupported" >&6; } ;;
5211 *)
5212 CC="$CC $ac_cv_prog_cc_c99"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5214 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5215 esac
5216 if test "x$ac_cv_prog_cc_c99" != xno; then :
5217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5220 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5221 if ${ac_cv_prog_cc_c89+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 ac_cv_prog_cc_c89=no
5225 ac_save_CC=$CC
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 #include <stdarg.h>
5229 #include <stdio.h>
5230 struct stat;
5231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5232 struct buf { int x; };
5233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5234 static char *e (p, i)
5235 char **p;
5236 int i;
5237 {
5238 return p[i];
5239 }
5240 static char *f (char * (*g) (char **, int), char **p, ...)
5241 {
5242 char *s;
5243 va_list v;
5244 va_start (v,p);
5245 s = g (p, va_arg (v,int));
5246 va_end (v);
5247 return s;
5248 }
5249
5250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5251 function prototypes and stuff, but not '\xHH' hex character constants.
5252 These don't provoke an error unfortunately, instead are silently treated
5253 as 'x'. The following induces an error, until -std is added to get
5254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5255 array size at least. It's necessary to write '\x00'==0 to get something
5256 that's true only with -std. */
5257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5258
5259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5260 inside strings and character constants. */
5261 #define FOO(x) 'x'
5262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5263
5264 int test (int i, double x);
5265 struct s1 {int (*f) (int a);};
5266 struct s2 {int (*f) (double a);};
5267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5268 int argc;
5269 char **argv;
5270 int
5271 main ()
5272 {
5273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5280 do
5281 CC="$ac_save_CC $ac_arg"
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_prog_cc_c89=$ac_arg
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext
5286 test "x$ac_cv_prog_cc_c89" != "xno" && break
5287 done
5288 rm -f conftest.$ac_ext
5289 CC=$ac_save_CC
5290
5291 fi
5292 # AC_CACHE_VAL
5293 case "x$ac_cv_prog_cc_c89" in
5294 x)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5296 $as_echo "none needed" >&6; } ;;
5297 xno)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5299 $as_echo "unsupported" >&6; } ;;
5300 *)
5301 CC="$CC $ac_cv_prog_cc_c89"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5303 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5304 esac
5305 if test "x$ac_cv_prog_cc_c89" != xno; then :
5306 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5307 else
5308 ac_cv_prog_cc_stdc=no
5309 fi
5310
5311 fi
5312 ;;
5313 esac
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5315 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5316 if ${ac_cv_prog_cc_stdc+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 fi
5319
5320 case $ac_cv_prog_cc_stdc in #(
5321 no) :
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5323 $as_echo "unsupported" >&6; } ;; #(
5324 '') :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5326 $as_echo "none needed" >&6; } ;; #(
5327 *) :
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5329 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5330 esac
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5333 $as_echo_n "checking for library containing strerror... " >&6; }
5334 if ${ac_cv_search_strerror+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 ac_func_search_save_LIBS=$LIBS
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340
5341 /* Override any GCC internal prototype to avoid an error.
5342 Use char because int might match the return type of a GCC
5343 builtin and then its argument prototype would still apply. */
5344 #ifdef __cplusplus
5345 extern "C"
5346 #endif
5347 char strerror ();
5348 int
5349 main ()
5350 {
5351 return strerror ();
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 for ac_lib in '' cposix; do
5357 if test -z "$ac_lib"; then
5358 ac_res="none required"
5359 else
5360 ac_res=-l$ac_lib
5361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5362 fi
5363 if ac_fn_c_try_link "$LINENO"; then :
5364 ac_cv_search_strerror=$ac_res
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext \
5367 conftest$ac_exeext
5368 if ${ac_cv_search_strerror+:} false; then :
5369 break
5370 fi
5371 done
5372 if ${ac_cv_search_strerror+:} false; then :
5373
5374 else
5375 ac_cv_search_strerror=no
5376 fi
5377 rm conftest.$ac_ext
5378 LIBS=$ac_func_search_save_LIBS
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5381 $as_echo "$ac_cv_search_strerror" >&6; }
5382 ac_res=$ac_cv_search_strerror
5383 if test "$ac_res" != no; then :
5384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5385
5386 fi
5387
5388 for ac_prog in flex lex
5389 do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_LEX+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$LEX"; then
5398 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_LEX="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 LEX=$ac_cv_prog_LEX
5418 if test -n "$LEX"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5420 $as_echo "$LEX" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 test -n "$LEX" && break
5428 done
5429 test -n "$LEX" || LEX=":"
5430
5431 if test "x$LEX" != "x:"; then
5432 cat >conftest.l <<_ACEOF
5433 %%
5434 a { ECHO; }
5435 b { REJECT; }
5436 c { yymore (); }
5437 d { yyless (1); }
5438 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5439 yyless ((input () != 0)); }
5440 f { unput (yytext[0]); }
5441 . { BEGIN INITIAL; }
5442 %%
5443 #ifdef YYTEXT_POINTER
5444 extern char *yytext;
5445 #endif
5446 int
5447 main (void)
5448 {
5449 return ! yylex () + ! yywrap ();
5450 }
5451 _ACEOF
5452 { { ac_try="$LEX conftest.l"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5458 $as_echo "$ac_try_echo"; } >&5
5459 (eval "$LEX conftest.l") 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5464 $as_echo_n "checking lex output file root... " >&6; }
5465 if ${ac_cv_prog_lex_root+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468
5469 if test -f lex.yy.c; then
5470 ac_cv_prog_lex_root=lex.yy
5471 elif test -f lexyy.c; then
5472 ac_cv_prog_lex_root=lexyy
5473 else
5474 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5475 fi
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5478 $as_echo "$ac_cv_prog_lex_root" >&6; }
5479 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5480
5481 if test -z "${LEXLIB+set}"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5483 $as_echo_n "checking lex library... " >&6; }
5484 if ${ac_cv_lib_lex+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487
5488 ac_save_LIBS=$LIBS
5489 ac_cv_lib_lex='none needed'
5490 for ac_lib in '' -lfl -ll; do
5491 LIBS="$ac_lib $ac_save_LIBS"
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 `cat $LEX_OUTPUT_ROOT.c`
5495 _ACEOF
5496 if ac_fn_c_try_link "$LINENO"; then :
5497 ac_cv_lib_lex=$ac_lib
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501 test "$ac_cv_lib_lex" != 'none needed' && break
5502 done
5503 LIBS=$ac_save_LIBS
5504
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5507 $as_echo "$ac_cv_lib_lex" >&6; }
5508 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5509 fi
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5513 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5514 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 # POSIX says lex can declare yytext either as a pointer or an array; the
5518 # default is implementation-dependent. Figure out which it is, since
5519 # not all implementations provide the %pointer and %array declarations.
5520 ac_cv_prog_lex_yytext_pointer=no
5521 ac_save_LIBS=$LIBS
5522 LIBS="$LEXLIB $ac_save_LIBS"
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525
5526 #define YYTEXT_POINTER 1
5527 `cat $LEX_OUTPUT_ROOT.c`
5528 _ACEOF
5529 if ac_fn_c_try_link "$LINENO"; then :
5530 ac_cv_prog_lex_yytext_pointer=yes
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_save_LIBS
5535
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5538 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5539 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5540
5541 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5542
5543 fi
5544 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5545
5546 fi
5547 if test "$LEX" = :; then
5548 LEX=${am_missing_run}flex
5549 fi
5550 for ac_prog in 'bison -y' byacc
5551 do
5552 # Extract the first word of "$ac_prog", so it can be a program name with args.
5553 set dummy $ac_prog; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_YACC+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$YACC"; then
5560 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_YACC="$ac_prog"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 YACC=$ac_cv_prog_YACC
5580 if test -n "$YACC"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5582 $as_echo "$YACC" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 test -n "$YACC" && break
5590 done
5591 test -n "$YACC" || YACC="yacc"
5592
5593 case `pwd` in
5594 *\ * | *\ *)
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5596 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5597 esac
5598
5599
5600
5601 macro_version='2.4.6'
5602 macro_revision='2.4.6'
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616 ltmain=$ac_aux_dir/ltmain.sh
5617
5618 # Backslashify metacharacters that are still active within
5619 # double-quoted strings.
5620 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5621
5622 # Same as above, but do not quote variable references.
5623 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5624
5625 # Sed substitution to delay expansion of an escaped shell variable in a
5626 # double_quote_subst'ed string.
5627 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5628
5629 # Sed substitution to delay expansion of an escaped single quote.
5630 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5631
5632 # Sed substitution to avoid accidental globbing in evaled expressions
5633 no_glob_subst='s/\*/\\\*/g'
5634
5635 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5636 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5640 $as_echo_n "checking how to print strings... " >&6; }
5641 # Test print first, because it will be a builtin if present.
5642 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5643 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5644 ECHO='print -r --'
5645 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5646 ECHO='printf %s\n'
5647 else
5648 # Use this function as a fallback that always works.
5649 func_fallback_echo ()
5650 {
5651 eval 'cat <<_LTECHO_EOF
5652 $1
5653 _LTECHO_EOF'
5654 }
5655 ECHO='func_fallback_echo'
5656 fi
5657
5658 # func_echo_all arg...
5659 # Invoke $ECHO with all args, space-separated.
5660 func_echo_all ()
5661 {
5662 $ECHO ""
5663 }
5664
5665 case $ECHO in
5666 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5667 $as_echo "printf" >&6; } ;;
5668 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5669 $as_echo "print -r" >&6; } ;;
5670 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5671 $as_echo "cat" >&6; } ;;
5672 esac
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5688 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5689 if ${ac_cv_path_SED+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5693 for ac_i in 1 2 3 4 5 6 7; do
5694 ac_script="$ac_script$as_nl$ac_script"
5695 done
5696 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5697 { ac_script=; unset ac_script;}
5698 if test -z "$SED"; then
5699 ac_path_SED_found=false
5700 # Loop through the user's path and test for each of PROGNAME-LIST
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_prog in sed gsed; do
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5709 as_fn_executable_p "$ac_path_SED" || continue
5710 # Check for GNU ac_path_SED and select it if it is found.
5711 # Check for GNU $ac_path_SED
5712 case `"$ac_path_SED" --version 2>&1` in
5713 *GNU*)
5714 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5715 *)
5716 ac_count=0
5717 $as_echo_n 0123456789 >"conftest.in"
5718 while :
5719 do
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 $as_echo '' >> "conftest.nl"
5724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 as_fn_arith $ac_count + 1 && ac_count=$as_val
5727 if test $ac_count -gt ${ac_path_SED_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_SED="$ac_path_SED"
5730 ac_path_SED_max=$ac_count
5731 fi
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5734 done
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738 $ac_path_SED_found && break 3
5739 done
5740 done
5741 done
5742 IFS=$as_save_IFS
5743 if test -z "$ac_cv_path_SED"; then
5744 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5745 fi
5746 else
5747 ac_cv_path_SED=$SED
5748 fi
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5752 $as_echo "$ac_cv_path_SED" >&6; }
5753 SED="$ac_cv_path_SED"
5754 rm -f conftest.sed
5755
5756 test -z "$SED" && SED=sed
5757 Xsed="$SED -e 1s/^X//"
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5771 if ${ac_cv_path_GREP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -z "$GREP"; then
5775 ac_path_GREP_found=false
5776 # Loop through the user's path and test for each of PROGNAME-LIST
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_prog in grep ggrep; do
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5785 as_fn_executable_p "$ac_path_GREP" || continue
5786 # Check for GNU ac_path_GREP and select it if it is found.
5787 # Check for GNU $ac_path_GREP
5788 case `"$ac_path_GREP" --version 2>&1` in
5789 *GNU*)
5790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5791 *)
5792 ac_count=0
5793 $as_echo_n 0123456789 >"conftest.in"
5794 while :
5795 do
5796 cat "conftest.in" "conftest.in" >"conftest.tmp"
5797 mv "conftest.tmp" "conftest.in"
5798 cp "conftest.in" "conftest.nl"
5799 $as_echo 'GREP' >> "conftest.nl"
5800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802 as_fn_arith $ac_count + 1 && ac_count=$as_val
5803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5804 # Best one so far, save it but keep looking for a better one
5805 ac_cv_path_GREP="$ac_path_GREP"
5806 ac_path_GREP_max=$ac_count
5807 fi
5808 # 10*(2^10) chars as input seems more than enough
5809 test $ac_count -gt 10 && break
5810 done
5811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812 esac
5813
5814 $ac_path_GREP_found && break 3
5815 done
5816 done
5817 done
5818 IFS=$as_save_IFS
5819 if test -z "$ac_cv_path_GREP"; then
5820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5821 fi
5822 else
5823 ac_cv_path_GREP=$GREP
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5828 $as_echo "$ac_cv_path_GREP" >&6; }
5829 GREP="$ac_cv_path_GREP"
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5833 $as_echo_n "checking for egrep... " >&6; }
5834 if ${ac_cv_path_EGREP+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5838 then ac_cv_path_EGREP="$GREP -E"
5839 else
5840 if test -z "$EGREP"; then
5841 ac_path_EGREP_found=false
5842 # Loop through the user's path and test for each of PROGNAME-LIST
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_prog in egrep; do
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5851 as_fn_executable_p "$ac_path_EGREP" || continue
5852 # Check for GNU ac_path_EGREP and select it if it is found.
5853 # Check for GNU $ac_path_EGREP
5854 case `"$ac_path_EGREP" --version 2>&1` in
5855 *GNU*)
5856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5857 *)
5858 ac_count=0
5859 $as_echo_n 0123456789 >"conftest.in"
5860 while :
5861 do
5862 cat "conftest.in" "conftest.in" >"conftest.tmp"
5863 mv "conftest.tmp" "conftest.in"
5864 cp "conftest.in" "conftest.nl"
5865 $as_echo 'EGREP' >> "conftest.nl"
5866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868 as_fn_arith $ac_count + 1 && ac_count=$as_val
5869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5870 # Best one so far, save it but keep looking for a better one
5871 ac_cv_path_EGREP="$ac_path_EGREP"
5872 ac_path_EGREP_max=$ac_count
5873 fi
5874 # 10*(2^10) chars as input seems more than enough
5875 test $ac_count -gt 10 && break
5876 done
5877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878 esac
5879
5880 $ac_path_EGREP_found && break 3
5881 done
5882 done
5883 done
5884 IFS=$as_save_IFS
5885 if test -z "$ac_cv_path_EGREP"; then
5886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5887 fi
5888 else
5889 ac_cv_path_EGREP=$EGREP
5890 fi
5891
5892 fi
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5895 $as_echo "$ac_cv_path_EGREP" >&6; }
5896 EGREP="$ac_cv_path_EGREP"
5897
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5900 $as_echo_n "checking for fgrep... " >&6; }
5901 if ${ac_cv_path_FGREP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5905 then ac_cv_path_FGREP="$GREP -F"
5906 else
5907 if test -z "$FGREP"; then
5908 ac_path_FGREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in fgrep; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5918 as_fn_executable_p "$ac_path_FGREP" || continue
5919 # Check for GNU ac_path_FGREP and select it if it is found.
5920 # Check for GNU $ac_path_FGREP
5921 case `"$ac_path_FGREP" --version 2>&1` in
5922 *GNU*)
5923 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5924 *)
5925 ac_count=0
5926 $as_echo_n 0123456789 >"conftest.in"
5927 while :
5928 do
5929 cat "conftest.in" "conftest.in" >"conftest.tmp"
5930 mv "conftest.tmp" "conftest.in"
5931 cp "conftest.in" "conftest.nl"
5932 $as_echo 'FGREP' >> "conftest.nl"
5933 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935 as_fn_arith $ac_count + 1 && ac_count=$as_val
5936 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5937 # Best one so far, save it but keep looking for a better one
5938 ac_cv_path_FGREP="$ac_path_FGREP"
5939 ac_path_FGREP_max=$ac_count
5940 fi
5941 # 10*(2^10) chars as input seems more than enough
5942 test $ac_count -gt 10 && break
5943 done
5944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5945 esac
5946
5947 $ac_path_FGREP_found && break 3
5948 done
5949 done
5950 done
5951 IFS=$as_save_IFS
5952 if test -z "$ac_cv_path_FGREP"; then
5953 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5954 fi
5955 else
5956 ac_cv_path_FGREP=$FGREP
5957 fi
5958
5959 fi
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5962 $as_echo "$ac_cv_path_FGREP" >&6; }
5963 FGREP="$ac_cv_path_FGREP"
5964
5965
5966 test -z "$GREP" && GREP=grep
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 # Check whether --with-gnu-ld was given.
5987 if test "${with_gnu_ld+set}" = set; then :
5988 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5989 else
5990 with_gnu_ld=no
5991 fi
5992
5993 ac_prog=ld
5994 if test yes = "$GCC"; then
5995 # Check if gcc -print-prog-name=ld gives a path.
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5997 $as_echo_n "checking for ld used by $CC... " >&6; }
5998 case $host in
5999 *-*-mingw*)
6000 # gcc leaves a trailing carriage return, which upsets mingw
6001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6002 *)
6003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6004 esac
6005 case $ac_prog in
6006 # Accept absolute paths.
6007 [\\/]* | ?:[\\/]*)
6008 re_direlt='/[^/][^/]*/\.\./'
6009 # Canonicalize the pathname of ld
6010 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6011 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6012 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6013 done
6014 test -z "$LD" && LD=$ac_prog
6015 ;;
6016 "")
6017 # If it fails, then pretend we aren't using GCC.
6018 ac_prog=ld
6019 ;;
6020 *)
6021 # If it is relative, then search for the first ld in PATH.
6022 with_gnu_ld=unknown
6023 ;;
6024 esac
6025 elif test yes = "$with_gnu_ld"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6027 $as_echo_n "checking for GNU ld... " >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6030 $as_echo_n "checking for non-GNU ld... " >&6; }
6031 fi
6032 if ${lt_cv_path_LD+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -z "$LD"; then
6036 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6037 for ac_dir in $PATH; do
6038 IFS=$lt_save_ifs
6039 test -z "$ac_dir" && ac_dir=.
6040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6041 lt_cv_path_LD=$ac_dir/$ac_prog
6042 # Check to see if the program is GNU ld. I'd rather use --version,
6043 # but apparently some variants of GNU ld only accept -v.
6044 # Break only if it was the GNU/non-GNU ld that we prefer.
6045 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6046 *GNU* | *'with BFD'*)
6047 test no != "$with_gnu_ld" && break
6048 ;;
6049 *)
6050 test yes != "$with_gnu_ld" && break
6051 ;;
6052 esac
6053 fi
6054 done
6055 IFS=$lt_save_ifs
6056 else
6057 lt_cv_path_LD=$LD # Let the user override the test with a path.
6058 fi
6059 fi
6060
6061 LD=$lt_cv_path_LD
6062 if test -n "$LD"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6064 $as_echo "$LD" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6071 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6072 if ${lt_cv_prog_gnu_ld+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6076 case `$LD -v 2>&1 </dev/null` in
6077 *GNU* | *'with BFD'*)
6078 lt_cv_prog_gnu_ld=yes
6079 ;;
6080 *)
6081 lt_cv_prog_gnu_ld=no
6082 ;;
6083 esac
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6086 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6087 with_gnu_ld=$lt_cv_prog_gnu_ld
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6098 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6099 if ${lt_cv_path_NM+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$NM"; then
6103 # Let the user override the test.
6104 lt_cv_path_NM=$NM
6105 else
6106 lt_nm_to_check=${ac_tool_prefix}nm
6107 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6108 lt_nm_to_check="$lt_nm_to_check nm"
6109 fi
6110 for lt_tmp_nm in $lt_nm_to_check; do
6111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6112 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6113 IFS=$lt_save_ifs
6114 test -z "$ac_dir" && ac_dir=.
6115 tmp_nm=$ac_dir/$lt_tmp_nm
6116 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6117 # Check to see if the nm accepts a BSD-compat flag.
6118 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6119 # nm: unknown option "B" ignored
6120 # Tru64's nm complains that /dev/null is an invalid object file
6121 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6122 case $build_os in
6123 mingw*) lt_bad_file=conftest.nm/nofile ;;
6124 *) lt_bad_file=/dev/null ;;
6125 esac
6126 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6127 *$lt_bad_file* | *'Invalid file or object type'*)
6128 lt_cv_path_NM="$tmp_nm -B"
6129 break 2
6130 ;;
6131 *)
6132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6133 */dev/null*)
6134 lt_cv_path_NM="$tmp_nm -p"
6135 break 2
6136 ;;
6137 *)
6138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6139 continue # so that we can try to find one that supports BSD flags
6140 ;;
6141 esac
6142 ;;
6143 esac
6144 fi
6145 done
6146 IFS=$lt_save_ifs
6147 done
6148 : ${lt_cv_path_NM=no}
6149 fi
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6152 $as_echo "$lt_cv_path_NM" >&6; }
6153 if test no != "$lt_cv_path_NM"; then
6154 NM=$lt_cv_path_NM
6155 else
6156 # Didn't find any BSD compatible name lister, look for dumpbin.
6157 if test -n "$DUMPBIN"; then :
6158 # Let the user override the test.
6159 else
6160 if test -n "$ac_tool_prefix"; then
6161 for ac_prog in dumpbin "link -dump"
6162 do
6163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_DUMPBIN+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$DUMPBIN"; then
6171 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 DUMPBIN=$ac_cv_prog_DUMPBIN
6191 if test -n "$DUMPBIN"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6193 $as_echo "$DUMPBIN" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 test -n "$DUMPBIN" && break
6201 done
6202 fi
6203 if test -z "$DUMPBIN"; then
6204 ac_ct_DUMPBIN=$DUMPBIN
6205 for ac_prog in dumpbin "link -dump"
6206 do
6207 # Extract the first word of "$ac_prog", so it can be a program name with args.
6208 set dummy $ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$ac_ct_DUMPBIN"; then
6215 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6235 if test -n "$ac_ct_DUMPBIN"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6237 $as_echo "$ac_ct_DUMPBIN" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244 test -n "$ac_ct_DUMPBIN" && break
6245 done
6246
6247 if test "x$ac_ct_DUMPBIN" = x; then
6248 DUMPBIN=":"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256 DUMPBIN=$ac_ct_DUMPBIN
6257 fi
6258 fi
6259
6260 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6261 *COFF*)
6262 DUMPBIN="$DUMPBIN -symbols -headers"
6263 ;;
6264 *)
6265 DUMPBIN=:
6266 ;;
6267 esac
6268 fi
6269
6270 if test : != "$DUMPBIN"; then
6271 NM=$DUMPBIN
6272 fi
6273 fi
6274 test -z "$NM" && NM=nm
6275
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6282 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6283 if ${lt_cv_nm_interface+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 lt_cv_nm_interface="BSD nm"
6287 echo "int some_variable = 0;" > conftest.$ac_ext
6288 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6289 (eval "$ac_compile" 2>conftest.err)
6290 cat conftest.err >&5
6291 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6292 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6293 cat conftest.err >&5
6294 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6295 cat conftest.out >&5
6296 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6297 lt_cv_nm_interface="MS dumpbin"
6298 fi
6299 rm -f conftest*
6300 fi
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6302 $as_echo "$lt_cv_nm_interface" >&6; }
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6305 $as_echo_n "checking whether ln -s works... " >&6; }
6306 LN_S=$as_ln_s
6307 if test "$LN_S" = "ln -s"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6309 $as_echo "yes" >&6; }
6310 else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6312 $as_echo "no, using $LN_S" >&6; }
6313 fi
6314
6315 # find the maximum length of command line arguments
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6317 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6318 if ${lt_cv_sys_max_cmd_len+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 i=0
6322 teststring=ABCD
6323
6324 case $build_os in
6325 msdosdjgpp*)
6326 # On DJGPP, this test can blow up pretty badly due to problems in libc
6327 # (any single argument exceeding 2000 bytes causes a buffer overrun
6328 # during glob expansion). Even if it were fixed, the result of this
6329 # check would be larger than it should be.
6330 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6331 ;;
6332
6333 gnu*)
6334 # Under GNU Hurd, this test is not required because there is
6335 # no limit to the length of command line arguments.
6336 # Libtool will interpret -1 as no limit whatsoever
6337 lt_cv_sys_max_cmd_len=-1;
6338 ;;
6339
6340 cygwin* | mingw* | cegcc*)
6341 # On Win9x/ME, this test blows up -- it succeeds, but takes
6342 # about 5 minutes as the teststring grows exponentially.
6343 # Worse, since 9x/ME are not pre-emptively multitasking,
6344 # you end up with a "frozen" computer, even though with patience
6345 # the test eventually succeeds (with a max line length of 256k).
6346 # Instead, let's just punt: use the minimum linelength reported by
6347 # all of the supported platforms: 8192 (on NT/2K/XP).
6348 lt_cv_sys_max_cmd_len=8192;
6349 ;;
6350
6351 mint*)
6352 # On MiNT this can take a long time and run out of memory.
6353 lt_cv_sys_max_cmd_len=8192;
6354 ;;
6355
6356 amigaos*)
6357 # On AmigaOS with pdksh, this test takes hours, literally.
6358 # So we just punt and use a minimum line length of 8192.
6359 lt_cv_sys_max_cmd_len=8192;
6360 ;;
6361
6362 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6363 # This has been around since 386BSD, at least. Likely further.
6364 if test -x /sbin/sysctl; then
6365 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6366 elif test -x /usr/sbin/sysctl; then
6367 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6368 else
6369 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6370 fi
6371 # And add a safety zone
6372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6374 ;;
6375
6376 interix*)
6377 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6378 lt_cv_sys_max_cmd_len=196608
6379 ;;
6380
6381 os2*)
6382 # The test takes a long time on OS/2.
6383 lt_cv_sys_max_cmd_len=8192
6384 ;;
6385
6386 osf*)
6387 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6388 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6389 # nice to cause kernel panics so lets avoid the loop below.
6390 # First set a reasonable default.
6391 lt_cv_sys_max_cmd_len=16384
6392 #
6393 if test -x /sbin/sysconfig; then
6394 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6395 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6396 esac
6397 fi
6398 ;;
6399 sco3.2v5*)
6400 lt_cv_sys_max_cmd_len=102400
6401 ;;
6402 sysv5* | sco5v6* | sysv4.2uw2*)
6403 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6404 if test -n "$kargmax"; then
6405 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6406 else
6407 lt_cv_sys_max_cmd_len=32768
6408 fi
6409 ;;
6410 *)
6411 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6412 if test -n "$lt_cv_sys_max_cmd_len" && \
6413 test undefined != "$lt_cv_sys_max_cmd_len"; then
6414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6416 else
6417 # Make teststring a little bigger before we do anything with it.
6418 # a 1K string should be a reasonable start.
6419 for i in 1 2 3 4 5 6 7 8; do
6420 teststring=$teststring$teststring
6421 done
6422 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6423 # If test is not a shell built-in, we'll probably end up computing a
6424 # maximum length that is only half of the actual maximum length, but
6425 # we can't tell.
6426 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6427 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6428 test 17 != "$i" # 1/2 MB should be enough
6429 do
6430 i=`expr $i + 1`
6431 teststring=$teststring$teststring
6432 done
6433 # Only check the string length outside the loop.
6434 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6435 teststring=
6436 # Add a significant safety factor because C++ compilers can tack on
6437 # massive amounts of additional arguments before passing them to the
6438 # linker. It appears as though 1/2 is a usable value.
6439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6440 fi
6441 ;;
6442 esac
6443
6444 fi
6445
6446 if test -n "$lt_cv_sys_max_cmd_len"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6448 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6451 $as_echo "none" >&6; }
6452 fi
6453 max_cmd_len=$lt_cv_sys_max_cmd_len
6454
6455
6456
6457
6458
6459
6460 : ${CP="cp -f"}
6461 : ${MV="mv -f"}
6462 : ${RM="rm -f"}
6463
6464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6465 lt_unset=unset
6466 else
6467 lt_unset=false
6468 fi
6469
6470
6471
6472
6473
6474 # test EBCDIC or ASCII
6475 case `echo X|tr X '\101'` in
6476 A) # ASCII based system
6477 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6478 lt_SP2NL='tr \040 \012'
6479 lt_NL2SP='tr \015\012 \040\040'
6480 ;;
6481 *) # EBCDIC based system
6482 lt_SP2NL='tr \100 \n'
6483 lt_NL2SP='tr \r\n \100\100'
6484 ;;
6485 esac
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6496 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6497 if ${lt_cv_to_host_file_cmd+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 case $host in
6501 *-*-mingw* )
6502 case $build in
6503 *-*-mingw* ) # actually msys
6504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6505 ;;
6506 *-*-cygwin* )
6507 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6508 ;;
6509 * ) # otherwise, assume *nix
6510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6511 ;;
6512 esac
6513 ;;
6514 *-*-cygwin* )
6515 case $build in
6516 *-*-mingw* ) # actually msys
6517 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6518 ;;
6519 *-*-cygwin* )
6520 lt_cv_to_host_file_cmd=func_convert_file_noop
6521 ;;
6522 * ) # otherwise, assume *nix
6523 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6524 ;;
6525 esac
6526 ;;
6527 * ) # unhandled hosts (and "normal" native builds)
6528 lt_cv_to_host_file_cmd=func_convert_file_noop
6529 ;;
6530 esac
6531
6532 fi
6533
6534 to_host_file_cmd=$lt_cv_to_host_file_cmd
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6536 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6537
6538
6539
6540
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6543 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6544 if ${lt_cv_to_tool_file_cmd+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 #assume ordinary cross tools, or native build.
6548 lt_cv_to_tool_file_cmd=func_convert_file_noop
6549 case $host in
6550 *-*-mingw* )
6551 case $build in
6552 *-*-mingw* ) # actually msys
6553 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6554 ;;
6555 esac
6556 ;;
6557 esac
6558
6559 fi
6560
6561 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6563 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6564
6565
6566
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6570 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6571 if ${lt_cv_ld_reload_flag+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_ld_reload_flag='-r'
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6577 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6578 reload_flag=$lt_cv_ld_reload_flag
6579 case $reload_flag in
6580 "" | " "*) ;;
6581 *) reload_flag=" $reload_flag" ;;
6582 esac
6583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6584 case $host_os in
6585 cygwin* | mingw* | pw32* | cegcc*)
6586 if test yes != "$GCC"; then
6587 reload_cmds=false
6588 fi
6589 ;;
6590 darwin*)
6591 if test yes = "$GCC"; then
6592 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6593 else
6594 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6595 fi
6596 ;;
6597 esac
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_OBJDUMP+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$OBJDUMP"; then
6616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 OBJDUMP=$ac_cv_prog_OBJDUMP
6636 if test -n "$OBJDUMP"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6638 $as_echo "$OBJDUMP" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_OBJDUMP"; then
6647 ac_ct_OBJDUMP=$OBJDUMP
6648 # Extract the first word of "objdump", so it can be a program name with args.
6649 set dummy objdump; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$ac_ct_OBJDUMP"; then
6656 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6676 if test -n "$ac_ct_OBJDUMP"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6678 $as_echo "$ac_ct_OBJDUMP" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_OBJDUMP" = x; then
6685 OBJDUMP="false"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 OBJDUMP=$ac_ct_OBJDUMP
6694 fi
6695 else
6696 OBJDUMP="$ac_cv_prog_OBJDUMP"
6697 fi
6698
6699 test -z "$OBJDUMP" && OBJDUMP=objdump
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6710 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6711 if ${lt_cv_deplibs_check_method+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 lt_cv_file_magic_cmd='$MAGIC_CMD'
6715 lt_cv_file_magic_test_file=
6716 lt_cv_deplibs_check_method='unknown'
6717 # Need to set the preceding variable on all platforms that support
6718 # interlibrary dependencies.
6719 # 'none' -- dependencies not supported.
6720 # 'unknown' -- same as none, but documents that we really don't know.
6721 # 'pass_all' -- all dependencies passed with no checks.
6722 # 'test_compile' -- check by making test program.
6723 # 'file_magic [[regex]]' -- check by looking for files in library path
6724 # that responds to the $file_magic_cmd with a given extended regex.
6725 # If you have 'file' or equivalent on your system and you're not sure
6726 # whether 'pass_all' will *always* work, you probably want this one.
6727
6728 case $host_os in
6729 aix[4-9]*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733 beos*)
6734 lt_cv_deplibs_check_method=pass_all
6735 ;;
6736
6737 bsdi[45]*)
6738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6739 lt_cv_file_magic_cmd='/usr/bin/file -L'
6740 lt_cv_file_magic_test_file=/shlib/libc.so
6741 ;;
6742
6743 cygwin*)
6744 # func_win32_libid is a shell function defined in ltmain.sh
6745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6746 lt_cv_file_magic_cmd='func_win32_libid'
6747 ;;
6748
6749 mingw* | pw32*)
6750 # Base MSYS/MinGW do not provide the 'file' command needed by
6751 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6752 # unless we find 'file', for example because we are cross-compiling.
6753 if ( file / ) >/dev/null 2>&1; then
6754 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6755 lt_cv_file_magic_cmd='func_win32_libid'
6756 else
6757 # Keep this pattern in sync with the one in func_win32_libid.
6758 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6759 lt_cv_file_magic_cmd='$OBJDUMP -f'
6760 fi
6761 ;;
6762
6763 cegcc*)
6764 # use the weaker test based on 'objdump'. See mingw*.
6765 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6766 lt_cv_file_magic_cmd='$OBJDUMP -f'
6767 ;;
6768
6769 darwin* | rhapsody*)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772
6773 freebsd* | dragonfly*)
6774 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6775 case $host_cpu in
6776 i*86 )
6777 # Not sure whether the presence of OpenBSD here was a mistake.
6778 # Let's accept both of them until this is cleared up.
6779 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6780 lt_cv_file_magic_cmd=/usr/bin/file
6781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6782 ;;
6783 esac
6784 else
6785 lt_cv_deplibs_check_method=pass_all
6786 fi
6787 ;;
6788
6789 haiku*)
6790 lt_cv_deplibs_check_method=pass_all
6791 ;;
6792
6793 hpux10.20* | hpux11*)
6794 lt_cv_file_magic_cmd=/usr/bin/file
6795 case $host_cpu in
6796 ia64*)
6797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6798 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6799 ;;
6800 hppa*64*)
6801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6802 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6803 ;;
6804 *)
6805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6806 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6807 ;;
6808 esac
6809 ;;
6810
6811 interix[3-9]*)
6812 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6814 ;;
6815
6816 irix5* | irix6* | nonstopux*)
6817 case $LD in
6818 *-32|*"-32 ") libmagic=32-bit;;
6819 *-n32|*"-n32 ") libmagic=N32;;
6820 *-64|*"-64 ") libmagic=64-bit;;
6821 *) libmagic=never-match;;
6822 esac
6823 lt_cv_deplibs_check_method=pass_all
6824 ;;
6825
6826 # This must be glibc/ELF.
6827 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6828 lt_cv_deplibs_check_method=pass_all
6829 ;;
6830
6831 netbsd* | netbsdelf*-gnu)
6832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6834 else
6835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6836 fi
6837 ;;
6838
6839 newos6*)
6840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6841 lt_cv_file_magic_cmd=/usr/bin/file
6842 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6843 ;;
6844
6845 *nto* | *qnx*)
6846 lt_cv_deplibs_check_method=pass_all
6847 ;;
6848
6849 openbsd* | bitrig*)
6850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6852 else
6853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6854 fi
6855 ;;
6856
6857 osf3* | osf4* | osf5*)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860
6861 rdos*)
6862 lt_cv_deplibs_check_method=pass_all
6863 ;;
6864
6865 solaris*)
6866 lt_cv_deplibs_check_method=pass_all
6867 ;;
6868
6869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6870 lt_cv_deplibs_check_method=pass_all
6871 ;;
6872
6873 sysv4 | sysv4.3*)
6874 case $host_vendor in
6875 motorola)
6876 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]'
6877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6878 ;;
6879 ncr)
6880 lt_cv_deplibs_check_method=pass_all
6881 ;;
6882 sequent)
6883 lt_cv_file_magic_cmd='/bin/file'
6884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6885 ;;
6886 sni)
6887 lt_cv_file_magic_cmd='/bin/file'
6888 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6889 lt_cv_file_magic_test_file=/lib/libc.so
6890 ;;
6891 siemens)
6892 lt_cv_deplibs_check_method=pass_all
6893 ;;
6894 pc)
6895 lt_cv_deplibs_check_method=pass_all
6896 ;;
6897 esac
6898 ;;
6899
6900 tpf*)
6901 lt_cv_deplibs_check_method=pass_all
6902 ;;
6903 os2*)
6904 lt_cv_deplibs_check_method=pass_all
6905 ;;
6906 esac
6907
6908 fi
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6910 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6911
6912 file_magic_glob=
6913 want_nocaseglob=no
6914 if test "$build" = "$host"; then
6915 case $host_os in
6916 mingw* | pw32*)
6917 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6918 want_nocaseglob=yes
6919 else
6920 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6921 fi
6922 ;;
6923 esac
6924 fi
6925
6926 file_magic_cmd=$lt_cv_file_magic_cmd
6927 deplibs_check_method=$lt_cv_deplibs_check_method
6928 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6953 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_prog_DLLTOOL+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$DLLTOOL"; then
6960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 DLLTOOL=$ac_cv_prog_DLLTOOL
6980 if test -n "$DLLTOOL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6982 $as_echo "$DLLTOOL" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988
6989 fi
6990 if test -z "$ac_cv_prog_DLLTOOL"; then
6991 ac_ct_DLLTOOL=$DLLTOOL
6992 # Extract the first word of "dlltool", so it can be a program name with args.
6993 set dummy dlltool; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$ac_ct_DLLTOOL"; then
7000 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7020 if test -n "$ac_ct_DLLTOOL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7022 $as_echo "$ac_ct_DLLTOOL" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028 if test "x$ac_ct_DLLTOOL" = x; then
7029 DLLTOOL="false"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032 yes:)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037 DLLTOOL=$ac_ct_DLLTOOL
7038 fi
7039 else
7040 DLLTOOL="$ac_cv_prog_DLLTOOL"
7041 fi
7042
7043 test -z "$DLLTOOL" && DLLTOOL=dlltool
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7055 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7056 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 lt_cv_sharedlib_from_linklib_cmd='unknown'
7060
7061 case $host_os in
7062 cygwin* | mingw* | pw32* | cegcc*)
7063 # two different shell functions defined in ltmain.sh;
7064 # decide which one to use based on capabilities of $DLLTOOL
7065 case `$DLLTOOL --help 2>&1` in
7066 *--identify-strict*)
7067 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7068 ;;
7069 *)
7070 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7071 ;;
7072 esac
7073 ;;
7074 *)
7075 # fallback: assume linklib IS sharedlib
7076 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7077 ;;
7078 esac
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7082 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7083 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7084 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7085
7086
7087
7088
7089
7090
7091
7092 if test -n "$ac_tool_prefix"; then
7093 for ac_prog in ar
7094 do
7095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_AR+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 if test -n "$AR"; then
7103 ac_cv_prog_AR="$AR" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 AR=$ac_cv_prog_AR
7123 if test -n "$AR"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7125 $as_echo "$AR" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 test -n "$AR" && break
7133 done
7134 fi
7135 if test -z "$AR"; then
7136 ac_ct_AR=$AR
7137 for ac_prog in ar
7138 do
7139 # Extract the first word of "$ac_prog", so it can be a program name with args.
7140 set dummy $ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_AR"; then
7147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_AR="$ac_prog"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7167 if test -n "$ac_ct_AR"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7169 $as_echo "$ac_ct_AR" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 test -n "$ac_ct_AR" && break
7177 done
7178
7179 if test "x$ac_ct_AR" = x; then
7180 AR="false"
7181 else
7182 case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7187 esac
7188 AR=$ac_ct_AR
7189 fi
7190 fi
7191
7192 : ${AR=ar}
7193 : ${AR_FLAGS=cru}
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7206 $as_echo_n "checking for archiver @FILE support... " >&6; }
7207 if ${lt_cv_ar_at_file+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 lt_cv_ar_at_file=no
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 echo conftest.$ac_objext > conftest.lst
7224 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7226 (eval $lt_ar_try) 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }
7230 if test 0 -eq "$ac_status"; then
7231 # Ensure the archiver fails upon bogus file names.
7232 rm -f conftest.$ac_objext libconftest.a
7233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7234 (eval $lt_ar_try) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }
7238 if test 0 -ne "$ac_status"; then
7239 lt_cv_ar_at_file=@
7240 fi
7241 fi
7242 rm -f conftest.* libconftest.a
7243
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7249 $as_echo "$lt_cv_ar_at_file" >&6; }
7250
7251 if test no = "$lt_cv_ar_at_file"; then
7252 archiver_list_spec=
7253 else
7254 archiver_list_spec=$lt_cv_ar_at_file
7255 fi
7256
7257
7258
7259
7260
7261
7262
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7265 set dummy ${ac_tool_prefix}strip; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_STRIP+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$STRIP"; then
7272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289 fi
7290 fi
7291 STRIP=$ac_cv_prog_STRIP
7292 if test -n "$STRIP"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7294 $as_echo "$STRIP" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299
7300
7301 fi
7302 if test -z "$ac_cv_prog_STRIP"; then
7303 ac_ct_STRIP=$STRIP
7304 # Extract the first word of "strip", so it can be a program name with args.
7305 set dummy strip; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$ac_ct_STRIP"; then
7312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_ac_ct_STRIP="strip"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7332 if test -n "$ac_ct_STRIP"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7334 $as_echo "$ac_ct_STRIP" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340 if test "x$ac_ct_STRIP" = x; then
7341 STRIP=":"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344 yes:)
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347 ac_tool_warned=yes ;;
7348 esac
7349 STRIP=$ac_ct_STRIP
7350 fi
7351 else
7352 STRIP="$ac_cv_prog_STRIP"
7353 fi
7354
7355 test -z "$STRIP" && STRIP=:
7356
7357
7358
7359
7360
7361
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_RANLIB+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$RANLIB"; then
7371 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 RANLIB=$ac_cv_prog_RANLIB
7391 if test -n "$RANLIB"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7393 $as_echo "$RANLIB" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_RANLIB"; then
7402 ac_ct_RANLIB=$RANLIB
7403 # Extract the first word of "ranlib", so it can be a program name with args.
7404 set dummy ranlib; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_RANLIB"; then
7411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_ac_ct_RANLIB="ranlib"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7431 if test -n "$ac_ct_RANLIB"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7433 $as_echo "$ac_ct_RANLIB" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439 if test "x$ac_ct_RANLIB" = x; then
7440 RANLIB=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 RANLIB=$ac_ct_RANLIB
7449 fi
7450 else
7451 RANLIB="$ac_cv_prog_RANLIB"
7452 fi
7453
7454 test -z "$RANLIB" && RANLIB=:
7455
7456
7457
7458
7459
7460
7461 # Determine commands to create old-style static archives.
7462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7463 old_postinstall_cmds='chmod 644 $oldlib'
7464 old_postuninstall_cmds=
7465
7466 if test -n "$RANLIB"; then
7467 case $host_os in
7468 bitrig* | openbsd*)
7469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7470 ;;
7471 *)
7472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7473 ;;
7474 esac
7475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7476 fi
7477
7478 case $host_os in
7479 darwin*)
7480 lock_old_archive_extraction=yes ;;
7481 *)
7482 lock_old_archive_extraction=no ;;
7483 esac
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523 # If no C compiler was specified, use CC.
7524 LTCC=${LTCC-"$CC"}
7525
7526 # If no C compiler flags were specified, use CFLAGS.
7527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7528
7529 # Allow CC to be a program name with arguments.
7530 compiler=$CC
7531
7532
7533 # Check for command to grab the raw symbol name followed by C symbol from nm.
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7535 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7536 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539
7540 # These are sane defaults that work on at least a few old systems.
7541 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7542
7543 # Character class describing NM global symbol codes.
7544 symcode='[BCDEGRST]'
7545
7546 # Regexp to match symbols that can be accessed directly from C.
7547 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7548
7549 # Define system-specific variables.
7550 case $host_os in
7551 aix*)
7552 symcode='[BCDT]'
7553 ;;
7554 cygwin* | mingw* | pw32* | cegcc*)
7555 symcode='[ABCDGISTW]'
7556 ;;
7557 hpux*)
7558 if test ia64 = "$host_cpu"; then
7559 symcode='[ABCDEGRST]'
7560 fi
7561 ;;
7562 irix* | nonstopux*)
7563 symcode='[BCDEGRST]'
7564 ;;
7565 osf*)
7566 symcode='[BCDEGQRST]'
7567 ;;
7568 solaris*)
7569 symcode='[BDRT]'
7570 ;;
7571 sco3.2v5*)
7572 symcode='[DT]'
7573 ;;
7574 sysv4.2uw2*)
7575 symcode='[DT]'
7576 ;;
7577 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7578 symcode='[ABDT]'
7579 ;;
7580 sysv4)
7581 symcode='[DFNSTU]'
7582 ;;
7583 esac
7584
7585 # If we're using GNU nm, then use its standard symbol codes.
7586 case `$NM -V 2>&1` in
7587 *GNU* | *'with BFD'*)
7588 symcode='[ABCDGIRSTW]' ;;
7589 esac
7590
7591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7592 # Gets list of data symbols to import.
7593 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7594 # Adjust the below global symbol transforms to fixup imported variables.
7595 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7596 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7597 lt_c_name_lib_hook="\
7598 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7599 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7600 else
7601 # Disable hooks by default.
7602 lt_cv_sys_global_symbol_to_import=
7603 lt_cdecl_hook=
7604 lt_c_name_hook=
7605 lt_c_name_lib_hook=
7606 fi
7607
7608 # Transform an extracted symbol line into a proper C declaration.
7609 # Some systems (esp. on ia64) link data and code symbols differently,
7610 # so use this general approach.
7611 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7612 $lt_cdecl_hook\
7613 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7614 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7615
7616 # Transform an extracted symbol line into symbol name and symbol address
7617 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7618 $lt_c_name_hook\
7619 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7620 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7621
7622 # Transform an extracted symbol line into symbol name with lib prefix and
7623 # symbol address.
7624 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7625 $lt_c_name_lib_hook\
7626 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7627 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7628 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7629
7630 # Handle CRLF in mingw tool chain
7631 opt_cr=
7632 case $build_os in
7633 mingw*)
7634 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7635 ;;
7636 esac
7637
7638 # Try without a prefix underscore, then with it.
7639 for ac_symprfx in "" "_"; do
7640
7641 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7642 symxfrm="\\1 $ac_symprfx\\2 \\2"
7643
7644 # Write the raw and C identifiers.
7645 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7646 # Fake it for dumpbin and say T for any non-static function,
7647 # D for any global variable and I for any imported variable.
7648 # Also find C++ and __fastcall symbols from MSVC++,
7649 # which start with @ or ?.
7650 lt_cv_sys_global_symbol_pipe="$AWK '"\
7651 " {last_section=section; section=\$ 3};"\
7652 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7653 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7654 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7655 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7656 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7657 " \$ 0!~/External *\|/{next};"\
7658 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7659 " {if(hide[section]) next};"\
7660 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7661 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7662 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7663 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7664 " ' prfx=^$ac_symprfx"
7665 else
7666 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7667 fi
7668 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7669
7670 # Check to see that the pipe works correctly.
7671 pipe_works=no
7672
7673 rm -f conftest*
7674 cat > conftest.$ac_ext <<_LT_EOF
7675 #ifdef __cplusplus
7676 extern "C" {
7677 #endif
7678 char nm_test_var;
7679 void nm_test_func(void);
7680 void nm_test_func(void){}
7681 #ifdef __cplusplus
7682 }
7683 #endif
7684 int main(){nm_test_var='a';nm_test_func();return(0);}
7685 _LT_EOF
7686
7687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; }; then
7692 # Now try to grab the symbols.
7693 nlist=conftest.nm
7694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } && test -s "$nlist"; then
7699 # Try sorting and uniquifying the output.
7700 if sort "$nlist" | uniq > "$nlist"T; then
7701 mv -f "$nlist"T "$nlist"
7702 else
7703 rm -f "$nlist"T
7704 fi
7705
7706 # Make sure that we snagged all the symbols we need.
7707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7709 cat <<_LT_EOF > conftest.$ac_ext
7710 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7711 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7712 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7713 relocations are performed -- see ld's documentation on pseudo-relocs. */
7714 # define LT_DLSYM_CONST
7715 #elif defined __osf__
7716 /* This system does not cope well with relocations in const data. */
7717 # define LT_DLSYM_CONST
7718 #else
7719 # define LT_DLSYM_CONST const
7720 #endif
7721
7722 #ifdef __cplusplus
7723 extern "C" {
7724 #endif
7725
7726 _LT_EOF
7727 # Now generate the symbol file.
7728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7729
7730 cat <<_LT_EOF >> conftest.$ac_ext
7731
7732 /* The mapping between symbol names and symbols. */
7733 LT_DLSYM_CONST struct {
7734 const char *name;
7735 void *address;
7736 }
7737 lt__PROGRAM__LTX_preloaded_symbols[] =
7738 {
7739 { "@PROGRAM@", (void *) 0 },
7740 _LT_EOF
7741 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7742 cat <<\_LT_EOF >> conftest.$ac_ext
7743 {0, (void *) 0}
7744 };
7745
7746 /* This works around a problem in FreeBSD linker */
7747 #ifdef FREEBSD_WORKAROUND
7748 static const void *lt_preloaded_setup() {
7749 return lt__PROGRAM__LTX_preloaded_symbols;
7750 }
7751 #endif
7752
7753 #ifdef __cplusplus
7754 }
7755 #endif
7756 _LT_EOF
7757 # Now try linking the two files.
7758 mv conftest.$ac_objext conftstm.$ac_objext
7759 lt_globsym_save_LIBS=$LIBS
7760 lt_globsym_save_CFLAGS=$CFLAGS
7761 LIBS=conftstm.$ac_objext
7762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7764 (eval $ac_link) 2>&5
7765 ac_status=$?
7766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7767 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7768 pipe_works=yes
7769 fi
7770 LIBS=$lt_globsym_save_LIBS
7771 CFLAGS=$lt_globsym_save_CFLAGS
7772 else
7773 echo "cannot find nm_test_func in $nlist" >&5
7774 fi
7775 else
7776 echo "cannot find nm_test_var in $nlist" >&5
7777 fi
7778 else
7779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7780 fi
7781 else
7782 echo "$progname: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 fi
7785 rm -rf conftest* conftst*
7786
7787 # Do not use the global_symbol_pipe unless it works.
7788 if test yes = "$pipe_works"; then
7789 break
7790 else
7791 lt_cv_sys_global_symbol_pipe=
7792 fi
7793 done
7794
7795 fi
7796
7797 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7798 lt_cv_sys_global_symbol_to_cdecl=
7799 fi
7800 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7802 $as_echo "failed" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7805 $as_echo "ok" >&6; }
7806 fi
7807
7808 # Response file support.
7809 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7810 nm_file_list_spec='@'
7811 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7812 nm_file_list_spec='@'
7813 fi
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7852 $as_echo_n "checking for sysroot... " >&6; }
7853
7854 # Check whether --with-sysroot was given.
7855 if test "${with_sysroot+set}" = set; then :
7856 withval=$with_sysroot;
7857 else
7858 with_sysroot=no
7859 fi
7860
7861
7862 lt_sysroot=
7863 case $with_sysroot in #(
7864 yes)
7865 if test yes = "$GCC"; then
7866 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7867 fi
7868 ;; #(
7869 /*)
7870 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7871 ;; #(
7872 no|'')
7873 ;; #(
7874 *)
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7876 $as_echo "$with_sysroot" >&6; }
7877 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7878 ;;
7879 esac
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7882 $as_echo "${lt_sysroot:-no}" >&6; }
7883
7884
7885
7886
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7889 $as_echo_n "checking for a working dd... " >&6; }
7890 if ${ac_cv_path_lt_DD+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 printf 0123456789abcdef0123456789abcdef >conftest.i
7894 cat conftest.i conftest.i >conftest2.i
7895 : ${lt_DD:=$DD}
7896 if test -z "$lt_DD"; then
7897 ac_path_lt_DD_found=false
7898 # Loop through the user's path and test for each of PROGNAME-LIST
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_prog in dd; do
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7907 as_fn_executable_p "$ac_path_lt_DD" || continue
7908 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7909 cmp -s conftest.i conftest.out \
7910 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7911 fi
7912 $ac_path_lt_DD_found && break 3
7913 done
7914 done
7915 done
7916 IFS=$as_save_IFS
7917 if test -z "$ac_cv_path_lt_DD"; then
7918 :
7919 fi
7920 else
7921 ac_cv_path_lt_DD=$lt_DD
7922 fi
7923
7924 rm -f conftest.i conftest2.i conftest.out
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7927 $as_echo "$ac_cv_path_lt_DD" >&6; }
7928
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7931 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7932 if ${lt_cv_truncate_bin+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 printf 0123456789abcdef0123456789abcdef >conftest.i
7936 cat conftest.i conftest.i >conftest2.i
7937 lt_cv_truncate_bin=
7938 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7939 cmp -s conftest.i conftest.out \
7940 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7941 fi
7942 rm -f conftest.i conftest2.i conftest.out
7943 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7946 $as_echo "$lt_cv_truncate_bin" >&6; }
7947
7948
7949
7950
7951
7952
7953
7954 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7955 func_cc_basename ()
7956 {
7957 for cc_temp in $*""; do
7958 case $cc_temp in
7959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7961 \-*) ;;
7962 *) break;;
7963 esac
7964 done
7965 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7966 }
7967
7968 # Check whether --enable-libtool-lock was given.
7969 if test "${enable_libtool_lock+set}" = set; then :
7970 enableval=$enable_libtool_lock;
7971 fi
7972
7973 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7974
7975 # Some flags need to be propagated to the compiler or linker for good
7976 # libtool support.
7977 case $host in
7978 ia64-*-hpux*)
7979 # Find out what ABI is being produced by ac_compile, and set mode
7980 # options accordingly.
7981 echo 'int i;' > conftest.$ac_ext
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983 (eval $ac_compile) 2>&5
7984 ac_status=$?
7985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; }; then
7987 case `/usr/bin/file conftest.$ac_objext` in
7988 *ELF-32*)
7989 HPUX_IA64_MODE=32
7990 ;;
7991 *ELF-64*)
7992 HPUX_IA64_MODE=64
7993 ;;
7994 esac
7995 fi
7996 rm -rf conftest*
7997 ;;
7998 *-*-irix6*)
7999 # Find out what ABI is being produced by ac_compile, and set linker
8000 # options accordingly.
8001 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8003 (eval $ac_compile) 2>&5
8004 ac_status=$?
8005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8006 test $ac_status = 0; }; then
8007 if test yes = "$lt_cv_prog_gnu_ld"; then
8008 case `/usr/bin/file conftest.$ac_objext` in
8009 *32-bit*)
8010 LD="${LD-ld} -melf32bsmip"
8011 ;;
8012 *N32*)
8013 LD="${LD-ld} -melf32bmipn32"
8014 ;;
8015 *64-bit*)
8016 LD="${LD-ld} -melf64bmip"
8017 ;;
8018 esac
8019 else
8020 case `/usr/bin/file conftest.$ac_objext` in
8021 *32-bit*)
8022 LD="${LD-ld} -32"
8023 ;;
8024 *N32*)
8025 LD="${LD-ld} -n32"
8026 ;;
8027 *64-bit*)
8028 LD="${LD-ld} -64"
8029 ;;
8030 esac
8031 fi
8032 fi
8033 rm -rf conftest*
8034 ;;
8035
8036 mips64*-*linux*)
8037 # Find out what ABI is being produced by ac_compile, and set linker
8038 # options accordingly.
8039 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8041 (eval $ac_compile) 2>&5
8042 ac_status=$?
8043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8044 test $ac_status = 0; }; then
8045 emul=elf
8046 case `/usr/bin/file conftest.$ac_objext` in
8047 *32-bit*)
8048 emul="${emul}32"
8049 ;;
8050 *64-bit*)
8051 emul="${emul}64"
8052 ;;
8053 esac
8054 case `/usr/bin/file conftest.$ac_objext` in
8055 *MSB*)
8056 emul="${emul}btsmip"
8057 ;;
8058 *LSB*)
8059 emul="${emul}ltsmip"
8060 ;;
8061 esac
8062 case `/usr/bin/file conftest.$ac_objext` in
8063 *N32*)
8064 emul="${emul}n32"
8065 ;;
8066 esac
8067 LD="${LD-ld} -m $emul"
8068 fi
8069 rm -rf conftest*
8070 ;;
8071
8072 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8073 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8074 # Find out what ABI is being produced by ac_compile, and set linker
8075 # options accordingly. Note that the listed cases only cover the
8076 # situations where additional linker options are needed (such as when
8077 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8078 # vice versa); the common cases where no linker options are needed do
8079 # not appear in the list.
8080 echo 'int i;' > conftest.$ac_ext
8081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8082 (eval $ac_compile) 2>&5
8083 ac_status=$?
8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085 test $ac_status = 0; }; then
8086 case `/usr/bin/file conftest.o` in
8087 *32-bit*)
8088 case $host in
8089 x86_64-*kfreebsd*-gnu)
8090 LD="${LD-ld} -m elf_i386_fbsd"
8091 ;;
8092 x86_64-*linux*)
8093 case `/usr/bin/file conftest.o` in
8094 *x86-64*)
8095 LD="${LD-ld} -m elf32_x86_64"
8096 ;;
8097 *)
8098 LD="${LD-ld} -m elf_i386"
8099 ;;
8100 esac
8101 ;;
8102 powerpc64le-*linux*)
8103 LD="${LD-ld} -m elf32lppclinux"
8104 ;;
8105 powerpc64-*linux*)
8106 LD="${LD-ld} -m elf32ppclinux"
8107 ;;
8108 s390x-*linux*)
8109 LD="${LD-ld} -m elf_s390"
8110 ;;
8111 sparc64-*linux*)
8112 LD="${LD-ld} -m elf32_sparc"
8113 ;;
8114 esac
8115 ;;
8116 *64-bit*)
8117 case $host in
8118 x86_64-*kfreebsd*-gnu)
8119 LD="${LD-ld} -m elf_x86_64_fbsd"
8120 ;;
8121 x86_64-*linux*)
8122 LD="${LD-ld} -m elf_x86_64"
8123 ;;
8124 powerpcle-*linux*)
8125 LD="${LD-ld} -m elf64lppc"
8126 ;;
8127 powerpc-*linux*)
8128 LD="${LD-ld} -m elf64ppc"
8129 ;;
8130 s390*-*linux*|s390*-*tpf*)
8131 LD="${LD-ld} -m elf64_s390"
8132 ;;
8133 sparc*-*linux*)
8134 LD="${LD-ld} -m elf64_sparc"
8135 ;;
8136 esac
8137 ;;
8138 esac
8139 fi
8140 rm -rf conftest*
8141 ;;
8142
8143 *-*-sco3.2v5*)
8144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8145 SAVE_CFLAGS=$CFLAGS
8146 CFLAGS="$CFLAGS -belf"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8148 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8149 if ${lt_cv_cc_needs_belf+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 int
8162 main ()
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 lt_cv_cc_needs_belf=yes
8171 else
8172 lt_cv_cc_needs_belf=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
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
8181
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8184 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8185 if test yes != "$lt_cv_cc_needs_belf"; then
8186 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8187 CFLAGS=$SAVE_CFLAGS
8188 fi
8189 ;;
8190 *-*solaris*)
8191 # Find out what ABI is being produced by ac_compile, and set linker
8192 # options accordingly.
8193 echo 'int i;' > conftest.$ac_ext
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195 (eval $ac_compile) 2>&5
8196 ac_status=$?
8197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 case `/usr/bin/file conftest.o` in
8200 *64-bit*)
8201 case $lt_cv_prog_gnu_ld in
8202 yes*)
8203 case $host in
8204 i?86-*-solaris*|x86_64-*-solaris*)
8205 LD="${LD-ld} -m elf_x86_64"
8206 ;;
8207 sparc*-*-solaris*)
8208 LD="${LD-ld} -m elf64_sparc"
8209 ;;
8210 esac
8211 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8212 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8213 LD=${LD-ld}_sol2
8214 fi
8215 ;;
8216 *)
8217 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8218 LD="${LD-ld} -64"
8219 fi
8220 ;;
8221 esac
8222 ;;
8223 esac
8224 fi
8225 rm -rf conftest*
8226 ;;
8227 esac
8228
8229 need_locks=$enable_libtool_lock
8230
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}mt; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$MANIFEST_TOOL"; then
8240 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8252 fi
8253 done
8254 done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8260 if test -n "$MANIFEST_TOOL"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8262 $as_echo "$MANIFEST_TOOL" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269 fi
8270 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8271 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8272 # Extract the first word of "mt", so it can be a program name with args.
8273 set dummy mt; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$ac_ct_MANIFEST_TOOL"; then
8280 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8300 if test -n "$ac_ct_MANIFEST_TOOL"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8302 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8309 MANIFEST_TOOL=":"
8310 else
8311 case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8318 fi
8319 else
8320 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8321 fi
8322
8323 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8325 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8326 if ${lt_cv_path_mainfest_tool+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 lt_cv_path_mainfest_tool=no
8330 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8331 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8332 cat conftest.err >&5
8333 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8334 lt_cv_path_mainfest_tool=yes
8335 fi
8336 rm -f conftest*
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8339 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8340 if test yes != "$lt_cv_path_mainfest_tool"; then
8341 MANIFEST_TOOL=:
8342 fi
8343
8344
8345
8346
8347
8348
8349 case $host_os in
8350 rhapsody* | darwin*)
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$DSYMUTIL"; then
8360 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8380 if test -n "$DSYMUTIL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8382 $as_echo "$DSYMUTIL" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_DSYMUTIL"; then
8391 ac_ct_DSYMUTIL=$DSYMUTIL
8392 # Extract the first word of "dsymutil", so it can be a program name with args.
8393 set dummy dsymutil; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$ac_ct_DSYMUTIL"; then
8400 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8420 if test -n "$ac_ct_DSYMUTIL"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8422 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428 if test "x$ac_ct_DSYMUTIL" = x; then
8429 DSYMUTIL=":"
8430 else
8431 case $cross_compiling:$ac_tool_warned in
8432 yes:)
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8436 esac
8437 DSYMUTIL=$ac_ct_DSYMUTIL
8438 fi
8439 else
8440 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8441 fi
8442
8443 if test -n "$ac_tool_prefix"; then
8444 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8445 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_prog_NMEDIT+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$NMEDIT"; then
8452 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469 fi
8470 fi
8471 NMEDIT=$ac_cv_prog_NMEDIT
8472 if test -n "$NMEDIT"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8474 $as_echo "$NMEDIT" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480
8481 fi
8482 if test -z "$ac_cv_prog_NMEDIT"; then
8483 ac_ct_NMEDIT=$NMEDIT
8484 # Extract the first word of "nmedit", so it can be a program name with args.
8485 set dummy nmedit; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test -n "$ac_ct_NMEDIT"; then
8492 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8504 fi
8505 done
8506 done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8512 if test -n "$ac_ct_NMEDIT"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8514 $as_echo "$ac_ct_NMEDIT" >&6; }
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520 if test "x$ac_ct_NMEDIT" = x; then
8521 NMEDIT=":"
8522 else
8523 case $cross_compiling:$ac_tool_warned in
8524 yes:)
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8527 ac_tool_warned=yes ;;
8528 esac
8529 NMEDIT=$ac_ct_NMEDIT
8530 fi
8531 else
8532 NMEDIT="$ac_cv_prog_NMEDIT"
8533 fi
8534
8535 if test -n "$ac_tool_prefix"; then
8536 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8537 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_LIPO+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$LIPO"; then
8544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557 done
8558 done
8559 IFS=$as_save_IFS
8560
8561 fi
8562 fi
8563 LIPO=$ac_cv_prog_LIPO
8564 if test -n "$LIPO"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8566 $as_echo "$LIPO" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573 fi
8574 if test -z "$ac_cv_prog_LIPO"; then
8575 ac_ct_LIPO=$LIPO
8576 # Extract the first word of "lipo", so it can be a program name with args.
8577 set dummy lipo; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 if test -n "$ac_ct_LIPO"; then
8584 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_ac_ct_LIPO="lipo"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597 done
8598 done
8599 IFS=$as_save_IFS
8600
8601 fi
8602 fi
8603 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8604 if test -n "$ac_ct_LIPO"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8606 $as_echo "$ac_ct_LIPO" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611
8612 if test "x$ac_ct_LIPO" = x; then
8613 LIPO=":"
8614 else
8615 case $cross_compiling:$ac_tool_warned in
8616 yes:)
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8619 ac_tool_warned=yes ;;
8620 esac
8621 LIPO=$ac_ct_LIPO
8622 fi
8623 else
8624 LIPO="$ac_cv_prog_LIPO"
8625 fi
8626
8627 if test -n "$ac_tool_prefix"; then
8628 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8629 set dummy ${ac_tool_prefix}otool; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if ${ac_cv_prog_OTOOL+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 if test -n "$OTOOL"; then
8636 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8645 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8648 fi
8649 done
8650 done
8651 IFS=$as_save_IFS
8652
8653 fi
8654 fi
8655 OTOOL=$ac_cv_prog_OTOOL
8656 if test -n "$OTOOL"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8658 $as_echo "$OTOOL" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664
8665 fi
8666 if test -z "$ac_cv_prog_OTOOL"; then
8667 ac_ct_OTOOL=$OTOOL
8668 # Extract the first word of "otool", so it can be a program name with args.
8669 set dummy otool; ac_word=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 if test -n "$ac_ct_OTOOL"; then
8676 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681 IFS=$as_save_IFS
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_ac_ct_OTOOL="otool"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 break 2
8688 fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 fi
8694 fi
8695 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8696 if test -n "$ac_ct_OTOOL"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8698 $as_echo "$ac_ct_OTOOL" >&6; }
8699 else
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8702 fi
8703
8704 if test "x$ac_ct_OTOOL" = x; then
8705 OTOOL=":"
8706 else
8707 case $cross_compiling:$ac_tool_warned in
8708 yes:)
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8711 ac_tool_warned=yes ;;
8712 esac
8713 OTOOL=$ac_ct_OTOOL
8714 fi
8715 else
8716 OTOOL="$ac_cv_prog_OTOOL"
8717 fi
8718
8719 if test -n "$ac_tool_prefix"; then
8720 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8721 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_prog_OTOOL64+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 if test -n "$OTOOL64"; then
8728 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745 fi
8746 fi
8747 OTOOL64=$ac_cv_prog_OTOOL64
8748 if test -n "$OTOOL64"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8750 $as_echo "$OTOOL64" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8754 fi
8755
8756
8757 fi
8758 if test -z "$ac_cv_prog_OTOOL64"; then
8759 ac_ct_OTOOL64=$OTOOL64
8760 # Extract the first word of "otool64", so it can be a program name with args.
8761 set dummy otool64; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 if test -n "$ac_ct_OTOOL64"; then
8768 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777 ac_cv_prog_ac_ct_OTOOL64="otool64"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 break 2
8780 fi
8781 done
8782 done
8783 IFS=$as_save_IFS
8784
8785 fi
8786 fi
8787 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8788 if test -n "$ac_ct_OTOOL64"; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8790 $as_echo "$ac_ct_OTOOL64" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8794 fi
8795
8796 if test "x$ac_ct_OTOOL64" = x; then
8797 OTOOL64=":"
8798 else
8799 case $cross_compiling:$ac_tool_warned in
8800 yes:)
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8803 ac_tool_warned=yes ;;
8804 esac
8805 OTOOL64=$ac_ct_OTOOL64
8806 fi
8807 else
8808 OTOOL64="$ac_cv_prog_OTOOL64"
8809 fi
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8838 $as_echo_n "checking for -single_module linker flag... " >&6; }
8839 if ${lt_cv_apple_cc_single_mod+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_apple_cc_single_mod=no
8843 if test -z "$LT_MULTI_MODULE"; then
8844 # By default we will add the -single_module flag. You can override
8845 # by either setting the environment variable LT_MULTI_MODULE
8846 # non-empty at configure time, or by adding -multi_module to the
8847 # link flags.
8848 rm -rf libconftest.dylib*
8849 echo "int foo(void){return 1;}" > conftest.c
8850 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8851 -dynamiclib -Wl,-single_module conftest.c" >&5
8852 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8853 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8854 _lt_result=$?
8855 # If there is a non-empty error log, and "single_module"
8856 # appears in it, assume the flag caused a linker warning
8857 if test -s conftest.err && $GREP single_module conftest.err; then
8858 cat conftest.err >&5
8859 # Otherwise, if the output was created with a 0 exit code from
8860 # the compiler, it worked.
8861 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8862 lt_cv_apple_cc_single_mod=yes
8863 else
8864 cat conftest.err >&5
8865 fi
8866 rm -rf libconftest.dylib*
8867 rm -f conftest.*
8868 fi
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8871 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8874 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8875 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 lt_cv_ld_exported_symbols_list=no
8879 save_LDFLAGS=$LDFLAGS
8880 echo "_main" > conftest.sym
8881 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884
8885 int
8886 main ()
8887 {
8888
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894 lt_cv_ld_exported_symbols_list=yes
8895 else
8896 lt_cv_ld_exported_symbols_list=no
8897 fi
8898 rm -f core conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 LDFLAGS=$save_LDFLAGS
8901
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8904 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8907 $as_echo_n "checking for -force_load linker flag... " >&6; }
8908 if ${lt_cv_ld_force_load+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 lt_cv_ld_force_load=no
8912 cat > conftest.c << _LT_EOF
8913 int forced_loaded() { return 2;}
8914 _LT_EOF
8915 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8916 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8917 echo "$AR cru libconftest.a conftest.o" >&5
8918 $AR cru libconftest.a conftest.o 2>&5
8919 echo "$RANLIB libconftest.a" >&5
8920 $RANLIB libconftest.a 2>&5
8921 cat > conftest.c << _LT_EOF
8922 int main() { return 0;}
8923 _LT_EOF
8924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8926 _lt_result=$?
8927 if test -s conftest.err && $GREP force_load conftest.err; then
8928 cat conftest.err >&5
8929 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8930 lt_cv_ld_force_load=yes
8931 else
8932 cat conftest.err >&5
8933 fi
8934 rm -f conftest.err libconftest.a conftest conftest.c
8935 rm -rf conftest.dSYM
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8939 $as_echo "$lt_cv_ld_force_load" >&6; }
8940 case $host_os in
8941 rhapsody* | darwin1.[012])
8942 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8943 darwin1.*)
8944 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8945 darwin*) # darwin 5.x on
8946 # if running on 10.5 or later, the deployment target defaults
8947 # to the OS version, if on x86, and 10.4, the deployment
8948 # target defaults to 10.4. Don't you love it?
8949 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8950 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8951 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8952 10.[012][,.]*)
8953 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8954 10.*)
8955 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8956 esac
8957 ;;
8958 esac
8959 if test yes = "$lt_cv_apple_cc_single_mod"; then
8960 _lt_dar_single_mod='$single_module'
8961 fi
8962 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8963 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8964 else
8965 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8966 fi
8967 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8968 _lt_dsymutil='~$DSYMUTIL $lib || :'
8969 else
8970 _lt_dsymutil=
8971 fi
8972 ;;
8973 esac
8974
8975 # func_munge_path_list VARIABLE PATH
8976 # -----------------------------------
8977 # VARIABLE is name of variable containing _space_ separated list of
8978 # directories to be munged by the contents of PATH, which is string
8979 # having a format:
8980 # "DIR[:DIR]:"
8981 # string "DIR[ DIR]" will be prepended to VARIABLE
8982 # ":DIR[:DIR]"
8983 # string "DIR[ DIR]" will be appended to VARIABLE
8984 # "DIRP[:DIRP]::[DIRA:]DIRA"
8985 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8986 # "DIRA[ DIRA]" will be appended to VARIABLE
8987 # "DIR[:DIR]"
8988 # VARIABLE will be replaced by "DIR[ DIR]"
8989 func_munge_path_list ()
8990 {
8991 case x$2 in
8992 x)
8993 ;;
8994 *:)
8995 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8996 ;;
8997 x:*)
8998 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8999 ;;
9000 *::*)
9001 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9002 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9003 ;;
9004 *)
9005 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9006 ;;
9007 esac
9008 }
9009
9010 ac_ext=c
9011 ac_cpp='$CPP $CPPFLAGS'
9012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9017 # On Suns, sometimes $CPP names a directory.
9018 if test -n "$CPP" && test -d "$CPP"; then
9019 CPP=
9020 fi
9021 if test -z "$CPP"; then
9022 if ${ac_cv_prog_CPP+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 # Double quotes because CPP needs to be expanded
9026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9027 do
9028 ac_preproc_ok=false
9029 for ac_c_preproc_warn_flag in '' yes
9030 do
9031 # Use a header file that comes with gcc, so configuring glibc
9032 # with a fresh cross-compiler works.
9033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034 # <limits.h> exists even on freestanding compilers.
9035 # On the NeXT, cc -E runs the code through the compiler's parser,
9036 # not just through cpp. "Syntax error" is here to catch this case.
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 #ifdef __STDC__
9040 # include <limits.h>
9041 #else
9042 # include <assert.h>
9043 #endif
9044 Syntax error
9045 _ACEOF
9046 if ac_fn_c_try_cpp "$LINENO"; then :
9047
9048 else
9049 # Broken: fails on valid input.
9050 continue
9051 fi
9052 rm -f conftest.err conftest.i conftest.$ac_ext
9053
9054 # OK, works on sane cases. Now check whether nonexistent headers
9055 # can be detected and how.
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #include <ac_nonexistent.h>
9059 _ACEOF
9060 if ac_fn_c_try_cpp "$LINENO"; then :
9061 # Broken: success on invalid input.
9062 continue
9063 else
9064 # Passes both tests.
9065 ac_preproc_ok=:
9066 break
9067 fi
9068 rm -f conftest.err conftest.i conftest.$ac_ext
9069
9070 done
9071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9072 rm -f conftest.i conftest.err conftest.$ac_ext
9073 if $ac_preproc_ok; then :
9074 break
9075 fi
9076
9077 done
9078 ac_cv_prog_CPP=$CPP
9079
9080 fi
9081 CPP=$ac_cv_prog_CPP
9082 else
9083 ac_cv_prog_CPP=$CPP
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9086 $as_echo "$CPP" >&6; }
9087 ac_preproc_ok=false
9088 for ac_c_preproc_warn_flag in '' yes
9089 do
9090 # Use a header file that comes with gcc, so configuring glibc
9091 # with a fresh cross-compiler works.
9092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9093 # <limits.h> exists even on freestanding compilers.
9094 # On the NeXT, cc -E runs the code through the compiler's parser,
9095 # not just through cpp. "Syntax error" is here to catch this case.
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #ifdef __STDC__
9099 # include <limits.h>
9100 #else
9101 # include <assert.h>
9102 #endif
9103 Syntax error
9104 _ACEOF
9105 if ac_fn_c_try_cpp "$LINENO"; then :
9106
9107 else
9108 # Broken: fails on valid input.
9109 continue
9110 fi
9111 rm -f conftest.err conftest.i conftest.$ac_ext
9112
9113 # OK, works on sane cases. Now check whether nonexistent headers
9114 # can be detected and how.
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <ac_nonexistent.h>
9118 _ACEOF
9119 if ac_fn_c_try_cpp "$LINENO"; then :
9120 # Broken: success on invalid input.
9121 continue
9122 else
9123 # Passes both tests.
9124 ac_preproc_ok=:
9125 break
9126 fi
9127 rm -f conftest.err conftest.i conftest.$ac_ext
9128
9129 done
9130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9131 rm -f conftest.i conftest.err conftest.$ac_ext
9132 if $ac_preproc_ok; then :
9133
9134 else
9135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9137 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9138 See \`config.log' for more details" "$LINENO" 5; }
9139 fi
9140
9141 ac_ext=c
9142 ac_cpp='$CPP $CPPFLAGS'
9143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9149 $as_echo_n "checking for ANSI C header files... " >&6; }
9150 if ${ac_cv_header_stdc+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <stdlib.h>
9156 #include <stdarg.h>
9157 #include <string.h>
9158 #include <float.h>
9159
9160 int
9161 main ()
9162 {
9163
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"; then :
9169 ac_cv_header_stdc=yes
9170 else
9171 ac_cv_header_stdc=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174
9175 if test $ac_cv_header_stdc = yes; then
9176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 #include <string.h>
9180
9181 _ACEOF
9182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9183 $EGREP "memchr" >/dev/null 2>&1; then :
9184
9185 else
9186 ac_cv_header_stdc=no
9187 fi
9188 rm -f conftest*
9189
9190 fi
9191
9192 if test $ac_cv_header_stdc = yes; then
9193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include <stdlib.h>
9197
9198 _ACEOF
9199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9200 $EGREP "free" >/dev/null 2>&1; then :
9201
9202 else
9203 ac_cv_header_stdc=no
9204 fi
9205 rm -f conftest*
9206
9207 fi
9208
9209 if test $ac_cv_header_stdc = yes; then
9210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9211 if test "$cross_compiling" = yes; then :
9212 :
9213 else
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <ctype.h>
9217 #include <stdlib.h>
9218 #if ((' ' & 0x0FF) == 0x020)
9219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9221 #else
9222 # define ISLOWER(c) \
9223 (('a' <= (c) && (c) <= 'i') \
9224 || ('j' <= (c) && (c) <= 'r') \
9225 || ('s' <= (c) && (c) <= 'z'))
9226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9227 #endif
9228
9229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9230 int
9231 main ()
9232 {
9233 int i;
9234 for (i = 0; i < 256; i++)
9235 if (XOR (islower (i), ISLOWER (i))
9236 || toupper (i) != TOUPPER (i))
9237 return 2;
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_run "$LINENO"; then :
9242
9243 else
9244 ac_cv_header_stdc=no
9245 fi
9246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9247 conftest.$ac_objext conftest.beam conftest.$ac_ext
9248 fi
9249
9250 fi
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9253 $as_echo "$ac_cv_header_stdc" >&6; }
9254 if test $ac_cv_header_stdc = yes; then
9255
9256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9257
9258 fi
9259
9260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9262 inttypes.h stdint.h unistd.h
9263 do :
9264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9266 "
9267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9268 cat >>confdefs.h <<_ACEOF
9269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9270 _ACEOF
9271
9272 fi
9273
9274 done
9275
9276
9277 for ac_header in dlfcn.h
9278 do :
9279 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9280 "
9281 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9282 cat >>confdefs.h <<_ACEOF
9283 #define HAVE_DLFCN_H 1
9284 _ACEOF
9285
9286 fi
9287
9288 done
9289
9290
9291
9292
9293
9294 # Set options
9295
9296
9297
9298 enable_dlopen=no
9299
9300
9301 enable_win32_dll=no
9302
9303
9304 # Check whether --enable-shared was given.
9305 if test "${enable_shared+set}" = set; then :
9306 enableval=$enable_shared; p=${PACKAGE-default}
9307 case $enableval in
9308 yes) enable_shared=yes ;;
9309 no) enable_shared=no ;;
9310 *)
9311 enable_shared=no
9312 # Look at the argument we got. We use all the common list separators.
9313 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9314 for pkg in $enableval; do
9315 IFS=$lt_save_ifs
9316 if test "X$pkg" = "X$p"; then
9317 enable_shared=yes
9318 fi
9319 done
9320 IFS=$lt_save_ifs
9321 ;;
9322 esac
9323 else
9324 enable_shared=yes
9325 fi
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 # Check whether --enable-static was given.
9336 if test "${enable_static+set}" = set; then :
9337 enableval=$enable_static; p=${PACKAGE-default}
9338 case $enableval in
9339 yes) enable_static=yes ;;
9340 no) enable_static=no ;;
9341 *)
9342 enable_static=no
9343 # Look at the argument we got. We use all the common list separators.
9344 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9345 for pkg in $enableval; do
9346 IFS=$lt_save_ifs
9347 if test "X$pkg" = "X$p"; then
9348 enable_static=yes
9349 fi
9350 done
9351 IFS=$lt_save_ifs
9352 ;;
9353 esac
9354 else
9355 enable_static=yes
9356 fi
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367 # Check whether --with-pic was given.
9368 if test "${with_pic+set}" = set; then :
9369 withval=$with_pic; lt_p=${PACKAGE-default}
9370 case $withval in
9371 yes|no) pic_mode=$withval ;;
9372 *)
9373 pic_mode=default
9374 # Look at the argument we got. We use all the common list separators.
9375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9376 for lt_pkg in $withval; do
9377 IFS=$lt_save_ifs
9378 if test "X$lt_pkg" = "X$lt_p"; then
9379 pic_mode=yes
9380 fi
9381 done
9382 IFS=$lt_save_ifs
9383 ;;
9384 esac
9385 else
9386 pic_mode=default
9387 fi
9388
9389
9390
9391
9392
9393
9394
9395
9396 # Check whether --enable-fast-install was given.
9397 if test "${enable_fast_install+set}" = set; then :
9398 enableval=$enable_fast_install; p=${PACKAGE-default}
9399 case $enableval in
9400 yes) enable_fast_install=yes ;;
9401 no) enable_fast_install=no ;;
9402 *)
9403 enable_fast_install=no
9404 # Look at the argument we got. We use all the common list separators.
9405 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9406 for pkg in $enableval; do
9407 IFS=$lt_save_ifs
9408 if test "X$pkg" = "X$p"; then
9409 enable_fast_install=yes
9410 fi
9411 done
9412 IFS=$lt_save_ifs
9413 ;;
9414 esac
9415 else
9416 enable_fast_install=yes
9417 fi
9418
9419
9420
9421
9422
9423
9424
9425
9426 shared_archive_member_spec=
9427 case $host,$enable_shared in
9428 power*-*-aix[5-9]*,yes)
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9430 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9431
9432 # Check whether --with-aix-soname was given.
9433 if test "${with_aix_soname+set}" = set; then :
9434 withval=$with_aix_soname; case $withval in
9435 aix|svr4|both)
9436 ;;
9437 *)
9438 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9439 ;;
9440 esac
9441 lt_cv_with_aix_soname=$with_aix_soname
9442 else
9443 if ${lt_cv_with_aix_soname+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 lt_cv_with_aix_soname=aix
9447 fi
9448
9449 with_aix_soname=$lt_cv_with_aix_soname
9450 fi
9451
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9453 $as_echo "$with_aix_soname" >&6; }
9454 if test aix != "$with_aix_soname"; then
9455 # For the AIX way of multilib, we name the shared archive member
9456 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9457 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9458 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9459 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9460 if test 64 = "${OBJECT_MODE-32}"; then
9461 shared_archive_member_spec=shr_64
9462 else
9463 shared_archive_member_spec=shr
9464 fi
9465 fi
9466 ;;
9467 *)
9468 with_aix_soname=aix
9469 ;;
9470 esac
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 # This can be used to rebuild libtool when needed
9482 LIBTOOL_DEPS=$ltmain
9483
9484 # Always use our own libtool.
9485 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516 test -z "$LN_S" && LN_S="ln -s"
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531 if test -n "${ZSH_VERSION+set}"; then
9532 setopt NO_GLOB_SUBST
9533 fi
9534
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9536 $as_echo_n "checking for objdir... " >&6; }
9537 if ${lt_cv_objdir+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 rm -f .libs 2>/dev/null
9541 mkdir .libs 2>/dev/null
9542 if test -d .libs; then
9543 lt_cv_objdir=.libs
9544 else
9545 # MS-DOS does not allow filenames that begin with a dot.
9546 lt_cv_objdir=_libs
9547 fi
9548 rmdir .libs 2>/dev/null
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9551 $as_echo "$lt_cv_objdir" >&6; }
9552 objdir=$lt_cv_objdir
9553
9554
9555
9556
9557
9558 cat >>confdefs.h <<_ACEOF
9559 #define LT_OBJDIR "$lt_cv_objdir/"
9560 _ACEOF
9561
9562
9563
9564
9565 case $host_os in
9566 aix3*)
9567 # AIX sometimes has problems with the GCC collect2 program. For some
9568 # reason, if we set the COLLECT_NAMES environment variable, the problems
9569 # vanish in a puff of smoke.
9570 if test set != "${COLLECT_NAMES+set}"; then
9571 COLLECT_NAMES=
9572 export COLLECT_NAMES
9573 fi
9574 ;;
9575 esac
9576
9577 # Global variables:
9578 ofile=libtool
9579 can_build_shared=yes
9580
9581 # All known linkers require a '.a' archive for static linking (except MSVC,
9582 # which needs '.lib').
9583 libext=a
9584
9585 with_gnu_ld=$lt_cv_prog_gnu_ld
9586
9587 old_CC=$CC
9588 old_CFLAGS=$CFLAGS
9589
9590 # Set sane defaults for various variables
9591 test -z "$CC" && CC=cc
9592 test -z "$LTCC" && LTCC=$CC
9593 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9594 test -z "$LD" && LD=ld
9595 test -z "$ac_objext" && ac_objext=o
9596
9597 func_cc_basename $compiler
9598 cc_basename=$func_cc_basename_result
9599
9600
9601 # Only perform the check for file, if the check method requires it
9602 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9603 case $deplibs_check_method in
9604 file_magic*)
9605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9607 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 case $MAGIC_CMD in
9612 [\\/*] | ?:[\\/]*)
9613 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9614 ;;
9615 *)
9616 lt_save_MAGIC_CMD=$MAGIC_CMD
9617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9619 for ac_dir in $ac_dummy; do
9620 IFS=$lt_save_ifs
9621 test -z "$ac_dir" && ac_dir=.
9622 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9623 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9624 if test -n "$file_magic_test_file"; then
9625 case $deplibs_check_method in
9626 "file_magic "*)
9627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9630 $EGREP "$file_magic_regex" > /dev/null; then
9631 :
9632 else
9633 cat <<_LT_EOF 1>&2
9634
9635 *** Warning: the command libtool uses to detect shared libraries,
9636 *** $file_magic_cmd, produces output that libtool cannot recognize.
9637 *** The result is that libtool may fail to recognize shared libraries
9638 *** as such. This will affect the creation of libtool libraries that
9639 *** depend on shared libraries, but programs linked with such libtool
9640 *** libraries will work regardless of this problem. Nevertheless, you
9641 *** may want to report the problem to your system manager and/or to
9642 *** [email protected]
9643
9644 _LT_EOF
9645 fi ;;
9646 esac
9647 fi
9648 break
9649 fi
9650 done
9651 IFS=$lt_save_ifs
9652 MAGIC_CMD=$lt_save_MAGIC_CMD
9653 ;;
9654 esac
9655 fi
9656
9657 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9658 if test -n "$MAGIC_CMD"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9660 $as_echo "$MAGIC_CMD" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667
9668
9669
9670 if test -z "$lt_cv_path_MAGIC_CMD"; then
9671 if test -n "$ac_tool_prefix"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9673 $as_echo_n "checking for file... " >&6; }
9674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 case $MAGIC_CMD in
9678 [\\/*] | ?:[\\/]*)
9679 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9680 ;;
9681 *)
9682 lt_save_MAGIC_CMD=$MAGIC_CMD
9683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9685 for ac_dir in $ac_dummy; do
9686 IFS=$lt_save_ifs
9687 test -z "$ac_dir" && ac_dir=.
9688 if test -f "$ac_dir/file"; then
9689 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9690 if test -n "$file_magic_test_file"; then
9691 case $deplibs_check_method in
9692 "file_magic "*)
9693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9694 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9696 $EGREP "$file_magic_regex" > /dev/null; then
9697 :
9698 else
9699 cat <<_LT_EOF 1>&2
9700
9701 *** Warning: the command libtool uses to detect shared libraries,
9702 *** $file_magic_cmd, produces output that libtool cannot recognize.
9703 *** The result is that libtool may fail to recognize shared libraries
9704 *** as such. This will affect the creation of libtool libraries that
9705 *** depend on shared libraries, but programs linked with such libtool
9706 *** libraries will work regardless of this problem. Nevertheless, you
9707 *** may want to report the problem to your system manager and/or to
9708 *** [email protected]
9709
9710 _LT_EOF
9711 fi ;;
9712 esac
9713 fi
9714 break
9715 fi
9716 done
9717 IFS=$lt_save_ifs
9718 MAGIC_CMD=$lt_save_MAGIC_CMD
9719 ;;
9720 esac
9721 fi
9722
9723 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9724 if test -n "$MAGIC_CMD"; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9726 $as_echo "$MAGIC_CMD" >&6; }
9727 else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731
9732
9733 else
9734 MAGIC_CMD=:
9735 fi
9736 fi
9737
9738 fi
9739 ;;
9740 esac
9741
9742 # Use C for the default configuration in the libtool script
9743
9744 lt_save_CC=$CC
9745 ac_ext=c
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9750
9751
9752 # Source file extension for C test sources.
9753 ac_ext=c
9754
9755 # Object file extension for compiled C test sources.
9756 objext=o
9757 objext=$objext
9758
9759 # Code to be used in simple compile tests
9760 lt_simple_compile_test_code="int some_variable = 0;"
9761
9762 # Code to be used in simple link tests
9763 lt_simple_link_test_code='int main(){return(0);}'
9764
9765
9766
9767
9768
9769
9770
9771 # If no C compiler was specified, use CC.
9772 LTCC=${LTCC-"$CC"}
9773
9774 # If no C compiler flags were specified, use CFLAGS.
9775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9776
9777 # Allow CC to be a program name with arguments.
9778 compiler=$CC
9779
9780 # Save the default compiler, since it gets overwritten when the other
9781 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9782 compiler_DEFAULT=$CC
9783
9784 # save warnings/boilerplate of simple test code
9785 ac_outfile=conftest.$ac_objext
9786 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9787 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9788 _lt_compiler_boilerplate=`cat conftest.err`
9789 $RM conftest*
9790
9791 ac_outfile=conftest.$ac_objext
9792 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9793 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9794 _lt_linker_boilerplate=`cat conftest.err`
9795 $RM -r conftest*
9796
9797
9798 ## CAVEAT EMPTOR:
9799 ## There is no encapsulation within the following macros, do not change
9800 ## the running order or otherwise move them around unless you know exactly
9801 ## what you are doing...
9802 if test -n "$compiler"; then
9803
9804 lt_prog_compiler_no_builtin_flag=
9805
9806 if test yes = "$GCC"; then
9807 case $cc_basename in
9808 nvcc*)
9809 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9810 *)
9811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9812 esac
9813
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 lt_cv_prog_compiler_rtti_exceptions=no
9820 ac_outfile=conftest.$ac_objext
9821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9823 # Insert the option either (1) after the last *FLAGS variable, or
9824 # (2) before a word containing "conftest.", or (3) at the end.
9825 # Note that $ac_compile itself does not contain backslashes and begins
9826 # with a dollar sign (not a hyphen), so the echo should work correctly.
9827 # The option is referenced via a variable to avoid confusing sed.
9828 lt_compile=`echo "$ac_compile" | $SED \
9829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9831 -e 's:$: $lt_compiler_flag:'`
9832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9833 (eval "$lt_compile" 2>conftest.err)
9834 ac_status=$?
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 if (exit $ac_status) && test -s "$ac_outfile"; then
9838 # The compiler can only warn and ignore the option if not recognized
9839 # So say no if there are warnings other than the usual output.
9840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9843 lt_cv_prog_compiler_rtti_exceptions=yes
9844 fi
9845 fi
9846 $RM conftest*
9847
9848 fi
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9851
9852 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9854 else
9855 :
9856 fi
9857
9858 fi
9859
9860
9861
9862
9863
9864
9865 lt_prog_compiler_wl=
9866 lt_prog_compiler_pic=
9867 lt_prog_compiler_static=
9868
9869
9870 if test yes = "$GCC"; then
9871 lt_prog_compiler_wl='-Wl,'
9872 lt_prog_compiler_static='-static'
9873
9874 case $host_os in
9875 aix*)
9876 # All AIX code is PIC.
9877 if test ia64 = "$host_cpu"; then
9878 # AIX 5 now supports IA64 processor
9879 lt_prog_compiler_static='-Bstatic'
9880 fi
9881 lt_prog_compiler_pic='-fPIC'
9882 ;;
9883
9884 amigaos*)
9885 case $host_cpu in
9886 powerpc)
9887 # see comment about AmigaOS4 .so support
9888 lt_prog_compiler_pic='-fPIC'
9889 ;;
9890 m68k)
9891 # FIXME: we need at least 68020 code to build shared libraries, but
9892 # adding the '-m68020' flag to GCC prevents building anything better,
9893 # like '-m68040'.
9894 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9895 ;;
9896 esac
9897 ;;
9898
9899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9900 # PIC is the default for these OSes.
9901 ;;
9902
9903 mingw* | cygwin* | pw32* | os2* | cegcc*)
9904 # This hack is so that the source file can tell whether it is being
9905 # built for inclusion in a dll (and should export symbols for example).
9906 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9907 # (--disable-auto-import) libraries
9908 lt_prog_compiler_pic='-DDLL_EXPORT'
9909 case $host_os in
9910 os2*)
9911 lt_prog_compiler_static='$wl-static'
9912 ;;
9913 esac
9914 ;;
9915
9916 darwin* | rhapsody*)
9917 # PIC is the default on this platform
9918 # Common symbols not allowed in MH_DYLIB files
9919 lt_prog_compiler_pic='-fno-common'
9920 ;;
9921
9922 haiku*)
9923 # PIC is the default for Haiku.
9924 # The "-static" flag exists, but is broken.
9925 lt_prog_compiler_static=
9926 ;;
9927
9928 hpux*)
9929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9931 # sets the default TLS model and affects inlining.
9932 case $host_cpu in
9933 hppa*64*)
9934 # +Z the default
9935 ;;
9936 *)
9937 lt_prog_compiler_pic='-fPIC'
9938 ;;
9939 esac
9940 ;;
9941
9942 interix[3-9]*)
9943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9944 # Instead, we relocate shared libraries at runtime.
9945 ;;
9946
9947 msdosdjgpp*)
9948 # Just because we use GCC doesn't mean we suddenly get shared libraries
9949 # on systems that don't support them.
9950 lt_prog_compiler_can_build_shared=no
9951 enable_shared=no
9952 ;;
9953
9954 *nto* | *qnx*)
9955 # QNX uses GNU C++, but need to define -shared option too, otherwise
9956 # it will coredump.
9957 lt_prog_compiler_pic='-fPIC -shared'
9958 ;;
9959
9960 sysv4*MP*)
9961 if test -d /usr/nec; then
9962 lt_prog_compiler_pic=-Kconform_pic
9963 fi
9964 ;;
9965
9966 *)
9967 lt_prog_compiler_pic='-fPIC'
9968 ;;
9969 esac
9970
9971 case $cc_basename in
9972 nvcc*) # Cuda Compiler Driver 2.2
9973 lt_prog_compiler_wl='-Xlinker '
9974 if test -n "$lt_prog_compiler_pic"; then
9975 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9976 fi
9977 ;;
9978 esac
9979 else
9980 # PORTME Check for flag to pass linker flags through the system compiler.
9981 case $host_os in
9982 aix*)
9983 lt_prog_compiler_wl='-Wl,'
9984 if test ia64 = "$host_cpu"; then
9985 # AIX 5 now supports IA64 processor
9986 lt_prog_compiler_static='-Bstatic'
9987 else
9988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9989 fi
9990 ;;
9991
9992 darwin* | rhapsody*)
9993 # PIC is the default on this platform
9994 # Common symbols not allowed in MH_DYLIB files
9995 lt_prog_compiler_pic='-fno-common'
9996 case $cc_basename in
9997 nagfor*)
9998 # NAG Fortran compiler
9999 lt_prog_compiler_wl='-Wl,-Wl,,'
10000 lt_prog_compiler_pic='-PIC'
10001 lt_prog_compiler_static='-Bstatic'
10002 ;;
10003 esac
10004 ;;
10005
10006 mingw* | cygwin* | pw32* | os2* | cegcc*)
10007 # This hack is so that the source file can tell whether it is being
10008 # built for inclusion in a dll (and should export symbols for example).
10009 lt_prog_compiler_pic='-DDLL_EXPORT'
10010 case $host_os in
10011 os2*)
10012 lt_prog_compiler_static='$wl-static'
10013 ;;
10014 esac
10015 ;;
10016
10017 hpux9* | hpux10* | hpux11*)
10018 lt_prog_compiler_wl='-Wl,'
10019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10020 # not for PA HP-UX.
10021 case $host_cpu in
10022 hppa*64*|ia64*)
10023 # +Z the default
10024 ;;
10025 *)
10026 lt_prog_compiler_pic='+Z'
10027 ;;
10028 esac
10029 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10030 lt_prog_compiler_static='$wl-a ${wl}archive'
10031 ;;
10032
10033 irix5* | irix6* | nonstopux*)
10034 lt_prog_compiler_wl='-Wl,'
10035 # PIC (with -KPIC) is the default.
10036 lt_prog_compiler_static='-non_shared'
10037 ;;
10038
10039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10040 case $cc_basename in
10041 # old Intel for x86_64, which still supported -KPIC.
10042 ecc*)
10043 lt_prog_compiler_wl='-Wl,'
10044 lt_prog_compiler_pic='-KPIC'
10045 lt_prog_compiler_static='-static'
10046 ;;
10047 # icc used to be incompatible with GCC.
10048 # ICC 10 doesn't accept -KPIC any more.
10049 icc* | ifort*)
10050 lt_prog_compiler_wl='-Wl,'
10051 lt_prog_compiler_pic='-fPIC'
10052 lt_prog_compiler_static='-static'
10053 ;;
10054 # Lahey Fortran 8.1.
10055 lf95*)
10056 lt_prog_compiler_wl='-Wl,'
10057 lt_prog_compiler_pic='--shared'
10058 lt_prog_compiler_static='--static'
10059 ;;
10060 nagfor*)
10061 # NAG Fortran compiler
10062 lt_prog_compiler_wl='-Wl,-Wl,,'
10063 lt_prog_compiler_pic='-PIC'
10064 lt_prog_compiler_static='-Bstatic'
10065 ;;
10066 tcc*)
10067 # Fabrice Bellard et al's Tiny C Compiler
10068 lt_prog_compiler_wl='-Wl,'
10069 lt_prog_compiler_pic='-fPIC'
10070 lt_prog_compiler_static='-static'
10071 ;;
10072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10073 # Portland Group compilers (*not* the Pentium gcc compiler,
10074 # which looks to be a dead project)
10075 lt_prog_compiler_wl='-Wl,'
10076 lt_prog_compiler_pic='-fpic'
10077 lt_prog_compiler_static='-Bstatic'
10078 ;;
10079 ccc*)
10080 lt_prog_compiler_wl='-Wl,'
10081 # All Alpha code is PIC.
10082 lt_prog_compiler_static='-non_shared'
10083 ;;
10084 xl* | bgxl* | bgf* | mpixl*)
10085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10086 lt_prog_compiler_wl='-Wl,'
10087 lt_prog_compiler_pic='-qpic'
10088 lt_prog_compiler_static='-qstaticlink'
10089 ;;
10090 *)
10091 case `$CC -V 2>&1 | sed 5q` in
10092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10094 lt_prog_compiler_pic='-KPIC'
10095 lt_prog_compiler_static='-Bstatic'
10096 lt_prog_compiler_wl=''
10097 ;;
10098 *Sun\ F* | *Sun*Fortran*)
10099 lt_prog_compiler_pic='-KPIC'
10100 lt_prog_compiler_static='-Bstatic'
10101 lt_prog_compiler_wl='-Qoption ld '
10102 ;;
10103 *Sun\ C*)
10104 # Sun C 5.9
10105 lt_prog_compiler_pic='-KPIC'
10106 lt_prog_compiler_static='-Bstatic'
10107 lt_prog_compiler_wl='-Wl,'
10108 ;;
10109 *Intel*\ [CF]*Compiler*)
10110 lt_prog_compiler_wl='-Wl,'
10111 lt_prog_compiler_pic='-fPIC'
10112 lt_prog_compiler_static='-static'
10113 ;;
10114 *Portland\ Group*)
10115 lt_prog_compiler_wl='-Wl,'
10116 lt_prog_compiler_pic='-fpic'
10117 lt_prog_compiler_static='-Bstatic'
10118 ;;
10119 esac
10120 ;;
10121 esac
10122 ;;
10123
10124 newsos6)
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-Bstatic'
10127 ;;
10128
10129 *nto* | *qnx*)
10130 # QNX uses GNU C++, but need to define -shared option too, otherwise
10131 # it will coredump.
10132 lt_prog_compiler_pic='-fPIC -shared'
10133 ;;
10134
10135 osf3* | osf4* | osf5*)
10136 lt_prog_compiler_wl='-Wl,'
10137 # All OSF/1 code is PIC.
10138 lt_prog_compiler_static='-non_shared'
10139 ;;
10140
10141 rdos*)
10142 lt_prog_compiler_static='-non_shared'
10143 ;;
10144
10145 solaris*)
10146 lt_prog_compiler_pic='-KPIC'
10147 lt_prog_compiler_static='-Bstatic'
10148 case $cc_basename in
10149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10150 lt_prog_compiler_wl='-Qoption ld ';;
10151 *)
10152 lt_prog_compiler_wl='-Wl,';;
10153 esac
10154 ;;
10155
10156 sunos4*)
10157 lt_prog_compiler_wl='-Qoption ld '
10158 lt_prog_compiler_pic='-PIC'
10159 lt_prog_compiler_static='-Bstatic'
10160 ;;
10161
10162 sysv4 | sysv4.2uw2* | sysv4.3*)
10163 lt_prog_compiler_wl='-Wl,'
10164 lt_prog_compiler_pic='-KPIC'
10165 lt_prog_compiler_static='-Bstatic'
10166 ;;
10167
10168 sysv4*MP*)
10169 if test -d /usr/nec; then
10170 lt_prog_compiler_pic='-Kconform_pic'
10171 lt_prog_compiler_static='-Bstatic'
10172 fi
10173 ;;
10174
10175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10176 lt_prog_compiler_wl='-Wl,'
10177 lt_prog_compiler_pic='-KPIC'
10178 lt_prog_compiler_static='-Bstatic'
10179 ;;
10180
10181 unicos*)
10182 lt_prog_compiler_wl='-Wl,'
10183 lt_prog_compiler_can_build_shared=no
10184 ;;
10185
10186 uts4*)
10187 lt_prog_compiler_pic='-pic'
10188 lt_prog_compiler_static='-Bstatic'
10189 ;;
10190
10191 *)
10192 lt_prog_compiler_can_build_shared=no
10193 ;;
10194 esac
10195 fi
10196
10197 case $host_os in
10198 # For platforms that do not support PIC, -DPIC is meaningless:
10199 *djgpp*)
10200 lt_prog_compiler_pic=
10201 ;;
10202 *)
10203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10204 ;;
10205 esac
10206
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10208 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10209 if ${lt_cv_prog_compiler_pic+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10215 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10216 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10217
10218 #
10219 # Check to make sure the PIC flag actually works.
10220 #
10221 if test -n "$lt_prog_compiler_pic"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10223 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10224 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 lt_cv_prog_compiler_pic_works=no
10228 ac_outfile=conftest.$ac_objext
10229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10231 # Insert the option either (1) after the last *FLAGS variable, or
10232 # (2) before a word containing "conftest.", or (3) at the end.
10233 # Note that $ac_compile itself does not contain backslashes and begins
10234 # with a dollar sign (not a hyphen), so the echo should work correctly.
10235 # The option is referenced via a variable to avoid confusing sed.
10236 lt_compile=`echo "$ac_compile" | $SED \
10237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10239 -e 's:$: $lt_compiler_flag:'`
10240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10241 (eval "$lt_compile" 2>conftest.err)
10242 ac_status=$?
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 if (exit $ac_status) && test -s "$ac_outfile"; then
10246 # The compiler can only warn and ignore the option if not recognized
10247 # So say no if there are warnings other than the usual output.
10248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10251 lt_cv_prog_compiler_pic_works=yes
10252 fi
10253 fi
10254 $RM conftest*
10255
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10258 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10259
10260 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10261 case $lt_prog_compiler_pic in
10262 "" | " "*) ;;
10263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10264 esac
10265 else
10266 lt_prog_compiler_pic=
10267 lt_prog_compiler_can_build_shared=no
10268 fi
10269
10270 fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 #
10283 # Check to make sure the static flag actually works.
10284 #
10285 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10287 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10288 if ${lt_cv_prog_compiler_static_works+:} false; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 lt_cv_prog_compiler_static_works=no
10292 save_LDFLAGS=$LDFLAGS
10293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10296 # The linker can only warn and ignore the option if not recognized
10297 # So say no if there are warnings
10298 if test -s conftest.err; then
10299 # Append any errors to the config.log.
10300 cat conftest.err 1>&5
10301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10303 if diff conftest.exp conftest.er2 >/dev/null; then
10304 lt_cv_prog_compiler_static_works=yes
10305 fi
10306 else
10307 lt_cv_prog_compiler_static_works=yes
10308 fi
10309 fi
10310 $RM -r conftest*
10311 LDFLAGS=$save_LDFLAGS
10312
10313 fi
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10315 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10316
10317 if test yes = "$lt_cv_prog_compiler_static_works"; then
10318 :
10319 else
10320 lt_prog_compiler_static=
10321 fi
10322
10323
10324
10325
10326
10327
10328
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10331 if ${lt_cv_prog_compiler_c_o+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 lt_cv_prog_compiler_c_o=no
10335 $RM -r conftest 2>/dev/null
10336 mkdir conftest
10337 cd conftest
10338 mkdir out
10339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340
10341 lt_compiler_flag="-o out/conftest2.$ac_objext"
10342 # Insert the option either (1) after the last *FLAGS variable, or
10343 # (2) before a word containing "conftest.", or (3) at the end.
10344 # Note that $ac_compile itself does not contain backslashes and begins
10345 # with a dollar sign (not a hyphen), so the echo should work correctly.
10346 lt_compile=`echo "$ac_compile" | $SED \
10347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10349 -e 's:$: $lt_compiler_flag:'`
10350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10351 (eval "$lt_compile" 2>out/conftest.err)
10352 ac_status=$?
10353 cat out/conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10356 then
10357 # The compiler can only warn and ignore the option if not recognized
10358 # So say no if there are warnings
10359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10362 lt_cv_prog_compiler_c_o=yes
10363 fi
10364 fi
10365 chmod u+w . 2>&5
10366 $RM conftest*
10367 # SGI C++ compiler will create directory out/ii_files/ for
10368 # template instantiation
10369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10370 $RM out/* && rmdir out
10371 cd ..
10372 $RM -r conftest
10373 $RM conftest*
10374
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10378
10379
10380
10381
10382
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10386 if ${lt_cv_prog_compiler_c_o+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 lt_cv_prog_compiler_c_o=no
10390 $RM -r conftest 2>/dev/null
10391 mkdir conftest
10392 cd conftest
10393 mkdir out
10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10395
10396 lt_compiler_flag="-o out/conftest2.$ac_objext"
10397 # Insert the option either (1) after the last *FLAGS variable, or
10398 # (2) before a word containing "conftest.", or (3) at the end.
10399 # Note that $ac_compile itself does not contain backslashes and begins
10400 # with a dollar sign (not a hyphen), so the echo should work correctly.
10401 lt_compile=`echo "$ac_compile" | $SED \
10402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10404 -e 's:$: $lt_compiler_flag:'`
10405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10406 (eval "$lt_compile" 2>out/conftest.err)
10407 ac_status=$?
10408 cat out/conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10411 then
10412 # The compiler can only warn and ignore the option if not recognized
10413 # So say no if there are warnings
10414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10417 lt_cv_prog_compiler_c_o=yes
10418 fi
10419 fi
10420 chmod u+w . 2>&5
10421 $RM conftest*
10422 # SGI C++ compiler will create directory out/ii_files/ for
10423 # template instantiation
10424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10425 $RM out/* && rmdir out
10426 cd ..
10427 $RM -r conftest
10428 $RM conftest*
10429
10430 fi
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10433
10434
10435
10436
10437 hard_links=nottested
10438 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10439 # do not overwrite the value of need_locks provided by the user
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10441 $as_echo_n "checking if we can lock with hard links... " >&6; }
10442 hard_links=yes
10443 $RM conftest*
10444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10445 touch conftest.a
10446 ln conftest.a conftest.b 2>&5 || hard_links=no
10447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10449 $as_echo "$hard_links" >&6; }
10450 if test no = "$hard_links"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10452 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10453 need_locks=warn
10454 fi
10455 else
10456 need_locks=no
10457 fi
10458
10459
10460
10461
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10466
10467 runpath_var=
10468 allow_undefined_flag=
10469 always_export_symbols=no
10470 archive_cmds=
10471 archive_expsym_cmds=
10472 compiler_needs_object=no
10473 enable_shared_with_static_runtimes=no
10474 export_dynamic_flag_spec=
10475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10476 hardcode_automatic=no
10477 hardcode_direct=no
10478 hardcode_direct_absolute=no
10479 hardcode_libdir_flag_spec=
10480 hardcode_libdir_separator=
10481 hardcode_minus_L=no
10482 hardcode_shlibpath_var=unsupported
10483 inherit_rpath=no
10484 link_all_deplibs=unknown
10485 module_cmds=
10486 module_expsym_cmds=
10487 old_archive_from_new_cmds=
10488 old_archive_from_expsyms_cmds=
10489 thread_safe_flag_spec=
10490 whole_archive_flag_spec=
10491 # include_expsyms should be a list of space-separated symbols to be *always*
10492 # included in the symbol list
10493 include_expsyms=
10494 # exclude_expsyms can be an extended regexp of symbols to exclude
10495 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10496 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10497 # as well as any symbol that contains 'd'.
10498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10500 # platforms (ab)use it in PIC code, but their linkers get confused if
10501 # the symbol is explicitly referenced. Since portable code cannot
10502 # rely on this symbol name, it's probably fine to never include it in
10503 # preloaded symbol tables.
10504 # Exclude shared library initialization/finalization symbols.
10505 extract_expsyms_cmds=
10506
10507 case $host_os in
10508 cygwin* | mingw* | pw32* | cegcc*)
10509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10510 # When not using gcc, we currently assume that we are using
10511 # Microsoft Visual C++.
10512 if test yes != "$GCC"; then
10513 with_gnu_ld=no
10514 fi
10515 ;;
10516 interix*)
10517 # we just hope/assume this is gcc and not c89 (= MSVC++)
10518 with_gnu_ld=yes
10519 ;;
10520 openbsd* | bitrig*)
10521 with_gnu_ld=no
10522 ;;
10523 linux* | k*bsd*-gnu | gnu*)
10524 link_all_deplibs=no
10525 ;;
10526 esac
10527
10528 ld_shlibs=yes
10529
10530 # On some targets, GNU ld is compatible enough with the native linker
10531 # that we're better off using the native interface for both.
10532 lt_use_gnu_ld_interface=no
10533 if test yes = "$with_gnu_ld"; then
10534 case $host_os in
10535 aix*)
10536 # The AIX port of GNU ld has always aspired to compatibility
10537 # with the native linker. However, as the warning in the GNU ld
10538 # block says, versions before 2.19.5* couldn't really create working
10539 # shared libraries, regardless of the interface used.
10540 case `$LD -v 2>&1` in
10541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10543 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10544 *)
10545 lt_use_gnu_ld_interface=yes
10546 ;;
10547 esac
10548 ;;
10549 *)
10550 lt_use_gnu_ld_interface=yes
10551 ;;
10552 esac
10553 fi
10554
10555 if test yes = "$lt_use_gnu_ld_interface"; then
10556 # If archive_cmds runs LD, not CC, wlarc should be empty
10557 wlarc='$wl'
10558
10559 # Set some defaults for GNU ld with shared library support. These
10560 # are reset later if shared libraries are not supported. Putting them
10561 # here allows them to be overridden if necessary.
10562 runpath_var=LD_RUN_PATH
10563 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10564 export_dynamic_flag_spec='$wl--export-dynamic'
10565 # ancient GNU ld didn't support --whole-archive et. al.
10566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10567 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10568 else
10569 whole_archive_flag_spec=
10570 fi
10571 supports_anon_versioning=no
10572 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10573 *GNU\ gold*) supports_anon_versioning=yes ;;
10574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10577 *\ 2.11.*) ;; # other 2.11 versions
10578 *) supports_anon_versioning=yes ;;
10579 esac
10580
10581 # See if GNU ld supports shared libraries.
10582 case $host_os in
10583 aix[3-9]*)
10584 # On AIX/PPC, the GNU linker is very broken
10585 if test ia64 != "$host_cpu"; then
10586 ld_shlibs=no
10587 cat <<_LT_EOF 1>&2
10588
10589 *** Warning: the GNU linker, at least up to release 2.19, is reported
10590 *** to be unable to reliably create shared libraries on AIX.
10591 *** Therefore, libtool is disabling shared libraries support. If you
10592 *** really care for shared libraries, you may want to install binutils
10593 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10594 *** You will then need to restart the configuration process.
10595
10596 _LT_EOF
10597 fi
10598 ;;
10599
10600 amigaos*)
10601 case $host_cpu in
10602 powerpc)
10603 # see comment about AmigaOS4 .so support
10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10605 archive_expsym_cmds=''
10606 ;;
10607 m68k)
10608 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)'
10609 hardcode_libdir_flag_spec='-L$libdir'
10610 hardcode_minus_L=yes
10611 ;;
10612 esac
10613 ;;
10614
10615 beos*)
10616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10617 allow_undefined_flag=unsupported
10618 # Joseph Beckenbach <[email protected]> says some releases of gcc
10619 # support --undefined. This deserves some investigation. FIXME
10620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10621 else
10622 ld_shlibs=no
10623 fi
10624 ;;
10625
10626 cygwin* | mingw* | pw32* | cegcc*)
10627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10628 # as there is no search path for DLLs.
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 export_dynamic_flag_spec='$wl--export-all-symbols'
10631 allow_undefined_flag=unsupported
10632 always_export_symbols=no
10633 enable_shared_with_static_runtimes=yes
10634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10635 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10636
10637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10639 # If the export-symbols file already is a .def file, use it as
10640 # is; otherwise, prepend EXPORTS...
10641 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10642 cp $export_symbols $output_objdir/$soname.def;
10643 else
10644 echo EXPORTS > $output_objdir/$soname.def;
10645 cat $export_symbols >> $output_objdir/$soname.def;
10646 fi~
10647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10648 else
10649 ld_shlibs=no
10650 fi
10651 ;;
10652
10653 haiku*)
10654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10655 link_all_deplibs=yes
10656 ;;
10657
10658 os2*)
10659 hardcode_libdir_flag_spec='-L$libdir'
10660 hardcode_minus_L=yes
10661 allow_undefined_flag=unsupported
10662 shrext_cmds=.dll
10663 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10664 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10665 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10666 $ECHO EXPORTS >> $output_objdir/$libname.def~
10667 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10669 emximp -o $lib $output_objdir/$libname.def'
10670 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10671 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10672 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10673 $ECHO EXPORTS >> $output_objdir/$libname.def~
10674 prefix_cmds="$SED"~
10675 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10676 prefix_cmds="$prefix_cmds -e 1d";
10677 fi~
10678 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10679 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10680 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10681 emximp -o $lib $output_objdir/$libname.def'
10682 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10683 enable_shared_with_static_runtimes=yes
10684 ;;
10685
10686 interix[3-9]*)
10687 hardcode_direct=no
10688 hardcode_shlibpath_var=no
10689 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10690 export_dynamic_flag_spec='$wl-E'
10691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10692 # Instead, shared libraries are loaded at an image base (0x10000000 by
10693 # default) and relocated if they conflict, which is a slow very memory
10694 # consuming and fragmenting process. To avoid this, we pick a random,
10695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10696 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10698 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'
10699 ;;
10700
10701 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10702 tmp_diet=no
10703 if test linux-dietlibc = "$host_os"; then
10704 case $cc_basename in
10705 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10706 esac
10707 fi
10708 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10709 && test no = "$tmp_diet"
10710 then
10711 tmp_addflag=' $pic_flag'
10712 tmp_sharedflag='-shared'
10713 case $cc_basename,$host_cpu in
10714 pgcc*) # Portland Group C compiler
10715 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10716 tmp_addflag=' $pic_flag'
10717 ;;
10718 pgf77* | pgf90* | pgf95* | pgfortran*)
10719 # Portland Group f77 and f90 compilers
10720 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10721 tmp_addflag=' $pic_flag -Mnomain' ;;
10722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10723 tmp_addflag=' -i_dynamic' ;;
10724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10725 tmp_addflag=' -i_dynamic -nofor_main' ;;
10726 ifc* | ifort*) # Intel Fortran compiler
10727 tmp_addflag=' -nofor_main' ;;
10728 lf95*) # Lahey Fortran 8.1
10729 whole_archive_flag_spec=
10730 tmp_sharedflag='--shared' ;;
10731 nagfor*) # NAGFOR 5.3
10732 tmp_sharedflag='-Wl,-shared' ;;
10733 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10734 tmp_sharedflag='-qmkshrobj'
10735 tmp_addflag= ;;
10736 nvcc*) # Cuda Compiler Driver 2.2
10737 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10738 compiler_needs_object=yes
10739 ;;
10740 esac
10741 case `$CC -V 2>&1 | sed 5q` in
10742 *Sun\ C*) # Sun C 5.9
10743 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10744 compiler_needs_object=yes
10745 tmp_sharedflag='-G' ;;
10746 *Sun\ F*) # Sun Fortran 8.3
10747 tmp_sharedflag='-G' ;;
10748 esac
10749 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10750
10751 if test yes = "$supports_anon_versioning"; then
10752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10754 echo "local: *; };" >> $output_objdir/$libname.ver~
10755 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10756 fi
10757
10758 case $cc_basename in
10759 tcc*)
10760 export_dynamic_flag_spec='-rdynamic'
10761 ;;
10762 xlf* | bgf* | bgxlf* | mpixlf*)
10763 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10764 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10766 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10767 if test yes = "$supports_anon_versioning"; then
10768 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10770 echo "local: *; };" >> $output_objdir/$libname.ver~
10771 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10772 fi
10773 ;;
10774 esac
10775 else
10776 ld_shlibs=no
10777 fi
10778 ;;
10779
10780 netbsd* | netbsdelf*-gnu)
10781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10782 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10783 wlarc=
10784 else
10785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10787 fi
10788 ;;
10789
10790 solaris*)
10791 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10792 ld_shlibs=no
10793 cat <<_LT_EOF 1>&2
10794
10795 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10796 *** create shared libraries on Solaris systems. Therefore, libtool
10797 *** is disabling shared libraries support. We urge you to upgrade GNU
10798 *** binutils to release 2.9.1 or newer. Another option is to modify
10799 *** your PATH or compiler configuration so that the native linker is
10800 *** used, and then restart.
10801
10802 _LT_EOF
10803 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10805 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10806 else
10807 ld_shlibs=no
10808 fi
10809 ;;
10810
10811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10812 case `$LD -v 2>&1` in
10813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10814 ld_shlibs=no
10815 cat <<_LT_EOF 1>&2
10816
10817 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10818 *** reliably create shared libraries on SCO systems. Therefore, libtool
10819 *** is disabling shared libraries support. We urge you to upgrade GNU
10820 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10821 *** your PATH or compiler configuration so that the native linker is
10822 *** used, and then restart.
10823
10824 _LT_EOF
10825 ;;
10826 *)
10827 # For security reasons, it is highly recommended that you always
10828 # use absolute paths for naming shared libraries, and exclude the
10829 # DT_RUNPATH tag from executables and libraries. But doing so
10830 # requires that you compile everything twice, which is a pain.
10831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10835 else
10836 ld_shlibs=no
10837 fi
10838 ;;
10839 esac
10840 ;;
10841
10842 sunos4*)
10843 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 wlarc=
10845 hardcode_direct=yes
10846 hardcode_shlibpath_var=no
10847 ;;
10848
10849 *)
10850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10853 else
10854 ld_shlibs=no
10855 fi
10856 ;;
10857 esac
10858
10859 if test no = "$ld_shlibs"; then
10860 runpath_var=
10861 hardcode_libdir_flag_spec=
10862 export_dynamic_flag_spec=
10863 whole_archive_flag_spec=
10864 fi
10865 else
10866 # PORTME fill in a description of your system's linker (not GNU ld)
10867 case $host_os in
10868 aix3*)
10869 allow_undefined_flag=unsupported
10870 always_export_symbols=yes
10871 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'
10872 # Note: this linker hardcodes the directories in LIBPATH if there
10873 # are no directories specified by -L.
10874 hardcode_minus_L=yes
10875 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10876 # Neither direct hardcoding nor static linking is supported with a
10877 # broken collect2.
10878 hardcode_direct=unsupported
10879 fi
10880 ;;
10881
10882 aix[4-9]*)
10883 if test ia64 = "$host_cpu"; then
10884 # On IA64, the linker does run time linking by default, so we don't
10885 # have to do anything special.
10886 aix_use_runtimelinking=no
10887 exp_sym_flag='-Bexport'
10888 no_entry_flag=
10889 else
10890 # If we're using GNU nm, then we don't want the "-C" option.
10891 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10892 # Without the "-l" option, or with the "-B" option, AIX nm treats
10893 # weak defined symbols like other global defined symbols, whereas
10894 # GNU nm marks them as "W".
10895 # While the 'weak' keyword is ignored in the Export File, we need
10896 # it in the Import File for the 'aix-soname' feature, so we have
10897 # to replace the "-B" option with "-P" for AIX nm.
10898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10899 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10900 else
10901 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10902 fi
10903 aix_use_runtimelinking=no
10904
10905 # Test if we are trying to use run time linking or normal
10906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10907 # have runtime linking enabled, and use it for executables.
10908 # For shared libraries, we enable/disable runtime linking
10909 # depending on the kind of the shared library created -
10910 # when "with_aix_soname,aix_use_runtimelinking" is:
10911 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10912 # "aix,yes" lib.so shared, rtl:yes, for executables
10913 # lib.a static archive
10914 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10915 # lib.a(lib.so.V) shared, rtl:no, for executables
10916 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10917 # lib.a(lib.so.V) shared, rtl:no
10918 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10919 # lib.a static archive
10920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10921 for ld_flag in $LDFLAGS; do
10922 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10923 aix_use_runtimelinking=yes
10924 break
10925 fi
10926 done
10927 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10928 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10929 # so we don't have lib.a shared libs to link our executables.
10930 # We have to force runtime linking in this case.
10931 aix_use_runtimelinking=yes
10932 LDFLAGS="$LDFLAGS -Wl,-brtl"
10933 fi
10934 ;;
10935 esac
10936
10937 exp_sym_flag='-bexport'
10938 no_entry_flag='-bnoentry'
10939 fi
10940
10941 # When large executables or shared objects are built, AIX ld can
10942 # have problems creating the table of contents. If linking a library
10943 # or program results in "error TOC overflow" add -mminimal-toc to
10944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10946
10947 archive_cmds=''
10948 hardcode_direct=yes
10949 hardcode_direct_absolute=yes
10950 hardcode_libdir_separator=':'
10951 link_all_deplibs=yes
10952 file_list_spec='$wl-f,'
10953 case $with_aix_soname,$aix_use_runtimelinking in
10954 aix,*) ;; # traditional, no import file
10955 svr4,* | *,yes) # use import file
10956 # The Import File defines what to hardcode.
10957 hardcode_direct=no
10958 hardcode_direct_absolute=no
10959 ;;
10960 esac
10961
10962 if test yes = "$GCC"; then
10963 case $host_os in aix4.[012]|aix4.[012].*)
10964 # We only want to do this on AIX 4.2 and lower, the check
10965 # below for broken collect2 doesn't work under 4.3+
10966 collect2name=`$CC -print-prog-name=collect2`
10967 if test -f "$collect2name" &&
10968 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10969 then
10970 # We have reworked collect2
10971 :
10972 else
10973 # We have old collect2
10974 hardcode_direct=unsupported
10975 # It fails to find uninstalled libraries when the uninstalled
10976 # path is not listed in the libpath. Setting hardcode_minus_L
10977 # to unsupported forces relinking
10978 hardcode_minus_L=yes
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_libdir_separator=
10981 fi
10982 ;;
10983 esac
10984 shared_flag='-shared'
10985 if test yes = "$aix_use_runtimelinking"; then
10986 shared_flag="$shared_flag "'$wl-G'
10987 fi
10988 # Need to ensure runtime linking is disabled for the traditional
10989 # shared library, or the linker may eventually find shared libraries
10990 # /with/ Import File - we do not want to mix them.
10991 shared_flag_aix='-shared'
10992 shared_flag_svr4='-shared $wl-G'
10993 else
10994 # not using gcc
10995 if test ia64 = "$host_cpu"; then
10996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10997 # chokes on -Wl,-G. The following line is correct:
10998 shared_flag='-G'
10999 else
11000 if test yes = "$aix_use_runtimelinking"; then
11001 shared_flag='$wl-G'
11002 else
11003 shared_flag='$wl-bM:SRE'
11004 fi
11005 shared_flag_aix='$wl-bM:SRE'
11006 shared_flag_svr4='$wl-G'
11007 fi
11008 fi
11009
11010 export_dynamic_flag_spec='$wl-bexpall'
11011 # It seems that -bexpall does not export symbols beginning with
11012 # underscore (_), so it is better to generate a list of symbols to export.
11013 always_export_symbols=yes
11014 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11015 # Warning - without using the other runtime loading flags (-brtl),
11016 # -berok will link without error, but may produce a broken library.
11017 allow_undefined_flag='-berok'
11018 # Determine the default libpath from the value encoded in an
11019 # empty executable.
11020 if test set = "${lt_cv_aix_libpath+set}"; then
11021 aix_libpath=$lt_cv_aix_libpath
11022 else
11023 if ${lt_cv_aix_libpath_+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028
11029 int
11030 main ()
11031 {
11032
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038
11039 lt_aix_libpath_sed='
11040 /Import File Strings/,/^$/ {
11041 /^0/ {
11042 s/^0 *\([^ ]*\) *$/\1/
11043 p
11044 }
11045 }'
11046 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11047 # Check for a 64-bit object if we didn't find anything.
11048 if test -z "$lt_cv_aix_libpath_"; then
11049 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11050 fi
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 if test -z "$lt_cv_aix_libpath_"; then
11055 lt_cv_aix_libpath_=/usr/lib:/lib
11056 fi
11057
11058 fi
11059
11060 aix_libpath=$lt_cv_aix_libpath_
11061 fi
11062
11063 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11064 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11065 else
11066 if test ia64 = "$host_cpu"; then
11067 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11068 allow_undefined_flag="-z nodefs"
11069 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"
11070 else
11071 # Determine the default libpath from the value encoded in an
11072 # empty executable.
11073 if test set = "${lt_cv_aix_libpath+set}"; then
11074 aix_libpath=$lt_cv_aix_libpath
11075 else
11076 if ${lt_cv_aix_libpath_+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081
11082 int
11083 main ()
11084 {
11085
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091
11092 lt_aix_libpath_sed='
11093 /Import File Strings/,/^$/ {
11094 /^0/ {
11095 s/^0 *\([^ ]*\) *$/\1/
11096 p
11097 }
11098 }'
11099 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11100 # Check for a 64-bit object if we didn't find anything.
11101 if test -z "$lt_cv_aix_libpath_"; then
11102 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11103 fi
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 if test -z "$lt_cv_aix_libpath_"; then
11108 lt_cv_aix_libpath_=/usr/lib:/lib
11109 fi
11110
11111 fi
11112
11113 aix_libpath=$lt_cv_aix_libpath_
11114 fi
11115
11116 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11117 # Warning - without using the other run time loading flags,
11118 # -berok will link without error, but may produce a broken library.
11119 no_undefined_flag=' $wl-bernotok'
11120 allow_undefined_flag=' $wl-berok'
11121 if test yes = "$with_gnu_ld"; then
11122 # We only use this code for GNU lds that support --whole-archive.
11123 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11124 else
11125 # Exported symbols can be pulled into shared objects from archives
11126 whole_archive_flag_spec='$convenience'
11127 fi
11128 archive_cmds_need_lc=yes
11129 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11130 # -brtl affects multiple linker settings, -berok does not and is overridden later
11131 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11132 if test svr4 != "$with_aix_soname"; then
11133 # This is similar to how AIX traditionally builds its shared libraries.
11134 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11135 fi
11136 if test aix != "$with_aix_soname"; then
11137 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11138 else
11139 # used by -dlpreopen to get the symbols
11140 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11141 fi
11142 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11143 fi
11144 fi
11145 ;;
11146
11147 amigaos*)
11148 case $host_cpu in
11149 powerpc)
11150 # see comment about AmigaOS4 .so support
11151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11152 archive_expsym_cmds=''
11153 ;;
11154 m68k)
11155 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)'
11156 hardcode_libdir_flag_spec='-L$libdir'
11157 hardcode_minus_L=yes
11158 ;;
11159 esac
11160 ;;
11161
11162 bsdi[45]*)
11163 export_dynamic_flag_spec=-rdynamic
11164 ;;
11165
11166 cygwin* | mingw* | pw32* | cegcc*)
11167 # When not using gcc, we currently assume that we are using
11168 # Microsoft Visual C++.
11169 # hardcode_libdir_flag_spec is actually meaningless, as there is
11170 # no search path for DLLs.
11171 case $cc_basename in
11172 cl*)
11173 # Native MSVC
11174 hardcode_libdir_flag_spec=' '
11175 allow_undefined_flag=unsupported
11176 always_export_symbols=yes
11177 file_list_spec='@'
11178 # Tell ltmain to make .lib files, not .a files.
11179 libext=lib
11180 # Tell ltmain to make .dll files, not .so files.
11181 shrext_cmds=.dll
11182 # FIXME: Setting linknames here is a bad hack.
11183 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11184 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11185 cp "$export_symbols" "$output_objdir/$soname.def";
11186 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11187 else
11188 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11189 fi~
11190 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11191 linknames='
11192 # The linker will not automatically build a static lib if we build a DLL.
11193 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11194 enable_shared_with_static_runtimes=yes
11195 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11197 # Don't use ranlib
11198 old_postinstall_cmds='chmod 644 $oldlib'
11199 postlink_cmds='lt_outputfile="@OUTPUT@"~
11200 lt_tool_outputfile="@TOOL_OUTPUT@"~
11201 case $lt_outputfile in
11202 *.exe|*.EXE) ;;
11203 *)
11204 lt_outputfile=$lt_outputfile.exe
11205 lt_tool_outputfile=$lt_tool_outputfile.exe
11206 ;;
11207 esac~
11208 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11209 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11210 $RM "$lt_outputfile.manifest";
11211 fi'
11212 ;;
11213 *)
11214 # Assume MSVC wrapper
11215 hardcode_libdir_flag_spec=' '
11216 allow_undefined_flag=unsupported
11217 # Tell ltmain to make .lib files, not .a files.
11218 libext=lib
11219 # Tell ltmain to make .dll files, not .so files.
11220 shrext_cmds=.dll
11221 # FIXME: Setting linknames here is a bad hack.
11222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11223 # The linker will automatically build a .lib file if we build a DLL.
11224 old_archive_from_new_cmds='true'
11225 # FIXME: Should let the user specify the lib program.
11226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11227 enable_shared_with_static_runtimes=yes
11228 ;;
11229 esac
11230 ;;
11231
11232 darwin* | rhapsody*)
11233
11234
11235 archive_cmds_need_lc=no
11236 hardcode_direct=no
11237 hardcode_automatic=yes
11238 hardcode_shlibpath_var=unsupported
11239 if test yes = "$lt_cv_ld_force_load"; then
11240 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11241
11242 else
11243 whole_archive_flag_spec=''
11244 fi
11245 link_all_deplibs=yes
11246 allow_undefined_flag=$_lt_dar_allow_undefined
11247 case $cc_basename in
11248 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11249 *) _lt_dar_can_shared=$GCC ;;
11250 esac
11251 if test yes = "$_lt_dar_can_shared"; then
11252 output_verbose_link_cmd=func_echo_all
11253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11255 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"
11256 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"
11257
11258 else
11259 ld_shlibs=no
11260 fi
11261
11262 ;;
11263
11264 dgux*)
11265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11266 hardcode_libdir_flag_spec='-L$libdir'
11267 hardcode_shlibpath_var=no
11268 ;;
11269
11270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11271 # support. Future versions do this automatically, but an explicit c++rt0.o
11272 # does not break anything, and helps significantly (at the cost of a little
11273 # extra space).
11274 freebsd2.2*)
11275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11276 hardcode_libdir_flag_spec='-R$libdir'
11277 hardcode_direct=yes
11278 hardcode_shlibpath_var=no
11279 ;;
11280
11281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11282 freebsd2.*)
11283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11284 hardcode_direct=yes
11285 hardcode_minus_L=yes
11286 hardcode_shlibpath_var=no
11287 ;;
11288
11289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11290 freebsd* | dragonfly*)
11291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11292 hardcode_libdir_flag_spec='-R$libdir'
11293 hardcode_direct=yes
11294 hardcode_shlibpath_var=no
11295 ;;
11296
11297 hpux9*)
11298 if test yes = "$GCC"; then
11299 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11300 else
11301 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11302 fi
11303 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11304 hardcode_libdir_separator=:
11305 hardcode_direct=yes
11306
11307 # hardcode_minus_L: Not really in the search PATH,
11308 # but as the default location of the library.
11309 hardcode_minus_L=yes
11310 export_dynamic_flag_spec='$wl-E'
11311 ;;
11312
11313 hpux10*)
11314 if test yes,no = "$GCC,$with_gnu_ld"; then
11315 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11316 else
11317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11318 fi
11319 if test no = "$with_gnu_ld"; then
11320 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11321 hardcode_libdir_separator=:
11322 hardcode_direct=yes
11323 hardcode_direct_absolute=yes
11324 export_dynamic_flag_spec='$wl-E'
11325 # hardcode_minus_L: Not really in the search PATH,
11326 # but as the default location of the library.
11327 hardcode_minus_L=yes
11328 fi
11329 ;;
11330
11331 hpux11*)
11332 if test yes,no = "$GCC,$with_gnu_ld"; then
11333 case $host_cpu in
11334 hppa*64*)
11335 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 ;;
11337 ia64*)
11338 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11339 ;;
11340 *)
11341 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11342 ;;
11343 esac
11344 else
11345 case $host_cpu in
11346 hppa*64*)
11347 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 ;;
11349 ia64*)
11350 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11351 ;;
11352 *)
11353
11354 # Older versions of the 11.00 compiler do not understand -b yet
11355 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11357 $as_echo_n "checking if $CC understands -b... " >&6; }
11358 if ${lt_cv_prog_compiler__b+:} false; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 lt_cv_prog_compiler__b=no
11362 save_LDFLAGS=$LDFLAGS
11363 LDFLAGS="$LDFLAGS -b"
11364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11366 # The linker can only warn and ignore the option if not recognized
11367 # So say no if there are warnings
11368 if test -s conftest.err; then
11369 # Append any errors to the config.log.
11370 cat conftest.err 1>&5
11371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11373 if diff conftest.exp conftest.er2 >/dev/null; then
11374 lt_cv_prog_compiler__b=yes
11375 fi
11376 else
11377 lt_cv_prog_compiler__b=yes
11378 fi
11379 fi
11380 $RM -r conftest*
11381 LDFLAGS=$save_LDFLAGS
11382
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11385 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11386
11387 if test yes = "$lt_cv_prog_compiler__b"; then
11388 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11389 else
11390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11391 fi
11392
11393 ;;
11394 esac
11395 fi
11396 if test no = "$with_gnu_ld"; then
11397 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11398 hardcode_libdir_separator=:
11399
11400 case $host_cpu in
11401 hppa*64*|ia64*)
11402 hardcode_direct=no
11403 hardcode_shlibpath_var=no
11404 ;;
11405 *)
11406 hardcode_direct=yes
11407 hardcode_direct_absolute=yes
11408 export_dynamic_flag_spec='$wl-E'
11409
11410 # hardcode_minus_L: Not really in the search PATH,
11411 # but as the default location of the library.
11412 hardcode_minus_L=yes
11413 ;;
11414 esac
11415 fi
11416 ;;
11417
11418 irix5* | irix6* | nonstopux*)
11419 if test yes = "$GCC"; then
11420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11421 # Try to use the -exported_symbol ld option, if it does not
11422 # work, assume that -exports_file does not work either and
11423 # implicitly export all symbols.
11424 # This should be the same for all languages, so no per-tag cache variable.
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11426 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11427 if ${lt_cv_irix_exported_symbol+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 save_LDFLAGS=$LDFLAGS
11431 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434 int foo (void) { return 0; }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 lt_cv_irix_exported_symbol=yes
11438 else
11439 lt_cv_irix_exported_symbol=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LDFLAGS=$save_LDFLAGS
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11446 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11447 if test yes = "$lt_cv_irix_exported_symbol"; then
11448 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11449 fi
11450 link_all_deplibs=no
11451 else
11452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11454 fi
11455 archive_cmds_need_lc='no'
11456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11457 hardcode_libdir_separator=:
11458 inherit_rpath=yes
11459 link_all_deplibs=yes
11460 ;;
11461
11462 linux*)
11463 case $cc_basename in
11464 tcc*)
11465 # Fabrice Bellard et al's Tiny C Compiler
11466 ld_shlibs=yes
11467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11468 ;;
11469 esac
11470 ;;
11471
11472 netbsd* | netbsdelf*-gnu)
11473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11475 else
11476 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11477 fi
11478 hardcode_libdir_flag_spec='-R$libdir'
11479 hardcode_direct=yes
11480 hardcode_shlibpath_var=no
11481 ;;
11482
11483 newsos6)
11484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11485 hardcode_direct=yes
11486 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11487 hardcode_libdir_separator=:
11488 hardcode_shlibpath_var=no
11489 ;;
11490
11491 *nto* | *qnx*)
11492 ;;
11493
11494 openbsd* | bitrig*)
11495 if test -f /usr/libexec/ld.so; then
11496 hardcode_direct=yes
11497 hardcode_shlibpath_var=no
11498 hardcode_direct_absolute=yes
11499 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11501 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11502 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11503 export_dynamic_flag_spec='$wl-E'
11504 else
11505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11506 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11507 fi
11508 else
11509 ld_shlibs=no
11510 fi
11511 ;;
11512
11513 os2*)
11514 hardcode_libdir_flag_spec='-L$libdir'
11515 hardcode_minus_L=yes
11516 allow_undefined_flag=unsupported
11517 shrext_cmds=.dll
11518 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11519 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11520 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11521 $ECHO EXPORTS >> $output_objdir/$libname.def~
11522 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11523 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11524 emximp -o $lib $output_objdir/$libname.def'
11525 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11526 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11527 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11528 $ECHO EXPORTS >> $output_objdir/$libname.def~
11529 prefix_cmds="$SED"~
11530 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11531 prefix_cmds="$prefix_cmds -e 1d";
11532 fi~
11533 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11534 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11536 emximp -o $lib $output_objdir/$libname.def'
11537 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11538 enable_shared_with_static_runtimes=yes
11539 ;;
11540
11541 osf3*)
11542 if test yes = "$GCC"; then
11543 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11544 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11545 else
11546 allow_undefined_flag=' -expect_unresolved \*'
11547 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11548 fi
11549 archive_cmds_need_lc='no'
11550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11551 hardcode_libdir_separator=:
11552 ;;
11553
11554 osf4* | osf5*) # as osf3* with the addition of -msym flag
11555 if test yes = "$GCC"; then
11556 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11557 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11558 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11559 else
11560 allow_undefined_flag=' -expect_unresolved \*'
11561 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11562 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~
11563 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11564
11565 # Both c and cxx compiler support -rpath directly
11566 hardcode_libdir_flag_spec='-rpath $libdir'
11567 fi
11568 archive_cmds_need_lc='no'
11569 hardcode_libdir_separator=:
11570 ;;
11571
11572 solaris*)
11573 no_undefined_flag=' -z defs'
11574 if test yes = "$GCC"; then
11575 wlarc='$wl'
11576 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11578 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11579 else
11580 case `$CC -V 2>&1` in
11581 *"Compilers 5.0"*)
11582 wlarc=''
11583 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11585 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11586 ;;
11587 *)
11588 wlarc='$wl'
11589 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11591 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11592 ;;
11593 esac
11594 fi
11595 hardcode_libdir_flag_spec='-R$libdir'
11596 hardcode_shlibpath_var=no
11597 case $host_os in
11598 solaris2.[0-5] | solaris2.[0-5].*) ;;
11599 *)
11600 # The compiler driver will combine and reorder linker options,
11601 # but understands '-z linker_flag'. GCC discards it without '$wl',
11602 # but is careful enough not to reorder.
11603 # Supported since Solaris 2.6 (maybe 2.5.1?)
11604 if test yes = "$GCC"; then
11605 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11606 else
11607 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11608 fi
11609 ;;
11610 esac
11611 link_all_deplibs=yes
11612 ;;
11613
11614 sunos4*)
11615 if test sequent = "$host_vendor"; then
11616 # Use $CC to link under sequent, because it throws in some extra .o
11617 # files that make .init and .fini sections work.
11618 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11621 fi
11622 hardcode_libdir_flag_spec='-L$libdir'
11623 hardcode_direct=yes
11624 hardcode_minus_L=yes
11625 hardcode_shlibpath_var=no
11626 ;;
11627
11628 sysv4)
11629 case $host_vendor in
11630 sni)
11631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11632 hardcode_direct=yes # is this really true???
11633 ;;
11634 siemens)
11635 ## LD is ld it makes a PLAMLIB
11636 ## CC just makes a GrossModule.
11637 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11638 reload_cmds='$CC -r -o $output$reload_objs'
11639 hardcode_direct=no
11640 ;;
11641 motorola)
11642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11643 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11644 ;;
11645 esac
11646 runpath_var='LD_RUN_PATH'
11647 hardcode_shlibpath_var=no
11648 ;;
11649
11650 sysv4.3*)
11651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11652 hardcode_shlibpath_var=no
11653 export_dynamic_flag_spec='-Bexport'
11654 ;;
11655
11656 sysv4*MP*)
11657 if test -d /usr/nec; then
11658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659 hardcode_shlibpath_var=no
11660 runpath_var=LD_RUN_PATH
11661 hardcode_runpath_var=yes
11662 ld_shlibs=yes
11663 fi
11664 ;;
11665
11666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11667 no_undefined_flag='$wl-z,text'
11668 archive_cmds_need_lc=no
11669 hardcode_shlibpath_var=no
11670 runpath_var='LD_RUN_PATH'
11671
11672 if test yes = "$GCC"; then
11673 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 else
11676 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11678 fi
11679 ;;
11680
11681 sysv5* | sco3.2v5* | sco5v6*)
11682 # Note: We CANNOT use -z defs as we might desire, because we do not
11683 # link with -lc, and that would cause any symbols used from libc to
11684 # always be unresolved, which means just about no library would
11685 # ever link correctly. If we're not using GNU ld we use -z text
11686 # though, which does catch some bad symbols but isn't as heavy-handed
11687 # as -z defs.
11688 no_undefined_flag='$wl-z,text'
11689 allow_undefined_flag='$wl-z,nodefs'
11690 archive_cmds_need_lc=no
11691 hardcode_shlibpath_var=no
11692 hardcode_libdir_flag_spec='$wl-R,$libdir'
11693 hardcode_libdir_separator=':'
11694 link_all_deplibs=yes
11695 export_dynamic_flag_spec='$wl-Bexport'
11696 runpath_var='LD_RUN_PATH'
11697
11698 if test yes = "$GCC"; then
11699 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11701 else
11702 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11703 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11704 fi
11705 ;;
11706
11707 uts4*)
11708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11709 hardcode_libdir_flag_spec='-L$libdir'
11710 hardcode_shlibpath_var=no
11711 ;;
11712
11713 *)
11714 ld_shlibs=no
11715 ;;
11716 esac
11717
11718 if test sni = "$host_vendor"; then
11719 case $host in
11720 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11721 export_dynamic_flag_spec='$wl-Blargedynsym'
11722 ;;
11723 esac
11724 fi
11725 fi
11726
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11728 $as_echo "$ld_shlibs" >&6; }
11729 test no = "$ld_shlibs" && can_build_shared=no
11730
11731 with_gnu_ld=$with_gnu_ld
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747 #
11748 # Do we need to explicitly link libc?
11749 #
11750 case "x$archive_cmds_need_lc" in
11751 x|xyes)
11752 # Assume -lc should be added
11753 archive_cmds_need_lc=yes
11754
11755 if test yes,yes = "$GCC,$enable_shared"; then
11756 case $archive_cmds in
11757 *'~'*)
11758 # FIXME: we may have to deal with multi-command sequences.
11759 ;;
11760 '$CC '*)
11761 # Test whether the compiler implicitly links with -lc since on some
11762 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11763 # to ld, don't add -lc before -lgcc.
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11765 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11766 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 $RM conftest*
11770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11771
11772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11773 (eval $ac_compile) 2>&5
11774 ac_status=$?
11775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776 test $ac_status = 0; } 2>conftest.err; then
11777 soname=conftest
11778 lib=conftest
11779 libobjs=conftest.$ac_objext
11780 deplibs=
11781 wl=$lt_prog_compiler_wl
11782 pic_flag=$lt_prog_compiler_pic
11783 compiler_flags=-v
11784 linker_flags=-v
11785 verstring=
11786 output_objdir=.
11787 libname=conftest
11788 lt_save_allow_undefined_flag=$allow_undefined_flag
11789 allow_undefined_flag=
11790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11791 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11792 ac_status=$?
11793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794 test $ac_status = 0; }
11795 then
11796 lt_cv_archive_cmds_need_lc=no
11797 else
11798 lt_cv_archive_cmds_need_lc=yes
11799 fi
11800 allow_undefined_flag=$lt_save_allow_undefined_flag
11801 else
11802 cat conftest.err 1>&5
11803 fi
11804 $RM conftest*
11805
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11808 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11809 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11810 ;;
11811 esac
11812 fi
11813 ;;
11814 esac
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11968 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11969
11970 if test yes = "$GCC"; then
11971 case $host_os in
11972 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11973 *) lt_awk_arg='/^libraries:/' ;;
11974 esac
11975 case $host_os in
11976 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11977 *) lt_sed_strip_eq='s|=/|/|g' ;;
11978 esac
11979 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11980 case $lt_search_path_spec in
11981 *\;*)
11982 # if the path contains ";" then we assume it to be the separator
11983 # otherwise default to the standard path separator (i.e. ":") - it is
11984 # assumed that no part of a normal pathname contains ";" but that should
11985 # okay in the real world where ";" in dirpaths is itself problematic.
11986 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11987 ;;
11988 *)
11989 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11990 ;;
11991 esac
11992 # Ok, now we have the path, separated by spaces, we can step through it
11993 # and add multilib dir if necessary...
11994 lt_tmp_lt_search_path_spec=
11995 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11996 # ...but if some path component already ends with the multilib dir we assume
11997 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11998 case "$lt_multi_os_dir; $lt_search_path_spec " in
11999 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12000 lt_multi_os_dir=
12001 ;;
12002 esac
12003 for lt_sys_path in $lt_search_path_spec; do
12004 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12006 elif test -n "$lt_multi_os_dir"; then
12007 test -d "$lt_sys_path" && \
12008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12009 fi
12010 done
12011 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12012 BEGIN {RS = " "; FS = "/|\n";} {
12013 lt_foo = "";
12014 lt_count = 0;
12015 for (lt_i = NF; lt_i > 0; lt_i--) {
12016 if ($lt_i != "" && $lt_i != ".") {
12017 if ($lt_i == "..") {
12018 lt_count++;
12019 } else {
12020 if (lt_count == 0) {
12021 lt_foo = "/" $lt_i lt_foo;
12022 } else {
12023 lt_count--;
12024 }
12025 }
12026 }
12027 }
12028 if (lt_foo != "") { lt_freq[lt_foo]++; }
12029 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12030 }'`
12031 # AWK program above erroneously prepends '/' to C:/dos/paths
12032 # for these hosts.
12033 case $host_os in
12034 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12035 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12036 esac
12037 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12038 else
12039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12040 fi
12041 library_names_spec=
12042 libname_spec='lib$name'
12043 soname_spec=
12044 shrext_cmds=.so
12045 postinstall_cmds=
12046 postuninstall_cmds=
12047 finish_cmds=
12048 finish_eval=
12049 shlibpath_var=
12050 shlibpath_overrides_runpath=unknown
12051 version_type=none
12052 dynamic_linker="$host_os ld.so"
12053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12054 need_lib_prefix=unknown
12055 hardcode_into_libs=no
12056
12057 # when you set need_version to no, make sure it does not cause -set_version
12058 # flags to be left without arguments
12059 need_version=unknown
12060
12061
12062
12063 case $host_os in
12064 aix3*)
12065 version_type=linux # correct to gnu/linux during the next big refactor
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12067 shlibpath_var=LIBPATH
12068
12069 # AIX 3 has no versioning support, so we append a major version to the name.
12070 soname_spec='$libname$release$shared_ext$major'
12071 ;;
12072
12073 aix[4-9]*)
12074 version_type=linux # correct to gnu/linux during the next big refactor
12075 need_lib_prefix=no
12076 need_version=no
12077 hardcode_into_libs=yes
12078 if test ia64 = "$host_cpu"; then
12079 # AIX 5 supports IA64
12080 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 else
12083 # With GCC up to 2.95.x, collect2 would create an import file
12084 # for dependence libraries. The import file would start with
12085 # the line '#! .'. This would cause the generated library to
12086 # depend on '.', always an invalid library. This was fixed in
12087 # development snapshots of GCC prior to 3.0.
12088 case $host_os in
12089 aix4 | aix4.[01] | aix4.[01].*)
12090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12091 echo ' yes '
12092 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12093 :
12094 else
12095 can_build_shared=no
12096 fi
12097 ;;
12098 esac
12099 # Using Import Files as archive members, it is possible to support
12100 # filename-based versioning of shared library archives on AIX. While
12101 # this would work for both with and without runtime linking, it will
12102 # prevent static linking of such archives. So we do filename-based
12103 # shared library versioning with .so extension only, which is used
12104 # when both runtime linking and shared linking is enabled.
12105 # Unfortunately, runtime linking may impact performance, so we do
12106 # not want this to be the default eventually. Also, we use the
12107 # versioned .so libs for executables only if there is the -brtl
12108 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12109 # To allow for filename-based versioning support, we need to create
12110 # libNAME.so.V as an archive file, containing:
12111 # *) an Import File, referring to the versioned filename of the
12112 # archive as well as the shared archive member, telling the
12113 # bitwidth (32 or 64) of that shared object, and providing the
12114 # list of exported symbols of that shared object, eventually
12115 # decorated with the 'weak' keyword
12116 # *) the shared object with the F_LOADONLY flag set, to really avoid
12117 # it being seen by the linker.
12118 # At run time we better use the real file rather than another symlink,
12119 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12120
12121 case $with_aix_soname,$aix_use_runtimelinking in
12122 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12123 # soname into executable. Probably we can add versioning support to
12124 # collect2, so additional links can be useful in future.
12125 aix,yes) # traditional libtool
12126 dynamic_linker='AIX unversionable lib.so'
12127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12128 # instead of lib<name>.a to let people know that these are not
12129 # typical AIX shared libraries.
12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12131 ;;
12132 aix,no) # traditional AIX only
12133 dynamic_linker='AIX lib.a(lib.so.V)'
12134 # We preserve .a as extension for shared libraries through AIX4.2
12135 # and later when we are not doing run time linking.
12136 library_names_spec='$libname$release.a $libname.a'
12137 soname_spec='$libname$release$shared_ext$major'
12138 ;;
12139 svr4,*) # full svr4 only
12140 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12141 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12142 # We do not specify a path in Import Files, so LIBPATH fires.
12143 shlibpath_overrides_runpath=yes
12144 ;;
12145 *,yes) # both, prefer svr4
12146 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12147 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12148 # unpreferred sharedlib libNAME.a needs extra handling
12149 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12150 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12151 # We do not specify a path in Import Files, so LIBPATH fires.
12152 shlibpath_overrides_runpath=yes
12153 ;;
12154 *,no) # both, prefer aix
12155 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12156 library_names_spec='$libname$release.a $libname.a'
12157 soname_spec='$libname$release$shared_ext$major'
12158 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12159 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12160 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12161 ;;
12162 esac
12163 shlibpath_var=LIBPATH
12164 fi
12165 ;;
12166
12167 amigaos*)
12168 case $host_cpu in
12169 powerpc)
12170 # Since July 2007 AmigaOS4 officially supports .so libraries.
12171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12173 ;;
12174 m68k)
12175 library_names_spec='$libname.ixlibrary $libname.a'
12176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12177 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12178 ;;
12179 esac
12180 ;;
12181
12182 beos*)
12183 library_names_spec='$libname$shared_ext'
12184 dynamic_linker="$host_os ld.so"
12185 shlibpath_var=LIBRARY_PATH
12186 ;;
12187
12188 bsdi[45]*)
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 need_version=no
12191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12192 soname_spec='$libname$release$shared_ext$major'
12193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12197 # the default ld.so.conf also contains /usr/contrib/lib and
12198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12199 # libtool to hard-code these into programs
12200 ;;
12201
12202 cygwin* | mingw* | pw32* | cegcc*)
12203 version_type=windows
12204 shrext_cmds=.dll
12205 need_version=no
12206 need_lib_prefix=no
12207
12208 case $GCC,$cc_basename in
12209 yes,*)
12210 # gcc
12211 library_names_spec='$libname.dll.a'
12212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12213 postinstall_cmds='base_file=`basename \$file`~
12214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12215 dldir=$destdir/`dirname \$dlpath`~
12216 test -d \$dldir || mkdir -p \$dldir~
12217 $install_prog $dir/$dlname \$dldir/$dlname~
12218 chmod a+x \$dldir/$dlname~
12219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12221 fi'
12222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12223 dlpath=$dir/\$dldll~
12224 $RM \$dlpath'
12225 shlibpath_overrides_runpath=yes
12226
12227 case $host_os in
12228 cygwin*)
12229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12230 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12231
12232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12233 ;;
12234 mingw* | cegcc*)
12235 # MinGW DLLs use traditional 'lib' prefix
12236 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12237 ;;
12238 pw32*)
12239 # pw32 DLLs use 'pw' prefix rather than 'lib'
12240 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12241 ;;
12242 esac
12243 dynamic_linker='Win32 ld.exe'
12244 ;;
12245
12246 *,cl*)
12247 # Native MSVC
12248 libname_spec='$name'
12249 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12250 library_names_spec='$libname.dll.lib'
12251
12252 case $build_os in
12253 mingw*)
12254 sys_lib_search_path_spec=
12255 lt_save_ifs=$IFS
12256 IFS=';'
12257 for lt_path in $LIB
12258 do
12259 IFS=$lt_save_ifs
12260 # Let DOS variable expansion print the short 8.3 style file name.
12261 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12262 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12263 done
12264 IFS=$lt_save_ifs
12265 # Convert to MSYS style.
12266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12267 ;;
12268 cygwin*)
12269 # Convert to unix form, then to dos form, then back to unix form
12270 # but this time dos style (no spaces!) so that the unix form looks
12271 # like /cygdrive/c/PROGRA~1:/cygdr...
12272 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12273 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12274 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12275 ;;
12276 *)
12277 sys_lib_search_path_spec=$LIB
12278 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12279 # It is most probably a Windows format PATH.
12280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12281 else
12282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283 fi
12284 # FIXME: find the short name or the path components, as spaces are
12285 # common. (e.g. "Program Files" -> "PROGRA~1")
12286 ;;
12287 esac
12288
12289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290 postinstall_cmds='base_file=`basename \$file`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname'
12295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12296 dlpath=$dir/\$dldll~
12297 $RM \$dlpath'
12298 shlibpath_overrides_runpath=yes
12299 dynamic_linker='Win32 link.exe'
12300 ;;
12301
12302 *)
12303 # Assume MSVC wrapper
12304 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12305 dynamic_linker='Win32 ld.exe'
12306 ;;
12307 esac
12308 # FIXME: first we should search . and the directory the executable is in
12309 shlibpath_var=PATH
12310 ;;
12311
12312 darwin* | rhapsody*)
12313 dynamic_linker="$host_os dyld"
12314 version_type=darwin
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12318 soname_spec='$libname$release$major$shared_ext'
12319 shlibpath_overrides_runpath=yes
12320 shlibpath_var=DYLD_LIBRARY_PATH
12321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12322
12323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12325 ;;
12326
12327 dgux*)
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 need_lib_prefix=no
12330 need_version=no
12331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12332 soname_spec='$libname$release$shared_ext$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 ;;
12335
12336 freebsd* | dragonfly*)
12337 # DragonFly does not have aout. When/if they implement a new
12338 # versioning mechanism, adjust this.
12339 if test -x /usr/bin/objformat; then
12340 objformat=`/usr/bin/objformat`
12341 else
12342 case $host_os in
12343 freebsd[23].*) objformat=aout ;;
12344 *) objformat=elf ;;
12345 esac
12346 fi
12347 version_type=freebsd-$objformat
12348 case $version_type in
12349 freebsd-elf*)
12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351 soname_spec='$libname$release$shared_ext$major'
12352 need_version=no
12353 need_lib_prefix=no
12354 ;;
12355 freebsd-*)
12356 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12357 need_version=yes
12358 ;;
12359 esac
12360 shlibpath_var=LD_LIBRARY_PATH
12361 case $host_os in
12362 freebsd2.*)
12363 shlibpath_overrides_runpath=yes
12364 ;;
12365 freebsd3.[01]* | freebsdelf3.[01]*)
12366 shlibpath_overrides_runpath=yes
12367 hardcode_into_libs=yes
12368 ;;
12369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12371 shlibpath_overrides_runpath=no
12372 hardcode_into_libs=yes
12373 ;;
12374 *) # from 4.6 on, and DragonFly
12375 shlibpath_overrides_runpath=yes
12376 hardcode_into_libs=yes
12377 ;;
12378 esac
12379 ;;
12380
12381 haiku*)
12382 version_type=linux # correct to gnu/linux during the next big refactor
12383 need_lib_prefix=no
12384 need_version=no
12385 dynamic_linker="$host_os runtime_loader"
12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12387 soname_spec='$libname$release$shared_ext$major'
12388 shlibpath_var=LIBRARY_PATH
12389 shlibpath_overrides_runpath=no
12390 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12391 hardcode_into_libs=yes
12392 ;;
12393
12394 hpux9* | hpux10* | hpux11*)
12395 # Give a soname corresponding to the major version so that dld.sl refuses to
12396 # link against other versions.
12397 version_type=sunos
12398 need_lib_prefix=no
12399 need_version=no
12400 case $host_cpu in
12401 ia64*)
12402 shrext_cmds='.so'
12403 hardcode_into_libs=yes
12404 dynamic_linker="$host_os dld.so"
12405 shlibpath_var=LD_LIBRARY_PATH
12406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408 soname_spec='$libname$release$shared_ext$major'
12409 if test 32 = "$HPUX_IA64_MODE"; then
12410 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12411 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12412 else
12413 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12414 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12415 fi
12416 ;;
12417 hppa*64*)
12418 shrext_cmds='.sl'
12419 hardcode_into_libs=yes
12420 dynamic_linker="$host_os dld.sl"
12421 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12424 soname_spec='$libname$release$shared_ext$major'
12425 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12427 ;;
12428 *)
12429 shrext_cmds='.sl'
12430 dynamic_linker="$host_os dld.sl"
12431 shlibpath_var=SHLIB_PATH
12432 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12434 soname_spec='$libname$release$shared_ext$major'
12435 ;;
12436 esac
12437 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12438 postinstall_cmds='chmod 555 $lib'
12439 # or fails outright, so override atomically:
12440 install_override_mode=555
12441 ;;
12442
12443 interix[3-9]*)
12444 version_type=linux # correct to gnu/linux during the next big refactor
12445 need_lib_prefix=no
12446 need_version=no
12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12448 soname_spec='$libname$release$shared_ext$major'
12449 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=no
12452 hardcode_into_libs=yes
12453 ;;
12454
12455 irix5* | irix6* | nonstopux*)
12456 case $host_os in
12457 nonstopux*) version_type=nonstopux ;;
12458 *)
12459 if test yes = "$lt_cv_prog_gnu_ld"; then
12460 version_type=linux # correct to gnu/linux during the next big refactor
12461 else
12462 version_type=irix
12463 fi ;;
12464 esac
12465 need_lib_prefix=no
12466 need_version=no
12467 soname_spec='$libname$release$shared_ext$major'
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12469 case $host_os in
12470 irix5* | nonstopux*)
12471 libsuff= shlibsuff=
12472 ;;
12473 *)
12474 case $LD in # libtool.m4 will add one of these switches to LD
12475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12476 libsuff= shlibsuff= libmagic=32-bit;;
12477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12478 libsuff=32 shlibsuff=N32 libmagic=N32;;
12479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12481 *) libsuff= shlibsuff= libmagic=never-match;;
12482 esac
12483 ;;
12484 esac
12485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12486 shlibpath_overrides_runpath=no
12487 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12488 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12489 hardcode_into_libs=yes
12490 ;;
12491
12492 # No shared lib support for Linux oldld, aout, or coff.
12493 linux*oldld* | linux*aout* | linux*coff*)
12494 dynamic_linker=no
12495 ;;
12496
12497 linux*android*)
12498 version_type=none # Android doesn't support versioned libraries.
12499 need_lib_prefix=no
12500 need_version=no
12501 library_names_spec='$libname$release$shared_ext'
12502 soname_spec='$libname$release$shared_ext'
12503 finish_cmds=
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=yes
12506
12507 # This implies no fast_install, which is unacceptable.
12508 # Some rework will be needed to allow for fast_install
12509 # before this can be enabled.
12510 hardcode_into_libs=yes
12511
12512 dynamic_linker='Android linker'
12513 # Don't embed -rpath directories since the linker doesn't support them.
12514 hardcode_libdir_flag_spec='-L$libdir'
12515 ;;
12516
12517 # This must be glibc/ELF.
12518 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 need_lib_prefix=no
12521 need_version=no
12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523 soname_spec='$libname$release$shared_ext$major'
12524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527
12528 # Some binutils ld are patched to set DT_RUNPATH
12529 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 lt_cv_shlibpath_overrides_runpath=no
12533 save_LDFLAGS=$LDFLAGS
12534 save_libdir=$libdir
12535 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12536 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539
12540 int
12541 main ()
12542 {
12543
12544 ;
12545 return 0;
12546 }
12547 _ACEOF
12548 if ac_fn_c_try_link "$LINENO"; then :
12549 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12550 lt_cv_shlibpath_overrides_runpath=yes
12551 fi
12552 fi
12553 rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555 LDFLAGS=$save_LDFLAGS
12556 libdir=$save_libdir
12557
12558 fi
12559
12560 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12561
12562 # This implies no fast_install, which is unacceptable.
12563 # Some rework will be needed to allow for fast_install
12564 # before this can be enabled.
12565 hardcode_into_libs=yes
12566
12567 # Ideally, we could use ldconfig to report *all* directores which are
12568 # searched for libraries, however this is still not possible. Aside from not
12569 # being certain /sbin/ldconfig is available, command
12570 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12571 # even though it is searched at run-time. Try to do the best guess by
12572 # appending ld.so.conf contents (and includes) to the search path.
12573 if test -f /etc/ld.so.conf; then
12574 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12576 fi
12577
12578 # We used to test for /lib/ld.so.1 and disable shared libraries on
12579 # powerpc, because MkLinux only supported shared libraries with the
12580 # GNU dynamic linker. Since this was broken with cross compilers,
12581 # most powerpc-linux boxes support dynamic linking these days and
12582 # people can always --disable-shared, the test was removed, and we
12583 # assume the GNU/Linux dynamic linker is in use.
12584 dynamic_linker='GNU/Linux ld.so'
12585 ;;
12586
12587 netbsdelf*-gnu)
12588 version_type=linux
12589 need_lib_prefix=no
12590 need_version=no
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 shlibpath_overrides_runpath=no
12595 hardcode_into_libs=yes
12596 dynamic_linker='NetBSD ld.elf_so'
12597 ;;
12598
12599 netbsd*)
12600 version_type=sunos
12601 need_lib_prefix=no
12602 need_version=no
12603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12604 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12606 dynamic_linker='NetBSD (a.out) ld.so'
12607 else
12608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12609 soname_spec='$libname$release$shared_ext$major'
12610 dynamic_linker='NetBSD ld.elf_so'
12611 fi
12612 shlibpath_var=LD_LIBRARY_PATH
12613 shlibpath_overrides_runpath=yes
12614 hardcode_into_libs=yes
12615 ;;
12616
12617 newsos6)
12618 version_type=linux # correct to gnu/linux during the next big refactor
12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12620 shlibpath_var=LD_LIBRARY_PATH
12621 shlibpath_overrides_runpath=yes
12622 ;;
12623
12624 *nto* | *qnx*)
12625 version_type=qnx
12626 need_lib_prefix=no
12627 need_version=no
12628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629 soname_spec='$libname$release$shared_ext$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=no
12632 hardcode_into_libs=yes
12633 dynamic_linker='ldqnx.so'
12634 ;;
12635
12636 openbsd* | bitrig*)
12637 version_type=sunos
12638 sys_lib_dlsearch_path_spec=/usr/lib
12639 need_lib_prefix=no
12640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12641 need_version=no
12642 else
12643 need_version=yes
12644 fi
12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=yes
12649 ;;
12650
12651 os2*)
12652 libname_spec='$name'
12653 version_type=windows
12654 shrext_cmds=.dll
12655 need_version=no
12656 need_lib_prefix=no
12657 # OS/2 can only load a DLL with a base name of 8 characters or less.
12658 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12659 v=$($ECHO $release$versuffix | tr -d .-);
12660 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12661 $ECHO $n$v`$shared_ext'
12662 library_names_spec='${libname}_dll.$libext'
12663 dynamic_linker='OS/2 ld.exe'
12664 shlibpath_var=BEGINLIBPATH
12665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12667 postinstall_cmds='base_file=`basename \$file`~
12668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12669 dldir=$destdir/`dirname \$dlpath`~
12670 test -d \$dldir || mkdir -p \$dldir~
12671 $install_prog $dir/$dlname \$dldir/$dlname~
12672 chmod a+x \$dldir/$dlname~
12673 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12674 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12675 fi'
12676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12677 dlpath=$dir/\$dldll~
12678 $RM \$dlpath'
12679 ;;
12680
12681 osf3* | osf4* | osf5*)
12682 version_type=osf
12683 need_lib_prefix=no
12684 need_version=no
12685 soname_spec='$libname$release$shared_ext$major'
12686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12690 ;;
12691
12692 rdos*)
12693 dynamic_linker=no
12694 ;;
12695
12696 solaris*)
12697 version_type=linux # correct to gnu/linux during the next big refactor
12698 need_lib_prefix=no
12699 need_version=no
12700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12701 soname_spec='$libname$release$shared_ext$major'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 shlibpath_overrides_runpath=yes
12704 hardcode_into_libs=yes
12705 # ldd complains unless libraries are executable
12706 postinstall_cmds='chmod +x $lib'
12707 ;;
12708
12709 sunos4*)
12710 version_type=sunos
12711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=yes
12715 if test yes = "$with_gnu_ld"; then
12716 need_lib_prefix=no
12717 fi
12718 need_version=yes
12719 ;;
12720
12721 sysv4 | sysv4.3*)
12722 version_type=linux # correct to gnu/linux during the next big refactor
12723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724 soname_spec='$libname$release$shared_ext$major'
12725 shlibpath_var=LD_LIBRARY_PATH
12726 case $host_vendor in
12727 sni)
12728 shlibpath_overrides_runpath=no
12729 need_lib_prefix=no
12730 runpath_var=LD_RUN_PATH
12731 ;;
12732 siemens)
12733 need_lib_prefix=no
12734 ;;
12735 motorola)
12736 need_lib_prefix=no
12737 need_version=no
12738 shlibpath_overrides_runpath=no
12739 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12740 ;;
12741 esac
12742 ;;
12743
12744 sysv4*MP*)
12745 if test -d /usr/nec; then
12746 version_type=linux # correct to gnu/linux during the next big refactor
12747 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12748 soname_spec='$libname$shared_ext.$major'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 fi
12751 ;;
12752
12753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12754 version_type=sco
12755 need_lib_prefix=no
12756 need_version=no
12757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12758 soname_spec='$libname$release$shared_ext$major'
12759 shlibpath_var=LD_LIBRARY_PATH
12760 shlibpath_overrides_runpath=yes
12761 hardcode_into_libs=yes
12762 if test yes = "$with_gnu_ld"; then
12763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12764 else
12765 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12766 case $host_os in
12767 sco3.2v5*)
12768 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12769 ;;
12770 esac
12771 fi
12772 sys_lib_dlsearch_path_spec='/usr/lib'
12773 ;;
12774
12775 tpf*)
12776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12777 version_type=linux # correct to gnu/linux during the next big refactor
12778 need_lib_prefix=no
12779 need_version=no
12780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 shlibpath_overrides_runpath=no
12783 hardcode_into_libs=yes
12784 ;;
12785
12786 uts4*)
12787 version_type=linux # correct to gnu/linux during the next big refactor
12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789 soname_spec='$libname$release$shared_ext$major'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 ;;
12792
12793 *)
12794 dynamic_linker=no
12795 ;;
12796 esac
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12798 $as_echo "$dynamic_linker" >&6; }
12799 test no = "$dynamic_linker" && can_build_shared=no
12800
12801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12802 if test yes = "$GCC"; then
12803 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12804 fi
12805
12806 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12807 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12808 fi
12809
12810 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12811 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12812 fi
12813
12814 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12815 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12816
12817 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12818 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12819
12820 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12821 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12920 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12921 hardcode_action=
12922 if test -n "$hardcode_libdir_flag_spec" ||
12923 test -n "$runpath_var" ||
12924 test yes = "$hardcode_automatic"; then
12925
12926 # We can hardcode non-existent directories.
12927 if test no != "$hardcode_direct" &&
12928 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12929 # have to relink, otherwise we might link with an installed library
12930 # when we should be linking with a yet-to-be-installed one
12931 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12932 test no != "$hardcode_minus_L"; then
12933 # Linking always hardcodes the temporary library directory.
12934 hardcode_action=relink
12935 else
12936 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12937 hardcode_action=immediate
12938 fi
12939 else
12940 # We cannot hardcode anything, or else we can only hardcode existing
12941 # directories.
12942 hardcode_action=unsupported
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12945 $as_echo "$hardcode_action" >&6; }
12946
12947 if test relink = "$hardcode_action" ||
12948 test yes = "$inherit_rpath"; then
12949 # Fast installation is not supported
12950 enable_fast_install=no
12951 elif test yes = "$shlibpath_overrides_runpath" ||
12952 test no = "$enable_shared"; then
12953 # Fast installation is not necessary
12954 enable_fast_install=needless
12955 fi
12956
12957
12958
12959
12960
12961
12962 if test yes != "$enable_dlopen"; then
12963 enable_dlopen=unknown
12964 enable_dlopen_self=unknown
12965 enable_dlopen_self_static=unknown
12966 else
12967 lt_cv_dlopen=no
12968 lt_cv_dlopen_libs=
12969
12970 case $host_os in
12971 beos*)
12972 lt_cv_dlopen=load_add_on
12973 lt_cv_dlopen_libs=
12974 lt_cv_dlopen_self=yes
12975 ;;
12976
12977 mingw* | pw32* | cegcc*)
12978 lt_cv_dlopen=LoadLibrary
12979 lt_cv_dlopen_libs=
12980 ;;
12981
12982 cygwin*)
12983 lt_cv_dlopen=dlopen
12984 lt_cv_dlopen_libs=
12985 ;;
12986
12987 darwin*)
12988 # if libdl is installed we need to link against it
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12991 if ${ac_cv_lib_dl_dlopen+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_check_lib_save_LIBS=$LIBS
12995 LIBS="-ldl $LIBS"
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 char dlopen ();
13006 int
13007 main ()
13008 {
13009 return dlopen ();
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 ac_cv_lib_dl_dlopen=yes
13016 else
13017 ac_cv_lib_dl_dlopen=no
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13026 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13027 else
13028
13029 lt_cv_dlopen=dyld
13030 lt_cv_dlopen_libs=
13031 lt_cv_dlopen_self=yes
13032
13033 fi
13034
13035 ;;
13036
13037 tpf*)
13038 # Don't try to run any link tests for TPF. We know it's impossible
13039 # because TPF is a cross-compiler, and we know how we open DSOs.
13040 lt_cv_dlopen=dlopen
13041 lt_cv_dlopen_libs=
13042 lt_cv_dlopen_self=no
13043 ;;
13044
13045 *)
13046 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13047 if test "x$ac_cv_func_shl_load" = xyes; then :
13048 lt_cv_dlopen=shl_load
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13051 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13052 if ${ac_cv_lib_dld_shl_load+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 ac_check_lib_save_LIBS=$LIBS
13056 LIBS="-ldld $LIBS"
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13063 #ifdef __cplusplus
13064 extern "C"
13065 #endif
13066 char shl_load ();
13067 int
13068 main ()
13069 {
13070 return shl_load ();
13071 ;
13072 return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 ac_cv_lib_dld_shl_load=yes
13077 else
13078 ac_cv_lib_dld_shl_load=no
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 LIBS=$ac_check_lib_save_LIBS
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13085 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13086 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13087 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13088 else
13089 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13090 if test "x$ac_cv_func_dlopen" = xyes; then :
13091 lt_cv_dlopen=dlopen
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13095 if ${ac_cv_lib_dl_dlopen+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 ac_check_lib_save_LIBS=$LIBS
13099 LIBS="-ldl $LIBS"
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13102
13103 /* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 char dlopen ();
13110 int
13111 main ()
13112 {
13113 return dlopen ();
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_link "$LINENO"; then :
13119 ac_cv_lib_dl_dlopen=yes
13120 else
13121 ac_cv_lib_dl_dlopen=no
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13129 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13130 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13133 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13134 if ${ac_cv_lib_svld_dlopen+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lsvld $LIBS"
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145 #ifdef __cplusplus
13146 extern "C"
13147 #endif
13148 char dlopen ();
13149 int
13150 main ()
13151 {
13152 return dlopen ();
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_svld_dlopen=yes
13159 else
13160 ac_cv_lib_svld_dlopen=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 LIBS=$ac_check_lib_save_LIBS
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13167 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13168 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13169 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13172 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13173 if ${ac_cv_lib_dld_dld_link+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-ldld $LIBS"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char dld_link ();
13188 int
13189 main ()
13190 {
13191 return dld_link ();
13192 ;
13193 return 0;
13194 }
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_dld_dld_link=yes
13198 else
13199 ac_cv_lib_dld_dld_link=no
13200 fi
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13206 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13207 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13208 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13209 fi
13210
13211
13212 fi
13213
13214
13215 fi
13216
13217
13218 fi
13219
13220
13221 fi
13222
13223
13224 fi
13225
13226 ;;
13227 esac
13228
13229 if test no = "$lt_cv_dlopen"; then
13230 enable_dlopen=no
13231 else
13232 enable_dlopen=yes
13233 fi
13234
13235 case $lt_cv_dlopen in
13236 dlopen)
13237 save_CPPFLAGS=$CPPFLAGS
13238 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13239
13240 save_LDFLAGS=$LDFLAGS
13241 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13242
13243 save_LIBS=$LIBS
13244 LIBS="$lt_cv_dlopen_libs $LIBS"
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13247 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13248 if ${lt_cv_dlopen_self+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 if test yes = "$cross_compiling"; then :
13252 lt_cv_dlopen_self=cross
13253 else
13254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13255 lt_status=$lt_dlunknown
13256 cat > conftest.$ac_ext <<_LT_EOF
13257 #line $LINENO "configure"
13258 #include "confdefs.h"
13259
13260 #if HAVE_DLFCN_H
13261 #include <dlfcn.h>
13262 #endif
13263
13264 #include <stdio.h>
13265
13266 #ifdef RTLD_GLOBAL
13267 # define LT_DLGLOBAL RTLD_GLOBAL
13268 #else
13269 # ifdef DL_GLOBAL
13270 # define LT_DLGLOBAL DL_GLOBAL
13271 # else
13272 # define LT_DLGLOBAL 0
13273 # endif
13274 #endif
13275
13276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13277 find out it does not work in some platform. */
13278 #ifndef LT_DLLAZY_OR_NOW
13279 # ifdef RTLD_LAZY
13280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13281 # else
13282 # ifdef DL_LAZY
13283 # define LT_DLLAZY_OR_NOW DL_LAZY
13284 # else
13285 # ifdef RTLD_NOW
13286 # define LT_DLLAZY_OR_NOW RTLD_NOW
13287 # else
13288 # ifdef DL_NOW
13289 # define LT_DLLAZY_OR_NOW DL_NOW
13290 # else
13291 # define LT_DLLAZY_OR_NOW 0
13292 # endif
13293 # endif
13294 # endif
13295 # endif
13296 #endif
13297
13298 /* When -fvisibility=hidden is used, assume the code has been annotated
13299 correspondingly for the symbols needed. */
13300 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13301 int fnord () __attribute__((visibility("default")));
13302 #endif
13303
13304 int fnord () { return 42; }
13305 int main ()
13306 {
13307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13308 int status = $lt_dlunknown;
13309
13310 if (self)
13311 {
13312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13313 else
13314 {
13315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13316 else puts (dlerror ());
13317 }
13318 /* dlclose (self); */
13319 }
13320 else
13321 puts (dlerror ());
13322
13323 return status;
13324 }
13325 _LT_EOF
13326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13327 (eval $ac_link) 2>&5
13328 ac_status=$?
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13331 (./conftest; exit; ) >&5 2>/dev/null
13332 lt_status=$?
13333 case x$lt_status in
13334 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13335 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13336 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13337 esac
13338 else :
13339 # compilation failed
13340 lt_cv_dlopen_self=no
13341 fi
13342 fi
13343 rm -fr conftest*
13344
13345
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13348 $as_echo "$lt_cv_dlopen_self" >&6; }
13349
13350 if test yes = "$lt_cv_dlopen_self"; then
13351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13353 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13354 if ${lt_cv_dlopen_self_static+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test yes = "$cross_compiling"; then :
13358 lt_cv_dlopen_self_static=cross
13359 else
13360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13361 lt_status=$lt_dlunknown
13362 cat > conftest.$ac_ext <<_LT_EOF
13363 #line $LINENO "configure"
13364 #include "confdefs.h"
13365
13366 #if HAVE_DLFCN_H
13367 #include <dlfcn.h>
13368 #endif
13369
13370 #include <stdio.h>
13371
13372 #ifdef RTLD_GLOBAL
13373 # define LT_DLGLOBAL RTLD_GLOBAL
13374 #else
13375 # ifdef DL_GLOBAL
13376 # define LT_DLGLOBAL DL_GLOBAL
13377 # else
13378 # define LT_DLGLOBAL 0
13379 # endif
13380 #endif
13381
13382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13383 find out it does not work in some platform. */
13384 #ifndef LT_DLLAZY_OR_NOW
13385 # ifdef RTLD_LAZY
13386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13387 # else
13388 # ifdef DL_LAZY
13389 # define LT_DLLAZY_OR_NOW DL_LAZY
13390 # else
13391 # ifdef RTLD_NOW
13392 # define LT_DLLAZY_OR_NOW RTLD_NOW
13393 # else
13394 # ifdef DL_NOW
13395 # define LT_DLLAZY_OR_NOW DL_NOW
13396 # else
13397 # define LT_DLLAZY_OR_NOW 0
13398 # endif
13399 # endif
13400 # endif
13401 # endif
13402 #endif
13403
13404 /* When -fvisibility=hidden is used, assume the code has been annotated
13405 correspondingly for the symbols needed. */
13406 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13407 int fnord () __attribute__((visibility("default")));
13408 #endif
13409
13410 int fnord () { return 42; }
13411 int main ()
13412 {
13413 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13414 int status = $lt_dlunknown;
13415
13416 if (self)
13417 {
13418 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13419 else
13420 {
13421 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13422 else puts (dlerror ());
13423 }
13424 /* dlclose (self); */
13425 }
13426 else
13427 puts (dlerror ());
13428
13429 return status;
13430 }
13431 _LT_EOF
13432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13433 (eval $ac_link) 2>&5
13434 ac_status=$?
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13437 (./conftest; exit; ) >&5 2>/dev/null
13438 lt_status=$?
13439 case x$lt_status in
13440 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13441 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13442 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13443 esac
13444 else :
13445 # compilation failed
13446 lt_cv_dlopen_self_static=no
13447 fi
13448 fi
13449 rm -fr conftest*
13450
13451
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13454 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13455 fi
13456
13457 CPPFLAGS=$save_CPPFLAGS
13458 LDFLAGS=$save_LDFLAGS
13459 LIBS=$save_LIBS
13460 ;;
13461 esac
13462
13463 case $lt_cv_dlopen_self in
13464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13465 *) enable_dlopen_self=unknown ;;
13466 esac
13467
13468 case $lt_cv_dlopen_self_static in
13469 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13470 *) enable_dlopen_self_static=unknown ;;
13471 esac
13472 fi
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490 striplib=
13491 old_striplib=
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13493 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13494 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13495 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13496 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13498 $as_echo "yes" >&6; }
13499 else
13500 # FIXME - insert some real tests, host_os isn't really good enough
13501 case $host_os in
13502 darwin*)
13503 if test -n "$STRIP"; then
13504 striplib="$STRIP -x"
13505 old_striplib="$STRIP -S"
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507 $as_echo "yes" >&6; }
13508 else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512 ;;
13513 *)
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13515 $as_echo "no" >&6; }
13516 ;;
13517 esac
13518 fi
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 # Report what library types will actually be built
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13533 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13535 $as_echo "$can_build_shared" >&6; }
13536
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13538 $as_echo_n "checking whether to build shared libraries... " >&6; }
13539 test no = "$can_build_shared" && enable_shared=no
13540
13541 # On AIX, shared libraries and static libraries use the same namespace, and
13542 # are all built from PIC.
13543 case $host_os in
13544 aix3*)
13545 test yes = "$enable_shared" && enable_static=no
13546 if test -n "$RANLIB"; then
13547 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13548 postinstall_cmds='$RANLIB $lib'
13549 fi
13550 ;;
13551
13552 aix[4-9]*)
13553 if test ia64 != "$host_cpu"; then
13554 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13555 yes,aix,yes) ;; # shared object as lib.so file only
13556 yes,svr4,*) ;; # shared object as lib.so archive member only
13557 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13558 esac
13559 fi
13560 ;;
13561 esac
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13563 $as_echo "$enable_shared" >&6; }
13564
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13566 $as_echo_n "checking whether to build static libraries... " >&6; }
13567 # Make sure either enable_shared or enable_static is yes.
13568 test yes = "$enable_shared" || enable_static=yes
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13570 $as_echo "$enable_static" >&6; }
13571
13572
13573
13574
13575 fi
13576 ac_ext=c
13577 ac_cpp='$CPP $CPPFLAGS'
13578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13581
13582 CC=$lt_save_CC
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598 ac_config_commands="$ac_config_commands libtool"
13599
13600
13601
13602
13603 # Only expand once:
13604
13605
13606
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13609 $as_echo_n "checking for ANSI C header files... " >&6; }
13610 if ${ac_cv_header_stdc+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include <stdlib.h>
13616 #include <stdarg.h>
13617 #include <string.h>
13618 #include <float.h>
13619
13620 int
13621 main ()
13622 {
13623
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_compile "$LINENO"; then :
13629 ac_cv_header_stdc=yes
13630 else
13631 ac_cv_header_stdc=no
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634
13635 if test $ac_cv_header_stdc = yes; then
13636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <string.h>
13640
13641 _ACEOF
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "memchr" >/dev/null 2>&1; then :
13644
13645 else
13646 ac_cv_header_stdc=no
13647 fi
13648 rm -f conftest*
13649
13650 fi
13651
13652 if test $ac_cv_header_stdc = yes; then
13653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 #include <stdlib.h>
13657
13658 _ACEOF
13659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13660 $EGREP "free" >/dev/null 2>&1; then :
13661
13662 else
13663 ac_cv_header_stdc=no
13664 fi
13665 rm -f conftest*
13666
13667 fi
13668
13669 if test $ac_cv_header_stdc = yes; then
13670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13671 if test "$cross_compiling" = yes; then :
13672 :
13673 else
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 #include <ctype.h>
13677 #include <stdlib.h>
13678 #if ((' ' & 0x0FF) == 0x020)
13679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13681 #else
13682 # define ISLOWER(c) \
13683 (('a' <= (c) && (c) <= 'i') \
13684 || ('j' <= (c) && (c) <= 'r') \
13685 || ('s' <= (c) && (c) <= 'z'))
13686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13687 #endif
13688
13689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13690 int
13691 main ()
13692 {
13693 int i;
13694 for (i = 0; i < 256; i++)
13695 if (XOR (islower (i), ISLOWER (i))
13696 || toupper (i) != TOUPPER (i))
13697 return 2;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_run "$LINENO"; then :
13702
13703 else
13704 ac_cv_header_stdc=no
13705 fi
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13707 conftest.$ac_objext conftest.beam conftest.$ac_ext
13708 fi
13709
13710 fi
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13713 $as_echo "$ac_cv_header_stdc" >&6; }
13714 if test $ac_cv_header_stdc = yes; then
13715
13716 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13717
13718 fi
13719
13720
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
13723 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
13724 if ${ac_cv_tls+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727
13728 ax_tls_keywords="__thread __declspec(thread) none"
13729 for ax_tls_keyword in $ax_tls_keywords; do
13730 case $ax_tls_keyword in
13731 none) ac_cv_tls=none ; break ;;
13732 *)
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 #include <stdlib.h>
13736 static void
13737 foo(void) {
13738 static $ax_tls_keyword int bar;
13739 exit(1);
13740 }
13741 int
13742 main ()
13743 {
13744
13745 ;
13746 return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750 ac_cv_tls=$ax_tls_keyword ; break
13751 else
13752 ac_cv_tls=none
13753
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 esac
13757 done
13758
13759 fi
13760
13761
13762 if test "$ac_cv_tls" != "none"; then
13763
13764 cat >>confdefs.h <<_ACEOF
13765 #define TLS $ac_cv_tls
13766 _ACEOF
13767
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
13770 $as_echo "$ac_cv_tls" >&6; }
13771
13772
13773 # AS_LIBTOOL arguments are (prefix, current, revision, age)
13774
13775 COMEDILIB_CURRENT=11
13776 COMEDILIB_REVISION=0
13777 COMEDILIB_AGE=11
13778 COMEDILIB_LIBVERSION=11:0:11
13779
13780
13781
13782
13783
13784 COMEDILIB_LT_LDFLAGS="$COMEDILIB_LT_LDFLAGS -version-info $COMEDILIB_LIBVERSION"
13785 if test ! -z ""
13786 then
13787 COMEDILIB_LT_LDFLAGS="$COMEDILIB_LT_LDFLAGS -release $COMEDILIB_VERSION"
13788 fi
13789
13790
13791 enable_dlopen=yes
13792
13793
13794
13795
13796
13797 SCXI_SO_VERSION=9:0:9
13798
13799
13800 COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include -I\$(top_builddir)/include $COMEDILIB_DEBUG"
13801 COMEDILIB_LIBS="$COMEDILIB_LIBS \$(top_builddir)/lib/libcomedi.la -lm"
13802
13803
13804
13805 # autoconf backwards compatibility
13806 if test "$datarootdir" = ""; then
13807 datarootdir='${datadir}'
13808
13809 fi
13810
13811 if test "$docdir" = ""; then
13812 docdir='${datarootdir}/doc/${PACKAGE}'
13813
13814 fi
13815
13816 if test "$htmldir" = ""; then
13817 htmldir='${docdir}'
13818
13819 fi
13820
13821 if test "$pdfdir" = ""; then
13822 pdfdir='${docdir}'
13823
13824 fi
13825
13826 #swig
13827 # Extract the first word of "swig", so it can be a program name with args.
13828 set dummy swig; ac_word=$2
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13830 $as_echo_n "checking for $ac_word... " >&6; }
13831 if ${ac_cv_path_SWIG+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 case $SWIG in
13835 [\\/]* | ?:[\\/]*)
13836 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13837 ;;
13838 *)
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13841 do
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13846 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13849 fi
13850 done
13851 done
13852 IFS=$as_save_IFS
13853
13854 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG=""no""
13855 ;;
13856 esac
13857 fi
13858 SWIG=$ac_cv_path_SWIG
13859 if test -n "$SWIG"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13861 $as_echo "$SWIG" >&6; }
13862 else
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865 fi
13866
13867
13868 if test "$SWIG" == "no" ; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: swig not found, will not be able to build swig based bindings" >&5
13870 $as_echo "$as_me: WARNING: swig not found, will not be able to build swig based bindings" >&2;}
13871 fi
13872
13873 #python
13874 # Check whether --enable-python-binding was given.
13875 if test "${enable_python_binding+set}" = set; then :
13876 enableval=$enable_python_binding; ENABLE_PYTHON=$enableval
13877 else
13878 ENABLE_PYTHON="yes"
13879 fi
13880
13881 if test "$ENABLE_PYTHON" == "yes" && test "$SWIG" != "no"; then
13882
13883
13884
13885
13886
13887
13888 # Find any Python interpreter.
13889 if test -z "$PYTHON"; then
13890 for ac_prog in python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
13891 do
13892 # Extract the first word of "$ac_prog", so it can be a program name with args.
13893 set dummy $ac_prog; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if ${ac_cv_path_PYTHON+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 case $PYTHON in
13900 [\\/]* | ?:[\\/]*)
13901 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13902 ;;
13903 *)
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907 IFS=$as_save_IFS
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13911 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 break 2
13914 fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 ;;
13920 esac
13921 fi
13922 PYTHON=$ac_cv_path_PYTHON
13923 if test -n "$PYTHON"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13925 $as_echo "$PYTHON" >&6; }
13926 else
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13929 fi
13930
13931
13932 test -n "$PYTHON" && break
13933 done
13934 test -n "$PYTHON" || PYTHON=":"
13935
13936 fi
13937 am_display_PYTHON=python
13938
13939
13940 if test "$PYTHON" = :; then
13941 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13942 else
13943
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13946 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13947 if ${am_cv_python_version+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13953 $as_echo "$am_cv_python_version" >&6; }
13954 PYTHON_VERSION=$am_cv_python_version
13955
13956
13957
13958 PYTHON_PREFIX='${prefix}'
13959
13960 PYTHON_EXEC_PREFIX='${exec_prefix}'
13961
13962
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13965 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13966 if ${am_cv_python_platform+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13972 $as_echo "$am_cv_python_platform" >&6; }
13973 PYTHON_PLATFORM=$am_cv_python_platform
13974
13975
13976 # Just factor out some code duplication.
13977 am_python_setup_sysconfig="\
13978 import sys
13979 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13980 # with python 3.x. See automake bug#10227.
13981 try:
13982 import sysconfig
13983 except ImportError:
13984 can_use_sysconfig = 0
13985 else:
13986 can_use_sysconfig = 1
13987 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13988 # <https://github.com/pypa/virtualenv/issues/118>
13989 try:
13990 from platform import python_implementation
13991 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13992 can_use_sysconfig = 0
13993 except ImportError:
13994 pass"
13995
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13998 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13999 if ${am_cv_python_pythondir+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 if test "x$prefix" = xNONE
14003 then
14004 am_py_prefix=$ac_default_prefix
14005 else
14006 am_py_prefix=$prefix
14007 fi
14008 am_cv_python_pythondir=`$PYTHON -c "
14009 $am_python_setup_sysconfig
14010 if can_use_sysconfig:
14011 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14012 else:
14013 from distutils import sysconfig
14014 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14015 sys.stdout.write(sitedir)"`
14016 case $am_cv_python_pythondir in
14017 $am_py_prefix*)
14018 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14019 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14020 ;;
14021 *)
14022 case $am_py_prefix in
14023 /usr|/System*) ;;
14024 *)
14025 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14026 ;;
14027 esac
14028 ;;
14029 esac
14030
14031 fi
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14033 $as_echo "$am_cv_python_pythondir" >&6; }
14034 pythondir=$am_cv_python_pythondir
14035
14036
14037
14038 pkgpythondir=\${pythondir}/$PACKAGE
14039
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14042 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14043 if ${am_cv_python_pyexecdir+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test "x$exec_prefix" = xNONE
14047 then
14048 am_py_exec_prefix=$am_py_prefix
14049 else
14050 am_py_exec_prefix=$exec_prefix
14051 fi
14052 am_cv_python_pyexecdir=`$PYTHON -c "
14053 $am_python_setup_sysconfig
14054 if can_use_sysconfig:
14055 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14056 else:
14057 from distutils import sysconfig
14058 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14059 sys.stdout.write(sitedir)"`
14060 case $am_cv_python_pyexecdir in
14061 $am_py_exec_prefix*)
14062 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14063 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14064 ;;
14065 *)
14066 case $am_py_exec_prefix in
14067 /usr|/System*) ;;
14068 *)
14069 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14070 ;;
14071 esac
14072 ;;
14073 esac
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14077 $as_echo "$am_cv_python_pyexecdir" >&6; }
14078 pyexecdir=$am_cv_python_pyexecdir
14079
14080
14081
14082 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14083
14084
14085
14086 fi
14087
14088
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python headers using $PYTHON-config --includes" >&5
14091 $as_echo_n "checking for python headers using $PYTHON-config --includes... " >&6; }
14092 PYTHON_INCLUDES=`$PYTHON-config --includes`
14093 if test $? = 0; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
14095 $as_echo "$PYTHON_INCLUDES" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed, will try another way" >&5
14098 $as_echo "failed, will try another way" >&6; }
14099 py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
14100 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
14101 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
14102 if test "$py_prefix" != "$py_exec_prefix"; then
14103 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: setting python headers to $PYTHON_INCLUDES" >&5
14106 $as_echo "$as_me: setting python headers to $PYTHON_INCLUDES" >&6;}
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python headers are sufficient" >&5
14109 $as_echo_n "checking whether python headers are sufficient... " >&6; }
14110
14111 save_CPPFLAGS="$CPPFLAGS"
14112 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115 #include <Python.h>
14116 _ACEOF
14117 if ac_fn_c_try_cpp "$LINENO"; then :
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119 $as_echo "yes" >&6; }
14120 HAVE_PYTHON=yes
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14124 HAVE_PYTHON=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python headers not found, disabling python binding" >&5
14125 $as_echo "$as_me: WARNING: python headers not found, disabling python binding" >&2;}
14126 fi
14127 rm -f conftest.err conftest.i conftest.$ac_ext
14128 CPPFLAGS="$save_CPPFLAGS"
14129
14130 else
14131 HAVE_PYTHON="no"
14132 fi
14133 if test "$HAVE_PYTHON" == "yes" && test "$ENABLE_PYTHON" == "yes"; then
14134 HAVE_PYTHON_TRUE=
14135 HAVE_PYTHON_FALSE='#'
14136 else
14137 HAVE_PYTHON_TRUE='#'
14138 HAVE_PYTHON_FALSE=
14139 fi
14140
14141
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5
14144 $as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; }
14145
14146 save_CFLAGS="$CFLAGS"
14147 CFLAGS="$CFLAGS -fno-strict-aliasing"
14148
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151
14152 int
14153 main ()
14154 {
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 flag_ok=yes
14162 else
14163 flag_ok=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 CFLAGS="$save_CFLAGS"
14167
14168 if test "X$flag_ok" = Xyes; then
14169 PYTHON_QUIET="$PYTHON_QUIET -fno-strict-aliasing"
14170 else
14171 true
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
14174 $as_echo "$flag_ok" >&6; }
14175
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wno-unused-function" >&5
14178 $as_echo_n "checking to see if compiler understands -Wno-unused-function... " >&6; }
14179
14180 save_CFLAGS="$CFLAGS"
14181 CFLAGS="$CFLAGS -Wno-unused-function"
14182
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185
14186 int
14187 main ()
14188 {
14189
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_compile "$LINENO"; then :
14195 flag_ok=yes
14196 else
14197 flag_ok=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 CFLAGS="$save_CFLAGS"
14201
14202 if test "X$flag_ok" = Xyes; then
14203 PYTHON_QUIET="$PYTHON_QUIET -Wno-unused-function"
14204 else
14205 true
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
14208 $as_echo "$flag_ok" >&6; }
14209
14210
14211
14212 # ruby
14213 # Check whether --enable-ruby-binding was given.
14214 if test "${enable_ruby_binding+set}" = set; then :
14215 enableval=$enable_ruby_binding; ENABLE_RUBY=$enableval
14216 else
14217 ENABLE_RUBY="no"
14218 fi
14219
14220 if test "$ENABLE_RUBY" == "yes" && test "$SWIG" != "no"; then
14221 # Extract the first word of "ruby", so it can be a program name with args.
14222 set dummy ruby; ac_word=$2
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14224 $as_echo_n "checking for $ac_word... " >&6; }
14225 if ${ac_cv_path_RUBY+:} false; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 case $RUBY in
14229 [\\/]* | ?:[\\/]*)
14230 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
14231 ;;
14232 *)
14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14234 for as_dir in $PATH
14235 do
14236 IFS=$as_save_IFS
14237 test -z "$as_dir" && as_dir=.
14238 for ac_exec_ext in '' $ac_executable_extensions; do
14239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14240 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14242 break 2
14243 fi
14244 done
14245 done
14246 IFS=$as_save_IFS
14247
14248 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
14249 ;;
14250 esac
14251 fi
14252 RUBY=$ac_cv_path_RUBY
14253 if test -n "$RUBY"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
14255 $as_echo "$RUBY" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261
14262 if test "$RUBY" != "no" ; then
14263 RUBY_INC_DIR=`$RUBY -e "require 'rbconfig'; c = ::Config::CONFIG; print c['archdir'];"`
14264 as_ac_Header=`$as_echo "ac_cv_header_$RUBY_INC_DIR/ruby.h" | $as_tr_sh`
14265 ac_fn_c_check_header_mongrel "$LINENO" "$RUBY_INC_DIR/ruby.h" "$as_ac_Header" "$ac_includes_default"
14266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14267
14268 else
14269 ENABLE_RUBY="no";{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ruby.h not found, disabling Ruby binding" >&5
14270 $as_echo "$as_me: WARNING: ruby.h not found, disabling Ruby binding" >&2;}
14271 fi
14272
14273
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ruby not found, disabling ruby binding" >&5
14276 $as_echo "$as_me: WARNING: ruby not found, disabling ruby binding" >&2;}
14277 ENABLE_RUBY="no"
14278 fi
14279 else
14280 ENABLE_RUBY="no"
14281 fi
14282
14283 if test "$ENABLE_RUBY" == "yes"; then
14284 HAVE_RUBY_TRUE=
14285 HAVE_RUBY_FALSE='#'
14286 else
14287 HAVE_RUBY_TRUE='#'
14288 HAVE_RUBY_FALSE=
14289 fi
14290
14291
14292
14293
14294 if test "$RUBY_PREFIX" != "" ; then
14295 RUBY_CONFIG_OPTIONS="$RUBY_CONFIG_OPTIONS --prefix=\$(RUBY_PREFIX)"
14296 fi
14297 if test "$RUBY_SO_DIR" != "" ; then
14298 RUBY_CONFIG_OPTIONS="$RUBY_CONFIG_OPTIONS --so-dir=\$(RUBY_SO_DIR)"
14299 fi
14300
14301
14302 # scxi
14303 # Check whether --enable-scxi was given.
14304 if test "${enable_scxi+set}" = set; then :
14305 enableval=$enable_scxi; ENABLE_SCXI=$enableval
14306 else
14307 ENABLE_SCXI="no"
14308 fi
14309
14310 if test "$ENABLE_SCXI" == "yes"; then
14311 BUILD_SCXI_TRUE=
14312 BUILD_SCXI_FALSE='#'
14313 else
14314 BUILD_SCXI_TRUE='#'
14315 BUILD_SCXI_FALSE=
14316 fi
14317
14318
14319 # docbook
14320 # Check whether --enable-docbook was given.
14321 if test "${enable_docbook+set}" = set; then :
14322 enableval=$enable_docbook; ENABLE_DOCBOOK=$enableval
14323 else
14324 ENABLE_DOCBOOK="yes"
14325 fi
14326
14327
14328 if test "$ENABLE_DOCBOOK" == "yes"; then
14329 # Extract the first word of "xmlto", so it can be a program name with args.
14330 set dummy xmlto; ac_word=$2
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332 $as_echo_n "checking for $ac_word... " >&6; }
14333 if ${ac_cv_path_XMLTO+:} false; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 case $XMLTO in
14337 [\\/]* | ?:[\\/]*)
14338 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
14339 ;;
14340 *)
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14343 do
14344 IFS=$as_save_IFS
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14348 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
14349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 break 2
14351 fi
14352 done
14353 done
14354 IFS=$as_save_IFS
14355
14356 test -z "$ac_cv_path_XMLTO" && ac_cv_path_XMLTO="no"
14357 ;;
14358 esac
14359 fi
14360 XMLTO=$ac_cv_path_XMLTO
14361 if test -n "$XMLTO"; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
14363 $as_echo "$XMLTO" >&6; }
14364 else
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367 fi
14368
14369
14370 if test "$XMLTO" = "no" ; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found, will not be able to rebuild documentation" >&5
14372 $as_echo "$as_me: WARNING: xmlto not found, will not be able to rebuild documentation" >&2;}
14373 fi
14374 else
14375 XMLTO="no"
14376 fi
14377
14378 if test "$XMLTO" != "no"; then
14379
14380 # Check whether --with-pdf-backend was given.
14381 if test "${with_pdf_backend+set}" = set; then :
14382 withval=$with_pdf_backend; WITH_PDF_BACKEND=$withval
14383 else
14384 WITH_PDF_BACKEND="yes"
14385 fi
14386
14387 case "$WITH_PDF_BACKEND" in
14388 no)
14389 PDF_BACKEND="no"
14390 ;;
14391 yes)
14392 # Prefer dblatex, then default backend.
14393 # Could use [dblatex fop] to prefer dblatex or fop.
14394 for ac_prog in dblatex
14395 do
14396 # Extract the first word of "$ac_prog", so it can be a program name with args.
14397 set dummy $ac_prog; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if ${ac_cv_prog_PDF_BACKEND+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$PDF_BACKEND"; then
14404 ac_cv_prog_PDF_BACKEND="$PDF_BACKEND" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14408 do
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_PDF_BACKEND="$ac_prog"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14416 fi
14417 done
14418 done
14419 IFS=$as_save_IFS
14420
14421 fi
14422 fi
14423 PDF_BACKEND=$ac_cv_prog_PDF_BACKEND
14424 if test -n "$PDF_BACKEND"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDF_BACKEND" >&5
14426 $as_echo "$PDF_BACKEND" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430 fi
14431
14432
14433 test -n "$PDF_BACKEND" && break
14434 done
14435 test -n "$PDF_BACKEND" || PDF_BACKEND="default"
14436
14437 # The default backend is broken, so avoid it for now.
14438 if test "$PDF_BACKEND" = "default"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Default PDF backend is broken, disabling PDF generation" >&5
14440 $as_echo "$as_me: WARNING: Default PDF backend is broken, disabling PDF generation" >&2;}
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (dblatex is recommended for PDF generation)" >&5
14442 $as_echo "$as_me: WARNING: (dblatex is recommended for PDF generation)" >&2;}
14443 PDF_BACKEND="no"
14444 fi
14445 if test "$PDF_BACKEND" != "no"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use $PDF_BACKEND backend for PDF generation" >&5
14447 $as_echo "$as_me: Will use $PDF_BACKEND backend for PDF generation" >&6;}
14448 fi
14449 ;;
14450 default)
14451 # Use xmlto's default backend.
14452 PDF_BACKEND="default"
14453 ;;
14454 dblatex|fop)
14455 # Extract the first word of "$WITH_PDF_BACKEND", so it can be a program name with args.
14456 set dummy $WITH_PDF_BACKEND; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14458 $as_echo_n "checking for $ac_word... " >&6; }
14459 if ${ac_cv_prog_PDF_BACKEND+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 if test -n "$PDF_BACKEND"; then
14463 ac_cv_prog_PDF_BACKEND="$PDF_BACKEND" # Let the user override the test.
14464 else
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14467 do
14468 IFS=$as_save_IFS
14469 test -z "$as_dir" && as_dir=.
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14472 ac_cv_prog_PDF_BACKEND="$WITH_PDF_BACKEND"
14473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14474 break 2
14475 fi
14476 done
14477 done
14478 IFS=$as_save_IFS
14479
14480 test -z "$ac_cv_prog_PDF_BACKEND" && ac_cv_prog_PDF_BACKEND="no"
14481 fi
14482 fi
14483 PDF_BACKEND=$ac_cv_prog_PDF_BACKEND
14484 if test -n "$PDF_BACKEND"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDF_BACKEND" >&5
14486 $as_echo "$PDF_BACKEND" >&6; }
14487 else
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14490 fi
14491
14492
14493 if test "$PDF_BACKEND" = "no"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $WITH_PDF_BACKEND not found, disabling PDF generation" >&5
14495 $as_echo "$as_me: WARNING: $WITH_PDF_BACKEND not found, disabling PDF generation" >&2;}
14496 fi
14497 ;;
14498 *)
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad --with-pdf-backend option, disabling PDF generation" >&5
14500 $as_echo "$as_me: WARNING: Bad --with-pdf-backend option, disabling PDF generation" >&2;}
14501 PDF_BACKEND="no"
14502 ;;
14503 esac
14504 else
14505 PDF_BACKEND="no"
14506 fi
14507 case $PDF_BACKEND in
14508 fop|default)
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PDF_BACKEND PDF backend might not work. --without-pdf-backend disables PDF generation." >&5
14510 $as_echo "$as_me: WARNING: $PDF_BACKEND PDF backend might not work. --without-pdf-backend disables PDF generation." >&2;}
14511 ;;
14512 esac
14513 if test "$XMLTO" != "no"; then
14514 HAVE_XMLTO_TRUE=
14515 HAVE_XMLTO_FALSE='#'
14516 else
14517 HAVE_XMLTO_TRUE='#'
14518 HAVE_XMLTO_FALSE=
14519 fi
14520
14521 if test "$PDF_BACKEND" != "no"; then
14522 BUILD_PDF_TRUE=
14523 BUILD_PDF_FALSE='#'
14524 else
14525 BUILD_PDF_TRUE='#'
14526 BUILD_PDF_FALSE=
14527 fi
14528
14529 if test "$PDF_BACKEND" = "dblatex"; then
14530 BUILD_PDF_USING_DBLATEX_TRUE=
14531 BUILD_PDF_USING_DBLATEX_FALSE='#'
14532 else
14533 BUILD_PDF_USING_DBLATEX_TRUE='#'
14534 BUILD_PDF_USING_DBLATEX_FALSE=
14535 fi
14536
14537 if test "$PDF_BACKEND" = "fop"; then
14538 BUILD_PDF_USING_FOP_TRUE=
14539 BUILD_PDF_USING_FOP_FALSE='#'
14540 else
14541 BUILD_PDF_USING_FOP_TRUE='#'
14542 BUILD_PDF_USING_FOP_FALSE=
14543 fi
14544
14545
14546 pcmciadir="\${sysconfdir}/pcmcia"
14547
14548
14549 # firmware
14550 # Check whether --enable-firmware was given.
14551 if test "${enable_firmware+set}" = set; then :
14552 enableval=$enable_firmware; ENABLE_FIRMWARE=$enableval
14553 else
14554 ENABLE_FIRMWARE="yes"
14555 fi
14556
14557
14558 # new udev hotplug
14559
14560 # Check whether --with-udev-hotplug was given.
14561 if test "${with_udev_hotplug+set}" = set; then :
14562 withval=$with_udev_hotplug; ENABLE_UDEVHOTPLUG=$withval
14563 else
14564 ENABLE_UDEVHOTPLUG="no"
14565 fi
14566
14567 if test "$ENABLE_UDEVHOTPLUG" != "no"; then
14568 INSTALL_UDEVHOTPLUG_TRUE=
14569 INSTALL_UDEVHOTPLUG_FALSE='#'
14570 else
14571 INSTALL_UDEVHOTPLUG_TRUE='#'
14572 INSTALL_UDEVHOTPLUG_FALSE=
14573 fi
14574
14575 if test "$ENABLE_UDEVHOTPLUG" != "no"; then
14576 if test "$ENABLE_UDEVHOTPLUG" == "yes"; then
14577 as_fn_error $? "udev-hotplug needs a path as an argument (usually: --enable-udev-hotplug=/lib)." "$LINENO" 5
14578 fi
14579 if test "$ENABLE_UDEVHOTPLUG" != "/lib"; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Installing the udev scripts in the non-standard location: $ENABLE_UDEVHOTPLUG (should be --enable-udev-hotplug=/lib)" >&5
14581 $as_echo "$as_me: WARNING: Installing the udev scripts in the non-standard location: $ENABLE_UDEVHOTPLUG (should be --enable-udev-hotplug=/lib)" >&2;}
14582 fi
14583 udevrulesdir="$ENABLE_UDEVHOTPLUG/udev/rules.d/"
14584 udevscriptsdir="$ENABLE_UDEVHOTPLUG/udev"
14585
14586
14587 if test "$ENABLE_FIRMWARE" == "yes"; then
14588 udevfirmwaredir="$ENABLE_UDEVHOTPLUG/firmware"
14589
14590 fi
14591 else
14592 ENABLE_UDEVHOTPLUG="no"
14593 fi
14594
14595 if test "$ENABLE_UDEVHOTPLUG" = "no" ; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No hotplug mechanism will be installed. Consult ./configure --help if you want hotplug." >&5
14597 $as_echo "$as_me: WARNING: No hotplug mechanism will be installed. Consult ./configure --help if you want hotplug." >&2;}
14598 fi
14599
14600 ac_config_files="$ac_config_files Makefile comedi_config/Makefile comedi_board_info/Makefile c++/Makefile c++/include/Makefile etc/Makefile etc/pcmcia/Makefile etc/hotplug/Makefile etc/hotplug/usb/Makefile etc/hotplug/usb/usbdux/Makefile etc/hotplug/usb/usbduxfast/Makefile etc/hotplug/usb/usbduxsigma/Makefile etc/udev/Makefile doc/Makefile demo/Makefile include/Makefile include/comedilib_version.h lib/Makefile man/Makefile scxi/Makefile swig/Makefile swig/python/Makefile swig/ruby/Makefile testing/Makefile comedilib.spec comedilib.pc"
14601
14602
14603 cat >confcache <<\_ACEOF
14604 # This file is a shell script that caches the results of configure
14605 # tests run on this system so they can be shared between configure
14606 # scripts and configure runs, see configure's option --config-cache.
14607 # It is not useful on other systems. If it contains results you don't
14608 # want to keep, you may remove or edit it.
14609 #
14610 # config.status only pays attention to the cache file if you give it
14611 # the --recheck option to rerun configure.
14612 #
14613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14615 # following values.
14616
14617 _ACEOF
14618
14619 # The following way of writing the cache mishandles newlines in values,
14620 # but we know of no workaround that is simple, portable, and efficient.
14621 # So, we kill variables containing newlines.
14622 # Ultrix sh set writes to stderr and can't be redirected directly,
14623 # and sets the high bit in the cache file unless we assign to the vars.
14624 (
14625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14626 eval ac_val=\$$ac_var
14627 case $ac_val in #(
14628 *${as_nl}*)
14629 case $ac_var in #(
14630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14632 esac
14633 case $ac_var in #(
14634 _ | IFS | as_nl) ;; #(
14635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14636 *) { eval $ac_var=; unset $ac_var;} ;;
14637 esac ;;
14638 esac
14639 done
14640
14641 (set) 2>&1 |
14642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14643 *${as_nl}ac_space=\ *)
14644 # `set' does not quote correctly, so add quotes: double-quote
14645 # substitution turns \\\\ into \\, and sed turns \\ into \.
14646 sed -n \
14647 "s/'/'\\\\''/g;
14648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14649 ;; #(
14650 *)
14651 # `set' quotes correctly as required by POSIX, so do not add quotes.
14652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14653 ;;
14654 esac |
14655 sort
14656 ) |
14657 sed '
14658 /^ac_cv_env_/b end
14659 t clear
14660 :clear
14661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14662 t end
14663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14664 :end' >>confcache
14665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14666 if test -w "$cache_file"; then
14667 if test "x$cache_file" != "x/dev/null"; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14669 $as_echo "$as_me: updating cache $cache_file" >&6;}
14670 if test ! -f "$cache_file" || test -h "$cache_file"; then
14671 cat confcache >"$cache_file"
14672 else
14673 case $cache_file in #(
14674 */* | ?:*)
14675 mv -f confcache "$cache_file"$$ &&
14676 mv -f "$cache_file"$$ "$cache_file" ;; #(
14677 *)
14678 mv -f confcache "$cache_file" ;;
14679 esac
14680 fi
14681 fi
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14685 fi
14686 fi
14687 rm -f confcache
14688
14689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14690 # Let make expand exec_prefix.
14691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14692
14693 DEFS=-DHAVE_CONFIG_H
14694
14695 ac_libobjs=
14696 ac_ltlibobjs=
14697 U=
14698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14699 # 1. Remove the extension, and $U if already installed.
14700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14703 # will be set to the directory where LIBOBJS objects are built.
14704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14706 done
14707 LIBOBJS=$ac_libobjs
14708
14709 LTLIBOBJS=$ac_ltlibobjs
14710
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14713 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14714 if test -n "$am_sleep_pid"; then
14715 # Hide warnings about reused PIDs.
14716 wait $am_sleep_pid 2>/dev/null
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14719 $as_echo "done" >&6; }
14720 if test -n "$EXEEXT"; then
14721 am__EXEEXT_TRUE=
14722 am__EXEEXT_FALSE='#'
14723 else
14724 am__EXEEXT_TRUE='#'
14725 am__EXEEXT_FALSE=
14726 fi
14727
14728 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14729 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14731 fi
14732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14733 as_fn_error $? "conditional \"AMDEP\" was never defined.
14734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14735 fi
14736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14737 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14739 fi
14740 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14741 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14743 fi
14744 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
14745 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
14746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14747 fi
14748 if test -z "${HAVE_RUBY_TRUE}" && test -z "${HAVE_RUBY_FALSE}"; then
14749 as_fn_error $? "conditional \"HAVE_RUBY\" was never defined.
14750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14751 fi
14752 if test -z "${BUILD_SCXI_TRUE}" && test -z "${BUILD_SCXI_FALSE}"; then
14753 as_fn_error $? "conditional \"BUILD_SCXI\" was never defined.
14754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14755 fi
14756 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
14757 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
14758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14759 fi
14760 if test -z "${BUILD_PDF_TRUE}" && test -z "${BUILD_PDF_FALSE}"; then
14761 as_fn_error $? "conditional \"BUILD_PDF\" was never defined.
14762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14763 fi
14764 if test -z "${BUILD_PDF_USING_DBLATEX_TRUE}" && test -z "${BUILD_PDF_USING_DBLATEX_FALSE}"; then
14765 as_fn_error $? "conditional \"BUILD_PDF_USING_DBLATEX\" was never defined.
14766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14767 fi
14768 if test -z "${BUILD_PDF_USING_FOP_TRUE}" && test -z "${BUILD_PDF_USING_FOP_FALSE}"; then
14769 as_fn_error $? "conditional \"BUILD_PDF_USING_FOP\" was never defined.
14770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14771 fi
14772 if test -z "${INSTALL_UDEVHOTPLUG_TRUE}" && test -z "${INSTALL_UDEVHOTPLUG_FALSE}"; then
14773 as_fn_error $? "conditional \"INSTALL_UDEVHOTPLUG\" was never defined.
14774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14775 fi
14776
14777 : "${CONFIG_STATUS=./config.status}"
14778 ac_write_fail=0
14779 ac_clean_files_save=$ac_clean_files
14780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14783 as_write_fail=0
14784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14785 #! $SHELL
14786 # Generated by $as_me.
14787 # Run this file to recreate the current configuration.
14788 # Compiler output produced by configure, useful for debugging
14789 # configure, is in config.log if it exists.
14790
14791 debug=false
14792 ac_cs_recheck=false
14793 ac_cs_silent=false
14794
14795 SHELL=\${CONFIG_SHELL-$SHELL}
14796 export SHELL
14797 _ASEOF
14798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14799 ## -------------------- ##
14800 ## M4sh Initialization. ##
14801 ## -------------------- ##
14802
14803 # Be more Bourne compatible
14804 DUALCASE=1; export DUALCASE # for MKS sh
14805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14806 emulate sh
14807 NULLCMD=:
14808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14809 # is contrary to our usage. Disable this feature.
14810 alias -g '${1+"$@"}'='"$@"'
14811 setopt NO_GLOB_SUBST
14812 else
14813 case `(set -o) 2>/dev/null` in #(
14814 *posix*) :
14815 set -o posix ;; #(
14816 *) :
14817 ;;
14818 esac
14819 fi
14820
14821
14822 as_nl='
14823 '
14824 export as_nl
14825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14829 # Prefer a ksh shell builtin over an external printf program on Solaris,
14830 # but without wasting forks for bash or zsh.
14831 if test -z "$BASH_VERSION$ZSH_VERSION" \
14832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14833 as_echo='print -r --'
14834 as_echo_n='print -rn --'
14835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14836 as_echo='printf %s\n'
14837 as_echo_n='printf %s'
14838 else
14839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14841 as_echo_n='/usr/ucb/echo -n'
14842 else
14843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14844 as_echo_n_body='eval
14845 arg=$1;
14846 case $arg in #(
14847 *"$as_nl"*)
14848 expr "X$arg" : "X\\(.*\\)$as_nl";
14849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14850 esac;
14851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14852 '
14853 export as_echo_n_body
14854 as_echo_n='sh -c $as_echo_n_body as_echo'
14855 fi
14856 export as_echo_body
14857 as_echo='sh -c $as_echo_body as_echo'
14858 fi
14859
14860 # The user is always right.
14861 if test "${PATH_SEPARATOR+set}" != set; then
14862 PATH_SEPARATOR=:
14863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14865 PATH_SEPARATOR=';'
14866 }
14867 fi
14868
14869
14870 # IFS
14871 # We need space, tab and new line, in precisely that order. Quoting is
14872 # there to prevent editors from complaining about space-tab.
14873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14874 # splitting by setting IFS to empty value.)
14875 IFS=" "" $as_nl"
14876
14877 # Find who we are. Look in the path if we contain no directory separator.
14878 as_myself=
14879 case $0 in #((
14880 *[\\/]* ) as_myself=$0 ;;
14881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14883 do
14884 IFS=$as_save_IFS
14885 test -z "$as_dir" && as_dir=.
14886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14887 done
14888 IFS=$as_save_IFS
14889
14890 ;;
14891 esac
14892 # We did not find ourselves, most probably we were run as `sh COMMAND'
14893 # in which case we are not to be found in the path.
14894 if test "x$as_myself" = x; then
14895 as_myself=$0
14896 fi
14897 if test ! -f "$as_myself"; then
14898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14899 exit 1
14900 fi
14901
14902 # Unset variables that we do not need and which cause bugs (e.g. in
14903 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14904 # suppresses any "Segmentation fault" message there. '((' could
14905 # trigger a bug in pdksh 5.2.14.
14906 for as_var in BASH_ENV ENV MAIL MAILPATH
14907 do eval test x\${$as_var+set} = xset \
14908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14909 done
14910 PS1='$ '
14911 PS2='> '
14912 PS4='+ '
14913
14914 # NLS nuisances.
14915 LC_ALL=C
14916 export LC_ALL
14917 LANGUAGE=C
14918 export LANGUAGE
14919
14920 # CDPATH.
14921 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14922
14923
14924 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14925 # ----------------------------------------
14926 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14927 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14928 # script with STATUS, using 1 if that was 0.
14929 as_fn_error ()
14930 {
14931 as_status=$1; test $as_status -eq 0 && as_status=1
14932 if test "$4"; then
14933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14935 fi
14936 $as_echo "$as_me: error: $2" >&2
14937 as_fn_exit $as_status
14938 } # as_fn_error
14939
14940
14941 # as_fn_set_status STATUS
14942 # -----------------------
14943 # Set $? to STATUS, without forking.
14944 as_fn_set_status ()
14945 {
14946 return $1
14947 } # as_fn_set_status
14948
14949 # as_fn_exit STATUS
14950 # -----------------
14951 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14952 as_fn_exit ()
14953 {
14954 set +e
14955 as_fn_set_status $1
14956 exit $1
14957 } # as_fn_exit
14958
14959 # as_fn_unset VAR
14960 # ---------------
14961 # Portably unset VAR.
14962 as_fn_unset ()
14963 {
14964 { eval $1=; unset $1;}
14965 }
14966 as_unset=as_fn_unset
14967 # as_fn_append VAR VALUE
14968 # ----------------------
14969 # Append the text in VALUE to the end of the definition contained in VAR. Take
14970 # advantage of any shell optimizations that allow amortized linear growth over
14971 # repeated appends, instead of the typical quadratic growth present in naive
14972 # implementations.
14973 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14974 eval 'as_fn_append ()
14975 {
14976 eval $1+=\$2
14977 }'
14978 else
14979 as_fn_append ()
14980 {
14981 eval $1=\$$1\$2
14982 }
14983 fi # as_fn_append
14984
14985 # as_fn_arith ARG...
14986 # ------------------
14987 # Perform arithmetic evaluation on the ARGs, and store the result in the
14988 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14989 # must be portable across $(()) and expr.
14990 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14991 eval 'as_fn_arith ()
14992 {
14993 as_val=$(( $* ))
14994 }'
14995 else
14996 as_fn_arith ()
14997 {
14998 as_val=`expr "$@" || test $? -eq 1`
14999 }
15000 fi # as_fn_arith
15001
15002
15003 if expr a : '\(a\)' >/dev/null 2>&1 &&
15004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15005 as_expr=expr
15006 else
15007 as_expr=false
15008 fi
15009
15010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15011 as_basename=basename
15012 else
15013 as_basename=false
15014 fi
15015
15016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15017 as_dirname=dirname
15018 else
15019 as_dirname=false
15020 fi
15021
15022 as_me=`$as_basename -- "$0" ||
15023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15024 X"$0" : 'X\(//\)$' \| \
15025 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15026 $as_echo X/"$0" |
15027 sed '/^.*\/\([^/][^/]*\)\/*$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\/\(\/\/\)$/{
15032 s//\1/
15033 q
15034 }
15035 /^X\/\(\/\).*/{
15036 s//\1/
15037 q
15038 }
15039 s/.*/./; q'`
15040
15041 # Avoid depending upon Character Ranges.
15042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15045 as_cr_digits='0123456789'
15046 as_cr_alnum=$as_cr_Letters$as_cr_digits
15047
15048 ECHO_C= ECHO_N= ECHO_T=
15049 case `echo -n x` in #(((((
15050 -n*)
15051 case `echo 'xy\c'` in
15052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15053 xy) ECHO_C='\c';;
15054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15055 ECHO_T=' ';;
15056 esac;;
15057 *)
15058 ECHO_N='-n';;
15059 esac
15060
15061 rm -f conf$$ conf$$.exe conf$$.file
15062 if test -d conf$$.dir; then
15063 rm -f conf$$.dir/conf$$.file
15064 else
15065 rm -f conf$$.dir
15066 mkdir conf$$.dir 2>/dev/null
15067 fi
15068 if (echo >conf$$.file) 2>/dev/null; then
15069 if ln -s conf$$.file conf$$ 2>/dev/null; then
15070 as_ln_s='ln -s'
15071 # ... but there are two gotchas:
15072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15074 # In both cases, we have to default to `cp -pR'.
15075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15076 as_ln_s='cp -pR'
15077 elif ln conf$$.file conf$$ 2>/dev/null; then
15078 as_ln_s=ln
15079 else
15080 as_ln_s='cp -pR'
15081 fi
15082 else
15083 as_ln_s='cp -pR'
15084 fi
15085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15086 rmdir conf$$.dir 2>/dev/null
15087
15088
15089 # as_fn_mkdir_p
15090 # -------------
15091 # Create "$as_dir" as a directory, including parents if necessary.
15092 as_fn_mkdir_p ()
15093 {
15094
15095 case $as_dir in #(
15096 -*) as_dir=./$as_dir;;
15097 esac
15098 test -d "$as_dir" || eval $as_mkdir_p || {
15099 as_dirs=
15100 while :; do
15101 case $as_dir in #(
15102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15103 *) as_qdir=$as_dir;;
15104 esac
15105 as_dirs="'$as_qdir' $as_dirs"
15106 as_dir=`$as_dirname -- "$as_dir" ||
15107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15108 X"$as_dir" : 'X\(//\)[^/]' \| \
15109 X"$as_dir" : 'X\(//\)$' \| \
15110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15111 $as_echo X"$as_dir" |
15112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\/\)[^/].*/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\/\)$/{
15121 s//\1/
15122 q
15123 }
15124 /^X\(\/\).*/{
15125 s//\1/
15126 q
15127 }
15128 s/.*/./; q'`
15129 test -d "$as_dir" && break
15130 done
15131 test -z "$as_dirs" || eval "mkdir $as_dirs"
15132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15133
15134
15135 } # as_fn_mkdir_p
15136 if mkdir -p . 2>/dev/null; then
15137 as_mkdir_p='mkdir -p "$as_dir"'
15138 else
15139 test -d ./-p && rmdir ./-p
15140 as_mkdir_p=false
15141 fi
15142
15143
15144 # as_fn_executable_p FILE
15145 # -----------------------
15146 # Test if FILE is an executable regular file.
15147 as_fn_executable_p ()
15148 {
15149 test -f "$1" && test -x "$1"
15150 } # as_fn_executable_p
15151 as_test_x='test -x'
15152 as_executable_p=as_fn_executable_p
15153
15154 # Sed expression to map a string onto a valid CPP name.
15155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15156
15157 # Sed expression to map a string onto a valid variable name.
15158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15159
15160
15161 exec 6>&1
15162 ## ----------------------------------- ##
15163 ## Main body of $CONFIG_STATUS script. ##
15164 ## ----------------------------------- ##
15165 _ASEOF
15166 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15167
15168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169 # Save the log message, to keep $0 and so on meaningful, and to
15170 # report actual input values of CONFIG_FILES etc. instead of their
15171 # values after options handling.
15172 ac_log="
15173 This file was extended by comedilib $as_me 0.11.0, which was
15174 generated by GNU Autoconf 2.69. Invocation command line was
15175
15176 CONFIG_FILES = $CONFIG_FILES
15177 CONFIG_HEADERS = $CONFIG_HEADERS
15178 CONFIG_LINKS = $CONFIG_LINKS
15179 CONFIG_COMMANDS = $CONFIG_COMMANDS
15180 $ $0 $@
15181
15182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15183 "
15184
15185 _ACEOF
15186
15187 case $ac_config_files in *"
15188 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15189 esac
15190
15191 case $ac_config_headers in *"
15192 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15193 esac
15194
15195
15196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15197 # Files that config.status was made for.
15198 config_files="$ac_config_files"
15199 config_headers="$ac_config_headers"
15200 config_commands="$ac_config_commands"
15201
15202 _ACEOF
15203
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 ac_cs_usage="\
15206 \`$as_me' instantiates files and other configuration actions
15207 from templates according to the current configuration. Unless the files
15208 and actions are specified as TAGs, all are instantiated by default.
15209
15210 Usage: $0 [OPTION]... [TAG]...
15211
15212 -h, --help print this help, then exit
15213 -V, --version print version number and configuration settings, then exit
15214 --config print configuration, then exit
15215 -q, --quiet, --silent
15216 do not print progress messages
15217 -d, --debug don't remove temporary files
15218 --recheck update $as_me by reconfiguring in the same conditions
15219 --file=FILE[:TEMPLATE]
15220 instantiate the configuration file FILE
15221 --header=FILE[:TEMPLATE]
15222 instantiate the configuration header FILE
15223
15224 Configuration files:
15225 $config_files
15226
15227 Configuration headers:
15228 $config_headers
15229
15230 Configuration commands:
15231 $config_commands
15232
15233 Report bugs to the package provider."
15234
15235 _ACEOF
15236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15237 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15238 ac_cs_version="\\
15239 comedilib config.status 0.11.0
15240 configured by $0, generated by GNU Autoconf 2.69,
15241 with options \\"\$ac_cs_config\\"
15242
15243 Copyright (C) 2012 Free Software Foundation, Inc.
15244 This config.status script is free software; the Free Software Foundation
15245 gives unlimited permission to copy, distribute and modify it."
15246
15247 ac_pwd='$ac_pwd'
15248 srcdir='$srcdir'
15249 INSTALL='$INSTALL'
15250 MKDIR_P='$MKDIR_P'
15251 AWK='$AWK'
15252 test -n "\$AWK" || AWK=awk
15253 _ACEOF
15254
15255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256 # The default lists apply if the user does not specify any file.
15257 ac_need_defaults=:
15258 while test $# != 0
15259 do
15260 case $1 in
15261 --*=?*)
15262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15264 ac_shift=:
15265 ;;
15266 --*=)
15267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15268 ac_optarg=
15269 ac_shift=:
15270 ;;
15271 *)
15272 ac_option=$1
15273 ac_optarg=$2
15274 ac_shift=shift
15275 ;;
15276 esac
15277
15278 case $ac_option in
15279 # Handling of the options.
15280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15281 ac_cs_recheck=: ;;
15282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15283 $as_echo "$ac_cs_version"; exit ;;
15284 --config | --confi | --conf | --con | --co | --c )
15285 $as_echo "$ac_cs_config"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15287 debug=: ;;
15288 --file | --fil | --fi | --f )
15289 $ac_shift
15290 case $ac_optarg in
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292 '') as_fn_error $? "missing file argument" ;;
15293 esac
15294 as_fn_append CONFIG_FILES " '$ac_optarg'"
15295 ac_need_defaults=false;;
15296 --header | --heade | --head | --hea )
15297 $ac_shift
15298 case $ac_optarg in
15299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15300 esac
15301 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15302 ac_need_defaults=false;;
15303 --he | --h)
15304 # Conflict between --help and --header
15305 as_fn_error $? "ambiguous option: \`$1'
15306 Try \`$0 --help' for more information.";;
15307 --help | --hel | -h )
15308 $as_echo "$ac_cs_usage"; exit ;;
15309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15311 ac_cs_silent=: ;;
15312
15313 # This is an error.
15314 -*) as_fn_error $? "unrecognized option: \`$1'
15315 Try \`$0 --help' for more information." ;;
15316
15317 *) as_fn_append ac_config_targets " $1"
15318 ac_need_defaults=false ;;
15319
15320 esac
15321 shift
15322 done
15323
15324 ac_configure_extra_args=
15325
15326 if $ac_cs_silent; then
15327 exec 6>/dev/null
15328 ac_configure_extra_args="$ac_configure_extra_args --silent"
15329 fi
15330
15331 _ACEOF
15332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15333 if \$ac_cs_recheck; then
15334 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15335 shift
15336 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15337 CONFIG_SHELL='$SHELL'
15338 export CONFIG_SHELL
15339 exec "\$@"
15340 fi
15341
15342 _ACEOF
15343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15344 exec 5>>config.log
15345 {
15346 echo
15347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15348 ## Running $as_me. ##
15349 _ASBOX
15350 $as_echo "$ac_log"
15351 } >&5
15352
15353 _ACEOF
15354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 #
15356 # INIT-COMMANDS
15357 #
15358 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15359
15360
15361 # The HP-UX ksh and POSIX shell print the target directory to stdout
15362 # if CDPATH is set.
15363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15364
15365 sed_quote_subst='$sed_quote_subst'
15366 double_quote_subst='$double_quote_subst'
15367 delay_variable_subst='$delay_variable_subst'
15368 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15369 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15370 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15371 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15372 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15373 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15374 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15375 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15376 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15377 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15378 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15379 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15380 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15381 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15382 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15383 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15384 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15385 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15386 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15387 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15388 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15389 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15390 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15391 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15392 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15393 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15394 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15395 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15396 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15397 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15398 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15399 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15405 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15406 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15407 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15408 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15409 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15410 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15411 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15412 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15413 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15414 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15415 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15416 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15417 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15418 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15419 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15420 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15421 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15422 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15423 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15424 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15425 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15426 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15427 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15428 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15429 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15430 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15431 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15432 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15433 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15434 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15435 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15436 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15437 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15438 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15439 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15440 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15441 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15442 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15443 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15444 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15445 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15446 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15447 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15448 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15449 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15450 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15451 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15452 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15453 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15454 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15455 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15456 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15457 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15458 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15459 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15460 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15461 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15462 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15463 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15464 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15465 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15466 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15467 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15468 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15469 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15470 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15471 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15472 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15473 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15474 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15475 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15476 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15477 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15478 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15479 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15480 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15481 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15482 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15483 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15484 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15485 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15486 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15487 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15488 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15489 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15490 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15491 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15492 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15493 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15494 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15495 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15496 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15497 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15498 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15499 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15500 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15501 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15502 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15503
15504 LTCC='$LTCC'
15505 LTCFLAGS='$LTCFLAGS'
15506 compiler='$compiler_DEFAULT'
15507
15508 # A function that is used when there is no print builtin or printf.
15509 func_fallback_echo ()
15510 {
15511 eval 'cat <<_LTECHO_EOF
15512 \$1
15513 _LTECHO_EOF'
15514 }
15515
15516 # Quote evaled strings.
15517 for var in SHELL \
15518 ECHO \
15519 PATH_SEPARATOR \
15520 SED \
15521 GREP \
15522 EGREP \
15523 FGREP \
15524 LD \
15525 NM \
15526 LN_S \
15527 lt_SP2NL \
15528 lt_NL2SP \
15529 reload_flag \
15530 OBJDUMP \
15531 deplibs_check_method \
15532 file_magic_cmd \
15533 file_magic_glob \
15534 want_nocaseglob \
15535 DLLTOOL \
15536 sharedlib_from_linklib_cmd \
15537 AR \
15538 AR_FLAGS \
15539 archiver_list_spec \
15540 STRIP \
15541 RANLIB \
15542 CC \
15543 CFLAGS \
15544 compiler \
15545 lt_cv_sys_global_symbol_pipe \
15546 lt_cv_sys_global_symbol_to_cdecl \
15547 lt_cv_sys_global_symbol_to_import \
15548 lt_cv_sys_global_symbol_to_c_name_address \
15549 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15550 lt_cv_nm_interface \
15551 nm_file_list_spec \
15552 lt_cv_truncate_bin \
15553 lt_prog_compiler_no_builtin_flag \
15554 lt_prog_compiler_pic \
15555 lt_prog_compiler_wl \
15556 lt_prog_compiler_static \
15557 lt_cv_prog_compiler_c_o \
15558 need_locks \
15559 MANIFEST_TOOL \
15560 DSYMUTIL \
15561 NMEDIT \
15562 LIPO \
15563 OTOOL \
15564 OTOOL64 \
15565 shrext_cmds \
15566 export_dynamic_flag_spec \
15567 whole_archive_flag_spec \
15568 compiler_needs_object \
15569 with_gnu_ld \
15570 allow_undefined_flag \
15571 no_undefined_flag \
15572 hardcode_libdir_flag_spec \
15573 hardcode_libdir_separator \
15574 exclude_expsyms \
15575 include_expsyms \
15576 file_list_spec \
15577 variables_saved_for_relink \
15578 libname_spec \
15579 library_names_spec \
15580 soname_spec \
15581 install_override_mode \
15582 finish_eval \
15583 old_striplib \
15584 striplib; do
15585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15586 *[\\\\\\\`\\"\\\$]*)
15587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15588 ;;
15589 *)
15590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15591 ;;
15592 esac
15593 done
15594
15595 # Double-quote double-evaled strings.
15596 for var in reload_cmds \
15597 old_postinstall_cmds \
15598 old_postuninstall_cmds \
15599 old_archive_cmds \
15600 extract_expsyms_cmds \
15601 old_archive_from_new_cmds \
15602 old_archive_from_expsyms_cmds \
15603 archive_cmds \
15604 archive_expsym_cmds \
15605 module_cmds \
15606 module_expsym_cmds \
15607 export_symbols_cmds \
15608 prelink_cmds \
15609 postlink_cmds \
15610 postinstall_cmds \
15611 postuninstall_cmds \
15612 finish_cmds \
15613 sys_lib_search_path_spec \
15614 configure_time_dlsearch_path \
15615 configure_time_lt_sys_library_path; do
15616 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15617 *[\\\\\\\`\\"\\\$]*)
15618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15619 ;;
15620 *)
15621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15622 ;;
15623 esac
15624 done
15625
15626 ac_aux_dir='$ac_aux_dir'
15627
15628 # See if we are running on zsh, and set the options that allow our
15629 # commands through without removal of \ escapes INIT.
15630 if test -n "\${ZSH_VERSION+set}"; then
15631 setopt NO_GLOB_SUBST
15632 fi
15633
15634
15635 PACKAGE='$PACKAGE'
15636 VERSION='$VERSION'
15637 RM='$RM'
15638 ofile='$ofile'
15639
15640
15641
15642
15643 _ACEOF
15644
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646
15647 # Handling of arguments.
15648 for ac_config_target in $ac_config_targets
15649 do
15650 case $ac_config_target in
15651 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15652 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15654 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15655 "comedi_config/Makefile") CONFIG_FILES="$CONFIG_FILES comedi_config/Makefile" ;;
15656 "comedi_board_info/Makefile") CONFIG_FILES="$CONFIG_FILES comedi_board_info/Makefile" ;;
15657 "c++/Makefile") CONFIG_FILES="$CONFIG_FILES c++/Makefile" ;;
15658 "c++/include/Makefile") CONFIG_FILES="$CONFIG_FILES c++/include/Makefile" ;;
15659 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15660 "etc/pcmcia/Makefile") CONFIG_FILES="$CONFIG_FILES etc/pcmcia/Makefile" ;;
15661 "etc/hotplug/Makefile") CONFIG_FILES="$CONFIG_FILES etc/hotplug/Makefile" ;;
15662 "etc/hotplug/usb/Makefile") CONFIG_FILES="$CONFIG_FILES etc/hotplug/usb/Makefile" ;;
15663 "etc/hotplug/usb/usbdux/Makefile") CONFIG_FILES="$CONFIG_FILES etc/hotplug/usb/usbdux/Makefile" ;;
15664 "etc/hotplug/usb/usbduxfast/Makefile") CONFIG_FILES="$CONFIG_FILES etc/hotplug/usb/usbduxfast/Makefile" ;;
15665 "etc/hotplug/usb/usbduxsigma/Makefile") CONFIG_FILES="$CONFIG_FILES etc/hotplug/usb/usbduxsigma/Makefile" ;;
15666 "etc/udev/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/Makefile" ;;
15667 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15668 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
15669 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15670 "include/comedilib_version.h") CONFIG_FILES="$CONFIG_FILES include/comedilib_version.h" ;;
15671 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15672 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15673 "scxi/Makefile") CONFIG_FILES="$CONFIG_FILES scxi/Makefile" ;;
15674 "swig/Makefile") CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
15675 "swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES swig/python/Makefile" ;;
15676 "swig/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES swig/ruby/Makefile" ;;
15677 "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile" ;;
15678 "comedilib.spec") CONFIG_FILES="$CONFIG_FILES comedilib.spec" ;;
15679 "comedilib.pc") CONFIG_FILES="$CONFIG_FILES comedilib.pc" ;;
15680
15681 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15682 esac
15683 done
15684
15685
15686 # If the user did not use the arguments to specify the items to instantiate,
15687 # then the envvar interface is used. Set only those that are not.
15688 # We use the long form for the default assignment because of an extremely
15689 # bizarre bug on SunOS 4.1.3.
15690 if $ac_need_defaults; then
15691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15694 fi
15695
15696 # Have a temporary directory for convenience. Make it in the build tree
15697 # simply because there is no reason against having it here, and in addition,
15698 # creating and moving files from /tmp can sometimes cause problems.
15699 # Hook for its removal unless debugging.
15700 # Note that there is a small window in which the directory will not be cleaned:
15701 # after its creation but before its name has been assigned to `$tmp'.
15702 $debug ||
15703 {
15704 tmp= ac_tmp=
15705 trap 'exit_status=$?
15706 : "${ac_tmp:=$tmp}"
15707 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15708 ' 0
15709 trap 'as_fn_exit 1' 1 2 13 15
15710 }
15711 # Create a (secure) tmp directory for tmp files.
15712
15713 {
15714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15715 test -d "$tmp"
15716 } ||
15717 {
15718 tmp=./conf$$-$RANDOM
15719 (umask 077 && mkdir "$tmp")
15720 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15721 ac_tmp=$tmp
15722
15723 # Set up the scripts for CONFIG_FILES section.
15724 # No need to generate them if there are no CONFIG_FILES.
15725 # This happens for instance with `./config.status config.h'.
15726 if test -n "$CONFIG_FILES"; then
15727
15728
15729 ac_cr=`echo X | tr X '\015'`
15730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15731 # But we know of no other shell where ac_cr would be empty at this
15732 # point, so we can use a bashism as a fallback.
15733 if test "x$ac_cr" = x; then
15734 eval ac_cr=\$\'\\r\'
15735 fi
15736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15738 ac_cs_awk_cr='\\r'
15739 else
15740 ac_cs_awk_cr=$ac_cr
15741 fi
15742
15743 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15744 _ACEOF
15745
15746
15747 {
15748 echo "cat >conf$$subs.awk <<_ACEOF" &&
15749 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15750 echo "_ACEOF"
15751 } >conf$$subs.sh ||
15752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15753 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15754 ac_delim='%!_!# '
15755 for ac_last_try in false false false false false :; do
15756 . ./conf$$subs.sh ||
15757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15758
15759 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15760 if test $ac_delim_n = $ac_delim_num; then
15761 break
15762 elif $ac_last_try; then
15763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15764 else
15765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15766 fi
15767 done
15768 rm -f conf$$subs.sh
15769
15770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15771 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15772 _ACEOF
15773 sed -n '
15774 h
15775 s/^/S["/; s/!.*/"]=/
15776 p
15777 g
15778 s/^[^!]*!//
15779 :repl
15780 t repl
15781 s/'"$ac_delim"'$//
15782 t delim
15783 :nl
15784 h
15785 s/\(.\{148\}\)..*/\1/
15786 t more1
15787 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15788 p
15789 n
15790 b repl
15791 :more1
15792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15793 p
15794 g
15795 s/.\{148\}//
15796 t nl
15797 :delim
15798 h
15799 s/\(.\{148\}\)..*/\1/
15800 t more2
15801 s/["\\]/\\&/g; s/^/"/; s/$/"/
15802 p
15803 b
15804 :more2
15805 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15806 p
15807 g
15808 s/.\{148\}//
15809 t delim
15810 ' <conf$$subs.awk | sed '
15811 /^[^""]/{
15812 N
15813 s/\n//
15814 }
15815 ' >>$CONFIG_STATUS || ac_write_fail=1
15816 rm -f conf$$subs.awk
15817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 _ACAWK
15819 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15820 for (key in S) S_is_set[key] = 1
15821 FS = ""
15822
15823 }
15824 {
15825 line = $ 0
15826 nfields = split(line, field, "@")
15827 substed = 0
15828 len = length(field[1])
15829 for (i = 2; i < nfields; i++) {
15830 key = field[i]
15831 keylen = length(key)
15832 if (S_is_set[key]) {
15833 value = S[key]
15834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15835 len += length(value) + length(field[++i])
15836 substed = 1
15837 } else
15838 len += 1 + keylen
15839 }
15840
15841 print line
15842 }
15843
15844 _ACAWK
15845 _ACEOF
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15848 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15849 else
15850 cat
15851 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15852 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15853 _ACEOF
15854
15855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15857 # trailing colons and then remove the whole line if VPATH becomes empty
15858 # (actually we leave an empty line to preserve line numbers).
15859 if test "x$srcdir" = x.; then
15860 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15861 h
15862 s///
15863 s/^/:/
15864 s/[ ]*$/:/
15865 s/:\$(srcdir):/:/g
15866 s/:\${srcdir}:/:/g
15867 s/:@srcdir@:/:/g
15868 s/^:*//
15869 s/:*$//
15870 x
15871 s/\(=[ ]*\).*/\1/
15872 G
15873 s/\n//
15874 s/^[^=]*=[ ]*$//
15875 }'
15876 fi
15877
15878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15879 fi # test -n "$CONFIG_FILES"
15880
15881 # Set up the scripts for CONFIG_HEADERS section.
15882 # No need to generate them if there are no CONFIG_HEADERS.
15883 # This happens for instance with `./config.status Makefile'.
15884 if test -n "$CONFIG_HEADERS"; then
15885 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15886 BEGIN {
15887 _ACEOF
15888
15889 # Transform confdefs.h into an awk script `defines.awk', embedded as
15890 # here-document in config.status, that substitutes the proper values into
15891 # config.h.in to produce config.h.
15892
15893 # Create a delimiter string that does not exist in confdefs.h, to ease
15894 # handling of long lines.
15895 ac_delim='%!_!# '
15896 for ac_last_try in false false :; do
15897 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15898 if test -z "$ac_tt"; then
15899 break
15900 elif $ac_last_try; then
15901 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15902 else
15903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15904 fi
15905 done
15906
15907 # For the awk script, D is an array of macro values keyed by name,
15908 # likewise P contains macro parameters if any. Preserve backslash
15909 # newline sequences.
15910
15911 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15912 sed -n '
15913 s/.\{148\}/&'"$ac_delim"'/g
15914 t rset
15915 :rset
15916 s/^[ ]*#[ ]*define[ ][ ]*/ /
15917 t def
15918 d
15919 :def
15920 s/\\$//
15921 t bsnl
15922 s/["\\]/\\&/g
15923 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15924 D["\1"]=" \3"/p
15925 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15926 d
15927 :bsnl
15928 s/["\\]/\\&/g
15929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15930 D["\1"]=" \3\\\\\\n"\\/p
15931 t cont
15932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15933 t cont
15934 d
15935 :cont
15936 n
15937 s/.\{148\}/&'"$ac_delim"'/g
15938 t clear
15939 :clear
15940 s/\\$//
15941 t bsnlc
15942 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15943 d
15944 :bsnlc
15945 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15946 b cont
15947 ' <confdefs.h | sed '
15948 s/'"$ac_delim"'/"\\\
15949 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15950
15951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15952 for (key in D) D_is_set[key] = 1
15953 FS = ""
15954 }
15955 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15956 line = \$ 0
15957 split(line, arg, " ")
15958 if (arg[1] == "#") {
15959 defundef = arg[2]
15960 mac1 = arg[3]
15961 } else {
15962 defundef = substr(arg[1], 2)
15963 mac1 = arg[2]
15964 }
15965 split(mac1, mac2, "(") #)
15966 macro = mac2[1]
15967 prefix = substr(line, 1, index(line, defundef) - 1)
15968 if (D_is_set[macro]) {
15969 # Preserve the white space surrounding the "#".
15970 print prefix "define", macro P[macro] D[macro]
15971 next
15972 } else {
15973 # Replace #undef with comments. This is necessary, for example,
15974 # in the case of _POSIX_SOURCE, which is predefined and required
15975 # on some systems where configure will not decide to define it.
15976 if (defundef == "undef") {
15977 print "/*", prefix defundef, macro, "*/"
15978 next
15979 }
15980 }
15981 }
15982 { print }
15983 _ACAWK
15984 _ACEOF
15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15986 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15987 fi # test -n "$CONFIG_HEADERS"
15988
15989
15990 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15991 shift
15992 for ac_tag
15993 do
15994 case $ac_tag in
15995 :[FHLC]) ac_mode=$ac_tag; continue;;
15996 esac
15997 case $ac_mode$ac_tag in
15998 :[FHL]*:*);;
15999 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16000 :[FH]-) ac_tag=-:-;;
16001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16002 esac
16003 ac_save_IFS=$IFS
16004 IFS=:
16005 set x $ac_tag
16006 IFS=$ac_save_IFS
16007 shift
16008 ac_file=$1
16009 shift
16010
16011 case $ac_mode in
16012 :L) ac_source=$1;;
16013 :[FH])
16014 ac_file_inputs=
16015 for ac_f
16016 do
16017 case $ac_f in
16018 -) ac_f="$ac_tmp/stdin";;
16019 *) # Look for the file first in the build tree, then in the source tree
16020 # (if the path is not absolute). The absolute path cannot be DOS-style,
16021 # because $ac_f cannot contain `:'.
16022 test -f "$ac_f" ||
16023 case $ac_f in
16024 [\\/$]*) false;;
16025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16026 esac ||
16027 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16028 esac
16029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16030 as_fn_append ac_file_inputs " '$ac_f'"
16031 done
16032
16033 # Let's still pretend it is `configure' which instantiates (i.e., don't
16034 # use $as_me), people would be surprised to read:
16035 # /* config.h. Generated by config.status. */
16036 configure_input='Generated from '`
16037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16038 `' by configure.'
16039 if test x"$ac_file" != x-; then
16040 configure_input="$ac_file. $configure_input"
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16042 $as_echo "$as_me: creating $ac_file" >&6;}
16043 fi
16044 # Neutralize special characters interpreted by sed in replacement strings.
16045 case $configure_input in #(
16046 *\&* | *\|* | *\\* )
16047 ac_sed_conf_input=`$as_echo "$configure_input" |
16048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16049 *) ac_sed_conf_input=$configure_input;;
16050 esac
16051
16052 case $ac_tag in
16053 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16055 esac
16056 ;;
16057 esac
16058
16059 ac_dir=`$as_dirname -- "$ac_file" ||
16060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16061 X"$ac_file" : 'X\(//\)[^/]' \| \
16062 X"$ac_file" : 'X\(//\)$' \| \
16063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16064 $as_echo X"$ac_file" |
16065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16066 s//\1/
16067 q
16068 }
16069 /^X\(\/\/\)[^/].*/{
16070 s//\1/
16071 q
16072 }
16073 /^X\(\/\/\)$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\).*/{
16078 s//\1/
16079 q
16080 }
16081 s/.*/./; q'`
16082 as_dir="$ac_dir"; as_fn_mkdir_p
16083 ac_builddir=.
16084
16085 case "$ac_dir" in
16086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16087 *)
16088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16089 # A ".." for each directory in $ac_dir_suffix.
16090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16091 case $ac_top_builddir_sub in
16092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16094 esac ;;
16095 esac
16096 ac_abs_top_builddir=$ac_pwd
16097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16098 # for backward compatibility:
16099 ac_top_builddir=$ac_top_build_prefix
16100
16101 case $srcdir in
16102 .) # We are building in place.
16103 ac_srcdir=.
16104 ac_top_srcdir=$ac_top_builddir_sub
16105 ac_abs_top_srcdir=$ac_pwd ;;
16106 [\\/]* | ?:[\\/]* ) # Absolute name.
16107 ac_srcdir=$srcdir$ac_dir_suffix;
16108 ac_top_srcdir=$srcdir
16109 ac_abs_top_srcdir=$srcdir ;;
16110 *) # Relative name.
16111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16112 ac_top_srcdir=$ac_top_build_prefix$srcdir
16113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16114 esac
16115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16116
16117
16118 case $ac_mode in
16119 :F)
16120 #
16121 # CONFIG_FILE
16122 #
16123
16124 case $INSTALL in
16125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16127 esac
16128 ac_MKDIR_P=$MKDIR_P
16129 case $MKDIR_P in
16130 [\\/$]* | ?:[\\/]* ) ;;
16131 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16132 esac
16133 _ACEOF
16134
16135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16136 # If the template does not know about datarootdir, expand it.
16137 # FIXME: This hack should be removed a few years after 2.60.
16138 ac_datarootdir_hack=; ac_datarootdir_seen=
16139 ac_sed_dataroot='
16140 /datarootdir/ {
16141 p
16142 q
16143 }
16144 /@datadir@/p
16145 /@docdir@/p
16146 /@infodir@/p
16147 /@localedir@/p
16148 /@mandir@/p'
16149 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16150 *datarootdir*) ac_datarootdir_seen=yes;;
16151 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16153 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16156 ac_datarootdir_hack='
16157 s&@datadir@&$datadir&g
16158 s&@docdir@&$docdir&g
16159 s&@infodir@&$infodir&g
16160 s&@localedir@&$localedir&g
16161 s&@mandir@&$mandir&g
16162 s&\\\${datarootdir}&$datarootdir&g' ;;
16163 esac
16164 _ACEOF
16165
16166 # Neutralize VPATH when `$srcdir' = `.'.
16167 # Shell code in configure.ac might set extrasub.
16168 # FIXME: do we really want to maintain this feature?
16169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16170 ac_sed_extra="$ac_vpsub
16171 $extrasub
16172 _ACEOF
16173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16174 :t
16175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16176 s|@configure_input@|$ac_sed_conf_input|;t t
16177 s&@top_builddir@&$ac_top_builddir_sub&;t t
16178 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16179 s&@srcdir@&$ac_srcdir&;t t
16180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16181 s&@top_srcdir@&$ac_top_srcdir&;t t
16182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16183 s&@builddir@&$ac_builddir&;t t
16184 s&@abs_builddir@&$ac_abs_builddir&;t t
16185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16186 s&@INSTALL@&$ac_INSTALL&;t t
16187 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16188 $ac_datarootdir_hack
16189 "
16190 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16191 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16192
16193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16194 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16196 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16198 which seems to be undefined. Please make sure it is defined" >&5
16199 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16200 which seems to be undefined. Please make sure it is defined" >&2;}
16201
16202 rm -f "$ac_tmp/stdin"
16203 case $ac_file in
16204 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16205 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16206 esac \
16207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16208 ;;
16209 :H)
16210 #
16211 # CONFIG_HEADER
16212 #
16213 if test x"$ac_file" != x-; then
16214 {
16215 $as_echo "/* $configure_input */" \
16216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16217 } >"$ac_tmp/config.h" \
16218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16219 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16221 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16222 else
16223 rm -f "$ac_file"
16224 mv "$ac_tmp/config.h" "$ac_file" \
16225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16226 fi
16227 else
16228 $as_echo "/* $configure_input */" \
16229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16230 || as_fn_error $? "could not create -" "$LINENO" 5
16231 fi
16232 # Compute "$ac_file"'s index in $config_headers.
16233 _am_arg="$ac_file"
16234 _am_stamp_count=1
16235 for _am_header in $config_headers :; do
16236 case $_am_header in
16237 $_am_arg | $_am_arg:* )
16238 break ;;
16239 * )
16240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16241 esac
16242 done
16243 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16244 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16245 X"$_am_arg" : 'X\(//\)[^/]' \| \
16246 X"$_am_arg" : 'X\(//\)$' \| \
16247 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16248 $as_echo X"$_am_arg" |
16249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16250 s//\1/
16251 q
16252 }
16253 /^X\(\/\/\)[^/].*/{
16254 s//\1/
16255 q
16256 }
16257 /^X\(\/\/\)$/{
16258 s//\1/
16259 q
16260 }
16261 /^X\(\/\).*/{
16262 s//\1/
16263 q
16264 }
16265 s/.*/./; q'`/stamp-h$_am_stamp_count
16266 ;;
16267
16268 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16269 $as_echo "$as_me: executing $ac_file commands" >&6;}
16270 ;;
16271 esac
16272
16273
16274 case $ac_file$ac_mode in
16275 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16276 # Older Autoconf quotes --file arguments for eval, but not when files
16277 # are listed without --file. Let's play safe and only enable the eval
16278 # if we detect the quoting.
16279 case $CONFIG_FILES in
16280 *\'*) eval set x "$CONFIG_FILES" ;;
16281 *) set x $CONFIG_FILES ;;
16282 esac
16283 shift
16284 for mf
16285 do
16286 # Strip MF so we end up with the name of the file.
16287 mf=`echo "$mf" | sed -e 's/:.*$//'`
16288 # Check whether this is an Automake generated Makefile or not.
16289 # We used to match only the files named 'Makefile.in', but
16290 # some people rename them; so instead we look at the file content.
16291 # Grep'ing the first line is not enough: some people post-process
16292 # each Makefile.in and add a new line on top of each file to say so.
16293 # Grep'ing the whole file is not good either: AIX grep has a line
16294 # limit of 2048, but all sed's we know have understand at least 4000.
16295 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16296 dirpart=`$as_dirname -- "$mf" ||
16297 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16298 X"$mf" : 'X\(//\)[^/]' \| \
16299 X"$mf" : 'X\(//\)$' \| \
16300 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16301 $as_echo X"$mf" |
16302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16303 s//\1/
16304 q
16305 }
16306 /^X\(\/\/\)[^/].*/{
16307 s//\1/
16308 q
16309 }
16310 /^X\(\/\/\)$/{
16311 s//\1/
16312 q
16313 }
16314 /^X\(\/\).*/{
16315 s//\1/
16316 q
16317 }
16318 s/.*/./; q'`
16319 else
16320 continue
16321 fi
16322 # Extract the definition of DEPDIR, am__include, and am__quote
16323 # from the Makefile without running 'make'.
16324 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16325 test -z "$DEPDIR" && continue
16326 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16327 test -z "$am__include" && continue
16328 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16329 # Find all dependency output files, they are included files with
16330 # $(DEPDIR) in their names. We invoke sed twice because it is the
16331 # simplest approach to changing $(DEPDIR) to its actual value in the
16332 # expansion.
16333 for file in `sed -n "
16334 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16335 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16336 # Make sure the directory exists.
16337 test -f "$dirpart/$file" && continue
16338 fdir=`$as_dirname -- "$file" ||
16339 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16340 X"$file" : 'X\(//\)[^/]' \| \
16341 X"$file" : 'X\(//\)$' \| \
16342 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16343 $as_echo X"$file" |
16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16345 s//\1/
16346 q
16347 }
16348 /^X\(\/\/\)[^/].*/{
16349 s//\1/
16350 q
16351 }
16352 /^X\(\/\/\)$/{
16353 s//\1/
16354 q
16355 }
16356 /^X\(\/\).*/{
16357 s//\1/
16358 q
16359 }
16360 s/.*/./; q'`
16361 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16362 # echo "creating $dirpart/$file"
16363 echo '# dummy' > "$dirpart/$file"
16364 done
16365 done
16366 }
16367 ;;
16368 "libtool":C)
16369
16370 # See if we are running on zsh, and set the options that allow our
16371 # commands through without removal of \ escapes.
16372 if test -n "${ZSH_VERSION+set}"; then
16373 setopt NO_GLOB_SUBST
16374 fi
16375
16376 cfgfile=${ofile}T
16377 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16378 $RM "$cfgfile"
16379
16380 cat <<_LT_EOF >> "$cfgfile"
16381 #! $SHELL
16382 # Generated automatically by $as_me ($PACKAGE) $VERSION
16383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16385
16386 # Provide generalized library-building support services.
16387 # Written by Gordon Matzigkeit, 1996
16388
16389 # Copyright (C) 2014 Free Software Foundation, Inc.
16390 # This is free software; see the source for copying conditions. There is NO
16391 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16392
16393 # GNU Libtool is free software; you can redistribute it and/or modify
16394 # it under the terms of the GNU General Public License as published by
16395 # the Free Software Foundation; either version 2 of of the License, or
16396 # (at your option) any later version.
16397 #
16398 # As a special exception to the GNU General Public License, if you
16399 # distribute this file as part of a program or library that is built
16400 # using GNU Libtool, you may include this file under the same
16401 # distribution terms that you use for the rest of that program.
16402 #
16403 # GNU Libtool is distributed in the hope that it will be useful, but
16404 # WITHOUT ANY WARRANTY; without even the implied warranty of
16405 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16406 # GNU General Public License for more details.
16407 #
16408 # You should have received a copy of the GNU General Public License
16409 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16410
16411
16412 # The names of the tagged configurations supported by this script.
16413 available_tags=''
16414
16415 # Configured defaults for sys_lib_dlsearch_path munging.
16416 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16417
16418 # ### BEGIN LIBTOOL CONFIG
16419
16420 # Which release of libtool.m4 was used?
16421 macro_version=$macro_version
16422 macro_revision=$macro_revision
16423
16424 # Whether or not to build shared libraries.
16425 build_libtool_libs=$enable_shared
16426
16427 # Whether or not to build static libraries.
16428 build_old_libs=$enable_static
16429
16430 # What type of objects to build.
16431 pic_mode=$pic_mode
16432
16433 # Whether or not to optimize for fast installation.
16434 fast_install=$enable_fast_install
16435
16436 # Shared archive member basename,for filename based shared library versioning on AIX.
16437 shared_archive_member_spec=$shared_archive_member_spec
16438
16439 # Shell to use when invoking shell scripts.
16440 SHELL=$lt_SHELL
16441
16442 # An echo program that protects backslashes.
16443 ECHO=$lt_ECHO
16444
16445 # The PATH separator for the build system.
16446 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16447
16448 # The host system.
16449 host_alias=$host_alias
16450 host=$host
16451 host_os=$host_os
16452
16453 # The build system.
16454 build_alias=$build_alias
16455 build=$build
16456 build_os=$build_os
16457
16458 # A sed program that does not truncate output.
16459 SED=$lt_SED
16460
16461 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16462 Xsed="\$SED -e 1s/^X//"
16463
16464 # A grep program that handles long lines.
16465 GREP=$lt_GREP
16466
16467 # An ERE matcher.
16468 EGREP=$lt_EGREP
16469
16470 # A literal string matcher.
16471 FGREP=$lt_FGREP
16472
16473 # A BSD- or MS-compatible name lister.
16474 NM=$lt_NM
16475
16476 # Whether we need soft or hard links.
16477 LN_S=$lt_LN_S
16478
16479 # What is the maximum length of a command?
16480 max_cmd_len=$max_cmd_len
16481
16482 # Object file suffix (normally "o").
16483 objext=$ac_objext
16484
16485 # Executable file suffix (normally "").
16486 exeext=$exeext
16487
16488 # whether the shell understands "unset".
16489 lt_unset=$lt_unset
16490
16491 # turn spaces into newlines.
16492 SP2NL=$lt_lt_SP2NL
16493
16494 # turn newlines into spaces.
16495 NL2SP=$lt_lt_NL2SP
16496
16497 # convert \$build file names to \$host format.
16498 to_host_file_cmd=$lt_cv_to_host_file_cmd
16499
16500 # convert \$build files to toolchain format.
16501 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16502
16503 # An object symbol dumper.
16504 OBJDUMP=$lt_OBJDUMP
16505
16506 # Method to check whether dependent libraries are shared objects.
16507 deplibs_check_method=$lt_deplibs_check_method
16508
16509 # Command to use when deplibs_check_method = "file_magic".
16510 file_magic_cmd=$lt_file_magic_cmd
16511
16512 # How to find potential files when deplibs_check_method = "file_magic".
16513 file_magic_glob=$lt_file_magic_glob
16514
16515 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16516 want_nocaseglob=$lt_want_nocaseglob
16517
16518 # DLL creation program.
16519 DLLTOOL=$lt_DLLTOOL
16520
16521 # Command to associate shared and link libraries.
16522 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16523
16524 # The archiver.
16525 AR=$lt_AR
16526
16527 # Flags to create an archive.
16528 AR_FLAGS=$lt_AR_FLAGS
16529
16530 # How to feed a file listing to the archiver.
16531 archiver_list_spec=$lt_archiver_list_spec
16532
16533 # A symbol stripping program.
16534 STRIP=$lt_STRIP
16535
16536 # Commands used to install an old-style archive.
16537 RANLIB=$lt_RANLIB
16538 old_postinstall_cmds=$lt_old_postinstall_cmds
16539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16540
16541 # Whether to use a lock for old archive extraction.
16542 lock_old_archive_extraction=$lock_old_archive_extraction
16543
16544 # A C compiler.
16545 LTCC=$lt_CC
16546
16547 # LTCC compiler flags.
16548 LTCFLAGS=$lt_CFLAGS
16549
16550 # Take the output of nm and produce a listing of raw symbols and C names.
16551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16552
16553 # Transform the output of nm in a proper C declaration.
16554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16555
16556 # Transform the output of nm into a list of symbols to manually relocate.
16557 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16558
16559 # Transform the output of nm in a C name address pair.
16560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16561
16562 # Transform the output of nm in a C name address pair when lib prefix is needed.
16563 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16564
16565 # The name lister interface.
16566 nm_interface=$lt_lt_cv_nm_interface
16567
16568 # Specify filename containing input files for \$NM.
16569 nm_file_list_spec=$lt_nm_file_list_spec
16570
16571 # The root where to search for dependent libraries,and where our libraries should be installed.
16572 lt_sysroot=$lt_sysroot
16573
16574 # Command to truncate a binary pipe.
16575 lt_truncate_bin=$lt_lt_cv_truncate_bin
16576
16577 # The name of the directory that contains temporary libtool files.
16578 objdir=$objdir
16579
16580 # Used to examine libraries when file_magic_cmd begins with "file".
16581 MAGIC_CMD=$MAGIC_CMD
16582
16583 # Must we lock files when doing compilation?
16584 need_locks=$lt_need_locks
16585
16586 # Manifest tool.
16587 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16588
16589 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16590 DSYMUTIL=$lt_DSYMUTIL
16591
16592 # Tool to change global to local symbols on Mac OS X.
16593 NMEDIT=$lt_NMEDIT
16594
16595 # Tool to manipulate fat objects and archives on Mac OS X.
16596 LIPO=$lt_LIPO
16597
16598 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16599 OTOOL=$lt_OTOOL
16600
16601 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16602 OTOOL64=$lt_OTOOL64
16603
16604 # Old archive suffix (normally "a").
16605 libext=$libext
16606
16607 # Shared library suffix (normally ".so").
16608 shrext_cmds=$lt_shrext_cmds
16609
16610 # The commands to extract the exported symbol list from a shared archive.
16611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16612
16613 # Variables whose values should be saved in libtool wrapper scripts and
16614 # restored at link time.
16615 variables_saved_for_relink=$lt_variables_saved_for_relink
16616
16617 # Do we need the "lib" prefix for modules?
16618 need_lib_prefix=$need_lib_prefix
16619
16620 # Do we need a version for libraries?
16621 need_version=$need_version
16622
16623 # Library versioning type.
16624 version_type=$version_type
16625
16626 # Shared library runtime path variable.
16627 runpath_var=$runpath_var
16628
16629 # Shared library path variable.
16630 shlibpath_var=$shlibpath_var
16631
16632 # Is shlibpath searched before the hard-coded library search path?
16633 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16634
16635 # Format of library name prefix.
16636 libname_spec=$lt_libname_spec
16637
16638 # List of archive names. First name is the real one, the rest are links.
16639 # The last name is the one that the linker finds with -lNAME
16640 library_names_spec=$lt_library_names_spec
16641
16642 # The coded name of the library, if different from the real name.
16643 soname_spec=$lt_soname_spec
16644
16645 # Permission mode override for installation of shared libraries.
16646 install_override_mode=$lt_install_override_mode
16647
16648 # Command to use after installation of a shared archive.
16649 postinstall_cmds=$lt_postinstall_cmds
16650
16651 # Command to use after uninstallation of a shared archive.
16652 postuninstall_cmds=$lt_postuninstall_cmds
16653
16654 # Commands used to finish a libtool library installation in a directory.
16655 finish_cmds=$lt_finish_cmds
16656
16657 # As "finish_cmds", except a single script fragment to be evaled but
16658 # not shown.
16659 finish_eval=$lt_finish_eval
16660
16661 # Whether we should hardcode library paths into libraries.
16662 hardcode_into_libs=$hardcode_into_libs
16663
16664 # Compile-time system search path for libraries.
16665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16666
16667 # Detected run-time system search path for libraries.
16668 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16669
16670 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16671 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16672
16673 # Whether dlopen is supported.
16674 dlopen_support=$enable_dlopen
16675
16676 # Whether dlopen of programs is supported.
16677 dlopen_self=$enable_dlopen_self
16678
16679 # Whether dlopen of statically linked programs is supported.
16680 dlopen_self_static=$enable_dlopen_self_static
16681
16682 # Commands to strip libraries.
16683 old_striplib=$lt_old_striplib
16684 striplib=$lt_striplib
16685
16686
16687 # The linker used to build libraries.
16688 LD=$lt_LD
16689
16690 # How to create reloadable object files.
16691 reload_flag=$lt_reload_flag
16692 reload_cmds=$lt_reload_cmds
16693
16694 # Commands used to build an old-style archive.
16695 old_archive_cmds=$lt_old_archive_cmds
16696
16697 # A language specific compiler.
16698 CC=$lt_compiler
16699
16700 # Is the compiler the GNU compiler?
16701 with_gcc=$GCC
16702
16703 # Compiler flag to turn off builtin functions.
16704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16705
16706 # Additional compiler flags for building library objects.
16707 pic_flag=$lt_lt_prog_compiler_pic
16708
16709 # How to pass a linker flag through the compiler.
16710 wl=$lt_lt_prog_compiler_wl
16711
16712 # Compiler flag to prevent dynamic linking.
16713 link_static_flag=$lt_lt_prog_compiler_static
16714
16715 # Does compiler simultaneously support -c and -o options?
16716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16717
16718 # Whether or not to add -lc for building shared libraries.
16719 build_libtool_need_lc=$archive_cmds_need_lc
16720
16721 # Whether or not to disallow shared libs when runtime libs are static.
16722 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16723
16724 # Compiler flag to allow reflexive dlopens.
16725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16726
16727 # Compiler flag to generate shared objects directly from archives.
16728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16729
16730 # Whether the compiler copes with passing no objects directly.
16731 compiler_needs_object=$lt_compiler_needs_object
16732
16733 # Create an old-style archive from a shared archive.
16734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16735
16736 # Create a temporary old-style archive to link instead of a shared archive.
16737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16738
16739 # Commands used to build a shared archive.
16740 archive_cmds=$lt_archive_cmds
16741 archive_expsym_cmds=$lt_archive_expsym_cmds
16742
16743 # Commands used to build a loadable module if different from building
16744 # a shared archive.
16745 module_cmds=$lt_module_cmds
16746 module_expsym_cmds=$lt_module_expsym_cmds
16747
16748 # Whether we are building with GNU ld or not.
16749 with_gnu_ld=$lt_with_gnu_ld
16750
16751 # Flag that allows shared libraries with undefined symbols to be built.
16752 allow_undefined_flag=$lt_allow_undefined_flag
16753
16754 # Flag that enforces no undefined symbols.
16755 no_undefined_flag=$lt_no_undefined_flag
16756
16757 # Flag to hardcode \$libdir into a binary during linking.
16758 # This must work even if \$libdir does not exist
16759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16760
16761 # Whether we need a single "-rpath" flag with a separated argument.
16762 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16763
16764 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16765 # DIR into the resulting binary.
16766 hardcode_direct=$hardcode_direct
16767
16768 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16769 # DIR into the resulting binary and the resulting library dependency is
16770 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16771 # library is relocated.
16772 hardcode_direct_absolute=$hardcode_direct_absolute
16773
16774 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16775 # into the resulting binary.
16776 hardcode_minus_L=$hardcode_minus_L
16777
16778 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16779 # into the resulting binary.
16780 hardcode_shlibpath_var=$hardcode_shlibpath_var
16781
16782 # Set to "yes" if building a shared library automatically hardcodes DIR
16783 # into the library and all subsequent libraries and executables linked
16784 # against it.
16785 hardcode_automatic=$hardcode_automatic
16786
16787 # Set to yes if linker adds runtime paths of dependent libraries
16788 # to runtime path list.
16789 inherit_rpath=$inherit_rpath
16790
16791 # Whether libtool must link a program against all its dependency libraries.
16792 link_all_deplibs=$link_all_deplibs
16793
16794 # Set to "yes" if exported symbols are required.
16795 always_export_symbols=$always_export_symbols
16796
16797 # The commands to list exported symbols.
16798 export_symbols_cmds=$lt_export_symbols_cmds
16799
16800 # Symbols that should not be listed in the preloaded symbols.
16801 exclude_expsyms=$lt_exclude_expsyms
16802
16803 # Symbols that must always be exported.
16804 include_expsyms=$lt_include_expsyms
16805
16806 # Commands necessary for linking programs (against libraries) with templates.
16807 prelink_cmds=$lt_prelink_cmds
16808
16809 # Commands necessary for finishing linking programs.
16810 postlink_cmds=$lt_postlink_cmds
16811
16812 # Specify filename containing input files.
16813 file_list_spec=$lt_file_list_spec
16814
16815 # How to hardcode a shared library path into an executable.
16816 hardcode_action=$hardcode_action
16817
16818 # ### END LIBTOOL CONFIG
16819
16820 _LT_EOF
16821
16822 cat <<'_LT_EOF' >> "$cfgfile"
16823
16824 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16825
16826 # func_munge_path_list VARIABLE PATH
16827 # -----------------------------------
16828 # VARIABLE is name of variable containing _space_ separated list of
16829 # directories to be munged by the contents of PATH, which is string
16830 # having a format:
16831 # "DIR[:DIR]:"
16832 # string "DIR[ DIR]" will be prepended to VARIABLE
16833 # ":DIR[:DIR]"
16834 # string "DIR[ DIR]" will be appended to VARIABLE
16835 # "DIRP[:DIRP]::[DIRA:]DIRA"
16836 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16837 # "DIRA[ DIRA]" will be appended to VARIABLE
16838 # "DIR[:DIR]"
16839 # VARIABLE will be replaced by "DIR[ DIR]"
16840 func_munge_path_list ()
16841 {
16842 case x$2 in
16843 x)
16844 ;;
16845 *:)
16846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16847 ;;
16848 x:*)
16849 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16850 ;;
16851 *::*)
16852 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16853 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16854 ;;
16855 *)
16856 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16857 ;;
16858 esac
16859 }
16860
16861
16862 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16863 func_cc_basename ()
16864 {
16865 for cc_temp in $*""; do
16866 case $cc_temp in
16867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16869 \-*) ;;
16870 *) break;;
16871 esac
16872 done
16873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16874 }
16875
16876
16877 # ### END FUNCTIONS SHARED WITH CONFIGURE
16878
16879 _LT_EOF
16880
16881 case $host_os in
16882 aix3*)
16883 cat <<\_LT_EOF >> "$cfgfile"
16884 # AIX sometimes has problems with the GCC collect2 program. For some
16885 # reason, if we set the COLLECT_NAMES environment variable, the problems
16886 # vanish in a puff of smoke.
16887 if test set != "${COLLECT_NAMES+set}"; then
16888 COLLECT_NAMES=
16889 export COLLECT_NAMES
16890 fi
16891 _LT_EOF
16892 ;;
16893 esac
16894
16895
16896 ltmain=$ac_aux_dir/ltmain.sh
16897
16898
16899 # We use sed instead of cat because bash on DJGPP gets confused if
16900 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16901 # text mode, it properly converts lines to CR/LF. This bash problem
16902 # is reportedly fixed, but why not run on old versions too?
16903 sed '$q' "$ltmain" >> "$cfgfile" \
16904 || (rm -f "$cfgfile"; exit 1)
16905
16906 mv -f "$cfgfile" "$ofile" ||
16907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16908 chmod +x "$ofile"
16909
16910 ;;
16911
16912 esac
16913 done # for ac_tag
16914
16915
16916 as_fn_exit 0
16917 _ACEOF
16918 ac_clean_files=$ac_clean_files_save
16919
16920 test $ac_write_fail = 0 ||
16921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16922
16923
16924 # configure is writing to config.log, and then calls config.status.
16925 # config.status does its own redirection, appending to config.log.
16926 # Unfortunately, on DOS this fails, as config.log is still kept open
16927 # by configure, so config.status won't be able to write to it; its
16928 # output is simply discarded. So we exec the FD to /dev/null,
16929 # effectively closing config.log, so it can be properly (re)opened and
16930 # appended to by config.status. When coming back to configure, we
16931 # need to make the FD available again.
16932 if test "$no_create" != yes; then
16933 ac_cs_success=:
16934 ac_config_status_args=
16935 test "$silent" = yes &&
16936 ac_config_status_args="$ac_config_status_args --quiet"
16937 exec 5>/dev/null
16938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16939 exec 5>>config.log
16940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16941 # would make configure fail if this is the last instruction.
16942 $ac_cs_success || as_fn_exit 1
16943 fi
16944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16946 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16947 fi
16948