ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.4/configure
Revision: 5065
Committed: Mon Dec 22 14:25:58 2014 UTC (9 years, 3 months ago) by michael
Original Path: hopm/trunk/configure
File size: 468802 byte(s)
Log Message:
- Added doc/Makefile.am

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1.
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 bug-autoconf@gnu.org 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='hopm'
589 PACKAGE_TARNAME='hopm'
590 PACKAGE_VERSION='1.0.0beta1'
591 PACKAGE_STRING='hopm 1.0.0beta1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/opercmd.h"
596 ac_default_prefix=\${HOME}/hopm
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 enable_option_checking=no
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 subdirs
639 LEXLIB
640 LEX_OUTPUT_ROOT
641 LEX
642 YFLAGS
643 YACC
644 CPP
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 MAINT
692 MAINTAINER_MODE_FALSE
693 MAINTAINER_MODE_TRUE
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_maintainer_mode
764 with_extra_fascism
765 enable_dependency_tracking
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_aix_soname
771 with_gnu_ld
772 with_sysroot
773 enable_libtool_lock
774 with_werror
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 YACC
786 YFLAGS'
787 ac_subdirs_all='src/libopm'
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of hopm 1.0.0beta1:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful (and
1409 sometimes confusing) to the casual installer
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-extra-fascism Add extra gcc3-specific warning flags
1424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-aix-soname=aix|svr4|both
1427 shared library versioning (aka "SONAME") variant to
1428 provide on AIX, [default=aix].
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431 compiler's sysroot if not specified).
1432 --with-werror use -Werror to abort compilation on any warning
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 YACC The `Yet Another Compiler Compiler' implementation to use.
1444 Defaults to the first program found out of: `bison -y', `byacc',
1445 `yacc'.
1446 YFLAGS The list of arguments that will be passed by default to $YACC.
1447 This script will default YFLAGS to the empty string to avoid a
1448 default value of `-d' given by some make applications.
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to the package provider.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 hopm configure 1.0.0beta1
1517 generated by GNU Autoconf 2.69
1518
1519 Copyright (C) 2012 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 test -x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603 fi
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_link
1613
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if eval \${$3+:} false; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1628 $4
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633 else
1634 eval "$3=no"
1635 fi
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 fi
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642
1643 } # ac_fn_c_check_header_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=$ac_status
1717 fi
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_run
1723
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1745
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1751
1752 #undef $2
1753
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1767
1768 int
1769 main ()
1770 {
1771 return $2 ();
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794 # the include files in INCLUDES and setting the cache variable VAR
1795 # accordingly.
1796 ac_fn_c_check_header_mongrel ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if eval \${$3+:} false; then :
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 else
1809 # Is the header compilable?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811 $as_echo_n "checking $2 usability... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_header_compiler=yes
1819 else
1820 ac_header_compiler=no
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824 $as_echo "$ac_header_compiler" >&6; }
1825
1826 # Is the header present?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828 $as_echo_n "checking $2 presence... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_cpp "$LINENO"; then :
1834 ac_header_preproc=yes
1835 else
1836 ac_header_preproc=no
1837 fi
1838 rm -f conftest.err conftest.i conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840 $as_echo "$ac_header_preproc" >&6; }
1841
1842 # So? What about this header?
1843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844 yes:no: )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850 no:yes:* )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 ;;
1862 esac
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 eval "$3=\$ac_header_compiler"
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 fi
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_header_mongrel
1877
1878 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879 # -------------------------------------------
1880 # Tests whether TYPE exists after having included INCLUDES, setting cache
1881 # variable VAR accordingly.
1882 ac_fn_c_check_type ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 else
1890 eval "$3=no"
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 int
1895 main ()
1896 {
1897 if (sizeof ($2))
1898 return 0;
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof (($2)))
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917
1918 else
1919 eval "$3=yes"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_type
1931
1932 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1933 # --------------------------------------------
1934 # Tries to find the compile-time value of EXPR in a program that includes
1935 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1936 # computed
1937 ac_fn_c_compute_int ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if test "$cross_compiling" = yes; then
1941 # Depending upon the size, compute the lo and hi bounds.
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 int
1946 main ()
1947 {
1948 static int test_array [1 - 2 * !(($2) >= 0)];
1949 test_array [0] = 0;
1950 return test_array [0];
1951
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_lo=0 ac_mid=0
1958 while :; do
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 int
1963 main ()
1964 {
1965 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1966 test_array [0] = 0;
1967 return test_array [0];
1968
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_hi=$ac_mid; break
1975 else
1976 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1977 if test $ac_lo -le $ac_mid; then
1978 ac_lo= ac_hi=
1979 break
1980 fi
1981 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 done
1985 else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) < 0)];
1993 test_array [0] = 0;
1994 return test_array [0];
1995
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_hi=-1 ac_mid=-1
2002 while :; do
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 $4
2006 int
2007 main ()
2008 {
2009 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2010 test_array [0] = 0;
2011 return test_array [0];
2012
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_lo=$ac_mid; break
2019 else
2020 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2021 if test $ac_mid -le $ac_hi; then
2022 ac_lo= ac_hi=
2023 break
2024 fi
2025 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 else
2030 ac_lo= ac_hi=
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 # Binary search between lo and hi bounds.
2036 while test "x$ac_lo" != "x$ac_hi"; do
2037 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045 test_array [0] = 0;
2046 return test_array [0];
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=$ac_mid
2054 else
2055 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 done
2059 case $ac_lo in #((
2060 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061 '') ac_retval=1 ;;
2062 esac
2063 else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $4
2067 static long int longval () { return $2; }
2068 static unsigned long int ulongval () { return $2; }
2069 #include <stdio.h>
2070 #include <stdlib.h>
2071 int
2072 main ()
2073 {
2074
2075 FILE *f = fopen ("conftest.val", "w");
2076 if (! f)
2077 return 1;
2078 if (($2) < 0)
2079 {
2080 long int i = longval ();
2081 if (i != ($2))
2082 return 1;
2083 fprintf (f, "%ld", i);
2084 }
2085 else
2086 {
2087 unsigned long int i = ulongval ();
2088 if (i != ($2))
2089 return 1;
2090 fprintf (f, "%lu", i);
2091 }
2092 /* Do not output a trailing newline, as this causes \r\n confusion
2093 on some platforms. */
2094 return ferror (f) || fclose (f) != 0;
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_run "$LINENO"; then :
2101 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102 else
2103 ac_retval=1
2104 fi
2105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106 conftest.$ac_objext conftest.beam conftest.$ac_ext
2107 rm -f conftest.val
2108
2109 fi
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status $ac_retval
2112
2113 } # ac_fn_c_compute_int
2114 cat >config.log <<_ACEOF
2115 This file contains any messages produced by compilers while
2116 running configure, to aid debugging if configure makes a mistake.
2117
2118 It was created by hopm $as_me 1.0.0beta1, which was
2119 generated by GNU Autoconf 2.69. Invocation command line was
2120
2121 $ $0 $@
2122
2123 _ACEOF
2124 exec 5>>config.log
2125 {
2126 cat <<_ASUNAME
2127 ## --------- ##
2128 ## Platform. ##
2129 ## --------- ##
2130
2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136
2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2139
2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2147
2148 _ASUNAME
2149
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 $as_echo "PATH: $as_dir"
2156 done
2157 IFS=$as_save_IFS
2158
2159 } >&5
2160
2161 cat >&5 <<_ACEOF
2162
2163
2164 ## ----------- ##
2165 ## Core tests. ##
2166 ## ----------- ##
2167
2168 _ACEOF
2169
2170
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_configure_args=
2177 ac_configure_args0=
2178 ac_configure_args1=
2179 ac_must_keep_next=false
2180 for ac_pass in 1 2
2181 do
2182 for ac_arg
2183 do
2184 case $ac_arg in
2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187 | -silent | --silent | --silen | --sile | --sil)
2188 continue ;;
2189 *\'*)
2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 esac
2192 case $ac_pass in
2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194 2)
2195 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 if test $ac_must_keep_next = true; then
2197 ac_must_keep_next=false # Got value, back to normal.
2198 else
2199 case $ac_arg in
2200 *=* | --config-cache | -C | -disable-* | --disable-* \
2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203 | -with-* | --with-* | -without-* | --without-* | --x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 esac
2207 ;;
2208 -* ) ac_must_keep_next=true ;;
2209 esac
2210 fi
2211 as_fn_append ac_configure_args " '$ac_arg'"
2212 ;;
2213 esac
2214 done
2215 done
2216 { ac_configure_args0=; unset ac_configure_args0;}
2217 { ac_configure_args1=; unset ac_configure_args1;}
2218
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log. We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225 # Save into config.log some information that might help in debugging.
2226 {
2227 echo
2228
2229 $as_echo "## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##"
2232 echo
2233 # The following way of writing the cache mishandles newlines in values,
2234 (
2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in #(
2238 *${as_nl}*)
2239 case $ac_var in #(
2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242 esac
2243 case $ac_var in #(
2244 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;;
2247 esac ;;
2248 esac
2249 done
2250 (set) 2>&1 |
2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252 *${as_nl}ac_space=\ *)
2253 sed -n \
2254 "s/'\''/'\''\\\\'\'''\''/g;
2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256 ;; #(
2257 *)
2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259 ;;
2260 esac |
2261 sort
2262 )
2263 echo
2264
2265 $as_echo "## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##"
2268 echo
2269 for ac_var in $ac_subst_vars
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278
2279 if test -n "$ac_subst_files"; then
2280 $as_echo "## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##"
2283 echo
2284 for ac_var in $ac_subst_files
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2293 fi
2294
2295 if test -s confdefs.h; then
2296 $as_echo "## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##"
2299 echo
2300 cat confdefs.h
2301 echo
2302 fi
2303 test "$ac_signal" != 0 &&
2304 $as_echo "$as_me: caught signal $ac_signal"
2305 $as_echo "$as_me: exit $exit_status"
2306 } >&5
2307 rm -f core *.core core.conftest.* &&
2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309 exit $exit_status
2310 ' 0
2311 for ac_signal in 1 2 13 15; do
2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 done
2314 ac_signal=0
2315
2316 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317 rm -f -r conftest* confdefs.h
2318
2319 $as_echo "/* confdefs.h */" > confdefs.h
2320
2321 # Predefined preprocessor variables.
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_NAME "$PACKAGE_NAME"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_STRING "$PACKAGE_STRING"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_URL "$PACKAGE_URL"
2345 _ACEOF
2346
2347
2348 # Let the site file select an alternate cache file if it wants to.
2349 # Prefer an explicitly selected file to automatically selected ones.
2350 ac_site_file1=NONE
2351 ac_site_file2=NONE
2352 if test -n "$CONFIG_SITE"; then
2353 # We do not want a PATH search for config.site.
2354 case $CONFIG_SITE in #((
2355 -*) ac_site_file1=./$CONFIG_SITE;;
2356 */*) ac_site_file1=$CONFIG_SITE;;
2357 *) ac_site_file1=./$CONFIG_SITE;;
2358 esac
2359 elif test "x$prefix" != xNONE; then
2360 ac_site_file1=$prefix/share/config.site
2361 ac_site_file2=$prefix/etc/config.site
2362 else
2363 ac_site_file1=$ac_default_prefix/share/config.site
2364 ac_site_file2=$ac_default_prefix/etc/config.site
2365 fi
2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2367 do
2368 test "x$ac_site_file" = xNONE && continue
2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 sed 's/^/| /' "$ac_site_file" >&5
2373 . "$ac_site_file" \
2374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 as_fn_error $? "failed to load site script $ac_site_file
2377 See \`config.log' for more details" "$LINENO" 5; }
2378 fi
2379 done
2380
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special files
2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 case $cache_file in
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2390 esac
2391 fi
2392 else
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2395 >$cache_file
2396 fi
2397
2398 # Check that the precious variables saved in the cache have kept the same
2399 # value.
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2407 set,)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,set)
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2415 ,);;
2416 *)
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x $ac_old_val`
2420 ac_new_val_w=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted=:
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2434 fi;;
2435 esac
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2438 case $ac_new_val in
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2441 esac
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 esac
2446 fi
2447 done
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2454 fi
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2458
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466
2467 ac_config_headers="$ac_config_headers src/setup.h"
2468
2469 am__api_version='1.14'
2470
2471 ac_aux_dir=
2472 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2473 if test -f "$ac_dir/install-sh"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/install-sh -c"
2476 break
2477 elif test -f "$ac_dir/install.sh"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/install.sh -c"
2480 break
2481 elif test -f "$ac_dir/shtool"; then
2482 ac_aux_dir=$ac_dir
2483 ac_install_sh="$ac_aux_dir/shtool install -c"
2484 break
2485 fi
2486 done
2487 if test -z "$ac_aux_dir"; then
2488 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2489 fi
2490
2491 # These three variables are undocumented and unsupported,
2492 # and are intended to be withdrawn in a future Autoconf release.
2493 # They can cause serious problems if a builder's source tree is in a directory
2494 # whose full name contains unusual characters.
2495 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2496 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2497 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498
2499
2500 # Find a good install program. We prefer a C program (faster),
2501 # so one script is as good as another. But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2506 # AIX /bin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 # Reject install programs that cannot install multiple files.
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2515 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2516 if test -z "$INSTALL"; then
2517 if ${ac_cv_path_install+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 # Account for people who put trailing slashes in PATH elements.
2526 case $as_dir/ in #((
2527 ./ | .// | /[cC]/* | \
2528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2529 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2530 /usr/ucb/* ) ;;
2531 *)
2532 # OSF1 and SCO ODT 3.0 have their own names for install.
2533 # Don't use installbsd from OSF since it installs stuff as root
2534 # by default.
2535 for ac_prog in ginstall scoinst install; do
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2538 if test $ac_prog = install &&
2539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540 # AIX install. It has an incompatible calling convention.
2541 :
2542 elif test $ac_prog = install &&
2543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544 # program-specific install script used by HP pwplus--don't use.
2545 :
2546 else
2547 rm -rf conftest.one conftest.two conftest.dir
2548 echo one > conftest.one
2549 echo two > conftest.two
2550 mkdir conftest.dir
2551 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552 test -s conftest.one && test -s conftest.two &&
2553 test -s conftest.dir/conftest.one &&
2554 test -s conftest.dir/conftest.two
2555 then
2556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557 break 3
2558 fi
2559 fi
2560 fi
2561 done
2562 done
2563 ;;
2564 esac
2565
2566 done
2567 IFS=$as_save_IFS
2568
2569 rm -rf conftest.one conftest.two conftest.dir
2570
2571 fi
2572 if test "${ac_cv_path_install+set}" = set; then
2573 INSTALL=$ac_cv_path_install
2574 else
2575 # As a last resort, use the slow shell script. Don't cache a
2576 # value for INSTALL within a source directory, because that will
2577 # break other packages using the cache if that directory is
2578 # removed, or if the value is a relative name.
2579 INSTALL=$ac_install_sh
2580 fi
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2583 $as_echo "$INSTALL" >&6; }
2584
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2594 $as_echo_n "checking whether build environment is sane... " >&6; }
2595 # Reject unsafe characters in $srcdir or the absolute working directory
2596 # name. Accept space and tab only in the latter.
2597 am_lf='
2598 '
2599 case `pwd` in
2600 *[\\\"\#\$\&\'\`$am_lf]*)
2601 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2602 esac
2603 case $srcdir in
2604 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2605 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2606 esac
2607
2608 # Do 'set' in a subshell so we don't clobber the current shell's
2609 # arguments. Must try -L first in case configure is actually a
2610 # symlink; some systems play weird games with the mod time of symlinks
2611 # (eg FreeBSD returns the mod time of the symlink's containing
2612 # directory).
2613 if (
2614 am_has_slept=no
2615 for am_try in 1 2; do
2616 echo "timestamp, slept: $am_has_slept" > conftest.file
2617 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2618 if test "$*" = "X"; then
2619 # -L didn't work.
2620 set X `ls -t "$srcdir/configure" conftest.file`
2621 fi
2622 if test "$*" != "X $srcdir/configure conftest.file" \
2623 && test "$*" != "X conftest.file $srcdir/configure"; then
2624
2625 # If neither matched, then we have a broken ls. This can happen
2626 # if, for instance, CONFIG_SHELL is bash and it inherits a
2627 # broken ls alias from the environment. This has actually
2628 # happened. Such a system could not be considered "sane".
2629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2630 alias in your environment" "$LINENO" 5
2631 fi
2632 if test "$2" = conftest.file || test $am_try -eq 2; then
2633 break
2634 fi
2635 # Just in case.
2636 sleep 1
2637 am_has_slept=yes
2638 done
2639 test "$2" = conftest.file
2640 )
2641 then
2642 # Ok.
2643 :
2644 else
2645 as_fn_error $? "newly created file is older than distributed files!
2646 Check your system clock" "$LINENO" 5
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 # If we didn't sleep, we still need to ensure time stamps of config.status and
2651 # generated files are strictly newer.
2652 am_sleep_pid=
2653 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2654 ( sleep 1 ) &
2655 am_sleep_pid=$!
2656 fi
2657
2658 rm -f conftest.file
2659
2660 test "$program_prefix" != NONE &&
2661 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2662 # Use a double $ so make ignores it.
2663 test "$program_suffix" != NONE &&
2664 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2665 # Double any \ or $.
2666 # By default was `s,x,x', remove it if useless.
2667 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2668 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2669
2670 # expand $ac_aux_dir to an absolute path
2671 am_aux_dir=`cd $ac_aux_dir && pwd`
2672
2673 if test x"${MISSING+set}" != xset; then
2674 case $am_aux_dir in
2675 *\ * | *\ *)
2676 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2677 *)
2678 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2679 esac
2680 fi
2681 # Use eval to expand $SHELL
2682 if eval "$MISSING --is-lightweight"; then
2683 am_missing_run="$MISSING "
2684 else
2685 am_missing_run=
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2687 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2688 fi
2689
2690 if test x"${install_sh}" != xset; then
2691 case $am_aux_dir in
2692 *\ * | *\ *)
2693 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2694 *)
2695 install_sh="\${SHELL} $am_aux_dir/install-sh"
2696 esac
2697 fi
2698
2699 # Installed binaries are usually stripped using 'strip' when the user
2700 # run "make install-strip". However 'strip' might not be the right
2701 # tool to use in cross-compilation environments, therefore Automake
2702 # will honor the 'STRIP' environment variable to overrule this program.
2703 if test "$cross_compiling" != no; then
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}strip; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_STRIP+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$STRIP"; then
2713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 STRIP=$ac_cv_prog_STRIP
2733 if test -n "$STRIP"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735 $as_echo "$STRIP" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$ac_cv_prog_STRIP"; then
2744 ac_ct_STRIP=$STRIP
2745 # Extract the first word of "strip", so it can be a program name with args.
2746 set dummy strip; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 if test -n "$ac_ct_STRIP"; then
2753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762 ac_cv_prog_ac_ct_STRIP="strip"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766 done
2767 done
2768 IFS=$as_save_IFS
2769
2770 fi
2771 fi
2772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773 if test -n "$ac_ct_STRIP"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775 $as_echo "$ac_ct_STRIP" >&6; }
2776 else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2779 fi
2780
2781 if test "x$ac_ct_STRIP" = x; then
2782 STRIP=":"
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785 yes:)
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2789 esac
2790 STRIP=$ac_ct_STRIP
2791 fi
2792 else
2793 STRIP="$ac_cv_prog_STRIP"
2794 fi
2795
2796 fi
2797 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2801 if test -z "$MKDIR_P"; then
2802 if ${ac_cv_path_mkdir+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_prog in mkdir gmkdir; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2813 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814 'mkdir (GNU coreutils) '* | \
2815 'mkdir (coreutils) '* | \
2816 'mkdir (fileutils) '4.1*)
2817 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2818 break 3;;
2819 esac
2820 done
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826
2827 test -d ./--version && rmdir ./--version
2828 if test "${ac_cv_path_mkdir+set}" = set; then
2829 MKDIR_P="$ac_cv_path_mkdir -p"
2830 else
2831 # As a last resort, use the slow shell script. Don't cache a
2832 # value for MKDIR_P within a source directory, because that will
2833 # break other packages using the cache if that directory is
2834 # removed, or if the value is a relative name.
2835 MKDIR_P="$ac_install_sh -d"
2836 fi
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839 $as_echo "$MKDIR_P" >&6; }
2840
2841 for ac_prog in gawk mawk nawk awk
2842 do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_AWK+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$AWK"; then
2851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_AWK="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 AWK=$ac_cv_prog_AWK
2871 if test -n "$AWK"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2873 $as_echo "$AWK" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 test -n "$AWK" && break
2881 done
2882
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885 set x ${MAKE-make}
2886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 cat >conftest.make <<\_ACEOF
2891 SHELL = /bin/sh
2892 all:
2893 @echo '@@@%%%=$(MAKE)=@@@%%%'
2894 _ACEOF
2895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897 *@@@%%%=?*=@@@%%%*)
2898 eval ac_cv_prog_make_${ac_make}_set=yes;;
2899 *)
2900 eval ac_cv_prog_make_${ac_make}_set=no;;
2901 esac
2902 rm -f conftest.make
2903 fi
2904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 SET_MAKE=
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 SET_MAKE="MAKE=${MAKE-make}"
2912 fi
2913
2914 rm -rf .tst 2>/dev/null
2915 mkdir .tst 2>/dev/null
2916 if test -d .tst; then
2917 am__leading_dot=.
2918 else
2919 am__leading_dot=_
2920 fi
2921 rmdir .tst 2>/dev/null
2922
2923 # Check whether --enable-silent-rules was given.
2924 if test "${enable_silent_rules+set}" = set; then :
2925 enableval=$enable_silent_rules;
2926 fi
2927
2928 case $enable_silent_rules in # (((
2929 yes) AM_DEFAULT_VERBOSITY=0;;
2930 no) AM_DEFAULT_VERBOSITY=1;;
2931 *) AM_DEFAULT_VERBOSITY=1;;
2932 esac
2933 am_make=${MAKE-make}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2935 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2936 if ${am_cv_make_support_nested_variables+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if $as_echo 'TRUE=$(BAR$(V))
2940 BAR0=false
2941 BAR1=true
2942 V=1
2943 am__doit:
2944 @$(TRUE)
2945 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2946 am_cv_make_support_nested_variables=yes
2947 else
2948 am_cv_make_support_nested_variables=no
2949 fi
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2952 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2953 if test $am_cv_make_support_nested_variables = yes; then
2954 AM_V='$(V)'
2955 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2956 else
2957 AM_V=$AM_DEFAULT_VERBOSITY
2958 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2959 fi
2960 AM_BACKSLASH='\'
2961
2962 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2963 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2964 # is not polluted with repeated "-I."
2965 am__isrc=' -I$(srcdir)'
2966 # test to see if srcdir already configured
2967 if test -f $srcdir/config.status; then
2968 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2969 fi
2970 fi
2971
2972 # test whether we have cygpath
2973 if test -z "$CYGPATH_W"; then
2974 if (cygpath --version) >/dev/null 2>/dev/null; then
2975 CYGPATH_W='cygpath -w'
2976 else
2977 CYGPATH_W=echo
2978 fi
2979 fi
2980
2981
2982 # Define the identity of the package.
2983 PACKAGE='hopm'
2984 VERSION='1.0.0beta1'
2985
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE "$PACKAGE"
2989 _ACEOF
2990
2991
2992 cat >>confdefs.h <<_ACEOF
2993 #define VERSION "$VERSION"
2994 _ACEOF
2995
2996 # Some tools Automake needs.
2997
2998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2999
3000
3001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3002
3003
3004 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3005
3006
3007 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3008
3009
3010 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3011
3012 # For better backward compatibility. To be removed once Automake 1.9.x
3013 # dies out for good. For more background, see:
3014 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3015 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3016 mkdir_p='$(MKDIR_P)'
3017
3018 # We need awk for the "check" target. The system "awk" is bad on
3019 # some platforms.
3020 # Always define AMTAR for backward compatibility. Yes, it's still used
3021 # in the wild :-( We should find a proper way to deprecate it ...
3022 AMTAR='$${TAR-tar}'
3023
3024
3025 # We'll loop over all known methods to create a tar archive until one works.
3026 _am_tools='gnutar pax cpio none'
3027
3028 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3029
3030
3031
3032
3033
3034
3035 # POSIX will say in a future version that running "rm -f" with no argument
3036 # is OK; and we want to be able to make that assumption in our Makefile
3037 # recipes. So use an aggressive probe to check that the usage we want is
3038 # actually supported "in the wild" to an acceptable degree.
3039 # See automake bug#10828.
3040 # To make any issue more visible, cause the running configure to be aborted
3041 # by default if the 'rm' program in use doesn't match our expectations; the
3042 # user can still override this though.
3043 if rm -f && rm -fr && rm -rf; then : OK; else
3044 cat >&2 <<'END'
3045 Oops!
3046
3047 Your 'rm' program seems unable to run without file operands specified
3048 on the command line, even when the '-f' option is present. This is contrary
3049 to the behaviour of most rm programs out there, and not conforming with
3050 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3051
3052 Please tell bug-automake@gnu.org about your system, including the value
3053 of your $PATH and any error possibly output before this message. This
3054 can help us improve future automake versions.
3055
3056 END
3057 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3058 echo 'Configuration will proceed anyway, since you have set the' >&2
3059 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3060 echo >&2
3061 else
3062 cat >&2 <<'END'
3063 Aborting the configuration process, to ensure you take notice of the issue.
3064
3065 You can download and install GNU coreutils to get an 'rm' implementation
3066 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3067
3068 If you want to complete the configuration process using your problematic
3069 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3070 to "yes", and re-run configure.
3071
3072 END
3073 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3074 fi
3075 fi
3076
3077
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3079 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3080 # Check whether --enable-maintainer-mode was given.
3081 if test "${enable_maintainer_mode+set}" = set; then :
3082 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3083 else
3084 USE_MAINTAINER_MODE=no
3085 fi
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3088 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3089 if test $USE_MAINTAINER_MODE = yes; then
3090 MAINTAINER_MODE_TRUE=
3091 MAINTAINER_MODE_FALSE='#'
3092 else
3093 MAINTAINER_MODE_TRUE='#'
3094 MAINTAINER_MODE_FALSE=
3095 fi
3096
3097 MAINT=$MAINTAINER_MODE_TRUE
3098
3099
3100
3101
3102 # Check whether --with-extra-fascism was given.
3103 if test "${with_extra_fascism+set}" = set; then :
3104 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
3105 fi
3106
3107
3108
3109
3110
3111 DEPDIR="${am__leading_dot}deps"
3112
3113 ac_config_commands="$ac_config_commands depfiles"
3114
3115
3116 am_make=${MAKE-make}
3117 cat > confinc << 'END'
3118 am__doit:
3119 @echo this is the am__doit target
3120 .PHONY: am__doit
3121 END
3122 # If we don't find an include directive, just comment out the code.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3124 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3125 am__include="#"
3126 am__quote=
3127 _am_result=none
3128 # First try GNU make style include.
3129 echo "include confinc" > confmf
3130 # Ignore all kinds of additional output from 'make'.
3131 case `$am_make -s -f confmf 2> /dev/null` in #(
3132 *the\ am__doit\ target*)
3133 am__include=include
3134 am__quote=
3135 _am_result=GNU
3136 ;;
3137 esac
3138 # Now try BSD make style include.
3139 if test "$am__include" = "#"; then
3140 echo '.include "confinc"' > confmf
3141 case `$am_make -s -f confmf 2> /dev/null` in #(
3142 *the\ am__doit\ target*)
3143 am__include=.include
3144 am__quote="\""
3145 _am_result=BSD
3146 ;;
3147 esac
3148 fi
3149
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3152 $as_echo "$_am_result" >&6; }
3153 rm -f confinc confmf
3154
3155 # Check whether --enable-dependency-tracking was given.
3156 if test "${enable_dependency_tracking+set}" = set; then :
3157 enableval=$enable_dependency_tracking;
3158 fi
3159
3160 if test "x$enable_dependency_tracking" != xno; then
3161 am_depcomp="$ac_aux_dir/depcomp"
3162 AMDEPBACKSLASH='\'
3163 am__nodep='_no'
3164 fi
3165 if test "x$enable_dependency_tracking" != xno; then
3166 AMDEP_TRUE=
3167 AMDEP_FALSE='#'
3168 else
3169 AMDEP_TRUE='#'
3170 AMDEP_FALSE=
3171 fi
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_CC"; then
3219 ac_ct_CC=$CC
3220 # Extract the first word of "gcc", so it can be a program name with args.
3221 set dummy gcc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 fi
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_CC+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 ac_prog_rejected=no
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332 ac_prog_rejected=yes
3333 continue
3334 fi
3335 ac_cv_prog_CC="cc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 if test $ac_prog_rejected = yes; then
3344 # We found a bogon in the path, so make sure we never use it.
3345 set dummy $ac_cv_prog_CC
3346 shift
3347 if test $# != 0; then
3348 # We chose a different compiler from the bogus one.
3349 # However, it has the same basename, so the bogon will be chosen
3350 # first if we set CC to just the basename; use the full file name.
3351 shift
3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353 fi
3354 fi
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$CC" && break
3410 done
3411 fi
3412 if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 test -n "$ac_ct_CC" && break
3454 done
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 fi
3468
3469 fi
3470
3471
3472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details" "$LINENO" 5; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 fi
3497 rm -f conftest.er1 conftest.err
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3519 $as_echo_n "checking whether the C compiler works... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3552 do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 ;;
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 fi
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3572 * )
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3577
3578 else
3579 ac_file=''
3580 fi
3581 if test -z "$ac_file"; then :
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error 77 "C compiler cannot create executables
3590 See \`config.log' for more details" "$LINENO" 5; }
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3596 $as_echo_n "checking for C compiler default output file name... " >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3598 $as_echo "$ac_file" >&6; }
3599 ac_exeext=$ac_cv_exeext
3600
3601 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3604 $as_echo_n "checking for suffix of executables... " >&6; }
3605 if { { ac_try="$ac_link"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }; then :
3616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3618 # work properly (i.e., refer to `conftest.exe'), while it won't with
3619 # `rm'.
3620 for ac_file in conftest.exe conftest conftest.*; do
3621 test -f "$ac_file" || continue
3622 case $ac_file in
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 break;;
3626 * ) break;;
3627 esac
3628 done
3629 else
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3633 See \`config.log' for more details" "$LINENO" 5; }
3634 fi
3635 rm -f conftest conftest$ac_cv_exeext
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3637 $as_echo "$ac_cv_exeext" >&6; }
3638
3639 rm -f conftest.$ac_ext
3640 EXEEXT=$ac_cv_exeext
3641 ac_exeext=$EXEEXT
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 #include <stdio.h>
3645 int
3646 main ()
3647 {
3648 FILE *f = fopen ("conftest.out", "w");
3649 return ferror (f) || fclose (f) != 0;
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 ac_clean_files="$ac_clean_files conftest.out"
3656 # Check that the compiler produces executables we can run. If not, either
3657 # the compiler is broken, or we cross compile.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3659 $as_echo_n "checking whether we are cross compiling... " >&6; }
3660 if test "$cross_compiling" != yes; then
3661 { { ac_try="$ac_link"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }
3672 if { ac_try='./conftest$ac_cv_exeext'
3673 { { case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_try") 2>&5
3680 ac_status=$?
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }; }; then
3683 cross_compiling=no
3684 else
3685 if test "$cross_compiling" = maybe; then
3686 cross_compiling=yes
3687 else
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "cannot run C compiled programs.
3691 If you meant to cross compile, use \`--host'.
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 fi
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3697 $as_echo "$cross_compiling" >&6; }
3698
3699 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3700 ac_clean_files=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3702 $as_echo_n "checking for suffix of object files... " >&6; }
3703 if ${ac_cv_objext+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.o conftest.obj
3718 if { { ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compile") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 for ac_file in conftest.o conftest.obj conftest.*; do
3730 test -f "$ac_file" || continue;
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3733 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3734 break;;
3735 esac
3736 done
3737 else
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot compute suffix of object files: cannot compile
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 fi
3746 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3749 $as_echo "$ac_cv_objext" >&6; }
3750 OBJEXT=$ac_cv_objext
3751 ac_objext=$OBJEXT
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3754 if ${ac_cv_c_compiler_gnu+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763 #ifndef __GNUC__
3764 choke me
3765 #endif
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_compiler_gnu=yes
3773 else
3774 ac_compiler_gnu=no
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3781 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3782 if test $ac_compiler_gnu = yes; then
3783 GCC=yes
3784 else
3785 GCC=
3786 fi
3787 ac_test_CFLAGS=${CFLAGS+set}
3788 ac_save_CFLAGS=$CFLAGS
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3790 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3791 if ${ac_cv_prog_cc_g+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 ac_save_c_werror_flag=$ac_c_werror_flag
3795 ac_c_werror_flag=yes
3796 ac_cv_prog_cc_g=no
3797 CFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_g=yes
3811 else
3812 CFLAGS=""
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825
3826 else
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3828 CFLAGS="-g"
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831
3832 int
3833 main ()
3834 {
3835
3836 ;
3837 return 0;
3838 }
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_cv_prog_cc_g=yes
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3851 $as_echo "$ac_cv_prog_cc_g" >&6; }
3852 if test "$ac_test_CFLAGS" = set; then
3853 CFLAGS=$ac_save_CFLAGS
3854 elif test $ac_cv_prog_cc_g = yes; then
3855 if test "$GCC" = yes; then
3856 CFLAGS="-g -O2"
3857 else
3858 CFLAGS="-g"
3859 fi
3860 else
3861 if test "$GCC" = yes; then
3862 CFLAGS="-O2"
3863 else
3864 CFLAGS=
3865 fi
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3869 if ${ac_cv_prog_cc_c89+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_cv_prog_cc_c89=no
3873 ac_save_CC=$CC
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <stdarg.h>
3877 #include <stdio.h>
3878 struct stat;
3879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3880 struct buf { int x; };
3881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3882 static char *e (p, i)
3883 char **p;
3884 int i;
3885 {
3886 return p[i];
3887 }
3888 static char *f (char * (*g) (char **, int), char **p, ...)
3889 {
3890 char *s;
3891 va_list v;
3892 va_start (v,p);
3893 s = g (p, va_arg (v,int));
3894 va_end (v);
3895 return s;
3896 }
3897
3898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3899 function prototypes and stuff, but not '\xHH' hex character constants.
3900 These don't provoke an error unfortunately, instead are silently treated
3901 as 'x'. The following induces an error, until -std is added to get
3902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3903 array size at least. It's necessary to write '\x00'==0 to get something
3904 that's true only with -std. */
3905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3906
3907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3908 inside strings and character constants. */
3909 #define FOO(x) 'x'
3910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3911
3912 int test (int i, double x);
3913 struct s1 {int (*f) (int a);};
3914 struct s2 {int (*f) (double a);};
3915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3916 int argc;
3917 char **argv;
3918 int
3919 main ()
3920 {
3921 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3928 do
3929 CC="$ac_save_CC $ac_arg"
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_c89=$ac_arg
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext
3934 test "x$ac_cv_prog_cc_c89" != "xno" && break
3935 done
3936 rm -f conftest.$ac_ext
3937 CC=$ac_save_CC
3938
3939 fi
3940 # AC_CACHE_VAL
3941 case "x$ac_cv_prog_cc_c89" in
3942 x)
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3944 $as_echo "none needed" >&6; } ;;
3945 xno)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3947 $as_echo "unsupported" >&6; } ;;
3948 *)
3949 CC="$CC $ac_cv_prog_cc_c89"
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3952 esac
3953 if test "x$ac_cv_prog_cc_c89" != xno; then :
3954
3955 fi
3956
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3969 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3970 if ${am_cv_prog_cc_c_o+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 # Make sure it works both with $CC and with simple cc.
3985 # Following AC_PROG_CC_C_O, we do the test twice because some
3986 # compilers refuse to overwrite an existing .o file with -o,
3987 # though they will create one.
3988 am_cv_prog_cc_c_o=yes
3989 for am_i in 1 2; do
3990 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3991 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } \
3995 && test -f conftest2.$ac_objext; then
3996 : OK
3997 else
3998 am_cv_prog_cc_c_o=no
3999 break
4000 fi
4001 done
4002 rm -f core conftest*
4003 unset am_i
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4006 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4007 if test "$am_cv_prog_cc_c_o" != yes; then
4008 # Losing compiler, so override with the script.
4009 # FIXME: It is wrong to rewrite CC.
4010 # But if we don't then we get into trouble of one sort or another.
4011 # A longer-term fix would be to have automake use am__CC in this case,
4012 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4013 CC="$am_aux_dir/compile $CC"
4014 fi
4015 ac_ext=c
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020
4021
4022 depcc="$CC" am_compiler_list=
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4025 $as_echo_n "checking dependency style of $depcc... " >&6; }
4026 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030 # We make a subdir and do the tests there. Otherwise we can end up
4031 # making bogus files that we don't know about and never remove. For
4032 # instance it was reported that on HP-UX the gcc test will end up
4033 # making a dummy file named 'D' -- because '-MD' means "put the output
4034 # in D".
4035 rm -rf conftest.dir
4036 mkdir conftest.dir
4037 # Copy depcomp to subdir because otherwise we won't find it if we're
4038 # using a relative directory.
4039 cp "$am_depcomp" conftest.dir
4040 cd conftest.dir
4041 # We will build objects and dependencies in a subdirectory because
4042 # it helps to detect inapplicable dependency modes. For instance
4043 # both Tru64's cc and ICC support -MD to output dependencies as a
4044 # side effect of compilation, but ICC will put the dependencies in
4045 # the current directory while Tru64 will put them in the object
4046 # directory.
4047 mkdir sub
4048
4049 am_cv_CC_dependencies_compiler_type=none
4050 if test "$am_compiler_list" = ""; then
4051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052 fi
4053 am__universal=false
4054 case " $depcc " in #(
4055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056 esac
4057
4058 for depmode in $am_compiler_list; do
4059 # Setup a source with many dependencies, because some compilers
4060 # like to wrap large dependency lists on column 80 (with \), and
4061 # we should not choose a depcomp mode which is confused by this.
4062 #
4063 # We need to recreate these files for each test, as the compiler may
4064 # overwrite some of them when testing with obscure command lines.
4065 # This happens at least with the AIX C compiler.
4066 : > sub/conftest.c
4067 for i in 1 2 3 4 5 6; do
4068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4070 # Solaris 10 /bin/sh.
4071 echo '/* dummy */' > sub/conftst$i.h
4072 done
4073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle '-M -o', and we need to detect this. Also, some Intel
4078 # versions had trouble with output in subdirs.
4079 am__obj=sub/conftest.${OBJEXT-o}
4080 am__minus_obj="-o $am__obj"
4081 case $depmode in
4082 gcc)
4083 # This depmode causes a compiler race in universal mode.
4084 test "$am__universal" = false || continue
4085 ;;
4086 nosideeffect)
4087 # After this tag, mechanisms are not by side-effect, so they'll
4088 # only be used when explicitly requested.
4089 if test "x$enable_dependency_tracking" = xyes; then
4090 continue
4091 else
4092 break
4093 fi
4094 ;;
4095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4096 # This compiler won't grok '-c -o', but also, the minuso test has
4097 # not run yet. These depmodes are late enough in the game, and
4098 # so weak that their functioning should not be impacted.
4099 am__obj=conftest.${OBJEXT-o}
4100 am__minus_obj=
4101 ;;
4102 none) break ;;
4103 esac
4104 if depmode=$depmode \
4105 source=sub/conftest.c object=$am__obj \
4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108 >/dev/null 2>conftest.err &&
4109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113 # icc doesn't choke on unknown options, it will just issue warnings
4114 # or remarks (even with -Werror). So we grep stderr for any message
4115 # that says an option was ignored or not supported.
4116 # When given -MP, icc 7.0 and 7.1 complain thusly:
4117 # icc: Command line warning: ignoring option '-M'; no argument required
4118 # The diagnosis changed in icc 8.0:
4119 # icc: Command line remark: option '-MP' not supported
4120 if (grep 'ignoring option' conftest.err ||
4121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122 am_cv_CC_dependencies_compiler_type=$depmode
4123 break
4124 fi
4125 fi
4126 done
4127
4128 cd ..
4129 rm -rf conftest.dir
4130 else
4131 am_cv_CC_dependencies_compiler_type=none
4132 fi
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138
4139 if
4140 test "x$enable_dependency_tracking" != xno \
4141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142 am__fastdepCC_TRUE=
4143 am__fastdepCC_FALSE='#'
4144 else
4145 am__fastdepCC_TRUE='#'
4146 am__fastdepCC_FALSE=
4147 fi
4148
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4152 if ${ac_cv_prog_cc_c99+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 ac_cv_prog_cc_c99=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #include <stdarg.h>
4160 #include <stdbool.h>
4161 #include <stdlib.h>
4162 #include <wchar.h>
4163 #include <stdio.h>
4164
4165 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4166 #define debug(...) fprintf (stderr, __VA_ARGS__)
4167 #define showlist(...) puts (#__VA_ARGS__)
4168 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4169 static void
4170 test_varargs_macros (void)
4171 {
4172 int x = 1234;
4173 int y = 5678;
4174 debug ("Flag");
4175 debug ("X = %d\n", x);
4176 showlist (The first, second, and third items.);
4177 report (x>y, "x is %d but y is %d", x, y);
4178 }
4179
4180 // Check long long types.
4181 #define BIG64 18446744073709551615ull
4182 #define BIG32 4294967295ul
4183 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4184 #if !BIG_OK
4185 your preprocessor is broken;
4186 #endif
4187 #if BIG_OK
4188 #else
4189 your preprocessor is broken;
4190 #endif
4191 static long long int bignum = -9223372036854775807LL;
4192 static unsigned long long int ubignum = BIG64;
4193
4194 struct incomplete_array
4195 {
4196 int datasize;
4197 double data[];
4198 };
4199
4200 struct named_init {
4201 int number;
4202 const wchar_t *name;
4203 double average;
4204 };
4205
4206 typedef const char *ccp;
4207
4208 static inline int
4209 test_restrict (ccp restrict text)
4210 {
4211 // See if C++-style comments work.
4212 // Iterate through items via the restricted pointer.
4213 // Also check for declarations in for loops.
4214 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4215 continue;
4216 return 0;
4217 }
4218
4219 // Check varargs and va_copy.
4220 static void
4221 test_varargs (const char *format, ...)
4222 {
4223 va_list args;
4224 va_start (args, format);
4225 va_list args_copy;
4226 va_copy (args_copy, args);
4227
4228 const char *str;
4229 int number;
4230 float fnumber;
4231
4232 while (*format)
4233 {
4234 switch (*format++)
4235 {
4236 case 's': // string
4237 str = va_arg (args_copy, const char *);
4238 break;
4239 case 'd': // int
4240 number = va_arg (args_copy, int);
4241 break;
4242 case 'f': // float
4243 fnumber = va_arg (args_copy, double);
4244 break;
4245 default:
4246 break;
4247 }
4248 }
4249 va_end (args_copy);
4250 va_end (args);
4251 }
4252
4253 int
4254 main ()
4255 {
4256
4257 // Check bool.
4258 _Bool success = false;
4259
4260 // Check restrict.
4261 if (test_restrict ("String literal") == 0)
4262 success = true;
4263 char *restrict newvar = "Another string";
4264
4265 // Check varargs.
4266 test_varargs ("s, d' f .", "string", 65, 34.234);
4267 test_varargs_macros ();
4268
4269 // Check flexible array members.
4270 struct incomplete_array *ia =
4271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4272 ia->datasize = 10;
4273 for (int i = 0; i < ia->datasize; ++i)
4274 ia->data[i] = i * 1.234;
4275
4276 // Check named initializers.
4277 struct named_init ni = {
4278 .number = 34,
4279 .name = L"Test wide string",
4280 .average = 543.34343,
4281 };
4282
4283 ni.number = 58;
4284
4285 int dynamic_array[ni.number];
4286 dynamic_array[ni.number - 1] = 543;
4287
4288 // work around unused variable warnings
4289 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4290 || dynamic_array[ni.number - 1] != 543);
4291
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4297 do
4298 CC="$ac_save_CC $ac_arg"
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_prog_cc_c99=$ac_arg
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext
4303 test "x$ac_cv_prog_cc_c99" != "xno" && break
4304 done
4305 rm -f conftest.$ac_ext
4306 CC=$ac_save_CC
4307
4308 fi
4309 # AC_CACHE_VAL
4310 case "x$ac_cv_prog_cc_c99" in
4311 x)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313 $as_echo "none needed" >&6; } ;;
4314 xno)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316 $as_echo "unsupported" >&6; } ;;
4317 *)
4318 CC="$CC $ac_cv_prog_cc_c99"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4320 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4321 esac
4322 if test "x$ac_cv_prog_cc_c99" != xno; then :
4323
4324 fi
4325
4326
4327 if test "$ac_cv_prog_cc_c99" = "no"; then :
4328 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4329 fi
4330 case `pwd` in
4331 *\ * | *\ *)
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4333 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4334 esac
4335
4336
4337
4338 macro_version='2.4.4'
4339 macro_revision='2.4.4'
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353 ltmain=$ac_aux_dir/ltmain.sh
4354
4355 # Make sure we can run config.sub.
4356 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4357 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4358
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4360 $as_echo_n "checking build system type... " >&6; }
4361 if ${ac_cv_build+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 ac_build_alias=$build_alias
4365 test "x$ac_build_alias" = x &&
4366 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4367 test "x$ac_build_alias" = x &&
4368 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4370 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4371
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4374 $as_echo "$ac_cv_build" >&6; }
4375 case $ac_cv_build in
4376 *-*-*) ;;
4377 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4378 esac
4379 build=$ac_cv_build
4380 ac_save_IFS=$IFS; IFS='-'
4381 set x $ac_cv_build
4382 shift
4383 build_cpu=$1
4384 build_vendor=$2
4385 shift; shift
4386 # Remember, the first character of IFS is used to create $*,
4387 # except with old shells:
4388 build_os=$*
4389 IFS=$ac_save_IFS
4390 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4391
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4394 $as_echo_n "checking host system type... " >&6; }
4395 if ${ac_cv_host+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test "x$host_alias" = x; then
4399 ac_cv_host=$ac_cv_build
4400 else
4401 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4403 fi
4404
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4407 $as_echo "$ac_cv_host" >&6; }
4408 case $ac_cv_host in
4409 *-*-*) ;;
4410 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4411 esac
4412 host=$ac_cv_host
4413 ac_save_IFS=$IFS; IFS='-'
4414 set x $ac_cv_host
4415 shift
4416 host_cpu=$1
4417 host_vendor=$2
4418 shift; shift
4419 # Remember, the first character of IFS is used to create $*,
4420 # except with old shells:
4421 host_os=$*
4422 IFS=$ac_save_IFS
4423 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4424
4425
4426 # Backslashify metacharacters that are still active within
4427 # double-quoted strings.
4428 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4429
4430 # Same as above, but do not quote variable references.
4431 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4432
4433 # Sed substitution to delay expansion of an escaped shell variable in a
4434 # double_quote_subst'ed string.
4435 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4436
4437 # Sed substitution to delay expansion of an escaped single quote.
4438 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4439
4440 # Sed substitution to avoid accidental globbing in evaled expressions
4441 no_glob_subst='s/\*/\\\*/g'
4442
4443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4444 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4445 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4448 $as_echo_n "checking how to print strings... " >&6; }
4449 # Test print first, because it will be a builtin if present.
4450 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4451 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4452 ECHO='print -r --'
4453 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4454 ECHO='printf %s\n'
4455 else
4456 # Use this function as a fallback that always works.
4457 func_fallback_echo ()
4458 {
4459 eval 'cat <<_LTECHO_EOF
4460 $1
4461 _LTECHO_EOF'
4462 }
4463 ECHO='func_fallback_echo'
4464 fi
4465
4466 # func_echo_all arg...
4467 # Invoke $ECHO with all args, space-separated.
4468 func_echo_all ()
4469 {
4470 $ECHO ""
4471 }
4472
4473 case $ECHO in
4474 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4475 $as_echo "printf" >&6; } ;;
4476 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4477 $as_echo "print -r" >&6; } ;;
4478 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4479 $as_echo "cat" >&6; } ;;
4480 esac
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497 if ${ac_cv_path_SED+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501 for ac_i in 1 2 3 4 5 6 7; do
4502 ac_script="$ac_script$as_nl$ac_script"
4503 done
4504 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505 { ac_script=; unset ac_script;}
4506 if test -z "$SED"; then
4507 ac_path_SED_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in sed gsed; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_SED" || continue
4518 # Check for GNU ac_path_SED and select it if it is found.
4519 # Check for GNU $ac_path_SED
4520 case `"$ac_path_SED" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523 *)
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo '' >> "conftest.nl"
4532 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_SED_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_SED="$ac_path_SED"
4538 ac_path_SED_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546 $ac_path_SED_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_SED"; then
4552 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553 fi
4554 else
4555 ac_cv_path_SED=$SED
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560 $as_echo "$ac_cv_path_SED" >&6; }
4561 SED="$ac_cv_path_SED"
4562 rm -f conftest.sed
4563
4564 test -z "$SED" && SED=sed
4565 Xsed="$SED -e 1s/^X//"
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579 if ${ac_cv_path_GREP+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$GREP"; then
4583 ac_path_GREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in grep ggrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593 as_fn_executable_p "$ac_path_GREP" || continue
4594 # Check for GNU ac_path_GREP and select it if it is found.
4595 # Check for GNU $ac_path_GREP
4596 case `"$ac_path_GREP" --version 2>&1` in
4597 *GNU*)
4598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 *)
4600 ac_count=0
4601 $as_echo_n 0123456789 >"conftest.in"
4602 while :
4603 do
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo 'GREP' >> "conftest.nl"
4608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_GREP="$ac_path_GREP"
4614 ac_path_GREP_max=$ac_count
4615 fi
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4618 done
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 esac
4621
4622 $ac_path_GREP_found && break 3
4623 done
4624 done
4625 done
4626 IFS=$as_save_IFS
4627 if test -z "$ac_cv_path_GREP"; then
4628 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 fi
4630 else
4631 ac_cv_path_GREP=$GREP
4632 fi
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636 $as_echo "$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641 $as_echo_n "checking for egrep... " >&6; }
4642 if ${ac_cv_path_EGREP+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4647 else
4648 if test -z "$EGREP"; then
4649 ac_path_EGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in egrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 as_fn_executable_p "$ac_path_EGREP" || continue
4660 # Check for GNU ac_path_EGREP and select it if it is found.
4661 # Check for GNU $ac_path_EGREP
4662 case `"$ac_path_EGREP" --version 2>&1` in
4663 *GNU*)
4664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 *)
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4669 do
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'EGREP' >> "conftest.nl"
4674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_EGREP="$ac_path_EGREP"
4680 ac_path_EGREP_max=$ac_count
4681 fi
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4687
4688 $ac_path_EGREP_found && break 3
4689 done
4690 done
4691 done
4692 IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_EGREP"; then
4694 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 fi
4696 else
4697 ac_cv_path_EGREP=$EGREP
4698 fi
4699
4700 fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703 $as_echo "$ac_cv_path_EGREP" >&6; }
4704 EGREP="$ac_cv_path_EGREP"
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4708 $as_echo_n "checking for fgrep... " >&6; }
4709 if ${ac_cv_path_FGREP+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4713 then ac_cv_path_FGREP="$GREP -F"
4714 else
4715 if test -z "$FGREP"; then
4716 ac_path_FGREP_found=false
4717 # Loop through the user's path and test for each of PROGNAME-LIST
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_prog in fgrep; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4726 as_fn_executable_p "$ac_path_FGREP" || continue
4727 # Check for GNU ac_path_FGREP and select it if it is found.
4728 # Check for GNU $ac_path_FGREP
4729 case `"$ac_path_FGREP" --version 2>&1` in
4730 *GNU*)
4731 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4732 *)
4733 ac_count=0
4734 $as_echo_n 0123456789 >"conftest.in"
4735 while :
4736 do
4737 cat "conftest.in" "conftest.in" >"conftest.tmp"
4738 mv "conftest.tmp" "conftest.in"
4739 cp "conftest.in" "conftest.nl"
4740 $as_echo 'FGREP' >> "conftest.nl"
4741 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743 as_fn_arith $ac_count + 1 && ac_count=$as_val
4744 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4745 # Best one so far, save it but keep looking for a better one
4746 ac_cv_path_FGREP="$ac_path_FGREP"
4747 ac_path_FGREP_max=$ac_count
4748 fi
4749 # 10*(2^10) chars as input seems more than enough
4750 test $ac_count -gt 10 && break
4751 done
4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753 esac
4754
4755 $ac_path_FGREP_found && break 3
4756 done
4757 done
4758 done
4759 IFS=$as_save_IFS
4760 if test -z "$ac_cv_path_FGREP"; then
4761 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762 fi
4763 else
4764 ac_cv_path_FGREP=$FGREP
4765 fi
4766
4767 fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4770 $as_echo "$ac_cv_path_FGREP" >&6; }
4771 FGREP="$ac_cv_path_FGREP"
4772
4773
4774 test -z "$GREP" && GREP=grep
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 # Check whether --with-gnu-ld was given.
4795 if test "${with_gnu_ld+set}" = set; then :
4796 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4797 else
4798 with_gnu_ld=no
4799 fi
4800
4801 ac_prog=ld
4802 if test yes = "$GCC"; then
4803 # Check if gcc -print-prog-name=ld gives a path.
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4805 $as_echo_n "checking for ld used by $CC... " >&6; }
4806 case $host in
4807 *-*-mingw*)
4808 # gcc leaves a trailing carriage return, which upsets mingw
4809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810 *)
4811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812 esac
4813 case $ac_prog in
4814 # Accept absolute paths.
4815 [\\/]* | ?:[\\/]*)
4816 re_direlt='/[^/][^/]*/\.\./'
4817 # Canonicalize the pathname of ld
4818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4821 done
4822 test -z "$LD" && LD=$ac_prog
4823 ;;
4824 "")
4825 # If it fails, then pretend we aren't using GCC.
4826 ac_prog=ld
4827 ;;
4828 *)
4829 # If it is relative, then search for the first ld in PATH.
4830 with_gnu_ld=unknown
4831 ;;
4832 esac
4833 elif test yes = "$with_gnu_ld"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4835 $as_echo_n "checking for GNU ld... " >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4838 $as_echo_n "checking for non-GNU ld... " >&6; }
4839 fi
4840 if ${lt_cv_path_LD+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -z "$LD"; then
4844 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4845 for ac_dir in $PATH; do
4846 IFS=$lt_save_ifs
4847 test -z "$ac_dir" && ac_dir=.
4848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4849 lt_cv_path_LD=$ac_dir/$ac_prog
4850 # Check to see if the program is GNU ld. I'd rather use --version,
4851 # but apparently some variants of GNU ld only accept -v.
4852 # Break only if it was the GNU/non-GNU ld that we prefer.
4853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4854 *GNU* | *'with BFD'*)
4855 test no != "$with_gnu_ld" && break
4856 ;;
4857 *)
4858 test yes != "$with_gnu_ld" && break
4859 ;;
4860 esac
4861 fi
4862 done
4863 IFS=$lt_save_ifs
4864 else
4865 lt_cv_path_LD=$LD # Let the user override the test with a path.
4866 fi
4867 fi
4868
4869 LD=$lt_cv_path_LD
4870 if test -n "$LD"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4872 $as_echo "$LD" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4880 if ${lt_cv_prog_gnu_ld+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884 case `$LD -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886 lt_cv_prog_gnu_ld=yes
4887 ;;
4888 *)
4889 lt_cv_prog_gnu_ld=no
4890 ;;
4891 esac
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4895 with_gnu_ld=$lt_cv_prog_gnu_ld
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907 if ${lt_cv_path_NM+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$NM"; then
4911 # Let the user override the test.
4912 lt_cv_path_NM=$NM
4913 else
4914 lt_nm_to_check=${ac_tool_prefix}nm
4915 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916 lt_nm_to_check="$lt_nm_to_check nm"
4917 fi
4918 for lt_tmp_nm in $lt_nm_to_check; do
4919 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4920 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4921 IFS=$lt_save_ifs
4922 test -z "$ac_dir" && ac_dir=.
4923 tmp_nm=$ac_dir/$lt_tmp_nm
4924 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4925 # Check to see if the nm accepts a BSD-compat flag.
4926 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4927 # nm: unknown option "B" ignored
4928 # Tru64's nm complains that /dev/null is an invalid object file
4929 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4930 case $build_os in
4931 mingw*) lt_bad_file=conftest.nm/nofile ;;
4932 *) lt_bad_file=/dev/null ;;
4933 esac
4934 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4935 *$lt_bad_file* | *'Invalid file or object type'*)
4936 lt_cv_path_NM="$tmp_nm -B"
4937 break 2
4938 ;;
4939 *)
4940 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4941 */dev/null*)
4942 lt_cv_path_NM="$tmp_nm -p"
4943 break 2
4944 ;;
4945 *)
4946 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4947 continue # so that we can try to find one that supports BSD flags
4948 ;;
4949 esac
4950 ;;
4951 esac
4952 fi
4953 done
4954 IFS=$lt_save_ifs
4955 done
4956 : ${lt_cv_path_NM=no}
4957 fi
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4960 $as_echo "$lt_cv_path_NM" >&6; }
4961 if test no != "$lt_cv_path_NM"; then
4962 NM=$lt_cv_path_NM
4963 else
4964 # Didn't find any BSD compatible name lister, look for dumpbin.
4965 if test -n "$DUMPBIN"; then :
4966 # Let the user override the test.
4967 else
4968 if test -n "$ac_tool_prefix"; then
4969 for ac_prog in dumpbin "link -dump"
4970 do
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_DUMPBIN+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$DUMPBIN"; then
4979 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 DUMPBIN=$ac_cv_prog_DUMPBIN
4999 if test -n "$DUMPBIN"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5001 $as_echo "$DUMPBIN" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007
5008 test -n "$DUMPBIN" && break
5009 done
5010 fi
5011 if test -z "$DUMPBIN"; then
5012 ac_ct_DUMPBIN=$DUMPBIN
5013 for ac_prog in dumpbin "link -dump"
5014 do
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$ac_ct_DUMPBIN"; then
5023 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5043 if test -n "$ac_ct_DUMPBIN"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5045 $as_echo "$ac_ct_DUMPBIN" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049 fi
5050
5051
5052 test -n "$ac_ct_DUMPBIN" && break
5053 done
5054
5055 if test "x$ac_ct_DUMPBIN" = x; then
5056 DUMPBIN=":"
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059 yes:)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062 ac_tool_warned=yes ;;
5063 esac
5064 DUMPBIN=$ac_ct_DUMPBIN
5065 fi
5066 fi
5067
5068 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5069 *COFF*)
5070 DUMPBIN="$DUMPBIN -symbols -headers"
5071 ;;
5072 *)
5073 DUMPBIN=:
5074 ;;
5075 esac
5076 fi
5077
5078 if test : != "$DUMPBIN"; then
5079 NM=$DUMPBIN
5080 fi
5081 fi
5082 test -z "$NM" && NM=nm
5083
5084
5085
5086
5087
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5090 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5091 if ${lt_cv_nm_interface+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 lt_cv_nm_interface="BSD nm"
5095 echo "int some_variable = 0;" > conftest.$ac_ext
5096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5097 (eval "$ac_compile" 2>conftest.err)
5098 cat conftest.err >&5
5099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5101 cat conftest.err >&5
5102 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5103 cat conftest.out >&5
5104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5105 lt_cv_nm_interface="MS dumpbin"
5106 fi
5107 rm -f conftest*
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5110 $as_echo "$lt_cv_nm_interface" >&6; }
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5113 $as_echo_n "checking whether ln -s works... " >&6; }
5114 LN_S=$as_ln_s
5115 if test "$LN_S" = "ln -s"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5117 $as_echo "yes" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5120 $as_echo "no, using $LN_S" >&6; }
5121 fi
5122
5123 # find the maximum length of command line arguments
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5125 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5126 if ${lt_cv_sys_max_cmd_len+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 i=0
5130 teststring=ABCD
5131
5132 case $build_os in
5133 msdosdjgpp*)
5134 # On DJGPP, this test can blow up pretty badly due to problems in libc
5135 # (any single argument exceeding 2000 bytes causes a buffer overrun
5136 # during glob expansion). Even if it were fixed, the result of this
5137 # check would be larger than it should be.
5138 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5139 ;;
5140
5141 gnu*)
5142 # Under GNU Hurd, this test is not required because there is
5143 # no limit to the length of command line arguments.
5144 # Libtool will interpret -1 as no limit whatsoever
5145 lt_cv_sys_max_cmd_len=-1;
5146 ;;
5147
5148 cygwin* | mingw* | cegcc*)
5149 # On Win9x/ME, this test blows up -- it succeeds, but takes
5150 # about 5 minutes as the teststring grows exponentially.
5151 # Worse, since 9x/ME are not pre-emptively multitasking,
5152 # you end up with a "frozen" computer, even though with patience
5153 # the test eventually succeeds (with a max line length of 256k).
5154 # Instead, let's just punt: use the minimum linelength reported by
5155 # all of the supported platforms: 8192 (on NT/2K/XP).
5156 lt_cv_sys_max_cmd_len=8192;
5157 ;;
5158
5159 mint*)
5160 # On MiNT this can take a long time and run out of memory.
5161 lt_cv_sys_max_cmd_len=8192;
5162 ;;
5163
5164 amigaos*)
5165 # On AmigaOS with pdksh, this test takes hours, literally.
5166 # So we just punt and use a minimum line length of 8192.
5167 lt_cv_sys_max_cmd_len=8192;
5168 ;;
5169
5170 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5171 # This has been around since 386BSD, at least. Likely further.
5172 if test -x /sbin/sysctl; then
5173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5174 elif test -x /usr/sbin/sysctl; then
5175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5176 else
5177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5178 fi
5179 # And add a safety zone
5180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5182 ;;
5183
5184 interix*)
5185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5186 lt_cv_sys_max_cmd_len=196608
5187 ;;
5188
5189 os2*)
5190 # The test takes a long time on OS/2.
5191 lt_cv_sys_max_cmd_len=8192
5192 ;;
5193
5194 osf*)
5195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5197 # nice to cause kernel panics so lets avoid the loop below.
5198 # First set a reasonable default.
5199 lt_cv_sys_max_cmd_len=16384
5200 #
5201 if test -x /sbin/sysconfig; then
5202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5203 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5204 esac
5205 fi
5206 ;;
5207 sco3.2v5*)
5208 lt_cv_sys_max_cmd_len=102400
5209 ;;
5210 sysv5* | sco5v6* | sysv4.2uw2*)
5211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5212 if test -n "$kargmax"; then
5213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5214 else
5215 lt_cv_sys_max_cmd_len=32768
5216 fi
5217 ;;
5218 *)
5219 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5220 if test -n "$lt_cv_sys_max_cmd_len" && \
5221 test undefined != "$lt_cv_sys_max_cmd_len"; then
5222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5224 else
5225 # Make teststring a little bigger before we do anything with it.
5226 # a 1K string should be a reasonable start.
5227 for i in 1 2 3 4 5 6 7 8; do
5228 teststring=$teststring$teststring
5229 done
5230 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5231 # If test is not a shell built-in, we'll probably end up computing a
5232 # maximum length that is only half of the actual maximum length, but
5233 # we can't tell.
5234 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5235 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5236 test 17 != "$i" # 1/2 MB should be enough
5237 do
5238 i=`expr $i + 1`
5239 teststring=$teststring$teststring
5240 done
5241 # Only check the string length outside the loop.
5242 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5243 teststring=
5244 # Add a significant safety factor because C++ compilers can tack on
5245 # massive amounts of additional arguments before passing them to the
5246 # linker. It appears as though 1/2 is a usable value.
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5248 fi
5249 ;;
5250 esac
5251
5252 fi
5253
5254 if test -n "$lt_cv_sys_max_cmd_len"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5256 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5259 $as_echo "none" >&6; }
5260 fi
5261 max_cmd_len=$lt_cv_sys_max_cmd_len
5262
5263
5264
5265
5266
5267
5268 : ${CP="cp -f"}
5269 : ${MV="mv -f"}
5270 : ${RM="rm -f"}
5271
5272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5273 lt_unset=unset
5274 else
5275 lt_unset=false
5276 fi
5277
5278
5279
5280
5281
5282 # test EBCDIC or ASCII
5283 case `echo X|tr X '\101'` in
5284 A) # ASCII based system
5285 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5286 lt_SP2NL='tr \040 \012'
5287 lt_NL2SP='tr \015\012 \040\040'
5288 ;;
5289 *) # EBCDIC based system
5290 lt_SP2NL='tr \100 \n'
5291 lt_NL2SP='tr \r\n \100\100'
5292 ;;
5293 esac
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5304 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5305 if ${lt_cv_to_host_file_cmd+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 case $host in
5309 *-*-mingw* )
5310 case $build in
5311 *-*-mingw* ) # actually msys
5312 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5313 ;;
5314 *-*-cygwin* )
5315 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5316 ;;
5317 * ) # otherwise, assume *nix
5318 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5319 ;;
5320 esac
5321 ;;
5322 *-*-cygwin* )
5323 case $build in
5324 *-*-mingw* ) # actually msys
5325 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5326 ;;
5327 *-*-cygwin* )
5328 lt_cv_to_host_file_cmd=func_convert_file_noop
5329 ;;
5330 * ) # otherwise, assume *nix
5331 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5332 ;;
5333 esac
5334 ;;
5335 * ) # unhandled hosts (and "normal" native builds)
5336 lt_cv_to_host_file_cmd=func_convert_file_noop
5337 ;;
5338 esac
5339
5340 fi
5341
5342 to_host_file_cmd=$lt_cv_to_host_file_cmd
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5344 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5345
5346
5347
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5351 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5352 if ${lt_cv_to_tool_file_cmd+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 #assume ordinary cross tools, or native build.
5356 lt_cv_to_tool_file_cmd=func_convert_file_noop
5357 case $host in
5358 *-*-mingw* )
5359 case $build in
5360 *-*-mingw* ) # actually msys
5361 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5362 ;;
5363 esac
5364 ;;
5365 esac
5366
5367 fi
5368
5369 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5371 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5378 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5379 if ${lt_cv_ld_reload_flag+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 lt_cv_ld_reload_flag='-r'
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5385 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5386 reload_flag=$lt_cv_ld_reload_flag
5387 case $reload_flag in
5388 "" | " "*) ;;
5389 *) reload_flag=" $reload_flag" ;;
5390 esac
5391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392 case $host_os in
5393 cygwin* | mingw* | pw32* | cegcc*)
5394 if test yes != "$GCC"; then
5395 reload_cmds=false
5396 fi
5397 ;;
5398 darwin*)
5399 if test yes = "$GCC"; then
5400 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5401 else
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 fi
5404 ;;
5405 esac
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_OBJDUMP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$OBJDUMP"; then
5424 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 OBJDUMP=$ac_cv_prog_OBJDUMP
5444 if test -n "$OBJDUMP"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5446 $as_echo "$OBJDUMP" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$ac_cv_prog_OBJDUMP"; then
5455 ac_ct_OBJDUMP=$OBJDUMP
5456 # Extract the first word of "objdump", so it can be a program name with args.
5457 set dummy objdump; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_OBJDUMP"; then
5464 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5484 if test -n "$ac_ct_OBJDUMP"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5486 $as_echo "$ac_ct_OBJDUMP" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492 if test "x$ac_ct_OBJDUMP" = x; then
5493 OBJDUMP="false"
5494 else
5495 case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501 OBJDUMP=$ac_ct_OBJDUMP
5502 fi
5503 else
5504 OBJDUMP="$ac_cv_prog_OBJDUMP"
5505 fi
5506
5507 test -z "$OBJDUMP" && OBJDUMP=objdump
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5518 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5519 if ${lt_cv_deplibs_check_method+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 lt_cv_file_magic_cmd='$MAGIC_CMD'
5523 lt_cv_file_magic_test_file=
5524 lt_cv_deplibs_check_method='unknown'
5525 # Need to set the preceding variable on all platforms that support
5526 # interlibrary dependencies.
5527 # 'none' -- dependencies not supported.
5528 # 'unknown' -- same as none, but documents that we really don't know.
5529 # 'pass_all' -- all dependencies passed with no checks.
5530 # 'test_compile' -- check by making test program.
5531 # 'file_magic [[regex]]' -- check by looking for files in library path
5532 # that responds to the $file_magic_cmd with a given extended regex.
5533 # If you have 'file' or equivalent on your system and you're not sure
5534 # whether 'pass_all' will *always* work, you probably want this one.
5535
5536 case $host_os in
5537 aix[4-9]*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541 beos*)
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545 bsdi[45]*)
5546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5547 lt_cv_file_magic_cmd='/usr/bin/file -L'
5548 lt_cv_file_magic_test_file=/shlib/libc.so
5549 ;;
5550
5551 cygwin*)
5552 # func_win32_libid is a shell function defined in ltmain.sh
5553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554 lt_cv_file_magic_cmd='func_win32_libid'
5555 ;;
5556
5557 mingw* | pw32*)
5558 # Base MSYS/MinGW do not provide the 'file' command needed by
5559 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5560 # unless we find 'file', for example because we are cross-compiling.
5561 if ( file / ) >/dev/null 2>&1; then
5562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5563 lt_cv_file_magic_cmd='func_win32_libid'
5564 else
5565 # Keep this pattern in sync with the one in func_win32_libid.
5566 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5567 lt_cv_file_magic_cmd='$OBJDUMP -f'
5568 fi
5569 ;;
5570
5571 cegcc*)
5572 # use the weaker test based on 'objdump'. See mingw*.
5573 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5574 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 ;;
5576
5577 darwin* | rhapsody*)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580
5581 freebsd* | dragonfly*)
5582 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5583 case $host_cpu in
5584 i*86 )
5585 # Not sure whether the presence of OpenBSD here was a mistake.
5586 # Let's accept both of them until this is cleared up.
5587 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5590 ;;
5591 esac
5592 else
5593 lt_cv_deplibs_check_method=pass_all
5594 fi
5595 ;;
5596
5597 haiku*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
5601 hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5603 case $host_cpu in
5604 ia64*)
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607 ;;
5608 hppa*64*)
5609 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]'
5610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611 ;;
5612 *)
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615 ;;
5616 esac
5617 ;;
5618
5619 interix[3-9]*)
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622 ;;
5623
5624 irix5* | irix6* | nonstopux*)
5625 case $LD in
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5630 esac
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 # This must be glibc/ELF.
5635 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 netbsd*)
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644 fi
5645 ;;
5646
5647 newos6*)
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651 ;;
5652
5653 *nto* | *qnx*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657 openbsd* | bitrig*)
5658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660 else
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662 fi
5663 ;;
5664
5665 osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 rdos*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 solaris*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680
5681 sysv4 | sysv4.3*)
5682 case $host_vendor in
5683 motorola)
5684 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]'
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686 ;;
5687 ncr)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690 sequent)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693 ;;
5694 sni)
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697 lt_cv_file_magic_test_file=/lib/libc.so
5698 ;;
5699 siemens)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702 pc)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705 esac
5706 ;;
5707
5708 tpf*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711 os2*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714 esac
5715
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5718 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5719
5720 file_magic_glob=
5721 want_nocaseglob=no
5722 if test "$build" = "$host"; then
5723 case $host_os in
5724 mingw* | pw32*)
5725 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5726 want_nocaseglob=yes
5727 else
5728 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5729 fi
5730 ;;
5731 esac
5732 fi
5733
5734 file_magic_cmd=$lt_cv_file_magic_cmd
5735 deplibs_check_method=$lt_cv_deplibs_check_method
5736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_DLLTOOL+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$DLLTOOL"; then
5768 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 DLLTOOL=$ac_cv_prog_DLLTOOL
5788 if test -n "$DLLTOOL"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5790 $as_echo "$DLLTOOL" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796
5797 fi
5798 if test -z "$ac_cv_prog_DLLTOOL"; then
5799 ac_ct_DLLTOOL=$DLLTOOL
5800 # Extract the first word of "dlltool", so it can be a program name with args.
5801 set dummy dlltool; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$ac_ct_DLLTOOL"; then
5808 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5828 if test -n "$ac_ct_DLLTOOL"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5830 $as_echo "$ac_ct_DLLTOOL" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836 if test "x$ac_ct_DLLTOOL" = x; then
5837 DLLTOOL="false"
5838 else
5839 case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845 DLLTOOL=$ac_ct_DLLTOOL
5846 fi
5847 else
5848 DLLTOOL="$ac_cv_prog_DLLTOOL"
5849 fi
5850
5851 test -z "$DLLTOOL" && DLLTOOL=dlltool
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5863 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5864 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 lt_cv_sharedlib_from_linklib_cmd='unknown'
5868
5869 case $host_os in
5870 cygwin* | mingw* | pw32* | cegcc*)
5871 # two different shell functions defined in ltmain.sh;
5872 # decide which one to use based on capabilities of $DLLTOOL
5873 case `$DLLTOOL --help 2>&1` in
5874 *--identify-strict*)
5875 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5876 ;;
5877 *)
5878 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5879 ;;
5880 esac
5881 ;;
5882 *)
5883 # fallback: assume linklib IS sharedlib
5884 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5885 ;;
5886 esac
5887
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5890 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5891 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5892 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5893
5894
5895
5896
5897
5898
5899
5900
5901 if test -n "$ac_tool_prefix"; then
5902 for ac_prog in ar
5903 do
5904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_AR+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$AR"; then
5912 ac_cv_prog_AR="$AR" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 AR=$ac_cv_prog_AR
5932 if test -n "$AR"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5934 $as_echo "$AR" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 test -n "$AR" && break
5942 done
5943 fi
5944 if test -z "$AR"; then
5945 ac_ct_AR=$AR
5946 for ac_prog in ar
5947 do
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$ac_ct_AR"; then
5956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_AR="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5976 if test -n "$ac_ct_AR"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5978 $as_echo "$ac_ct_AR" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984
5985 test -n "$ac_ct_AR" && break
5986 done
5987
5988 if test "x$ac_ct_AR" = x; then
5989 AR="false"
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997 AR=$ac_ct_AR
5998 fi
5999 fi
6000
6001 : ${AR=ar}
6002 : ${AR_FLAGS=cru}
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6015 $as_echo_n "checking for archiver @FILE support... " >&6; }
6016 if ${lt_cv_ar_at_file+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 lt_cv_ar_at_file=no
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022
6023 int
6024 main ()
6025 {
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 echo conftest.$ac_objext > conftest.lst
6033 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6035 (eval $lt_ar_try) 2>&5
6036 ac_status=$?
6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }
6039 if test 0 -eq "$ac_status"; then
6040 # Ensure the archiver fails upon bogus file names.
6041 rm -f conftest.$ac_objext libconftest.a
6042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6043 (eval $lt_ar_try) 2>&5
6044 ac_status=$?
6045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046 test $ac_status = 0; }
6047 if test 0 -ne "$ac_status"; then
6048 lt_cv_ar_at_file=@
6049 fi
6050 fi
6051 rm -f conftest.* libconftest.a
6052
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6058 $as_echo "$lt_cv_ar_at_file" >&6; }
6059
6060 if test no = "$lt_cv_ar_at_file"; then
6061 archiver_list_spec=
6062 else
6063 archiver_list_spec=$lt_cv_ar_at_file
6064 fi
6065
6066
6067
6068
6069
6070
6071
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}strip; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_STRIP+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if test -n "$STRIP"; then
6081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 STRIP=$ac_cv_prog_STRIP
6101 if test -n "$STRIP"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6103 $as_echo "$STRIP" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_STRIP"; then
6112 ac_ct_STRIP=$STRIP
6113 # Extract the first word of "strip", so it can be a program name with args.
6114 set dummy strip; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$ac_ct_STRIP"; then
6121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_STRIP="strip"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141 if test -n "$ac_ct_STRIP"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6143 $as_echo "$ac_ct_STRIP" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149 if test "x$ac_ct_STRIP" = x; then
6150 STRIP=":"
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 STRIP=$ac_ct_STRIP
6159 fi
6160 else
6161 STRIP="$ac_cv_prog_STRIP"
6162 fi
6163
6164 test -z "$STRIP" && STRIP=:
6165
6166
6167
6168
6169
6170
6171 if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if ${ac_cv_prog_RANLIB+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -n "$RANLIB"; then
6180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 RANLIB=$ac_cv_prog_RANLIB
6200 if test -n "$RANLIB"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6202 $as_echo "$RANLIB" >&6; }
6203 else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6206 fi
6207
6208
6209 fi
6210 if test -z "$ac_cv_prog_RANLIB"; then
6211 ac_ct_RANLIB=$RANLIB
6212 # Extract the first word of "ranlib", so it can be a program name with args.
6213 set dummy ranlib; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -n "$ac_ct_RANLIB"; then
6220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_ac_ct_RANLIB="ranlib"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240 if test -n "$ac_ct_RANLIB"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6242 $as_echo "$ac_ct_RANLIB" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6246 fi
6247
6248 if test "x$ac_ct_RANLIB" = x; then
6249 RANLIB=":"
6250 else
6251 case $cross_compiling:$ac_tool_warned in
6252 yes:)
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255 ac_tool_warned=yes ;;
6256 esac
6257 RANLIB=$ac_ct_RANLIB
6258 fi
6259 else
6260 RANLIB="$ac_cv_prog_RANLIB"
6261 fi
6262
6263 test -z "$RANLIB" && RANLIB=:
6264
6265
6266
6267
6268
6269
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6272 old_postinstall_cmds='chmod 644 $oldlib'
6273 old_postuninstall_cmds=
6274
6275 if test -n "$RANLIB"; then
6276 case $host_os in
6277 bitrig* | openbsd*)
6278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6279 ;;
6280 *)
6281 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6282 ;;
6283 esac
6284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6285 fi
6286
6287 case $host_os in
6288 darwin*)
6289 lock_old_archive_extraction=yes ;;
6290 *)
6291 lock_old_archive_extraction=no ;;
6292 esac
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 # If no C compiler was specified, use CC.
6333 LTCC=${LTCC-"$CC"}
6334
6335 # If no C compiler flags were specified, use CFLAGS.
6336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6337
6338 # Allow CC to be a program name with arguments.
6339 compiler=$CC
6340
6341
6342 # Check for command to grab the raw symbol name followed by C symbol from nm.
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6344 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6345 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348
6349 # These are sane defaults that work on at least a few old systems.
6350 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6351
6352 # Character class describing NM global symbol codes.
6353 symcode='[BCDEGRST]'
6354
6355 # Regexp to match symbols that can be accessed directly from C.
6356 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6357
6358 # Define system-specific variables.
6359 case $host_os in
6360 aix*)
6361 symcode='[BCDT]'
6362 ;;
6363 cygwin* | mingw* | pw32* | cegcc*)
6364 symcode='[ABCDGISTW]'
6365 ;;
6366 hpux*)
6367 if test ia64 = "$host_cpu"; then
6368 symcode='[ABCDEGRST]'
6369 fi
6370 ;;
6371 irix* | nonstopux*)
6372 symcode='[BCDEGRST]'
6373 ;;
6374 osf*)
6375 symcode='[BCDEGQRST]'
6376 ;;
6377 solaris*)
6378 symcode='[BDRT]'
6379 ;;
6380 sco3.2v5*)
6381 symcode='[DT]'
6382 ;;
6383 sysv4.2uw2*)
6384 symcode='[DT]'
6385 ;;
6386 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6387 symcode='[ABDT]'
6388 ;;
6389 sysv4)
6390 symcode='[DFNSTU]'
6391 ;;
6392 esac
6393
6394 # If we're using GNU nm, then use its standard symbol codes.
6395 case `$NM -V 2>&1` in
6396 *GNU* | *'with BFD'*)
6397 symcode='[ABCDGIRSTW]' ;;
6398 esac
6399
6400 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6401 # Gets list of data symbols to import.
6402 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6403 # Adjust the below global symbol transforms to fixup imported variables.
6404 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6405 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6406 lt_c_name_lib_hook="\
6407 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6408 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6409 else
6410 # Disable hooks by default.
6411 lt_cv_sys_global_symbol_to_import=
6412 lt_cdecl_hook=
6413 lt_c_name_hook=
6414 lt_c_name_lib_hook=
6415 fi
6416
6417 # Transform an extracted symbol line into a proper C declaration.
6418 # Some systems (esp. on ia64) link data and code symbols differently,
6419 # so use this general approach.
6420 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6421 $lt_cdecl_hook\
6422 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6423 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6424
6425 # Transform an extracted symbol line into symbol name and symbol address
6426 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6427 $lt_c_name_hook\
6428 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6429 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6430
6431 # Transform an extracted symbol line into symbol name with lib prefix and
6432 # symbol address.
6433 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6434 $lt_c_name_lib_hook\
6435 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6436 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6437 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6438
6439 # Handle CRLF in mingw tool chain
6440 opt_cr=
6441 case $build_os in
6442 mingw*)
6443 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6444 ;;
6445 esac
6446
6447 # Try without a prefix underscore, then with it.
6448 for ac_symprfx in "" "_"; do
6449
6450 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6451 symxfrm="\\1 $ac_symprfx\\2 \\2"
6452
6453 # Write the raw and C identifiers.
6454 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6455 # Fake it for dumpbin and say T for any non-static function,
6456 # D for any global variable and I for any imported variable.
6457 # Also find C++ and __fastcall symbols from MSVC++,
6458 # which start with @ or ?.
6459 lt_cv_sys_global_symbol_pipe="$AWK '"\
6460 " {last_section=section; section=\$ 3};"\
6461 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6462 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6463 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6464 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6465 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6466 " \$ 0!~/External *\|/{next};"\
6467 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6468 " {if(hide[section]) next};"\
6469 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6470 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6471 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6472 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6473 " ' prfx=^$ac_symprfx"
6474 else
6475 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6476 fi
6477 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6478
6479 # Check to see that the pipe works correctly.
6480 pipe_works=no
6481
6482 rm -f conftest*
6483 cat > conftest.$ac_ext <<_LT_EOF
6484 #ifdef __cplusplus
6485 extern "C" {
6486 #endif
6487 char nm_test_var;
6488 void nm_test_func(void);
6489 void nm_test_func(void){}
6490 #ifdef __cplusplus
6491 }
6492 #endif
6493 int main(){nm_test_var='a';nm_test_func();return(0);}
6494 _LT_EOF
6495
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497 (eval $ac_compile) 2>&5
6498 ac_status=$?
6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; then
6501 # Now try to grab the symbols.
6502 nlist=conftest.nm
6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6504 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; } && test -s "$nlist"; then
6508 # Try sorting and uniquifying the output.
6509 if sort "$nlist" | uniq > "$nlist"T; then
6510 mv -f "$nlist"T "$nlist"
6511 else
6512 rm -f "$nlist"T
6513 fi
6514
6515 # Make sure that we snagged all the symbols we need.
6516 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6517 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6518 cat <<_LT_EOF > conftest.$ac_ext
6519 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6520 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6521 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6522 relocations are performed -- see ld's documentation on pseudo-relocs. */
6523 # define LT_DLSYM_CONST
6524 #elif defined __osf__
6525 /* This system does not cope well with relocations in const data. */
6526 # define LT_DLSYM_CONST
6527 #else
6528 # define LT_DLSYM_CONST const
6529 #endif
6530
6531 #ifdef __cplusplus
6532 extern "C" {
6533 #endif
6534
6535 _LT_EOF
6536 # Now generate the symbol file.
6537 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6538
6539 cat <<_LT_EOF >> conftest.$ac_ext
6540
6541 /* The mapping between symbol names and symbols. */
6542 LT_DLSYM_CONST struct {
6543 const char *name;
6544 void *address;
6545 }
6546 lt__PROGRAM__LTX_preloaded_symbols[] =
6547 {
6548 { "@PROGRAM@", (void *) 0 },
6549 _LT_EOF
6550 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6551 cat <<\_LT_EOF >> conftest.$ac_ext
6552 {0, (void *) 0}
6553 };
6554
6555 /* This works around a problem in FreeBSD linker */
6556 #ifdef FREEBSD_WORKAROUND
6557 static const void *lt_preloaded_setup() {
6558 return lt__PROGRAM__LTX_preloaded_symbols;
6559 }
6560 #endif
6561
6562 #ifdef __cplusplus
6563 }
6564 #endif
6565 _LT_EOF
6566 # Now try linking the two files.
6567 mv conftest.$ac_objext conftstm.$ac_objext
6568 lt_globsym_save_LIBS=$LIBS
6569 lt_globsym_save_CFLAGS=$CFLAGS
6570 LIBS=conftstm.$ac_objext
6571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6573 (eval $ac_link) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6577 pipe_works=yes
6578 fi
6579 LIBS=$lt_globsym_save_LIBS
6580 CFLAGS=$lt_globsym_save_CFLAGS
6581 else
6582 echo "cannot find nm_test_func in $nlist" >&5
6583 fi
6584 else
6585 echo "cannot find nm_test_var in $nlist" >&5
6586 fi
6587 else
6588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6589 fi
6590 else
6591 echo "$progname: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 fi
6594 rm -rf conftest* conftst*
6595
6596 # Do not use the global_symbol_pipe unless it works.
6597 if test yes = "$pipe_works"; then
6598 break
6599 else
6600 lt_cv_sys_global_symbol_pipe=
6601 fi
6602 done
6603
6604 fi
6605
6606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6607 lt_cv_sys_global_symbol_to_cdecl=
6608 fi
6609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6611 $as_echo "failed" >&6; }
6612 else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6614 $as_echo "ok" >&6; }
6615 fi
6616
6617 # Response file support.
6618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6619 nm_file_list_spec='@'
6620 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6621 nm_file_list_spec='@'
6622 fi
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6661 $as_echo_n "checking for sysroot... " >&6; }
6662
6663 # Check whether --with-sysroot was given.
6664 if test "${with_sysroot+set}" = set; then :
6665 withval=$with_sysroot;
6666 else
6667 with_sysroot=no
6668 fi
6669
6670
6671 lt_sysroot=
6672 case $with_sysroot in #(
6673 yes)
6674 if test yes = "$GCC"; then
6675 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6676 fi
6677 ;; #(
6678 /*)
6679 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6680 ;; #(
6681 no|'')
6682 ;; #(
6683 *)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6685 $as_echo "$with_sysroot" >&6; }
6686 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6687 ;;
6688 esac
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6691 $as_echo "${lt_sysroot:-no}" >&6; }
6692
6693
6694
6695
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6698 $as_echo_n "checking for a working dd... " >&6; }
6699 if ${ac_cv_path_lt_DD+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 printf 0123456789abcdef0123456789abcdef >conftest.i
6703 cat conftest.i conftest.i >conftest2.i
6704 : ${lt_DD:=$DD}
6705 if test -z "$lt_DD"; then
6706 ac_path_lt_DD_found=false
6707 # Loop through the user's path and test for each of PROGNAME-LIST
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_prog in dd; do
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6716 as_fn_executable_p "$ac_path_lt_DD" || continue
6717 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6718 cmp -s conftest.i conftest.out \
6719 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6720 fi
6721 $ac_path_lt_DD_found && break 3
6722 done
6723 done
6724 done
6725 IFS=$as_save_IFS
6726 if test -z "$ac_cv_path_lt_DD"; then
6727 :
6728 fi
6729 else
6730 ac_cv_path_lt_DD=$lt_DD
6731 fi
6732
6733 rm -f conftest.i conftest2.i conftest.out
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6736 $as_echo "$ac_cv_path_lt_DD" >&6; }
6737
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6740 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6741 if ${lt_cv_truncate_bin+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 printf 0123456789abcdef0123456789abcdef >conftest.i
6745 cat conftest.i conftest.i >conftest2.i
6746 lt_cv_truncate_bin=
6747 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6748 cmp -s conftest.i conftest.out \
6749 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6750 fi
6751 rm -f conftest.i conftest2.i conftest.out
6752 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6753 fi
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6755 $as_echo "$lt_cv_truncate_bin" >&6; }
6756
6757
6758
6759
6760
6761
6762 # Check whether --enable-libtool-lock was given.
6763 if test "${enable_libtool_lock+set}" = set; then :
6764 enableval=$enable_libtool_lock;
6765 fi
6766
6767 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6768
6769 # Some flags need to be propagated to the compiler or linker for good
6770 # libtool support.
6771 case $host in
6772 ia64-*-hpux*)
6773 # Find out what ABI is being produced by ac_compile, and set mode
6774 # options accordingly.
6775 echo 'int i;' > conftest.$ac_ext
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 case `/usr/bin/file conftest.$ac_objext` in
6782 *ELF-32*)
6783 HPUX_IA64_MODE=32
6784 ;;
6785 *ELF-64*)
6786 HPUX_IA64_MODE=64
6787 ;;
6788 esac
6789 fi
6790 rm -rf conftest*
6791 ;;
6792 *-*-irix6*)
6793 # Find out what ABI is being produced by ac_compile, and set linker
6794 # options accordingly.
6795 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797 (eval $ac_compile) 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; }; then
6801 if test yes = "$lt_cv_prog_gnu_ld"; then
6802 case `/usr/bin/file conftest.$ac_objext` in
6803 *32-bit*)
6804 LD="${LD-ld} -melf32bsmip"
6805 ;;
6806 *N32*)
6807 LD="${LD-ld} -melf32bmipn32"
6808 ;;
6809 *64-bit*)
6810 LD="${LD-ld} -melf64bmip"
6811 ;;
6812 esac
6813 else
6814 case `/usr/bin/file conftest.$ac_objext` in
6815 *32-bit*)
6816 LD="${LD-ld} -32"
6817 ;;
6818 *N32*)
6819 LD="${LD-ld} -n32"
6820 ;;
6821 *64-bit*)
6822 LD="${LD-ld} -64"
6823 ;;
6824 esac
6825 fi
6826 fi
6827 rm -rf conftest*
6828 ;;
6829
6830 mips64*-*linux*)
6831 # Find out what ABI is being produced by ac_compile, and set linker
6832 # options accordingly.
6833 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835 (eval $ac_compile) 2>&5
6836 ac_status=$?
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }; then
6839 emul=elf
6840 case `/usr/bin/file conftest.$ac_objext` in
6841 *32-bit*)
6842 emul="${emul}32"
6843 ;;
6844 *64-bit*)
6845 emul="${emul}64"
6846 ;;
6847 esac
6848 case `/usr/bin/file conftest.$ac_objext` in
6849 *MSB*)
6850 emul="${emul}btsmip"
6851 ;;
6852 *LSB*)
6853 emul="${emul}ltsmip"
6854 ;;
6855 esac
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *N32*)
6858 emul="${emul}n32"
6859 ;;
6860 esac
6861 LD="${LD-ld} -m $emul"
6862 fi
6863 rm -rf conftest*
6864 ;;
6865
6866 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6867 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6868 # Find out what ABI is being produced by ac_compile, and set linker
6869 # options accordingly. Note that the listed cases only cover the
6870 # situations where additional linker options are needed (such as when
6871 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6872 # vice versa); the common cases where no linker options are needed do
6873 # not appear in the list.
6874 echo 'int i;' > conftest.$ac_ext
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; then
6880 case `/usr/bin/file conftest.o` in
6881 *32-bit*)
6882 case $host in
6883 x86_64-*kfreebsd*-gnu)
6884 LD="${LD-ld} -m elf_i386_fbsd"
6885 ;;
6886 x86_64-*linux*)
6887 case `/usr/bin/file conftest.o` in
6888 *x86-64*)
6889 LD="${LD-ld} -m elf32_x86_64"
6890 ;;
6891 *)
6892 LD="${LD-ld} -m elf_i386"
6893 ;;
6894 esac
6895 ;;
6896 powerpc64le-*linux*)
6897 LD="${LD-ld} -m elf32lppclinux"
6898 ;;
6899 powerpc64-*linux*)
6900 LD="${LD-ld} -m elf32ppclinux"
6901 ;;
6902 s390x-*linux*)
6903 LD="${LD-ld} -m elf_s390"
6904 ;;
6905 sparc64-*linux*)
6906 LD="${LD-ld} -m elf32_sparc"
6907 ;;
6908 esac
6909 ;;
6910 *64-bit*)
6911 case $host in
6912 x86_64-*kfreebsd*-gnu)
6913 LD="${LD-ld} -m elf_x86_64_fbsd"
6914 ;;
6915 x86_64-*linux*)
6916 LD="${LD-ld} -m elf_x86_64"
6917 ;;
6918 powerpcle-*linux*)
6919 LD="${LD-ld} -m elf64lppc"
6920 ;;
6921 powerpc-*linux*)
6922 LD="${LD-ld} -m elf64ppc"
6923 ;;
6924 s390*-*linux*|s390*-*tpf*)
6925 LD="${LD-ld} -m elf64_s390"
6926 ;;
6927 sparc*-*linux*)
6928 LD="${LD-ld} -m elf64_sparc"
6929 ;;
6930 esac
6931 ;;
6932 esac
6933 fi
6934 rm -rf conftest*
6935 ;;
6936
6937 *-*-sco3.2v5*)
6938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6939 SAVE_CFLAGS=$CFLAGS
6940 CFLAGS="$CFLAGS -belf"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6942 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6943 if ${lt_cv_cc_needs_belf+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 ac_ext=c
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954
6955 int
6956 main ()
6957 {
6958
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_c_try_link "$LINENO"; then :
6964 lt_cv_cc_needs_belf=yes
6965 else
6966 lt_cv_cc_needs_belf=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6978 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6979 if test yes != "$lt_cv_cc_needs_belf"; then
6980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6981 CFLAGS=$SAVE_CFLAGS
6982 fi
6983 ;;
6984 *-*solaris*)
6985 # Find out what ABI is being produced by ac_compile, and set linker
6986 # options accordingly.
6987 echo 'int i;' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.o` in
6994 *64-bit*)
6995 case $lt_cv_prog_gnu_ld in
6996 yes*)
6997 case $host in
6998 i?86-*-solaris*|x86_64-*-solaris*)
6999 LD="${LD-ld} -m elf_x86_64"
7000 ;;
7001 sparc*-*-solaris*)
7002 LD="${LD-ld} -m elf64_sparc"
7003 ;;
7004 esac
7005 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7006 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7007 LD=${LD-ld}_sol2
7008 fi
7009 ;;
7010 *)
7011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012 LD="${LD-ld} -64"
7013 fi
7014 ;;
7015 esac
7016 ;;
7017 esac
7018 fi
7019 rm -rf conftest*
7020 ;;
7021 esac
7022
7023 need_locks=$enable_libtool_lock
7024
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}mt; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$MANIFEST_TOOL"; then
7034 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7054 if test -n "$MANIFEST_TOOL"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7056 $as_echo "$MANIFEST_TOOL" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062
7063 fi
7064 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7065 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7066 # Extract the first word of "mt", so it can be a program name with args.
7067 set dummy mt; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$ac_ct_MANIFEST_TOOL"; then
7074 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7094 if test -n "$ac_ct_MANIFEST_TOOL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7096 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7103 MANIFEST_TOOL=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7112 fi
7113 else
7114 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7115 fi
7116
7117 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7119 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7120 if ${lt_cv_path_mainfest_tool+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 lt_cv_path_mainfest_tool=no
7124 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7125 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7126 cat conftest.err >&5
7127 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7128 lt_cv_path_mainfest_tool=yes
7129 fi
7130 rm -f conftest*
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7133 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7134 if test yes != "$lt_cv_path_mainfest_tool"; then
7135 MANIFEST_TOOL=:
7136 fi
7137
7138
7139
7140
7141
7142
7143 case $host_os in
7144 rhapsody* | darwin*)
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$DSYMUTIL"; then
7154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7174 if test -n "$DSYMUTIL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7176 $as_echo "$DSYMUTIL" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_DSYMUTIL"; then
7185 ac_ct_DSYMUTIL=$DSYMUTIL
7186 # Extract the first word of "dsymutil", so it can be a program name with args.
7187 set dummy dsymutil; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$ac_ct_DSYMUTIL"; then
7194 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7214 if test -n "$ac_ct_DSYMUTIL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7216 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222 if test "x$ac_ct_DSYMUTIL" = x; then
7223 DSYMUTIL=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231 DSYMUTIL=$ac_ct_DSYMUTIL
7232 fi
7233 else
7234 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7235 fi
7236
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_NMEDIT+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$NMEDIT"; then
7246 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 NMEDIT=$ac_cv_prog_NMEDIT
7266 if test -n "$NMEDIT"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7268 $as_echo "$NMEDIT" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_NMEDIT"; then
7277 ac_ct_NMEDIT=$NMEDIT
7278 # Extract the first word of "nmedit", so it can be a program name with args.
7279 set dummy nmedit; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_NMEDIT"; then
7286 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7306 if test -n "$ac_ct_NMEDIT"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7308 $as_echo "$ac_ct_NMEDIT" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314 if test "x$ac_ct_NMEDIT" = x; then
7315 NMEDIT=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 NMEDIT=$ac_ct_NMEDIT
7324 fi
7325 else
7326 NMEDIT="$ac_cv_prog_NMEDIT"
7327 fi
7328
7329 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_LIPO+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 if test -n "$LIPO"; then
7338 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7350 fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 LIPO=$ac_cv_prog_LIPO
7358 if test -n "$LIPO"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7360 $as_echo "$LIPO" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_LIPO"; then
7369 ac_ct_LIPO=$LIPO
7370 # Extract the first word of "lipo", so it can be a program name with args.
7371 set dummy lipo; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$ac_ct_LIPO"; then
7378 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_ac_ct_LIPO="lipo"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7398 if test -n "$ac_ct_LIPO"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7400 $as_echo "$ac_ct_LIPO" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406 if test "x$ac_ct_LIPO" = x; then
7407 LIPO=":"
7408 else
7409 case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415 LIPO=$ac_ct_LIPO
7416 fi
7417 else
7418 LIPO="$ac_cv_prog_LIPO"
7419 fi
7420
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}otool; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_OTOOL+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test -n "$OTOOL"; then
7430 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 OTOOL=$ac_cv_prog_OTOOL
7450 if test -n "$OTOOL"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7452 $as_echo "$OTOOL" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 fi
7460 if test -z "$ac_cv_prog_OTOOL"; then
7461 ac_ct_OTOOL=$OTOOL
7462 # Extract the first word of "otool", so it can be a program name with args.
7463 set dummy otool; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$ac_ct_OTOOL"; then
7470 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_ac_ct_OTOOL="otool"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7490 if test -n "$ac_ct_OTOOL"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7492 $as_echo "$ac_ct_OTOOL" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498 if test "x$ac_ct_OTOOL" = x; then
7499 OTOOL=":"
7500 else
7501 case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507 OTOOL=$ac_ct_OTOOL
7508 fi
7509 else
7510 OTOOL="$ac_cv_prog_OTOOL"
7511 fi
7512
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_OTOOL64+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$OTOOL64"; then
7522 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 OTOOL64=$ac_cv_prog_OTOOL64
7542 if test -n "$OTOOL64"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7544 $as_echo "$OTOOL64" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_OTOOL64"; then
7553 ac_ct_OTOOL64=$OTOOL64
7554 # Extract the first word of "otool64", so it can be a program name with args.
7555 set dummy otool64; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_OTOOL64"; then
7562 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_OTOOL64="otool64"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7582 if test -n "$ac_ct_OTOOL64"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7584 $as_echo "$ac_ct_OTOOL64" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590 if test "x$ac_ct_OTOOL64" = x; then
7591 OTOOL64=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 OTOOL64=$ac_ct_OTOOL64
7600 fi
7601 else
7602 OTOOL64="$ac_cv_prog_OTOOL64"
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7632 $as_echo_n "checking for -single_module linker flag... " >&6; }
7633 if ${lt_cv_apple_cc_single_mod+:} false; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 lt_cv_apple_cc_single_mod=no
7637 if test -z "$LT_MULTI_MODULE"; then
7638 # By default we will add the -single_module flag. You can override
7639 # by either setting the environment variable LT_MULTI_MODULE
7640 # non-empty at configure time, or by adding -multi_module to the
7641 # link flags.
7642 rm -rf libconftest.dylib*
7643 echo "int foo(void){return 1;}" > conftest.c
7644 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c" >&5
7646 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7648 _lt_result=$?
7649 # If there is a non-empty error log, and "single_module"
7650 # appears in it, assume the flag caused a linker warning
7651 if test -s conftest.err && $GREP single_module conftest.err; then
7652 cat conftest.err >&5
7653 # Otherwise, if the output was created with a 0 exit code from
7654 # the compiler, it worked.
7655 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7656 lt_cv_apple_cc_single_mod=yes
7657 else
7658 cat conftest.err >&5
7659 fi
7660 rm -rf libconftest.dylib*
7661 rm -f conftest.*
7662 fi
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7665 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7668 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7669 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 lt_cv_ld_exported_symbols_list=no
7673 save_LDFLAGS=$LDFLAGS
7674 echo "_main" > conftest.sym
7675 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678
7679 int
7680 main ()
7681 {
7682
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 lt_cv_ld_exported_symbols_list=yes
7689 else
7690 lt_cv_ld_exported_symbols_list=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694 LDFLAGS=$save_LDFLAGS
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7698 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7699
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7701 $as_echo_n "checking for -force_load linker flag... " >&6; }
7702 if ${lt_cv_ld_force_load+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 lt_cv_ld_force_load=no
7706 cat > conftest.c << _LT_EOF
7707 int forced_loaded() { return 2;}
7708 _LT_EOF
7709 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7710 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7711 echo "$AR cru libconftest.a conftest.o" >&5
7712 $AR cru libconftest.a conftest.o 2>&5
7713 echo "$RANLIB libconftest.a" >&5
7714 $RANLIB libconftest.a 2>&5
7715 cat > conftest.c << _LT_EOF
7716 int main() { return 0;}
7717 _LT_EOF
7718 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7719 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7720 _lt_result=$?
7721 if test -s conftest.err && $GREP force_load conftest.err; then
7722 cat conftest.err >&5
7723 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7724 lt_cv_ld_force_load=yes
7725 else
7726 cat conftest.err >&5
7727 fi
7728 rm -f conftest.err libconftest.a conftest conftest.c
7729 rm -rf conftest.dSYM
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7733 $as_echo "$lt_cv_ld_force_load" >&6; }
7734 case $host_os in
7735 rhapsody* | darwin1.[012])
7736 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7737 darwin1.*)
7738 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7739 darwin*) # darwin 5.x on
7740 # if running on 10.5 or later, the deployment target defaults
7741 # to the OS version, if on x86, and 10.4, the deployment
7742 # target defaults to 10.4. Don't you love it?
7743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7744 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7745 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7746 10.[012][,.]*)
7747 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7748 10.*)
7749 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7750 esac
7751 ;;
7752 esac
7753 if test yes = "$lt_cv_apple_cc_single_mod"; then
7754 _lt_dar_single_mod='$single_module'
7755 fi
7756 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7757 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7758 else
7759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7760 fi
7761 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7762 _lt_dsymutil='~$DSYMUTIL $lib || :'
7763 else
7764 _lt_dsymutil=
7765 fi
7766 ;;
7767 esac
7768
7769 ac_ext=c
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7775 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7776 # On Suns, sometimes $CPP names a directory.
7777 if test -n "$CPP" && test -d "$CPP"; then
7778 CPP=
7779 fi
7780 if test -z "$CPP"; then
7781 if ${ac_cv_prog_CPP+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 # Double quotes because CPP needs to be expanded
7785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7786 do
7787 ac_preproc_ok=false
7788 for ac_c_preproc_warn_flag in '' yes
7789 do
7790 # Use a header file that comes with gcc, so configuring glibc
7791 # with a fresh cross-compiler works.
7792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793 # <limits.h> exists even on freestanding compilers.
7794 # On the NeXT, cc -E runs the code through the compiler's parser,
7795 # not just through cpp. "Syntax error" is here to catch this case.
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 #ifdef __STDC__
7799 # include <limits.h>
7800 #else
7801 # include <assert.h>
7802 #endif
7803 Syntax error
7804 _ACEOF
7805 if ac_fn_c_try_cpp "$LINENO"; then :
7806
7807 else
7808 # Broken: fails on valid input.
7809 continue
7810 fi
7811 rm -f conftest.err conftest.i conftest.$ac_ext
7812
7813 # OK, works on sane cases. Now check whether nonexistent headers
7814 # can be detected and how.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 #include <ac_nonexistent.h>
7818 _ACEOF
7819 if ac_fn_c_try_cpp "$LINENO"; then :
7820 # Broken: success on invalid input.
7821 continue
7822 else
7823 # Passes both tests.
7824 ac_preproc_ok=:
7825 break
7826 fi
7827 rm -f conftest.err conftest.i conftest.$ac_ext
7828
7829 done
7830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7831 rm -f conftest.i conftest.err conftest.$ac_ext
7832 if $ac_preproc_ok; then :
7833 break
7834 fi
7835
7836 done
7837 ac_cv_prog_CPP=$CPP
7838
7839 fi
7840 CPP=$ac_cv_prog_CPP
7841 else
7842 ac_cv_prog_CPP=$CPP
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7845 $as_echo "$CPP" >&6; }
7846 ac_preproc_ok=false
7847 for ac_c_preproc_warn_flag in '' yes
7848 do
7849 # Use a header file that comes with gcc, so configuring glibc
7850 # with a fresh cross-compiler works.
7851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852 # <limits.h> exists even on freestanding compilers.
7853 # On the NeXT, cc -E runs the code through the compiler's parser,
7854 # not just through cpp. "Syntax error" is here to catch this case.
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #ifdef __STDC__
7858 # include <limits.h>
7859 #else
7860 # include <assert.h>
7861 #endif
7862 Syntax error
7863 _ACEOF
7864 if ac_fn_c_try_cpp "$LINENO"; then :
7865
7866 else
7867 # Broken: fails on valid input.
7868 continue
7869 fi
7870 rm -f conftest.err conftest.i conftest.$ac_ext
7871
7872 # OK, works on sane cases. Now check whether nonexistent headers
7873 # can be detected and how.
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #include <ac_nonexistent.h>
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879 # Broken: success on invalid input.
7880 continue
7881 else
7882 # Passes both tests.
7883 ac_preproc_ok=:
7884 break
7885 fi
7886 rm -f conftest.err conftest.i conftest.$ac_ext
7887
7888 done
7889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7890 rm -f conftest.i conftest.err conftest.$ac_ext
7891 if $ac_preproc_ok; then :
7892
7893 else
7894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7896 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7897 See \`config.log' for more details" "$LINENO" 5; }
7898 fi
7899
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7908 $as_echo_n "checking for ANSI C header files... " >&6; }
7909 if ${ac_cv_header_stdc+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <stdlib.h>
7915 #include <stdarg.h>
7916 #include <string.h>
7917 #include <float.h>
7918
7919 int
7920 main ()
7921 {
7922
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 ac_cv_header_stdc=yes
7929 else
7930 ac_cv_header_stdc=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933
7934 if test $ac_cv_header_stdc = yes; then
7935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 #include <string.h>
7939
7940 _ACEOF
7941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942 $EGREP "memchr" >/dev/null 2>&1; then :
7943
7944 else
7945 ac_cv_header_stdc=no
7946 fi
7947 rm -f conftest*
7948
7949 fi
7950
7951 if test $ac_cv_header_stdc = yes; then
7952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 #include <stdlib.h>
7956
7957 _ACEOF
7958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959 $EGREP "free" >/dev/null 2>&1; then :
7960
7961 else
7962 ac_cv_header_stdc=no
7963 fi
7964 rm -f conftest*
7965
7966 fi
7967
7968 if test $ac_cv_header_stdc = yes; then
7969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7970 if test "$cross_compiling" = yes; then :
7971 :
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 #include <ctype.h>
7976 #include <stdlib.h>
7977 #if ((' ' & 0x0FF) == 0x020)
7978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7980 #else
7981 # define ISLOWER(c) \
7982 (('a' <= (c) && (c) <= 'i') \
7983 || ('j' <= (c) && (c) <= 'r') \
7984 || ('s' <= (c) && (c) <= 'z'))
7985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7986 #endif
7987
7988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7989 int
7990 main ()
7991 {
7992 int i;
7993 for (i = 0; i < 256; i++)
7994 if (XOR (islower (i), ISLOWER (i))
7995 || toupper (i) != TOUPPER (i))
7996 return 2;
7997 return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_run "$LINENO"; then :
8001
8002 else
8003 ac_cv_header_stdc=no
8004 fi
8005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8006 conftest.$ac_objext conftest.beam conftest.$ac_ext
8007 fi
8008
8009 fi
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8012 $as_echo "$ac_cv_header_stdc" >&6; }
8013 if test $ac_cv_header_stdc = yes; then
8014
8015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8016
8017 fi
8018
8019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8021 inttypes.h stdint.h unistd.h
8022 do :
8023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8025 "
8026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8027 cat >>confdefs.h <<_ACEOF
8028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029 _ACEOF
8030
8031 fi
8032
8033 done
8034
8035
8036 for ac_header in dlfcn.h
8037 do :
8038 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8039 "
8040 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_DLFCN_H 1
8043 _ACEOF
8044
8045 fi
8046
8047 done
8048
8049
8050
8051
8052
8053 # Set options
8054
8055
8056
8057 enable_dlopen=no
8058
8059
8060 enable_win32_dll=no
8061
8062
8063 # Check whether --enable-shared was given.
8064 if test "${enable_shared+set}" = set; then :
8065 enableval=$enable_shared; p=${PACKAGE-default}
8066 case $enableval in
8067 yes) enable_shared=yes ;;
8068 no) enable_shared=no ;;
8069 *)
8070 enable_shared=no
8071 # Look at the argument we got. We use all the common list separators.
8072 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8073 for pkg in $enableval; do
8074 IFS=$lt_save_ifs
8075 if test "X$pkg" = "X$p"; then
8076 enable_shared=yes
8077 fi
8078 done
8079 IFS=$lt_save_ifs
8080 ;;
8081 esac
8082 else
8083 enable_shared=yes
8084 fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 # Check whether --enable-static was given.
8095 if test "${enable_static+set}" = set; then :
8096 enableval=$enable_static; p=${PACKAGE-default}
8097 case $enableval in
8098 yes) enable_static=yes ;;
8099 no) enable_static=no ;;
8100 *)
8101 enable_static=no
8102 # Look at the argument we got. We use all the common list separators.
8103 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8104 for pkg in $enableval; do
8105 IFS=$lt_save_ifs
8106 if test "X$pkg" = "X$p"; then
8107 enable_static=yes
8108 fi
8109 done
8110 IFS=$lt_save_ifs
8111 ;;
8112 esac
8113 else
8114 enable_static=yes
8115 fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 # Check whether --with-pic was given.
8127 if test "${with_pic+set}" = set; then :
8128 withval=$with_pic; lt_p=${PACKAGE-default}
8129 case $withval in
8130 yes|no) pic_mode=$withval ;;
8131 *)
8132 pic_mode=default
8133 # Look at the argument we got. We use all the common list separators.
8134 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8135 for lt_pkg in $withval; do
8136 IFS=$lt_save_ifs
8137 if test "X$lt_pkg" = "X$lt_p"; then
8138 pic_mode=yes
8139 fi
8140 done
8141 IFS=$lt_save_ifs
8142 ;;
8143 esac
8144 else
8145 pic_mode=default
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155 # Check whether --enable-fast-install was given.
8156 if test "${enable_fast_install+set}" = set; then :
8157 enableval=$enable_fast_install; p=${PACKAGE-default}
8158 case $enableval in
8159 yes) enable_fast_install=yes ;;
8160 no) enable_fast_install=no ;;
8161 *)
8162 enable_fast_install=no
8163 # Look at the argument we got. We use all the common list separators.
8164 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8165 for pkg in $enableval; do
8166 IFS=$lt_save_ifs
8167 if test "X$pkg" = "X$p"; then
8168 enable_fast_install=yes
8169 fi
8170 done
8171 IFS=$lt_save_ifs
8172 ;;
8173 esac
8174 else
8175 enable_fast_install=yes
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184
8185 shared_archive_member_spec=
8186 case $host,$enable_shared in
8187 power*-*-aix[5-9]*,yes)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8189 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8190
8191 # Check whether --with-aix-soname was given.
8192 if test "${with_aix_soname+set}" = set; then :
8193 withval=$with_aix_soname; case $withval in
8194 aix|svr4|both)
8195 ;;
8196 *)
8197 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8198 ;;
8199 esac
8200 lt_cv_with_aix_soname=$with_aix_soname
8201 else
8202 if ${lt_cv_with_aix_soname+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 lt_cv_with_aix_soname=aix
8206 fi
8207
8208 with_aix_soname=$lt_cv_with_aix_soname
8209 fi
8210
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8212 $as_echo "$with_aix_soname" >&6; }
8213 if test aix != "$with_aix_soname"; then
8214 # For the AIX way of multilib, we name the shared archive member
8215 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8216 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8217 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8218 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8219 if test 64 = "${OBJECT_MODE-32}"; then
8220 shared_archive_member_spec=shr_64
8221 else
8222 shared_archive_member_spec=shr
8223 fi
8224 fi
8225 ;;
8226 *)
8227 with_aix_soname=aix
8228 ;;
8229 esac
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 # This can be used to rebuild libtool when needed
8241 LIBTOOL_DEPS=$ltmain
8242
8243 # Always use our own libtool.
8244 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275 test -z "$LN_S" && LN_S="ln -s"
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 if test -n "${ZSH_VERSION+set}"; then
8291 setopt NO_GLOB_SUBST
8292 fi
8293
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8295 $as_echo_n "checking for objdir... " >&6; }
8296 if ${lt_cv_objdir+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 rm -f .libs 2>/dev/null
8300 mkdir .libs 2>/dev/null
8301 if test -d .libs; then
8302 lt_cv_objdir=.libs
8303 else
8304 # MS-DOS does not allow filenames that begin with a dot.
8305 lt_cv_objdir=_libs
8306 fi
8307 rmdir .libs 2>/dev/null
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8310 $as_echo "$lt_cv_objdir" >&6; }
8311 objdir=$lt_cv_objdir
8312
8313
8314
8315
8316
8317 cat >>confdefs.h <<_ACEOF
8318 #define LT_OBJDIR "$lt_cv_objdir/"
8319 _ACEOF
8320
8321
8322
8323
8324 case $host_os in
8325 aix3*)
8326 # AIX sometimes has problems with the GCC collect2 program. For some
8327 # reason, if we set the COLLECT_NAMES environment variable, the problems
8328 # vanish in a puff of smoke.
8329 if test set != "${COLLECT_NAMES+set}"; then
8330 COLLECT_NAMES=
8331 export COLLECT_NAMES
8332 fi
8333 ;;
8334 esac
8335
8336 # Global variables:
8337 ofile=libtool
8338 can_build_shared=yes
8339
8340 # All known linkers require a '.a' archive for static linking (except MSVC,
8341 # which needs '.lib').
8342 libext=a
8343
8344 with_gnu_ld=$lt_cv_prog_gnu_ld
8345
8346 old_CC=$CC
8347 old_CFLAGS=$CFLAGS
8348
8349 # Set sane defaults for various variables
8350 test -z "$CC" && CC=cc
8351 test -z "$LTCC" && LTCC=$CC
8352 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8353 test -z "$LD" && LD=ld
8354 test -z "$ac_objext" && ac_objext=o
8355
8356 for cc_temp in $compiler""; do
8357 case $cc_temp in
8358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8360 \-*) ;;
8361 *) break;;
8362 esac
8363 done
8364 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8365
8366
8367 # Only perform the check for file, if the check method requires it
8368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8369 case $deplibs_check_method in
8370 file_magic*)
8371 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8373 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8374 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 case $MAGIC_CMD in
8378 [\\/*] | ?:[\\/]*)
8379 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8380 ;;
8381 *)
8382 lt_save_MAGIC_CMD=$MAGIC_CMD
8383 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385 for ac_dir in $ac_dummy; do
8386 IFS=$lt_save_ifs
8387 test -z "$ac_dir" && ac_dir=.
8388 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8389 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8390 if test -n "$file_magic_test_file"; then
8391 case $deplibs_check_method in
8392 "file_magic "*)
8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396 $EGREP "$file_magic_regex" > /dev/null; then
8397 :
8398 else
8399 cat <<_LT_EOF 1>&2
8400
8401 *** Warning: the command libtool uses to detect shared libraries,
8402 *** $file_magic_cmd, produces output that libtool cannot recognize.
8403 *** The result is that libtool may fail to recognize shared libraries
8404 *** as such. This will affect the creation of libtool libraries that
8405 *** depend on shared libraries, but programs linked with such libtool
8406 *** libraries will work regardless of this problem. Nevertheless, you
8407 *** may want to report the problem to your system manager and/or to
8408 *** bug-libtool@gnu.org
8409
8410 _LT_EOF
8411 fi ;;
8412 esac
8413 fi
8414 break
8415 fi
8416 done
8417 IFS=$lt_save_ifs
8418 MAGIC_CMD=$lt_save_MAGIC_CMD
8419 ;;
8420 esac
8421 fi
8422
8423 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8424 if test -n "$MAGIC_CMD"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8426 $as_echo "$MAGIC_CMD" >&6; }
8427 else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8430 fi
8431
8432
8433
8434
8435
8436 if test -z "$lt_cv_path_MAGIC_CMD"; then
8437 if test -n "$ac_tool_prefix"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8439 $as_echo_n "checking for file... " >&6; }
8440 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 case $MAGIC_CMD in
8444 [\\/*] | ?:[\\/]*)
8445 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8446 ;;
8447 *)
8448 lt_save_MAGIC_CMD=$MAGIC_CMD
8449 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8450 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8451 for ac_dir in $ac_dummy; do
8452 IFS=$lt_save_ifs
8453 test -z "$ac_dir" && ac_dir=.
8454 if test -f "$ac_dir/file"; then
8455 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8456 if test -n "$file_magic_test_file"; then
8457 case $deplibs_check_method in
8458 "file_magic "*)
8459 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8461 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8462 $EGREP "$file_magic_regex" > /dev/null; then
8463 :
8464 else
8465 cat <<_LT_EOF 1>&2
8466
8467 *** Warning: the command libtool uses to detect shared libraries,
8468 *** $file_magic_cmd, produces output that libtool cannot recognize.
8469 *** The result is that libtool may fail to recognize shared libraries
8470 *** as such. This will affect the creation of libtool libraries that
8471 *** depend on shared libraries, but programs linked with such libtool
8472 *** libraries will work regardless of this problem. Nevertheless, you
8473 *** may want to report the problem to your system manager and/or to
8474 *** bug-libtool@gnu.org
8475
8476 _LT_EOF
8477 fi ;;
8478 esac
8479 fi
8480 break
8481 fi
8482 done
8483 IFS=$lt_save_ifs
8484 MAGIC_CMD=$lt_save_MAGIC_CMD
8485 ;;
8486 esac
8487 fi
8488
8489 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8490 if test -n "$MAGIC_CMD"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8492 $as_echo "$MAGIC_CMD" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8496 fi
8497
8498
8499 else
8500 MAGIC_CMD=:
8501 fi
8502 fi
8503
8504 fi
8505 ;;
8506 esac
8507
8508 # Use C for the default configuration in the libtool script
8509
8510 lt_save_CC=$CC
8511 ac_ext=c
8512 ac_cpp='$CPP $CPPFLAGS'
8513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516
8517
8518 # Source file extension for C test sources.
8519 ac_ext=c
8520
8521 # Object file extension for compiled C test sources.
8522 objext=o
8523 objext=$objext
8524
8525 # Code to be used in simple compile tests
8526 lt_simple_compile_test_code="int some_variable = 0;"
8527
8528 # Code to be used in simple link tests
8529 lt_simple_link_test_code='int main(){return(0);}'
8530
8531
8532
8533
8534
8535
8536
8537 # If no C compiler was specified, use CC.
8538 LTCC=${LTCC-"$CC"}
8539
8540 # If no C compiler flags were specified, use CFLAGS.
8541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8542
8543 # Allow CC to be a program name with arguments.
8544 compiler=$CC
8545
8546 # Save the default compiler, since it gets overwritten when the other
8547 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8548 compiler_DEFAULT=$CC
8549
8550 # save warnings/boilerplate of simple test code
8551 ac_outfile=conftest.$ac_objext
8552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8554 _lt_compiler_boilerplate=`cat conftest.err`
8555 $RM conftest*
8556
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560 _lt_linker_boilerplate=`cat conftest.err`
8561 $RM -r conftest*
8562
8563
8564 if test -n "$compiler"; then
8565
8566 lt_prog_compiler_no_builtin_flag=
8567
8568 if test yes = "$GCC"; then
8569 case $cc_basename in
8570 nvcc*)
8571 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8572 *)
8573 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8574 esac
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8578 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 lt_cv_prog_compiler_rtti_exceptions=no
8582 ac_outfile=conftest.$ac_objext
8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 # The option is referenced via a variable to avoid confusing sed.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>conftest.err)
8596 ac_status=$?
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s "$ac_outfile"; then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings other than the usual output.
8602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_rtti_exceptions=yes
8606 fi
8607 fi
8608 $RM conftest*
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8613
8614 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8615 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8616 else
8617 :
8618 fi
8619
8620 fi
8621
8622
8623
8624
8625
8626
8627 lt_prog_compiler_wl=
8628 lt_prog_compiler_pic=
8629 lt_prog_compiler_static=
8630
8631
8632 if test yes = "$GCC"; then
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_static='-static'
8635
8636 case $host_os in
8637 aix*)
8638 # All AIX code is PIC.
8639 if test ia64 = "$host_cpu"; then
8640 # AIX 5 now supports IA64 processor
8641 lt_prog_compiler_static='-Bstatic'
8642 fi
8643 lt_prog_compiler_pic='-fPIC'
8644 ;;
8645
8646 amigaos*)
8647 case $host_cpu in
8648 powerpc)
8649 # see comment about AmigaOS4 .so support
8650 lt_prog_compiler_pic='-fPIC'
8651 ;;
8652 m68k)
8653 # FIXME: we need at least 68020 code to build shared libraries, but
8654 # adding the '-m68020' flag to GCC prevents building anything better,
8655 # like '-m68040'.
8656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8657 ;;
8658 esac
8659 ;;
8660
8661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 # PIC is the default for these OSes.
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8669 # (--disable-auto-import) libraries
8670 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 case $host_os in
8672 os2*)
8673 lt_prog_compiler_static='$wl-static'
8674 ;;
8675 esac
8676 ;;
8677
8678 darwin* | rhapsody*)
8679 # PIC is the default on this platform
8680 # Common symbols not allowed in MH_DYLIB files
8681 lt_prog_compiler_pic='-fno-common'
8682 ;;
8683
8684 haiku*)
8685 # PIC is the default for Haiku.
8686 # The "-static" flag exists, but is broken.
8687 lt_prog_compiler_static=
8688 ;;
8689
8690 hpux*)
8691 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8692 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8693 # sets the default TLS model and affects inlining.
8694 case $host_cpu in
8695 hppa*64*)
8696 # +Z the default
8697 ;;
8698 *)
8699 lt_prog_compiler_pic='-fPIC'
8700 ;;
8701 esac
8702 ;;
8703
8704 interix[3-9]*)
8705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8706 # Instead, we relocate shared libraries at runtime.
8707 ;;
8708
8709 msdosdjgpp*)
8710 # Just because we use GCC doesn't mean we suddenly get shared libraries
8711 # on systems that don't support them.
8712 lt_prog_compiler_can_build_shared=no
8713 enable_shared=no
8714 ;;
8715
8716 *nto* | *qnx*)
8717 # QNX uses GNU C++, but need to define -shared option too, otherwise
8718 # it will coredump.
8719 lt_prog_compiler_pic='-fPIC -shared'
8720 ;;
8721
8722 sysv4*MP*)
8723 if test -d /usr/nec; then
8724 lt_prog_compiler_pic=-Kconform_pic
8725 fi
8726 ;;
8727
8728 *)
8729 lt_prog_compiler_pic='-fPIC'
8730 ;;
8731 esac
8732
8733 case $cc_basename in
8734 nvcc*) # Cuda Compiler Driver 2.2
8735 lt_prog_compiler_wl='-Xlinker '
8736 if test -n "$lt_prog_compiler_pic"; then
8737 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8738 fi
8739 ;;
8740 esac
8741 else
8742 # PORTME Check for flag to pass linker flags through the system compiler.
8743 case $host_os in
8744 aix*)
8745 lt_prog_compiler_wl='-Wl,'
8746 if test ia64 = "$host_cpu"; then
8747 # AIX 5 now supports IA64 processor
8748 lt_prog_compiler_static='-Bstatic'
8749 else
8750 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8751 fi
8752 ;;
8753
8754 darwin* | rhapsody*)
8755 # PIC is the default on this platform
8756 # Common symbols not allowed in MH_DYLIB files
8757 lt_prog_compiler_pic='-fno-common'
8758 case $cc_basename in
8759 nagfor*)
8760 # NAG Fortran compiler
8761 lt_prog_compiler_wl='-Wl,-Wl,,'
8762 lt_prog_compiler_pic='-PIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 ;;
8765 esac
8766 ;;
8767
8768 mingw* | cygwin* | pw32* | os2* | cegcc*)
8769 # This hack is so that the source file can tell whether it is being
8770 # built for inclusion in a dll (and should export symbols for example).
8771 lt_prog_compiler_pic='-DDLL_EXPORT'
8772 case $host_os in
8773 os2*)
8774 lt_prog_compiler_static='$wl-static'
8775 ;;
8776 esac
8777 ;;
8778
8779 hpux9* | hpux10* | hpux11*)
8780 lt_prog_compiler_wl='-Wl,'
8781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8782 # not for PA HP-UX.
8783 case $host_cpu in
8784 hppa*64*|ia64*)
8785 # +Z the default
8786 ;;
8787 *)
8788 lt_prog_compiler_pic='+Z'
8789 ;;
8790 esac
8791 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8792 lt_prog_compiler_static='$wl-a ${wl}archive'
8793 ;;
8794
8795 irix5* | irix6* | nonstopux*)
8796 lt_prog_compiler_wl='-Wl,'
8797 # PIC (with -KPIC) is the default.
8798 lt_prog_compiler_static='-non_shared'
8799 ;;
8800
8801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8802 case $cc_basename in
8803 # old Intel for x86_64, which still supported -KPIC.
8804 ecc*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-static'
8808 ;;
8809 # icc used to be incompatible with GCC.
8810 # ICC 10 doesn't accept -KPIC any more.
8811 icc* | ifort*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-fPIC'
8814 lt_prog_compiler_static='-static'
8815 ;;
8816 # Lahey Fortran 8.1.
8817 lf95*)
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='--shared'
8820 lt_prog_compiler_static='--static'
8821 ;;
8822 nagfor*)
8823 # NAG Fortran compiler
8824 lt_prog_compiler_wl='-Wl,-Wl,,'
8825 lt_prog_compiler_pic='-PIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 ;;
8828 tcc*)
8829 # Fabrice Bellard et al's Tiny C Compiler
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-fPIC'
8832 lt_prog_compiler_static='-static'
8833 ;;
8834 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8835 # Portland Group compilers (*not* the Pentium gcc compiler,
8836 # which looks to be a dead project)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-fpic'
8839 lt_prog_compiler_static='-Bstatic'
8840 ;;
8841 ccc*)
8842 lt_prog_compiler_wl='-Wl,'
8843 # All Alpha code is PIC.
8844 lt_prog_compiler_static='-non_shared'
8845 ;;
8846 xl* | bgxl* | bgf* | mpixl*)
8847 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='-qpic'
8850 lt_prog_compiler_static='-qstaticlink'
8851 ;;
8852 *)
8853 case `$CC -V 2>&1 | sed 5q` in
8854 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8855 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8858 lt_prog_compiler_wl=''
8859 ;;
8860 *Sun\ F* | *Sun*Fortran*)
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8863 lt_prog_compiler_wl='-Qoption ld '
8864 ;;
8865 *Sun\ C*)
8866 # Sun C 5.9
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 lt_prog_compiler_wl='-Wl,'
8870 ;;
8871 *Intel*\ [CF]*Compiler*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-fPIC'
8874 lt_prog_compiler_static='-static'
8875 ;;
8876 *Portland\ Group*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-fpic'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881 esac
8882 ;;
8883 esac
8884 ;;
8885
8886 newsos6)
8887 lt_prog_compiler_pic='-KPIC'
8888 lt_prog_compiler_static='-Bstatic'
8889 ;;
8890
8891 *nto* | *qnx*)
8892 # QNX uses GNU C++, but need to define -shared option too, otherwise
8893 # it will coredump.
8894 lt_prog_compiler_pic='-fPIC -shared'
8895 ;;
8896
8897 osf3* | osf4* | osf5*)
8898 lt_prog_compiler_wl='-Wl,'
8899 # All OSF/1 code is PIC.
8900 lt_prog_compiler_static='-non_shared'
8901 ;;
8902
8903 rdos*)
8904 lt_prog_compiler_static='-non_shared'
8905 ;;
8906
8907 solaris*)
8908 lt_prog_compiler_pic='-KPIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 case $cc_basename in
8911 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8912 lt_prog_compiler_wl='-Qoption ld ';;
8913 *)
8914 lt_prog_compiler_wl='-Wl,';;
8915 esac
8916 ;;
8917
8918 sunos4*)
8919 lt_prog_compiler_wl='-Qoption ld '
8920 lt_prog_compiler_pic='-PIC'
8921 lt_prog_compiler_static='-Bstatic'
8922 ;;
8923
8924 sysv4 | sysv4.2uw2* | sysv4.3*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 ;;
8929
8930 sysv4*MP*)
8931 if test -d /usr/nec; then
8932 lt_prog_compiler_pic='-Kconform_pic'
8933 lt_prog_compiler_static='-Bstatic'
8934 fi
8935 ;;
8936
8937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-KPIC'
8940 lt_prog_compiler_static='-Bstatic'
8941 ;;
8942
8943 unicos*)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_can_build_shared=no
8946 ;;
8947
8948 uts4*)
8949 lt_prog_compiler_pic='-pic'
8950 lt_prog_compiler_static='-Bstatic'
8951 ;;
8952
8953 *)
8954 lt_prog_compiler_can_build_shared=no
8955 ;;
8956 esac
8957 fi
8958
8959 case $host_os in
8960 # For platforms that do not support PIC, -DPIC is meaningless:
8961 *djgpp*)
8962 lt_prog_compiler_pic=
8963 ;;
8964 *)
8965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8966 ;;
8967 esac
8968
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8970 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8971 if ${lt_cv_prog_compiler_pic+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8977 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8978 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8979
8980 #
8981 # Check to make sure the PIC flag actually works.
8982 #
8983 if test -n "$lt_prog_compiler_pic"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8986 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 lt_cv_prog_compiler_pic_works=no
8990 ac_outfile=conftest.$ac_objext
8991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8993 # Insert the option either (1) after the last *FLAGS variable, or
8994 # (2) before a word containing "conftest.", or (3) at the end.
8995 # Note that $ac_compile itself does not contain backslashes and begins
8996 # with a dollar sign (not a hyphen), so the echo should work correctly.
8997 # The option is referenced via a variable to avoid confusing sed.
8998 lt_compile=`echo "$ac_compile" | $SED \
8999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001 -e 's:$: $lt_compiler_flag:'`
9002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003 (eval "$lt_compile" 2>conftest.err)
9004 ac_status=$?
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 if (exit $ac_status) && test -s "$ac_outfile"; then
9008 # The compiler can only warn and ignore the option if not recognized
9009 # So say no if there are warnings other than the usual output.
9010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_pic_works=yes
9014 fi
9015 fi
9016 $RM conftest*
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021
9022 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9023 case $lt_prog_compiler_pic in
9024 "" | " "*) ;;
9025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026 esac
9027 else
9028 lt_prog_compiler_pic=
9029 lt_prog_compiler_can_build_shared=no
9030 fi
9031
9032 fi
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044 #
9045 # Check to make sure the static flag actually works.
9046 #
9047 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9049 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9050 if ${lt_cv_prog_compiler_static_works+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 lt_cv_prog_compiler_static_works=no
9054 save_LDFLAGS=$LDFLAGS
9055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9058 # The linker can only warn and ignore the option if not recognized
9059 # So say no if there are warnings
9060 if test -s conftest.err; then
9061 # Append any errors to the config.log.
9062 cat conftest.err 1>&5
9063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065 if diff conftest.exp conftest.er2 >/dev/null; then
9066 lt_cv_prog_compiler_static_works=yes
9067 fi
9068 else
9069 lt_cv_prog_compiler_static_works=yes
9070 fi
9071 fi
9072 $RM -r conftest*
9073 LDFLAGS=$save_LDFLAGS
9074
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9077 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9078
9079 if test yes = "$lt_cv_prog_compiler_static_works"; then
9080 :
9081 else
9082 lt_prog_compiler_static=
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9093 if ${lt_cv_prog_compiler_c_o+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 lt_cv_prog_compiler_c_o=no
9097 $RM -r conftest 2>/dev/null
9098 mkdir conftest
9099 cd conftest
9100 mkdir out
9101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102
9103 lt_compiler_flag="-o out/conftest2.$ac_objext"
9104 # Insert the option either (1) after the last *FLAGS variable, or
9105 # (2) before a word containing "conftest.", or (3) at the end.
9106 # Note that $ac_compile itself does not contain backslashes and begins
9107 # with a dollar sign (not a hyphen), so the echo should work correctly.
9108 lt_compile=`echo "$ac_compile" | $SED \
9109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111 -e 's:$: $lt_compiler_flag:'`
9112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9113 (eval "$lt_compile" 2>out/conftest.err)
9114 ac_status=$?
9115 cat out/conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9118 then
9119 # The compiler can only warn and ignore the option if not recognized
9120 # So say no if there are warnings
9121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9124 lt_cv_prog_compiler_c_o=yes
9125 fi
9126 fi
9127 chmod u+w . 2>&5
9128 $RM conftest*
9129 # SGI C++ compiler will create directory out/ii_files/ for
9130 # template instantiation
9131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9132 $RM out/* && rmdir out
9133 cd ..
9134 $RM -r conftest
9135 $RM conftest*
9136
9137 fi
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9139 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9140
9141
9142
9143
9144
9145
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9148 if ${lt_cv_prog_compiler_c_o+:} false; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 lt_cv_prog_compiler_c_o=no
9152 $RM -r conftest 2>/dev/null
9153 mkdir conftest
9154 cd conftest
9155 mkdir out
9156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9157
9158 lt_compiler_flag="-o out/conftest2.$ac_objext"
9159 # Insert the option either (1) after the last *FLAGS variable, or
9160 # (2) before a word containing "conftest.", or (3) at the end.
9161 # Note that $ac_compile itself does not contain backslashes and begins
9162 # with a dollar sign (not a hyphen), so the echo should work correctly.
9163 lt_compile=`echo "$ac_compile" | $SED \
9164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9166 -e 's:$: $lt_compiler_flag:'`
9167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9168 (eval "$lt_compile" 2>out/conftest.err)
9169 ac_status=$?
9170 cat out/conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9173 then
9174 # The compiler can only warn and ignore the option if not recognized
9175 # So say no if there are warnings
9176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9179 lt_cv_prog_compiler_c_o=yes
9180 fi
9181 fi
9182 chmod u+w . 2>&5
9183 $RM conftest*
9184 # SGI C++ compiler will create directory out/ii_files/ for
9185 # template instantiation
9186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9187 $RM out/* && rmdir out
9188 cd ..
9189 $RM -r conftest
9190 $RM conftest*
9191
9192 fi
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9195
9196
9197
9198
9199 hard_links=nottested
9200 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9201 # do not overwrite the value of need_locks provided by the user
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9203 $as_echo_n "checking if we can lock with hard links... " >&6; }
9204 hard_links=yes
9205 $RM conftest*
9206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207 touch conftest.a
9208 ln conftest.a conftest.b 2>&5 || hard_links=no
9209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9211 $as_echo "$hard_links" >&6; }
9212 if test no = "$hard_links"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9214 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9215 need_locks=warn
9216 fi
9217 else
9218 need_locks=no
9219 fi
9220
9221
9222
9223
9224
9225
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228
9229 runpath_var=
9230 allow_undefined_flag=
9231 always_export_symbols=no
9232 archive_cmds=
9233 archive_expsym_cmds=
9234 compiler_needs_object=no
9235 enable_shared_with_static_runtimes=no
9236 export_dynamic_flag_spec=
9237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9238 hardcode_automatic=no
9239 hardcode_direct=no
9240 hardcode_direct_absolute=no
9241 hardcode_libdir_flag_spec=
9242 hardcode_libdir_separator=
9243 hardcode_minus_L=no
9244 hardcode_shlibpath_var=unsupported
9245 inherit_rpath=no
9246 link_all_deplibs=unknown
9247 module_cmds=
9248 module_expsym_cmds=
9249 old_archive_from_new_cmds=
9250 old_archive_from_expsyms_cmds=
9251 thread_safe_flag_spec=
9252 whole_archive_flag_spec=
9253 # include_expsyms should be a list of space-separated symbols to be *always*
9254 # included in the symbol list
9255 include_expsyms=
9256 # exclude_expsyms can be an extended regexp of symbols to exclude
9257 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9258 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9259 # as well as any symbol that contains 'd'.
9260 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9262 # platforms (ab)use it in PIC code, but their linkers get confused if
9263 # the symbol is explicitly referenced. Since portable code cannot
9264 # rely on this symbol name, it's probably fine to never include it in
9265 # preloaded symbol tables.
9266 # Exclude shared library initialization/finalization symbols.
9267 extract_expsyms_cmds=
9268
9269 case $host_os in
9270 cygwin* | mingw* | pw32* | cegcc*)
9271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 if test yes != "$GCC"; then
9275 with_gnu_ld=no
9276 fi
9277 ;;
9278 interix*)
9279 # we just hope/assume this is gcc and not c89 (= MSVC++)
9280 with_gnu_ld=yes
9281 ;;
9282 openbsd* | bitrig*)
9283 with_gnu_ld=no
9284 ;;
9285 esac
9286
9287 ld_shlibs=yes
9288
9289 # On some targets, GNU ld is compatible enough with the native linker
9290 # that we're better off using the native interface for both.
9291 lt_use_gnu_ld_interface=no
9292 if test yes = "$with_gnu_ld"; then
9293 case $host_os in
9294 aix*)
9295 # The AIX port of GNU ld has always aspired to compatibility
9296 # with the native linker. However, as the warning in the GNU ld
9297 # block says, versions before 2.19.5* couldn't really create working
9298 # shared libraries, regardless of the interface used.
9299 case `$LD -v 2>&1` in
9300 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9301 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9302 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9303 *)
9304 lt_use_gnu_ld_interface=yes
9305 ;;
9306 esac
9307 ;;
9308 *)
9309 lt_use_gnu_ld_interface=yes
9310 ;;
9311 esac
9312 fi
9313
9314 if test yes = "$lt_use_gnu_ld_interface"; then
9315 # If archive_cmds runs LD, not CC, wlarc should be empty
9316 wlarc='$wl'
9317
9318 # Set some defaults for GNU ld with shared library support. These
9319 # are reset later if shared libraries are not supported. Putting them
9320 # here allows them to be overridden if necessary.
9321 runpath_var=LD_RUN_PATH
9322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9323 export_dynamic_flag_spec='$wl--export-dynamic'
9324 # ancient GNU ld didn't support --whole-archive et. al.
9325 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9326 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9327 else
9328 whole_archive_flag_spec=
9329 fi
9330 supports_anon_versioning=no
9331 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9332 *GNU\ gold*) supports_anon_versioning=yes ;;
9333 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9336 *\ 2.11.*) ;; # other 2.11 versions
9337 *) supports_anon_versioning=yes ;;
9338 esac
9339
9340 # See if GNU ld supports shared libraries.
9341 case $host_os in
9342 aix[3-9]*)
9343 # On AIX/PPC, the GNU linker is very broken
9344 if test ia64 != "$host_cpu"; then
9345 ld_shlibs=no
9346 cat <<_LT_EOF 1>&2
9347
9348 *** Warning: the GNU linker, at least up to release 2.19, is reported
9349 *** to be unable to reliably create shared libraries on AIX.
9350 *** Therefore, libtool is disabling shared libraries support. If you
9351 *** really care for shared libraries, you may want to install binutils
9352 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9353 *** You will then need to restart the configuration process.
9354
9355 _LT_EOF
9356 fi
9357 ;;
9358
9359 amigaos*)
9360 case $host_cpu in
9361 powerpc)
9362 # see comment about AmigaOS4 .so support
9363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9364 archive_expsym_cmds=''
9365 ;;
9366 m68k)
9367 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)'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_minus_L=yes
9370 ;;
9371 esac
9372 ;;
9373
9374 beos*)
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 allow_undefined_flag=unsupported
9377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9378 # support --undefined. This deserves some investigation. FIXME
9379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 cygwin* | mingw* | pw32* | cegcc*)
9386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9387 # as there is no search path for DLLs.
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 export_dynamic_flag_spec='$wl--export-all-symbols'
9390 allow_undefined_flag=unsupported
9391 always_export_symbols=no
9392 enable_shared_with_static_runtimes=yes
9393 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'
9394 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9395
9396 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9398 # If the export-symbols file already is a .def file, use it as
9399 # is; otherwise, prepend EXPORTS...
9400 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9401 cp $export_symbols $output_objdir/$soname.def;
9402 else
9403 echo EXPORTS > $output_objdir/$soname.def;
9404 cat $export_symbols >> $output_objdir/$soname.def;
9405 fi~
9406 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411
9412 haiku*)
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9414 link_all_deplibs=yes
9415 ;;
9416
9417 os2*)
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_minus_L=yes
9420 allow_undefined_flag=unsupported
9421 shrext_cmds=.dll
9422 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9423 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9424 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9425 $ECHO EXPORTS >> $output_objdir/$libname.def~
9426 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9428 emximp -o $lib $output_objdir/$libname.def'
9429 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9430 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9431 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9432 $ECHO EXPORTS >> $output_objdir/$libname.def~
9433 prefix_cmds="$SED"~
9434 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9435 prefix_cmds="$prefix_cmds -e 1d";
9436 fi~
9437 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9438 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9440 emximp -o $lib $output_objdir/$libname.def'
9441 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9442 enable_shared_with_static_runtimes=yes
9443 ;;
9444
9445 interix[3-9]*)
9446 hardcode_direct=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9449 export_dynamic_flag_spec='$wl-E'
9450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9451 # Instead, shared libraries are loaded at an image base (0x10000000 by
9452 # default) and relocated if they conflict, which is a slow very memory
9453 # consuming and fragmenting process. To avoid this, we pick a random,
9454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9457 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'
9458 ;;
9459
9460 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9461 tmp_diet=no
9462 if test linux-dietlibc = "$host_os"; then
9463 case $cc_basename in
9464 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9465 esac
9466 fi
9467 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9468 && test no = "$tmp_diet"
9469 then
9470 tmp_addflag=' $pic_flag'
9471 tmp_sharedflag='-shared'
9472 case $cc_basename,$host_cpu in
9473 pgcc*) # Portland Group C compiler
9474 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'
9475 tmp_addflag=' $pic_flag'
9476 ;;
9477 pgf77* | pgf90* | pgf95* | pgfortran*)
9478 # Portland Group f77 and f90 compilers
9479 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'
9480 tmp_addflag=' $pic_flag -Mnomain' ;;
9481 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9482 tmp_addflag=' -i_dynamic' ;;
9483 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9484 tmp_addflag=' -i_dynamic -nofor_main' ;;
9485 ifc* | ifort*) # Intel Fortran compiler
9486 tmp_addflag=' -nofor_main' ;;
9487 lf95*) # Lahey Fortran 8.1
9488 whole_archive_flag_spec=
9489 tmp_sharedflag='--shared' ;;
9490 nagfor*) # NAGFOR 5.3
9491 tmp_sharedflag='-Wl,-shared' ;;
9492 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9493 tmp_sharedflag='-qmkshrobj'
9494 tmp_addflag= ;;
9495 nvcc*) # Cuda Compiler Driver 2.2
9496 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'
9497 compiler_needs_object=yes
9498 ;;
9499 esac
9500 case `$CC -V 2>&1 | sed 5q` in
9501 *Sun\ C*) # Sun C 5.9
9502 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'
9503 compiler_needs_object=yes
9504 tmp_sharedflag='-G' ;;
9505 *Sun\ F*) # Sun Fortran 8.3
9506 tmp_sharedflag='-G' ;;
9507 esac
9508 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509
9510 if test yes = "$supports_anon_versioning"; then
9511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9513 echo "local: *; };" >> $output_objdir/$libname.ver~
9514 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9515 fi
9516
9517 case $cc_basename in
9518 tcc*)
9519 export_dynamic_flag_spec='-rdynamic'
9520 ;;
9521 xlf* | bgf* | bgxlf* | mpixlf*)
9522 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9523 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9524 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9525 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9526 if test yes = "$supports_anon_versioning"; then
9527 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9529 echo "local: *; };" >> $output_objdir/$libname.ver~
9530 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9531 fi
9532 ;;
9533 esac
9534 else
9535 ld_shlibs=no
9536 fi
9537 ;;
9538
9539 netbsd*)
9540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9541 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9542 wlarc=
9543 else
9544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9545 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9546 fi
9547 ;;
9548
9549 solaris*)
9550 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9551 ld_shlibs=no
9552 cat <<_LT_EOF 1>&2
9553
9554 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9555 *** create shared libraries on Solaris systems. Therefore, libtool
9556 *** is disabling shared libraries support. We urge you to upgrade GNU
9557 *** binutils to release 2.9.1 or newer. Another option is to modify
9558 *** your PATH or compiler configuration so that the native linker is
9559 *** used, and then restart.
9560
9561 _LT_EOF
9562 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9565 else
9566 ld_shlibs=no
9567 fi
9568 ;;
9569
9570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9571 case `$LD -v 2>&1` in
9572 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9573 ld_shlibs=no
9574 cat <<_LT_EOF 1>&2
9575
9576 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9577 *** reliably create shared libraries on SCO systems. Therefore, libtool
9578 *** is disabling shared libraries support. We urge you to upgrade GNU
9579 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9580 *** your PATH or compiler configuration so that the native linker is
9581 *** used, and then restart.
9582
9583 _LT_EOF
9584 ;;
9585 *)
9586 # For security reasons, it is highly recommended that you always
9587 # use absolute paths for naming shared libraries, and exclude the
9588 # DT_RUNPATH tag from executables and libraries. But doing so
9589 # requires that you compile everything twice, which is a pain.
9590 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9591 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9594 else
9595 ld_shlibs=no
9596 fi
9597 ;;
9598 esac
9599 ;;
9600
9601 sunos4*)
9602 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9603 wlarc=
9604 hardcode_direct=yes
9605 hardcode_shlibpath_var=no
9606 ;;
9607
9608 *)
9609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9611 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9612 else
9613 ld_shlibs=no
9614 fi
9615 ;;
9616 esac
9617
9618 if test no = "$ld_shlibs"; then
9619 runpath_var=
9620 hardcode_libdir_flag_spec=
9621 export_dynamic_flag_spec=
9622 whole_archive_flag_spec=
9623 fi
9624 else
9625 # PORTME fill in a description of your system's linker (not GNU ld)
9626 case $host_os in
9627 aix3*)
9628 allow_undefined_flag=unsupported
9629 always_export_symbols=yes
9630 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'
9631 # Note: this linker hardcodes the directories in LIBPATH if there
9632 # are no directories specified by -L.
9633 hardcode_minus_L=yes
9634 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9635 # Neither direct hardcoding nor static linking is supported with a
9636 # broken collect2.
9637 hardcode_direct=unsupported
9638 fi
9639 ;;
9640
9641 aix[4-9]*)
9642 if test ia64 = "$host_cpu"; then
9643 # On IA64, the linker does run time linking by default, so we don't
9644 # have to do anything special.
9645 aix_use_runtimelinking=no
9646 exp_sym_flag='-Bexport'
9647 no_entry_flag=
9648 else
9649 # If we're using GNU nm, then we don't want the "-C" option.
9650 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9651 # Without the "-l" option, or with the "-B" option, AIX nm treats
9652 # weak defined symbols like other global defined symbols, whereas
9653 # GNU nm marks them as "W".
9654 # While the 'weak' keyword is ignored in the Export File, we need
9655 # it in the Import File for the 'aix-soname' feature, so we have
9656 # to replace the "-B" option with "-P" for AIX nm.
9657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9658 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'
9659 else
9660 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'
9661 fi
9662 aix_use_runtimelinking=no
9663
9664 # Test if we are trying to use run time linking or normal
9665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9666 # have runtime linking enabled, and use it for executables.
9667 # For shared libraries, we enable/disable runtime linking
9668 # depending on the kind of the shared library created -
9669 # when "with_aix_soname,aix_use_runtimelinking" is:
9670 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9671 # "aix,yes" lib.so shared, rtl:yes, for executables
9672 # lib.a static archive
9673 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9674 # lib.a(lib.so.V) shared, rtl:no, for executables
9675 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9676 # lib.a(lib.so.V) shared, rtl:no
9677 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9678 # lib.a static archive
9679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9680 for ld_flag in $LDFLAGS; do
9681 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9682 aix_use_runtimelinking=yes
9683 break
9684 fi
9685 done
9686 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9687 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9688 # so we don't have lib.a shared libs to link our executables.
9689 # We have to force runtime linking in this case.
9690 aix_use_runtimelinking=yes
9691 LDFLAGS="$LDFLAGS -Wl,-brtl"
9692 fi
9693 ;;
9694 esac
9695
9696 exp_sym_flag='-bexport'
9697 no_entry_flag='-bnoentry'
9698 fi
9699
9700 # When large executables or shared objects are built, AIX ld can
9701 # have problems creating the table of contents. If linking a library
9702 # or program results in "error TOC overflow" add -mminimal-toc to
9703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9705
9706 archive_cmds=''
9707 hardcode_direct=yes
9708 hardcode_direct_absolute=yes
9709 hardcode_libdir_separator=':'
9710 link_all_deplibs=yes
9711 file_list_spec='$wl-f,'
9712 case $with_aix_soname,$aix_use_runtimelinking in
9713 aix,*) ;; # traditional, no import file
9714 svr4,* | *,yes) # use import file
9715 # The Import File defines what to hardcode.
9716 hardcode_direct=no
9717 hardcode_direct_absolute=no
9718 ;;
9719 esac
9720
9721 if test yes = "$GCC"; then
9722 case $host_os in aix4.[012]|aix4.[012].*)
9723 # We only want to do this on AIX 4.2 and lower, the check
9724 # below for broken collect2 doesn't work under 4.3+
9725 collect2name=`$CC -print-prog-name=collect2`
9726 if test -f "$collect2name" &&
9727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9728 then
9729 # We have reworked collect2
9730 :
9731 else
9732 # We have old collect2
9733 hardcode_direct=unsupported
9734 # It fails to find uninstalled libraries when the uninstalled
9735 # path is not listed in the libpath. Setting hardcode_minus_L
9736 # to unsupported forces relinking
9737 hardcode_minus_L=yes
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_libdir_separator=
9740 fi
9741 ;;
9742 esac
9743 shared_flag='-shared'
9744 if test yes = "$aix_use_runtimelinking"; then
9745 shared_flag="$shared_flag "'$wl-G'
9746 fi
9747 # Need to ensure runtime linking is disabled for the traditional
9748 # shared library, or the linker may eventually find shared libraries
9749 # /with/ Import File - we do not want to mix them.
9750 shared_flag_aix='-shared'
9751 shared_flag_svr4='-shared $wl-G'
9752 else
9753 # not using gcc
9754 if test ia64 = "$host_cpu"; then
9755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9756 # chokes on -Wl,-G. The following line is correct:
9757 shared_flag='-G'
9758 else
9759 if test yes = "$aix_use_runtimelinking"; then
9760 shared_flag='$wl-G'
9761 else
9762 shared_flag='$wl-bM:SRE'
9763 fi
9764 shared_flag_aix='$wl-bM:SRE'
9765 shared_flag_svr4='$wl-G'
9766 fi
9767 fi
9768
9769 export_dynamic_flag_spec='$wl-bexpall'
9770 # It seems that -bexpall does not export symbols beginning with
9771 # underscore (_), so it is better to generate a list of symbols to export.
9772 always_export_symbols=yes
9773 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9774 # Warning - without using the other runtime loading flags (-brtl),
9775 # -berok will link without error, but may produce a broken library.
9776 allow_undefined_flag='-berok'
9777 # Determine the default libpath from the value encoded in an
9778 # empty executable.
9779 if test set = "${lt_cv_aix_libpath+set}"; then
9780 aix_libpath=$lt_cv_aix_libpath
9781 else
9782 if ${lt_cv_aix_libpath_+:} false; then :
9783 $as_echo_n "(cached) " >&6
9784 else
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787
9788 int
9789 main ()
9790 {
9791
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 if ac_fn_c_try_link "$LINENO"; then :
9797
9798 lt_aix_libpath_sed='
9799 /Import File Strings/,/^$/ {
9800 /^0/ {
9801 s/^0 *\([^ ]*\) *$/\1/
9802 p
9803 }
9804 }'
9805 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806 # Check for a 64-bit object if we didn't find anything.
9807 if test -z "$lt_cv_aix_libpath_"; then
9808 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9809 fi
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 if test -z "$lt_cv_aix_libpath_"; then
9814 lt_cv_aix_libpath_=/usr/lib:/lib
9815 fi
9816
9817 fi
9818
9819 aix_libpath=$lt_cv_aix_libpath_
9820 fi
9821
9822 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9823 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
9824 else
9825 if test ia64 = "$host_cpu"; then
9826 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9827 allow_undefined_flag="-z nodefs"
9828 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"
9829 else
9830 # Determine the default libpath from the value encoded in an
9831 # empty executable.
9832 if test set = "${lt_cv_aix_libpath+set}"; then
9833 aix_libpath=$lt_cv_aix_libpath
9834 else
9835 if ${lt_cv_aix_libpath_+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840
9841 int
9842 main ()
9843 {
9844
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850
9851 lt_aix_libpath_sed='
9852 /Import File Strings/,/^$/ {
9853 /^0/ {
9854 s/^0 *\([^ ]*\) *$/\1/
9855 p
9856 }
9857 }'
9858 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859 # Check for a 64-bit object if we didn't find anything.
9860 if test -z "$lt_cv_aix_libpath_"; then
9861 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9862 fi
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866 if test -z "$lt_cv_aix_libpath_"; then
9867 lt_cv_aix_libpath_=/usr/lib:/lib
9868 fi
9869
9870 fi
9871
9872 aix_libpath=$lt_cv_aix_libpath_
9873 fi
9874
9875 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9876 # Warning - without using the other run time loading flags,
9877 # -berok will link without error, but may produce a broken library.
9878 no_undefined_flag=' $wl-bernotok'
9879 allow_undefined_flag=' $wl-berok'
9880 if test yes = "$with_gnu_ld"; then
9881 # We only use this code for GNU lds that support --whole-archive.
9882 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9883 else
9884 # Exported symbols can be pulled into shared objects from archives
9885 whole_archive_flag_spec='$convenience'
9886 fi
9887 archive_cmds_need_lc=yes
9888 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9889 # -brtl affects multiple linker settings, -berok does not and is overridden later
9890 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9891 if test svr4 != "$with_aix_soname"; then
9892 # This is similar to how AIX traditionally builds its shared libraries.
9893 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'
9894 fi
9895 if test aix != "$with_aix_soname"; then
9896 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'
9897 else
9898 # used by -dlpreopen to get the symbols
9899 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9900 fi
9901 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9902 fi
9903 fi
9904 ;;
9905
9906 amigaos*)
9907 case $host_cpu in
9908 powerpc)
9909 # see comment about AmigaOS4 .so support
9910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9911 archive_expsym_cmds=''
9912 ;;
9913 m68k)
9914 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)'
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_minus_L=yes
9917 ;;
9918 esac
9919 ;;
9920
9921 bsdi[45]*)
9922 export_dynamic_flag_spec=-rdynamic
9923 ;;
9924
9925 cygwin* | mingw* | pw32* | cegcc*)
9926 # When not using gcc, we currently assume that we are using
9927 # Microsoft Visual C++.
9928 # hardcode_libdir_flag_spec is actually meaningless, as there is
9929 # no search path for DLLs.
9930 case $cc_basename in
9931 cl*)
9932 # Native MSVC
9933 hardcode_libdir_flag_spec=' '
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=yes
9936 file_list_spec='@'
9937 # Tell ltmain to make .lib files, not .a files.
9938 libext=lib
9939 # Tell ltmain to make .dll files, not .so files.
9940 shrext_cmds=.dll
9941 # FIXME: Setting linknames here is a bad hack.
9942 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9943 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9944 cp "$export_symbols" "$output_objdir/$soname.def";
9945 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9946 else
9947 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9948 fi~
9949 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9950 linknames='
9951 # The linker will not automatically build a static lib if we build a DLL.
9952 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9953 enable_shared_with_static_runtimes=yes
9954 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9956 # Don't use ranlib
9957 old_postinstall_cmds='chmod 644 $oldlib'
9958 postlink_cmds='lt_outputfile="@OUTPUT@"~
9959 lt_tool_outputfile="@TOOL_OUTPUT@"~
9960 case $lt_outputfile in
9961 *.exe|*.EXE) ;;
9962 *)
9963 lt_outputfile=$lt_outputfile.exe
9964 lt_tool_outputfile=$lt_tool_outputfile.exe
9965 ;;
9966 esac~
9967 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9968 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9969 $RM "$lt_outputfile.manifest";
9970 fi'
9971 ;;
9972 *)
9973 # Assume MSVC wrapper
9974 hardcode_libdir_flag_spec=' '
9975 allow_undefined_flag=unsupported
9976 # Tell ltmain to make .lib files, not .a files.
9977 libext=lib
9978 # Tell ltmain to make .dll files, not .so files.
9979 shrext_cmds=.dll
9980 # FIXME: Setting linknames here is a bad hack.
9981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9982 # The linker will automatically build a .lib file if we build a DLL.
9983 old_archive_from_new_cmds='true'
9984 # FIXME: Should let the user specify the lib program.
9985 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9986 enable_shared_with_static_runtimes=yes
9987 ;;
9988 esac
9989 ;;
9990
9991 darwin* | rhapsody*)
9992
9993
9994 archive_cmds_need_lc=no
9995 hardcode_direct=no
9996 hardcode_automatic=yes
9997 hardcode_shlibpath_var=unsupported
9998 if test yes = "$lt_cv_ld_force_load"; then
9999 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\"`'
10000
10001 else
10002 whole_archive_flag_spec=''
10003 fi
10004 link_all_deplibs=yes
10005 allow_undefined_flag=$_lt_dar_allow_undefined
10006 case $cc_basename in
10007 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10008 *) _lt_dar_can_shared=$GCC ;;
10009 esac
10010 if test yes = "$_lt_dar_can_shared"; then
10011 output_verbose_link_cmd=func_echo_all
10012 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10013 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10014 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"
10015 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"
10016
10017 else
10018 ld_shlibs=no
10019 fi
10020
10021 ;;
10022
10023 dgux*)
10024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025 hardcode_libdir_flag_spec='-L$libdir'
10026 hardcode_shlibpath_var=no
10027 ;;
10028
10029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10030 # support. Future versions do this automatically, but an explicit c++rt0.o
10031 # does not break anything, and helps significantly (at the cost of a little
10032 # extra space).
10033 freebsd2.2*)
10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 hardcode_direct=yes
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10041 freebsd2.*)
10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10043 hardcode_direct=yes
10044 hardcode_minus_L=yes
10045 hardcode_shlibpath_var=no
10046 ;;
10047
10048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10049 freebsd* | dragonfly*)
10050 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_direct=yes
10053 hardcode_shlibpath_var=no
10054 ;;
10055
10056 hpux9*)
10057 if test yes = "$GCC"; then
10058 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'
10059 else
10060 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'
10061 fi
10062 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_direct=yes
10065
10066 # hardcode_minus_L: Not really in the search PATH,
10067 # but as the default location of the library.
10068 hardcode_minus_L=yes
10069 export_dynamic_flag_spec='$wl-E'
10070 ;;
10071
10072 hpux10*)
10073 if test yes,no = "$GCC,$with_gnu_ld"; then
10074 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075 else
10076 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10077 fi
10078 if test no = "$with_gnu_ld"; then
10079 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10080 hardcode_libdir_separator=:
10081 hardcode_direct=yes
10082 hardcode_direct_absolute=yes
10083 export_dynamic_flag_spec='$wl-E'
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10087 fi
10088 ;;
10089
10090 hpux11*)
10091 if test yes,no = "$GCC,$with_gnu_ld"; then
10092 case $host_cpu in
10093 hppa*64*)
10094 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 ;;
10096 ia64*)
10097 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 *)
10100 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10101 ;;
10102 esac
10103 else
10104 case $host_cpu in
10105 hppa*64*)
10106 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 ;;
10108 ia64*)
10109 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110 ;;
10111 *)
10112
10113 # Older versions of the 11.00 compiler do not understand -b yet
10114 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10116 $as_echo_n "checking if $CC understands -b... " >&6; }
10117 if ${lt_cv_prog_compiler__b+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 lt_cv_prog_compiler__b=no
10121 save_LDFLAGS=$LDFLAGS
10122 LDFLAGS="$LDFLAGS -b"
10123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10125 # The linker can only warn and ignore the option if not recognized
10126 # So say no if there are warnings
10127 if test -s conftest.err; then
10128 # Append any errors to the config.log.
10129 cat conftest.err 1>&5
10130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10132 if diff conftest.exp conftest.er2 >/dev/null; then
10133 lt_cv_prog_compiler__b=yes
10134 fi
10135 else
10136 lt_cv_prog_compiler__b=yes
10137 fi
10138 fi
10139 $RM -r conftest*
10140 LDFLAGS=$save_LDFLAGS
10141
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10144 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10145
10146 if test yes = "$lt_cv_prog_compiler__b"; then
10147 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10148 else
10149 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10150 fi
10151
10152 ;;
10153 esac
10154 fi
10155 if test no = "$with_gnu_ld"; then
10156 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10157 hardcode_libdir_separator=:
10158
10159 case $host_cpu in
10160 hppa*64*|ia64*)
10161 hardcode_direct=no
10162 hardcode_shlibpath_var=no
10163 ;;
10164 *)
10165 hardcode_direct=yes
10166 hardcode_direct_absolute=yes
10167 export_dynamic_flag_spec='$wl-E'
10168
10169 # hardcode_minus_L: Not really in the search PATH,
10170 # but as the default location of the library.
10171 hardcode_minus_L=yes
10172 ;;
10173 esac
10174 fi
10175 ;;
10176
10177 irix5* | irix6* | nonstopux*)
10178 if test yes = "$GCC"; then
10179 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'
10180 # Try to use the -exported_symbol ld option, if it does not
10181 # work, assume that -exports_file does not work either and
10182 # implicitly export all symbols.
10183 # This should be the same for all languages, so no per-tag cache variable.
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10185 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10186 if ${lt_cv_irix_exported_symbol+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 save_LDFLAGS=$LDFLAGS
10190 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 int foo (void) { return 0; }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 lt_cv_irix_exported_symbol=yes
10197 else
10198 lt_cv_irix_exported_symbol=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LDFLAGS=$save_LDFLAGS
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10205 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10206 if test yes = "$lt_cv_irix_exported_symbol"; then
10207 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'
10208 fi
10209 else
10210 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'
10211 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'
10212 fi
10213 archive_cmds_need_lc='no'
10214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10215 hardcode_libdir_separator=:
10216 inherit_rpath=yes
10217 link_all_deplibs=yes
10218 ;;
10219
10220 linux*)
10221 case $cc_basename in
10222 tcc*)
10223 # Fabrice Bellard et al's Tiny C Compiler
10224 ld_shlibs=yes
10225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226 ;;
10227 esac
10228 ;;
10229
10230 netbsd*)
10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10233 else
10234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10235 fi
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10239 ;;
10240
10241 newsos6)
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_direct=yes
10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 hardcode_libdir_separator=:
10246 hardcode_shlibpath_var=no
10247 ;;
10248
10249 *nto* | *qnx*)
10250 ;;
10251
10252 openbsd* | bitrig*)
10253 if test -f /usr/libexec/ld.so; then
10254 hardcode_direct=yes
10255 hardcode_shlibpath_var=no
10256 hardcode_direct_absolute=yes
10257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10260 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10261 export_dynamic_flag_spec='$wl-E'
10262 else
10263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10264 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10265 fi
10266 else
10267 ld_shlibs=no
10268 fi
10269 ;;
10270
10271 os2*)
10272 hardcode_libdir_flag_spec='-L$libdir'
10273 hardcode_minus_L=yes
10274 allow_undefined_flag=unsupported
10275 shrext_cmds=.dll
10276 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10277 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10278 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10279 $ECHO EXPORTS >> $output_objdir/$libname.def~
10280 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10282 emximp -o $lib $output_objdir/$libname.def'
10283 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10284 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10285 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10286 $ECHO EXPORTS >> $output_objdir/$libname.def~
10287 prefix_cmds="$SED"~
10288 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10289 prefix_cmds="$prefix_cmds -e 1d";
10290 fi~
10291 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10292 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10293 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10294 emximp -o $lib $output_objdir/$libname.def'
10295 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10296 enable_shared_with_static_runtimes=yes
10297 ;;
10298
10299 osf3*)
10300 if test yes = "$GCC"; then
10301 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10302 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'
10303 else
10304 allow_undefined_flag=' -expect_unresolved \*'
10305 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'
10306 fi
10307 archive_cmds_need_lc='no'
10308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10309 hardcode_libdir_separator=:
10310 ;;
10311
10312 osf4* | osf5*) # as osf3* with the addition of -msym flag
10313 if test yes = "$GCC"; then
10314 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10315 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'
10316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10317 else
10318 allow_undefined_flag=' -expect_unresolved \*'
10319 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'
10320 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~
10321 $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'
10322
10323 # Both c and cxx compiler support -rpath directly
10324 hardcode_libdir_flag_spec='-rpath $libdir'
10325 fi
10326 archive_cmds_need_lc='no'
10327 hardcode_libdir_separator=:
10328 ;;
10329
10330 solaris*)
10331 no_undefined_flag=' -z defs'
10332 if test yes = "$GCC"; then
10333 wlarc='$wl'
10334 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10336 $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'
10337 else
10338 case `$CC -V 2>&1` in
10339 *"Compilers 5.0"*)
10340 wlarc=''
10341 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10343 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10344 ;;
10345 *)
10346 wlarc='$wl'
10347 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10350 ;;
10351 esac
10352 fi
10353 hardcode_libdir_flag_spec='-R$libdir'
10354 hardcode_shlibpath_var=no
10355 case $host_os in
10356 solaris2.[0-5] | solaris2.[0-5].*) ;;
10357 *)
10358 # The compiler driver will combine and reorder linker options,
10359 # but understands '-z linker_flag'. GCC discards it without '$wl',
10360 # but is careful enough not to reorder.
10361 # Supported since Solaris 2.6 (maybe 2.5.1?)
10362 if test yes = "$GCC"; then
10363 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10364 else
10365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10366 fi
10367 ;;
10368 esac
10369 link_all_deplibs=yes
10370 ;;
10371
10372 sunos4*)
10373 if test sequent = "$host_vendor"; then
10374 # Use $CC to link under sequent, because it throws in some extra .o
10375 # files that make .init and .fini sections work.
10376 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10377 else
10378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10379 fi
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_direct=yes
10382 hardcode_minus_L=yes
10383 hardcode_shlibpath_var=no
10384 ;;
10385
10386 sysv4)
10387 case $host_vendor in
10388 sni)
10389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct=yes # is this really true???
10391 ;;
10392 siemens)
10393 ## LD is ld it makes a PLAMLIB
10394 ## CC just makes a GrossModule.
10395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10396 reload_cmds='$CC -r -o $output$reload_objs'
10397 hardcode_direct=no
10398 ;;
10399 motorola)
10400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10402 ;;
10403 esac
10404 runpath_var='LD_RUN_PATH'
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 sysv4.3*)
10409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_shlibpath_var=no
10411 export_dynamic_flag_spec='-Bexport'
10412 ;;
10413
10414 sysv4*MP*)
10415 if test -d /usr/nec; then
10416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_shlibpath_var=no
10418 runpath_var=LD_RUN_PATH
10419 hardcode_runpath_var=yes
10420 ld_shlibs=yes
10421 fi
10422 ;;
10423
10424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10425 no_undefined_flag='$wl-z,text'
10426 archive_cmds_need_lc=no
10427 hardcode_shlibpath_var=no
10428 runpath_var='LD_RUN_PATH'
10429
10430 if test yes = "$GCC"; then
10431 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 fi
10437 ;;
10438
10439 sysv5* | sco3.2v5* | sco5v6*)
10440 # Note: We CANNOT use -z defs as we might desire, because we do not
10441 # link with -lc, and that would cause any symbols used from libc to
10442 # always be unresolved, which means just about no library would
10443 # ever link correctly. If we're not using GNU ld we use -z text
10444 # though, which does catch some bad symbols but isn't as heavy-handed
10445 # as -z defs.
10446 no_undefined_flag='$wl-z,text'
10447 allow_undefined_flag='$wl-z,nodefs'
10448 archive_cmds_need_lc=no
10449 hardcode_shlibpath_var=no
10450 hardcode_libdir_flag_spec='$wl-R,$libdir'
10451 hardcode_libdir_separator=':'
10452 link_all_deplibs=yes
10453 export_dynamic_flag_spec='$wl-Bexport'
10454 runpath_var='LD_RUN_PATH'
10455
10456 if test yes = "$GCC"; then
10457 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 else
10460 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 fi
10463 ;;
10464
10465 uts4*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_shlibpath_var=no
10469 ;;
10470
10471 *)
10472 ld_shlibs=no
10473 ;;
10474 esac
10475
10476 if test sni = "$host_vendor"; then
10477 case $host in
10478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479 export_dynamic_flag_spec='$wl-Blargedynsym'
10480 ;;
10481 esac
10482 fi
10483 fi
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10486 $as_echo "$ld_shlibs" >&6; }
10487 test no = "$ld_shlibs" && can_build_shared=no
10488
10489 with_gnu_ld=$with_gnu_ld
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 #
10506 # Do we need to explicitly link libc?
10507 #
10508 case "x$archive_cmds_need_lc" in
10509 x|xyes)
10510 # Assume -lc should be added
10511 archive_cmds_need_lc=yes
10512
10513 if test yes,yes = "$GCC,$enable_shared"; then
10514 case $archive_cmds in
10515 *'~'*)
10516 # FIXME: we may have to deal with multi-command sequences.
10517 ;;
10518 '$CC '*)
10519 # Test whether the compiler implicitly links with -lc since on some
10520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10521 # to ld, don't add -lc before -lgcc.
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10524 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 $RM conftest*
10528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10529
10530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10531 (eval $ac_compile) 2>&5
10532 ac_status=$?
10533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534 test $ac_status = 0; } 2>conftest.err; then
10535 soname=conftest
10536 lib=conftest
10537 libobjs=conftest.$ac_objext
10538 deplibs=
10539 wl=$lt_prog_compiler_wl
10540 pic_flag=$lt_prog_compiler_pic
10541 compiler_flags=-v
10542 linker_flags=-v
10543 verstring=
10544 output_objdir=.
10545 libname=conftest
10546 lt_save_allow_undefined_flag=$allow_undefined_flag
10547 allow_undefined_flag=
10548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10550 ac_status=$?
10551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552 test $ac_status = 0; }
10553 then
10554 lt_cv_archive_cmds_need_lc=no
10555 else
10556 lt_cv_archive_cmds_need_lc=yes
10557 fi
10558 allow_undefined_flag=$lt_save_allow_undefined_flag
10559 else
10560 cat conftest.err 1>&5
10561 fi
10562 $RM conftest*
10563
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10566 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10567 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10568 ;;
10569 esac
10570 fi
10571 ;;
10572 esac
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10727
10728 if test yes = "$GCC"; then
10729 case $host_os in
10730 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10731 *) lt_awk_arg='/^libraries:/' ;;
10732 esac
10733 case $host_os in
10734 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10735 *) lt_sed_strip_eq='s|=/|/|g' ;;
10736 esac
10737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10738 case $lt_search_path_spec in
10739 *\;*)
10740 # if the path contains ";" then we assume it to be the separator
10741 # otherwise default to the standard path separator (i.e. ":") - it is
10742 # assumed that no part of a normal pathname contains ";" but that should
10743 # okay in the real world where ";" in dirpaths is itself problematic.
10744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10745 ;;
10746 *)
10747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10748 ;;
10749 esac
10750 # Ok, now we have the path, separated by spaces, we can step through it
10751 # and add multilib dir if necessary...
10752 lt_tmp_lt_search_path_spec=
10753 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10754 # ...but if some path component already ends with the multilib dir we assume
10755 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10756 case "$lt_multi_os_dir; $lt_search_path_spec " in
10757 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10758 lt_multi_os_dir=
10759 ;;
10760 esac
10761 for lt_sys_path in $lt_search_path_spec; do
10762 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10764 elif test -n "$lt_multi_os_dir"; then
10765 test -d "$lt_sys_path" && \
10766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10767 fi
10768 done
10769 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10770 BEGIN {RS = " "; FS = "/|\n";} {
10771 lt_foo = "";
10772 lt_count = 0;
10773 for (lt_i = NF; lt_i > 0; lt_i--) {
10774 if ($lt_i != "" && $lt_i != ".") {
10775 if ($lt_i == "..") {
10776 lt_count++;
10777 } else {
10778 if (lt_count == 0) {
10779 lt_foo = "/" $lt_i lt_foo;
10780 } else {
10781 lt_count--;
10782 }
10783 }
10784 }
10785 }
10786 if (lt_foo != "") { lt_freq[lt_foo]++; }
10787 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10788 }'`
10789 # AWK program above erroneously prepends '/' to C:/dos/paths
10790 # for these hosts.
10791 case $host_os in
10792 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10793 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10794 esac
10795 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10796 else
10797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10798 fi
10799 library_names_spec=
10800 libname_spec='lib$name'
10801 soname_spec=
10802 shrext_cmds=.so
10803 postinstall_cmds=
10804 postuninstall_cmds=
10805 finish_cmds=
10806 finish_eval=
10807 shlibpath_var=
10808 shlibpath_overrides_runpath=unknown
10809 version_type=none
10810 dynamic_linker="$host_os ld.so"
10811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10812 need_lib_prefix=unknown
10813 hardcode_into_libs=no
10814
10815 # when you set need_version to no, make sure it does not cause -set_version
10816 # flags to be left without arguments
10817 need_version=unknown
10818
10819 case $host_os in
10820 aix3*)
10821 version_type=linux # correct to gnu/linux during the next big refactor
10822 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10823 shlibpath_var=LIBPATH
10824
10825 # AIX 3 has no versioning support, so we append a major version to the name.
10826 soname_spec='$libname$release$shared_ext$major'
10827 ;;
10828
10829 aix[4-9]*)
10830 version_type=linux # correct to gnu/linux during the next big refactor
10831 need_lib_prefix=no
10832 need_version=no
10833 hardcode_into_libs=yes
10834 if test ia64 = "$host_cpu"; then
10835 # AIX 5 supports IA64
10836 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 else
10839 # With GCC up to 2.95.x, collect2 would create an import file
10840 # for dependence libraries. The import file would start with
10841 # the line '#! .'. This would cause the generated library to
10842 # depend on '.', always an invalid library. This was fixed in
10843 # development snapshots of GCC prior to 3.0.
10844 case $host_os in
10845 aix4 | aix4.[01] | aix4.[01].*)
10846 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10847 echo ' yes '
10848 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10849 :
10850 else
10851 can_build_shared=no
10852 fi
10853 ;;
10854 esac
10855 # Using Import Files as archive members, it is possible to support
10856 # filename-based versioning of shared library archives on AIX. While
10857 # this would work for both with and without runtime linking, it will
10858 # prevent static linking of such archives. So we do filename-based
10859 # shared library versioning with .so extension only, which is used
10860 # when both runtime linking and shared linking is enabled.
10861 # Unfortunately, runtime linking may impact performance, so we do
10862 # not want this to be the default eventually. Also, we use the
10863 # versioned .so libs for executables only if there is the -brtl
10864 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10865 # To allow for filename-based versioning support, we need to create
10866 # libNAME.so.V as an archive file, containing:
10867 # *) an Import File, referring to the versioned filename of the
10868 # archive as well as the shared archive member, telling the
10869 # bitwidth (32 or 64) of that shared object, and providing the
10870 # list of exported symbols of that shared object, eventually
10871 # decorated with the 'weak' keyword
10872 # *) the shared object with the F_LOADONLY flag set, to really avoid
10873 # it being seen by the linker.
10874 # At run time we better use the real file rather than another symlink,
10875 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10876
10877 case $with_aix_soname,$aix_use_runtimelinking in
10878 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10879 # soname into executable. Probably we can add versioning support to
10880 # collect2, so additional links can be useful in future.
10881 aix,yes) # traditional libtool
10882 dynamic_linker='AIX unversionable lib.so'
10883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10884 # instead of lib<name>.a to let people know that these are not
10885 # typical AIX shared libraries.
10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 ;;
10888 aix,no) # traditional AIX only
10889 dynamic_linker='AIX lib.a(lib.so.V)'
10890 # We preserve .a as extension for shared libraries through AIX4.2
10891 # and later when we are not doing run time linking.
10892 library_names_spec='$libname$release.a $libname.a'
10893 soname_spec='$libname$release$shared_ext$major'
10894 ;;
10895 svr4,*) # full svr4 only
10896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10898 # We do not specify a path in Import Files, so LIBPATH fires.
10899 shlibpath_overrides_runpath=yes
10900 ;;
10901 *,yes) # both, prefer svr4
10902 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10903 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10904 # unpreferred sharedlib libNAME.a needs extra handling
10905 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"'
10906 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"'
10907 # We do not specify a path in Import Files, so LIBPATH fires.
10908 shlibpath_overrides_runpath=yes
10909 ;;
10910 *,no) # both, prefer aix
10911 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10912 library_names_spec='$libname$release.a $libname.a'
10913 soname_spec='$libname$release$shared_ext$major'
10914 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10915 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)'
10916 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"'
10917 ;;
10918 esac
10919 shlibpath_var=LIBPATH
10920 fi
10921 ;;
10922
10923 amigaos*)
10924 case $host_cpu in
10925 powerpc)
10926 # Since July 2007 AmigaOS4 officially supports .so libraries.
10927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929 ;;
10930 m68k)
10931 library_names_spec='$libname.ixlibrary $libname.a'
10932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10933 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'
10934 ;;
10935 esac
10936 ;;
10937
10938 beos*)
10939 library_names_spec='$libname$shared_ext'
10940 dynamic_linker="$host_os ld.so"
10941 shlibpath_var=LIBRARY_PATH
10942 ;;
10943
10944 bsdi[45]*)
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 need_version=no
10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948 soname_spec='$libname$release$shared_ext$major'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10953 # the default ld.so.conf also contains /usr/contrib/lib and
10954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10955 # libtool to hard-code these into programs
10956 ;;
10957
10958 cygwin* | mingw* | pw32* | cegcc*)
10959 version_type=windows
10960 shrext_cmds=.dll
10961 need_version=no
10962 need_lib_prefix=no
10963
10964 case $GCC,$cc_basename in
10965 yes,*)
10966 # gcc
10967 library_names_spec='$libname.dll.a'
10968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10969 postinstall_cmds='base_file=`basename \$file`~
10970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10971 dldir=$destdir/`dirname \$dlpath`~
10972 test -d \$dldir || mkdir -p \$dldir~
10973 $install_prog $dir/$dlname \$dldir/$dlname~
10974 chmod a+x \$dldir/$dlname~
10975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10977 fi'
10978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10979 dlpath=$dir/\$dldll~
10980 $RM \$dlpath'
10981 shlibpath_overrides_runpath=yes
10982
10983 case $host_os in
10984 cygwin*)
10985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10986 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987
10988 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10989 ;;
10990 mingw* | cegcc*)
10991 # MinGW DLLs use traditional 'lib' prefix
10992 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10993 ;;
10994 pw32*)
10995 # pw32 DLLs use 'pw' prefix rather than 'lib'
10996 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10997 ;;
10998 esac
10999 dynamic_linker='Win32 ld.exe'
11000 ;;
11001
11002 *,cl*)
11003 # Native MSVC
11004 libname_spec='$name'
11005 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11006 library_names_spec='$libname.dll.lib'
11007
11008 case $build_os in
11009 mingw*)
11010 sys_lib_search_path_spec=
11011 lt_save_ifs=$IFS
11012 IFS=';'
11013 for lt_path in $LIB
11014 do
11015 IFS=$lt_save_ifs
11016 # Let DOS variable expansion print the short 8.3 style file name.
11017 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11018 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11019 done
11020 IFS=$lt_save_ifs
11021 # Convert to MSYS style.
11022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11023 ;;
11024 cygwin*)
11025 # Convert to unix form, then to dos form, then back to unix form
11026 # but this time dos style (no spaces!) so that the unix form looks
11027 # like /cygdrive/c/PROGRA~1:/cygdr...
11028 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11029 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11030 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031 ;;
11032 *)
11033 sys_lib_search_path_spec=$LIB
11034 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11035 # It is most probably a Windows format PATH.
11036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11037 else
11038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11039 fi
11040 # FIXME: find the short name or the path components, as spaces are
11041 # common. (e.g. "Program Files" -> "PROGRA~1")
11042 ;;
11043 esac
11044
11045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11046 postinstall_cmds='base_file=`basename \$file`~
11047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11048 dldir=$destdir/`dirname \$dlpath`~
11049 test -d \$dldir || mkdir -p \$dldir~
11050 $install_prog $dir/$dlname \$dldir/$dlname'
11051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11052 dlpath=$dir/\$dldll~
11053 $RM \$dlpath'
11054 shlibpath_overrides_runpath=yes
11055 dynamic_linker='Win32 link.exe'
11056 ;;
11057
11058 *)
11059 # Assume MSVC wrapper
11060 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11061 dynamic_linker='Win32 ld.exe'
11062 ;;
11063 esac
11064 # FIXME: first we should search . and the directory the executable is in
11065 shlibpath_var=PATH
11066 ;;
11067
11068 darwin* | rhapsody*)
11069 dynamic_linker="$host_os dyld"
11070 version_type=darwin
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11074 soname_spec='$libname$release$major$shared_ext'
11075 shlibpath_overrides_runpath=yes
11076 shlibpath_var=DYLD_LIBRARY_PATH
11077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11078
11079 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11080 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11081 ;;
11082
11083 dgux*)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088 soname_spec='$libname$release$shared_ext$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 ;;
11091
11092 freebsd* | dragonfly*)
11093 # DragonFly does not have aout. When/if they implement a new
11094 # versioning mechanism, adjust this.
11095 if test -x /usr/bin/objformat; then
11096 objformat=`/usr/bin/objformat`
11097 else
11098 case $host_os in
11099 freebsd[23].*) objformat=aout ;;
11100 *) objformat=elf ;;
11101 esac
11102 fi
11103 version_type=freebsd-$objformat
11104 case $version_type in
11105 freebsd-elf*)
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 need_version=no
11108 need_lib_prefix=no
11109 ;;
11110 freebsd-*)
11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11112 need_version=yes
11113 ;;
11114 esac
11115 shlibpath_var=LD_LIBRARY_PATH
11116 case $host_os in
11117 freebsd2.*)
11118 shlibpath_overrides_runpath=yes
11119 ;;
11120 freebsd3.[01]* | freebsdelf3.[01]*)
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 ;;
11124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 ;;
11129 *) # from 4.6 on, and DragonFly
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 ;;
11133 esac
11134 ;;
11135
11136 haiku*)
11137 version_type=linux # correct to gnu/linux during the next big refactor
11138 need_lib_prefix=no
11139 need_version=no
11140 dynamic_linker="$host_os runtime_loader"
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 shlibpath_var=LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11146 hardcode_into_libs=yes
11147 ;;
11148
11149 hpux9* | hpux10* | hpux11*)
11150 # Give a soname corresponding to the major version so that dld.sl refuses to
11151 # link against other versions.
11152 version_type=sunos
11153 need_lib_prefix=no
11154 need_version=no
11155 case $host_cpu in
11156 ia64*)
11157 shrext_cmds='.so'
11158 hardcode_into_libs=yes
11159 dynamic_linker="$host_os dld.so"
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163 soname_spec='$libname$release$shared_ext$major'
11164 if test 32 = "$HPUX_IA64_MODE"; then
11165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 else
11167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 fi
11169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170 ;;
11171 hppa*64*)
11172 shrext_cmds='.sl'
11173 hardcode_into_libs=yes
11174 dynamic_linker="$host_os dld.sl"
11175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11178 soname_spec='$libname$release$shared_ext$major'
11179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 ;;
11182 *)
11183 shrext_cmds='.sl'
11184 dynamic_linker="$host_os dld.sl"
11185 shlibpath_var=SHLIB_PATH
11186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 soname_spec='$libname$release$shared_ext$major'
11189 ;;
11190 esac
11191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11192 postinstall_cmds='chmod 555 $lib'
11193 # or fails outright, so override atomically:
11194 install_override_mode=555
11195 ;;
11196
11197 interix[3-9]*)
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208
11209 irix5* | irix6* | nonstopux*)
11210 case $host_os in
11211 nonstopux*) version_type=nonstopux ;;
11212 *)
11213 if test yes = "$lt_cv_prog_gnu_ld"; then
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 else
11216 version_type=irix
11217 fi ;;
11218 esac
11219 need_lib_prefix=no
11220 need_version=no
11221 soname_spec='$libname$release$shared_ext$major'
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11223 case $host_os in
11224 irix5* | nonstopux*)
11225 libsuff= shlibsuff=
11226 ;;
11227 *)
11228 case $LD in # libtool.m4 will add one of these switches to LD
11229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11230 libsuff= shlibsuff= libmagic=32-bit;;
11231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11232 libsuff=32 shlibsuff=N32 libmagic=N32;;
11233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11235 *) libsuff= shlibsuff= libmagic=never-match;;
11236 esac
11237 ;;
11238 esac
11239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11240 shlibpath_overrides_runpath=no
11241 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11242 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11243 hardcode_into_libs=yes
11244 ;;
11245
11246 # No shared lib support for Linux oldld, aout, or coff.
11247 linux*oldld* | linux*aout* | linux*coff*)
11248 dynamic_linker=no
11249 ;;
11250
11251 linux*android*)
11252 version_type=none # Android doesn't support versioned libraries.
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='$libname$release$shared_ext'
11256 soname_spec='$libname$release$shared_ext'
11257 finish_cmds=
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260
11261 # This implies no fast_install, which is unacceptable.
11262 # Some rework will be needed to allow for fast_install
11263 # before this can be enabled.
11264 hardcode_into_libs=yes
11265
11266 dynamic_linker='Android linker'
11267 # Don't embed -rpath directories since the linker doesn't support them.
11268 hardcode_libdir_flag_spec='-L$libdir'
11269 ;;
11270
11271 # This must be glibc/ELF.
11272 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11273 version_type=linux # correct to gnu/linux during the next big refactor
11274 need_lib_prefix=no
11275 need_version=no
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
11278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=no
11281
11282 # Some binutils ld are patched to set DT_RUNPATH
11283 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 lt_cv_shlibpath_overrides_runpath=no
11287 save_LDFLAGS=$LDFLAGS
11288 save_libdir=$libdir
11289 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11290 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293
11294 int
11295 main ()
11296 {
11297
11298 ;
11299 return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11304 lt_cv_shlibpath_overrides_runpath=yes
11305 fi
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LDFLAGS=$save_LDFLAGS
11310 libdir=$save_libdir
11311
11312 fi
11313
11314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11315
11316 # This implies no fast_install, which is unacceptable.
11317 # Some rework will be needed to allow for fast_install
11318 # before this can be enabled.
11319 hardcode_into_libs=yes
11320
11321 # Append ld.so.conf contents to the search path
11322 if test -f /etc/ld.so.conf; then
11323 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' ' '`
11324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11325 fi
11326
11327 # We used to test for /lib/ld.so.1 and disable shared libraries on
11328 # powerpc, because MkLinux only supported shared libraries with the
11329 # GNU dynamic linker. Since this was broken with cross compilers,
11330 # most powerpc-linux boxes support dynamic linking these days and
11331 # people can always --disable-shared, the test was removed, and we
11332 # assume the GNU/Linux dynamic linker is in use.
11333 dynamic_linker='GNU/Linux ld.so'
11334 ;;
11335
11336 netbsd*)
11337 version_type=sunos
11338 need_lib_prefix=no
11339 need_version=no
11340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343 dynamic_linker='NetBSD (a.out) ld.so'
11344 else
11345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11346 soname_spec='$libname$release$shared_ext$major'
11347 dynamic_linker='NetBSD ld.elf_so'
11348 fi
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 hardcode_into_libs=yes
11352 ;;
11353
11354 newsos6)
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11359 ;;
11360
11361 *nto* | *qnx*)
11362 version_type=qnx
11363 need_lib_prefix=no
11364 need_version=no
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366 soname_spec='$libname$release$shared_ext$major'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=no
11369 hardcode_into_libs=yes
11370 dynamic_linker='ldqnx.so'
11371 ;;
11372
11373 openbsd* | bitrig*)
11374 version_type=sunos
11375 sys_lib_dlsearch_path_spec=/usr/lib
11376 need_lib_prefix=no
11377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11378 need_version=no
11379 else
11380 need_version=yes
11381 fi
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes
11386 ;;
11387
11388 os2*)
11389 libname_spec='$name'
11390 version_type=windows
11391 shrext_cmds=.dll
11392 need_version=no
11393 need_lib_prefix=no
11394 # OS/2 can only load a DLL with a base name of 8 characters or less.
11395 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11396 v=$($ECHO $release$versuffix | tr -d .-);
11397 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11398 $ECHO $n$v`$shared_ext'
11399 library_names_spec='${libname}_dll.$libext'
11400 dynamic_linker='OS/2 ld.exe'
11401 shlibpath_var=BEGINLIBPATH
11402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11404 postinstall_cmds='base_file=`basename \$file`~
11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11406 dldir=$destdir/`dirname \$dlpath`~
11407 test -d \$dldir || mkdir -p \$dldir~
11408 $install_prog $dir/$dlname \$dldir/$dlname~
11409 chmod a+x \$dldir/$dlname~
11410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11412 fi'
11413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11414 dlpath=$dir/\$dldll~
11415 $RM \$dlpath'
11416 ;;
11417
11418 osf3* | osf4* | osf5*)
11419 version_type=osf
11420 need_lib_prefix=no
11421 need_version=no
11422 soname_spec='$libname$release$shared_ext$major'
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11427 ;;
11428
11429 rdos*)
11430 dynamic_linker=no
11431 ;;
11432
11433 solaris*)
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 soname_spec='$libname$release$shared_ext$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 # ldd complains unless libraries are executable
11443 postinstall_cmds='chmod +x $lib'
11444 ;;
11445
11446 sunos4*)
11447 version_type=sunos
11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 if test yes = "$with_gnu_ld"; then
11453 need_lib_prefix=no
11454 fi
11455 need_version=yes
11456 ;;
11457
11458 sysv4 | sysv4.3*)
11459 version_type=linux # correct to gnu/linux during the next big refactor
11460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461 soname_spec='$libname$release$shared_ext$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 case $host_vendor in
11464 sni)
11465 shlibpath_overrides_runpath=no
11466 need_lib_prefix=no
11467 runpath_var=LD_RUN_PATH
11468 ;;
11469 siemens)
11470 need_lib_prefix=no
11471 ;;
11472 motorola)
11473 need_lib_prefix=no
11474 need_version=no
11475 shlibpath_overrides_runpath=no
11476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11477 ;;
11478 esac
11479 ;;
11480
11481 sysv4*MP*)
11482 if test -d /usr/nec; then
11483 version_type=linux # correct to gnu/linux during the next big refactor
11484 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11485 soname_spec='$libname$shared_ext.$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 fi
11488 ;;
11489
11490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491 version_type=sco
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11495 soname_spec='$libname$release$shared_ext$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11498 hardcode_into_libs=yes
11499 if test yes = "$with_gnu_ld"; then
11500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11501 else
11502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11503 case $host_os in
11504 sco3.2v5*)
11505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11506 ;;
11507 esac
11508 fi
11509 sys_lib_dlsearch_path_spec='/usr/lib'
11510 ;;
11511
11512 tpf*)
11513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11521 ;;
11522
11523 uts4*)
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 ;;
11529
11530 *)
11531 dynamic_linker=no
11532 ;;
11533 esac
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535 $as_echo "$dynamic_linker" >&6; }
11536 test no = "$dynamic_linker" && can_build_shared=no
11537
11538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 if test yes = "$GCC"; then
11540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11541 fi
11542
11543 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11544 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11545 fi
11546 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11547 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11548 fi
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11643 hardcode_action=
11644 if test -n "$hardcode_libdir_flag_spec" ||
11645 test -n "$runpath_var" ||
11646 test yes = "$hardcode_automatic"; then
11647
11648 # We can hardcode non-existent directories.
11649 if test no != "$hardcode_direct" &&
11650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11651 # have to relink, otherwise we might link with an installed library
11652 # when we should be linking with a yet-to-be-installed one
11653 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11654 test no != "$hardcode_minus_L"; then
11655 # Linking always hardcodes the temporary library directory.
11656 hardcode_action=relink
11657 else
11658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11659 hardcode_action=immediate
11660 fi
11661 else
11662 # We cannot hardcode anything, or else we can only hardcode existing
11663 # directories.
11664 hardcode_action=unsupported
11665 fi
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11667 $as_echo "$hardcode_action" >&6; }
11668
11669 if test relink = "$hardcode_action" ||
11670 test yes = "$inherit_rpath"; then
11671 # Fast installation is not supported
11672 enable_fast_install=no
11673 elif test yes = "$shlibpath_overrides_runpath" ||
11674 test no = "$enable_shared"; then
11675 # Fast installation is not necessary
11676 enable_fast_install=needless
11677 fi
11678
11679
11680
11681
11682
11683
11684 if test yes != "$enable_dlopen"; then
11685 enable_dlopen=unknown
11686 enable_dlopen_self=unknown
11687 enable_dlopen_self_static=unknown
11688 else
11689 lt_cv_dlopen=no
11690 lt_cv_dlopen_libs=
11691
11692 case $host_os in
11693 beos*)
11694 lt_cv_dlopen=load_add_on
11695 lt_cv_dlopen_libs=
11696 lt_cv_dlopen_self=yes
11697 ;;
11698
11699 mingw* | pw32* | cegcc*)
11700 lt_cv_dlopen=LoadLibrary
11701 lt_cv_dlopen_libs=
11702 ;;
11703
11704 cygwin*)
11705 lt_cv_dlopen=dlopen
11706 lt_cv_dlopen_libs=
11707 ;;
11708
11709 darwin*)
11710 # if libdl is installed we need to link against it
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11713 if ${ac_cv_lib_dl_dlopen+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-ldl $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char dlopen ();
11728 int
11729 main ()
11730 {
11731 return dlopen ();
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_dl_dlopen=yes
11738 else
11739 ac_cv_lib_dl_dlopen=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11749 else
11750
11751 lt_cv_dlopen=dyld
11752 lt_cv_dlopen_libs=
11753 lt_cv_dlopen_self=yes
11754
11755 fi
11756
11757 ;;
11758
11759 tpf*)
11760 # Don't try to run any link tests for TPF. We know it's impossible
11761 # because TPF is a cross-compiler, and we know how we open DSOs.
11762 lt_cv_dlopen=dlopen
11763 lt_cv_dlopen_libs=
11764 lt_cv_dlopen_self=no
11765 ;;
11766
11767 *)
11768 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11769 if test "x$ac_cv_func_shl_load" = xyes; then :
11770 lt_cv_dlopen=shl_load
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11773 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11774 if ${ac_cv_lib_dld_shl_load+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldld $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char shl_load ();
11789 int
11790 main ()
11791 {
11792 return shl_load ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798 ac_cv_lib_dld_shl_load=yes
11799 else
11800 ac_cv_lib_dld_shl_load=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11807 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11808 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11809 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11810 else
11811 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11812 if test "x$ac_cv_func_dlopen" = xyes; then :
11813 lt_cv_dlopen=dlopen
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11817 if ${ac_cv_lib_dl_dlopen+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-ldl $LIBS"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char dlopen ();
11832 int
11833 main ()
11834 {
11835 return dlopen ();
11836 ;
11837 return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841 ac_cv_lib_dl_dlopen=yes
11842 else
11843 ac_cv_lib_dl_dlopen=no
11844 fi
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11851 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11852 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11855 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11856 if ${ac_cv_lib_svld_dlopen+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 ac_check_lib_save_LIBS=$LIBS
11860 LIBS="-lsvld $LIBS"
11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h. */
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char dlopen ();
11871 int
11872 main ()
11873 {
11874 return dlopen ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 ac_cv_lib_svld_dlopen=yes
11881 else
11882 ac_cv_lib_svld_dlopen=no
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 LIBS=$ac_check_lib_save_LIBS
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11889 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11890 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11891 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11894 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11895 if ${ac_cv_lib_dld_dld_link+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldld $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dld_link ();
11910 int
11911 main ()
11912 {
11913 return dld_link ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dld_dld_link=yes
11920 else
11921 ac_cv_lib_dld_dld_link=no
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11928 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11929 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11930 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11931 fi
11932
11933
11934 fi
11935
11936
11937 fi
11938
11939
11940 fi
11941
11942
11943 fi
11944
11945
11946 fi
11947
11948 ;;
11949 esac
11950
11951 if test no = "$lt_cv_dlopen"; then
11952 enable_dlopen=no
11953 else
11954 enable_dlopen=yes
11955 fi
11956
11957 case $lt_cv_dlopen in
11958 dlopen)
11959 save_CPPFLAGS=$CPPFLAGS
11960 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11961
11962 save_LDFLAGS=$LDFLAGS
11963 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11964
11965 save_LIBS=$LIBS
11966 LIBS="$lt_cv_dlopen_libs $LIBS"
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11969 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11970 if ${lt_cv_dlopen_self+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 if test yes = "$cross_compiling"; then :
11974 lt_cv_dlopen_self=cross
11975 else
11976 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11977 lt_status=$lt_dlunknown
11978 cat > conftest.$ac_ext <<_LT_EOF
11979 #line $LINENO "configure"
11980 #include "confdefs.h"
11981
11982 #if HAVE_DLFCN_H
11983 #include <dlfcn.h>
11984 #endif
11985
11986 #include <stdio.h>
11987
11988 #ifdef RTLD_GLOBAL
11989 # define LT_DLGLOBAL RTLD_GLOBAL
11990 #else
11991 # ifdef DL_GLOBAL
11992 # define LT_DLGLOBAL DL_GLOBAL
11993 # else
11994 # define LT_DLGLOBAL 0
11995 # endif
11996 #endif
11997
11998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11999 find out it does not work in some platform. */
12000 #ifndef LT_DLLAZY_OR_NOW
12001 # ifdef RTLD_LAZY
12002 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12003 # else
12004 # ifdef DL_LAZY
12005 # define LT_DLLAZY_OR_NOW DL_LAZY
12006 # else
12007 # ifdef RTLD_NOW
12008 # define LT_DLLAZY_OR_NOW RTLD_NOW
12009 # else
12010 # ifdef DL_NOW
12011 # define LT_DLLAZY_OR_NOW DL_NOW
12012 # else
12013 # define LT_DLLAZY_OR_NOW 0
12014 # endif
12015 # endif
12016 # endif
12017 # endif
12018 #endif
12019
12020 /* When -fvisibility=hidden is used, assume the code has been annotated
12021 correspondingly for the symbols needed. */
12022 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12023 int fnord () __attribute__((visibility("default")));
12024 #endif
12025
12026 int fnord () { return 42; }
12027 int main ()
12028 {
12029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12030 int status = $lt_dlunknown;
12031
12032 if (self)
12033 {
12034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12035 else
12036 {
12037 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12038 else puts (dlerror ());
12039 }
12040 /* dlclose (self); */
12041 }
12042 else
12043 puts (dlerror ());
12044
12045 return status;
12046 }
12047 _LT_EOF
12048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12049 (eval $ac_link) 2>&5
12050 ac_status=$?
12051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12053 (./conftest; exit; ) >&5 2>/dev/null
12054 lt_status=$?
12055 case x$lt_status in
12056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12058 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12059 esac
12060 else :
12061 # compilation failed
12062 lt_cv_dlopen_self=no
12063 fi
12064 fi
12065 rm -fr conftest*
12066
12067
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12070 $as_echo "$lt_cv_dlopen_self" >&6; }
12071
12072 if test yes = "$lt_cv_dlopen_self"; then
12073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12075 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12076 if ${lt_cv_dlopen_self_static+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test yes = "$cross_compiling"; then :
12080 lt_cv_dlopen_self_static=cross
12081 else
12082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083 lt_status=$lt_dlunknown
12084 cat > conftest.$ac_ext <<_LT_EOF
12085 #line $LINENO "configure"
12086 #include "confdefs.h"
12087
12088 #if HAVE_DLFCN_H
12089 #include <dlfcn.h>
12090 #endif
12091
12092 #include <stdio.h>
12093
12094 #ifdef RTLD_GLOBAL
12095 # define LT_DLGLOBAL RTLD_GLOBAL
12096 #else
12097 # ifdef DL_GLOBAL
12098 # define LT_DLGLOBAL DL_GLOBAL
12099 # else
12100 # define LT_DLGLOBAL 0
12101 # endif
12102 #endif
12103
12104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105 find out it does not work in some platform. */
12106 #ifndef LT_DLLAZY_OR_NOW
12107 # ifdef RTLD_LAZY
12108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12109 # else
12110 # ifdef DL_LAZY
12111 # define LT_DLLAZY_OR_NOW DL_LAZY
12112 # else
12113 # ifdef RTLD_NOW
12114 # define LT_DLLAZY_OR_NOW RTLD_NOW
12115 # else
12116 # ifdef DL_NOW
12117 # define LT_DLLAZY_OR_NOW DL_NOW
12118 # else
12119 # define LT_DLLAZY_OR_NOW 0
12120 # endif
12121 # endif
12122 # endif
12123 # endif
12124 #endif
12125
12126 /* When -fvisibility=hidden is used, assume the code has been annotated
12127 correspondingly for the symbols needed. */
12128 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12129 int fnord () __attribute__((visibility("default")));
12130 #endif
12131
12132 int fnord () { return 42; }
12133 int main ()
12134 {
12135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12136 int status = $lt_dlunknown;
12137
12138 if (self)
12139 {
12140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12141 else
12142 {
12143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12144 else puts (dlerror ());
12145 }
12146 /* dlclose (self); */
12147 }
12148 else
12149 puts (dlerror ());
12150
12151 return status;
12152 }
12153 _LT_EOF
12154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12155 (eval $ac_link) 2>&5
12156 ac_status=$?
12157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12158 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12159 (./conftest; exit; ) >&5 2>/dev/null
12160 lt_status=$?
12161 case x$lt_status in
12162 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12163 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12164 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12165 esac
12166 else :
12167 # compilation failed
12168 lt_cv_dlopen_self_static=no
12169 fi
12170 fi
12171 rm -fr conftest*
12172
12173
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12176 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12177 fi
12178
12179 CPPFLAGS=$save_CPPFLAGS
12180 LDFLAGS=$save_LDFLAGS
12181 LIBS=$save_LIBS
12182 ;;
12183 esac
12184
12185 case $lt_cv_dlopen_self in
12186 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12187 *) enable_dlopen_self=unknown ;;
12188 esac
12189
12190 case $lt_cv_dlopen_self_static in
12191 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12192 *) enable_dlopen_self_static=unknown ;;
12193 esac
12194 fi
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212 striplib=
12213 old_striplib=
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12215 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12216 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12217 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12218 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 $as_echo "yes" >&6; }
12221 else
12222 # FIXME - insert some real tests, host_os isn't really good enough
12223 case $host_os in
12224 darwin*)
12225 if test -n "$STRIP"; then
12226 striplib="$STRIP -x"
12227 old_striplib="$STRIP -S"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234 ;;
12235 *)
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238 ;;
12239 esac
12240 fi
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253 # Report what library types will actually be built
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12255 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12257 $as_echo "$can_build_shared" >&6; }
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12260 $as_echo_n "checking whether to build shared libraries... " >&6; }
12261 test no = "$can_build_shared" && enable_shared=no
12262
12263 # On AIX, shared libraries and static libraries use the same namespace, and
12264 # are all built from PIC.
12265 case $host_os in
12266 aix3*)
12267 test yes = "$enable_shared" && enable_static=no
12268 if test -n "$RANLIB"; then
12269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12270 postinstall_cmds='$RANLIB $lib'
12271 fi
12272 ;;
12273
12274 aix[4-9]*)
12275 if test ia64 != "$host_cpu"; then
12276 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12277 yes,aix,yes) ;; # shared object as lib.so file only
12278 yes,svr4,*) ;; # shared object as lib.so archive member only
12279 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12280 esac
12281 fi
12282 ;;
12283 esac
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12285 $as_echo "$enable_shared" >&6; }
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12288 $as_echo_n "checking whether to build static libraries... " >&6; }
12289 # Make sure either enable_shared or enable_static is yes.
12290 test yes = "$enable_shared" || enable_static=yes
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12292 $as_echo "$enable_static" >&6; }
12293
12294
12295
12296
12297 fi
12298 ac_ext=c
12299 ac_cpp='$CPP $CPPFLAGS'
12300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12303
12304 CC=$lt_save_CC
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320 ac_config_commands="$ac_config_commands libtool"
12321
12322
12323
12324
12325 # Only expand once:
12326
12327
12328
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12331 $as_echo_n "checking for ANSI C header files... " >&6; }
12332 if ${ac_cv_header_stdc+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <stdlib.h>
12338 #include <stdarg.h>
12339 #include <string.h>
12340 #include <float.h>
12341
12342 int
12343 main ()
12344 {
12345
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_c_try_compile "$LINENO"; then :
12351 ac_cv_header_stdc=yes
12352 else
12353 ac_cv_header_stdc=no
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356
12357 if test $ac_cv_header_stdc = yes; then
12358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <string.h>
12362
12363 _ACEOF
12364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12365 $EGREP "memchr" >/dev/null 2>&1; then :
12366
12367 else
12368 ac_cv_header_stdc=no
12369 fi
12370 rm -f conftest*
12371
12372 fi
12373
12374 if test $ac_cv_header_stdc = yes; then
12375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378 #include <stdlib.h>
12379
12380 _ACEOF
12381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12382 $EGREP "free" >/dev/null 2>&1; then :
12383
12384 else
12385 ac_cv_header_stdc=no
12386 fi
12387 rm -f conftest*
12388
12389 fi
12390
12391 if test $ac_cv_header_stdc = yes; then
12392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12393 if test "$cross_compiling" = yes; then :
12394 :
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 #include <ctype.h>
12399 #include <stdlib.h>
12400 #if ((' ' & 0x0FF) == 0x020)
12401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12403 #else
12404 # define ISLOWER(c) \
12405 (('a' <= (c) && (c) <= 'i') \
12406 || ('j' <= (c) && (c) <= 'r') \
12407 || ('s' <= (c) && (c) <= 'z'))
12408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12409 #endif
12410
12411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12412 int
12413 main ()
12414 {
12415 int i;
12416 for (i = 0; i < 256; i++)
12417 if (XOR (islower (i), ISLOWER (i))
12418 || toupper (i) != TOUPPER (i))
12419 return 2;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_run "$LINENO"; then :
12424
12425 else
12426 ac_cv_header_stdc=no
12427 fi
12428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12429 conftest.$ac_objext conftest.beam conftest.$ac_ext
12430 fi
12431
12432 fi
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12435 $as_echo "$ac_cv_header_stdc" >&6; }
12436 if test $ac_cv_header_stdc = yes; then
12437
12438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12439
12440 fi
12441
12442
12443 for ac_header in sys/poll.h
12444 do :
12445 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_SYS_POLL_H 1
12449 _ACEOF
12450 have_poll_sys_h=yes
12451 else
12452 have_sys_poll_h=no
12453 fi
12454
12455 done
12456
12457
12458 for ac_header in fcntl.h sys/time.h unistd.h strings.h
12459 do :
12460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12465 _ACEOF
12466
12467 fi
12468
12469 done
12470
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12473 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12474 if ${ac_cv_c_const+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479
12480 int
12481 main ()
12482 {
12483
12484 #ifndef __cplusplus
12485 /* Ultrix mips cc rejects this sort of thing. */
12486 typedef int charset[2];
12487 const charset cs = { 0, 0 };
12488 /* SunOS 4.1.1 cc rejects this. */
12489 char const *const *pcpcc;
12490 char **ppc;
12491 /* NEC SVR4.0.2 mips cc rejects this. */
12492 struct point {int x, y;};
12493 static struct point const zero = {0,0};
12494 /* AIX XL C 1.02.0.0 rejects this.
12495 It does not let you subtract one const X* pointer from another in
12496 an arm of an if-expression whose if-part is not a constant
12497 expression */
12498 const char *g = "string";
12499 pcpcc = &g + (g ? g-g : 0);
12500 /* HPUX 7.0 cc rejects these. */
12501 ++pcpcc;
12502 ppc = (char**) pcpcc;
12503 pcpcc = (char const *const *) ppc;
12504 { /* SCO 3.2v4 cc rejects this sort of thing. */
12505 char tx;
12506 char *t = &tx;
12507 char const *s = 0 ? (char *) 0 : (char const *) 0;
12508
12509 *t++ = 0;
12510 if (s) return 0;
12511 }
12512 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12513 int x[] = {25, 17};
12514 const int *foo = &x[0];
12515 ++foo;
12516 }
12517 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12518 typedef const int *iptr;
12519 iptr p = 0;
12520 ++p;
12521 }
12522 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12523 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12524 struct s { int j; const int *ap[3]; } bx;
12525 struct s *b = &bx; b->j = 5;
12526 }
12527 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12528 const int foo = 10;
12529 if (!foo) return 0;
12530 }
12531 return !cs[0] && !zero.x;
12532 #endif
12533
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_compile "$LINENO"; then :
12539 ac_cv_c_const=yes
12540 else
12541 ac_cv_c_const=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544 fi
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12546 $as_echo "$ac_cv_c_const" >&6; }
12547 if test $ac_cv_c_const = no; then
12548
12549 $as_echo "#define const /**/" >>confdefs.h
12550
12551 fi
12552
12553 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12554 if test "x$ac_cv_type_size_t" = xyes; then :
12555
12556 else
12557
12558 cat >>confdefs.h <<_ACEOF
12559 #define size_t unsigned int
12560 _ACEOF
12561
12562 fi
12563
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12565 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12566 if ${ac_cv_header_time+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 #include <sys/types.h>
12572 #include <sys/time.h>
12573 #include <time.h>
12574
12575 int
12576 main ()
12577 {
12578 if ((struct tm *) 0)
12579 return 0;
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_c_try_compile "$LINENO"; then :
12585 ac_cv_header_time=yes
12586 else
12587 ac_cv_header_time=no
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 fi
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12592 $as_echo "$ac_cv_header_time" >&6; }
12593 if test $ac_cv_header_time = yes; then
12594
12595 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12596
12597 fi
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12600 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12601 if ${ac_cv_struct_tm+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #include <sys/types.h>
12607 #include <time.h>
12608
12609 int
12610 main ()
12611 {
12612 struct tm tm;
12613 int *p = &tm.tm_sec;
12614 return !p;
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620 ac_cv_struct_tm=time.h
12621 else
12622 ac_cv_struct_tm=sys/time.h
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12627 $as_echo "$ac_cv_struct_tm" >&6; }
12628 if test $ac_cv_struct_tm = sys/time.h; then
12629
12630 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12631
12632 fi
12633
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12636 $as_echo_n "checking return type of signal handlers... " >&6; }
12637 if ${ac_cv_type_signal+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <sys/types.h>
12643 #include <signal.h>
12644
12645 int
12646 main ()
12647 {
12648 return *(signal (0, 0)) (0) == 1;
12649 ;
12650 return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654 ac_cv_type_signal=int
12655 else
12656 ac_cv_type_signal=void
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12661 $as_echo "$ac_cv_type_signal" >&6; }
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define RETSIGTYPE $ac_cv_type_signal
12665 _ACEOF
12666
12667
12668 for ac_func in strftime
12669 do :
12670 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12671 if test "x$ac_cv_func_strftime" = xyes; then :
12672 cat >>confdefs.h <<_ACEOF
12673 #define HAVE_STRFTIME 1
12674 _ACEOF
12675
12676 else
12677 # strftime is in -lintl on SCO UNIX.
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12679 $as_echo_n "checking for strftime in -lintl... " >&6; }
12680 if ${ac_cv_lib_intl_strftime+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-lintl $LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char strftime ();
12695 int
12696 main ()
12697 {
12698 return strftime ();
12699 ;
12700 return 0;
12701 }
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 ac_cv_lib_intl_strftime=yes
12705 else
12706 ac_cv_lib_intl_strftime=no
12707 fi
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12711 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12713 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12714 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12715 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12716
12717 LIBS="-lintl $LIBS"
12718 fi
12719
12720 fi
12721 done
12722
12723
12724
12725 for ac_prog in 'bison -y' byacc
12726 do
12727 # Extract the first word of "$ac_prog", so it can be a program name with args.
12728 set dummy $ac_prog; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if ${ac_cv_prog_YACC+:} false; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 if test -n "$YACC"; then
12735 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12736 else
12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738 for as_dir in $PATH
12739 do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 ac_cv_prog_YACC="$ac_prog"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748 done
12749 done
12750 IFS=$as_save_IFS
12751
12752 fi
12753 fi
12754 YACC=$ac_cv_prog_YACC
12755 if test -n "$YACC"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12757 $as_echo "$YACC" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 fi
12762
12763
12764 test -n "$YACC" && break
12765 done
12766 test -n "$YACC" || YACC="yacc"
12767
12768
12769 for ac_prog in flex lex
12770 do
12771 # Extract the first word of "$ac_prog", so it can be a program name with args.
12772 set dummy $ac_prog; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_prog_LEX+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 if test -n "$LEX"; then
12779 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12780 else
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12783 do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788 ac_cv_prog_LEX="$ac_prog"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792 done
12793 done
12794 IFS=$as_save_IFS
12795
12796 fi
12797 fi
12798 LEX=$ac_cv_prog_LEX
12799 if test -n "$LEX"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12801 $as_echo "$LEX" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805 fi
12806
12807
12808 test -n "$LEX" && break
12809 done
12810 test -n "$LEX" || LEX=":"
12811
12812 if test "x$LEX" != "x:"; then
12813 cat >conftest.l <<_ACEOF
12814 %%
12815 a { ECHO; }
12816 b { REJECT; }
12817 c { yymore (); }
12818 d { yyless (1); }
12819 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12820 yyless ((input () != 0)); }
12821 f { unput (yytext[0]); }
12822 . { BEGIN INITIAL; }
12823 %%
12824 #ifdef YYTEXT_POINTER
12825 extern char *yytext;
12826 #endif
12827 int
12828 main (void)
12829 {
12830 return ! yylex () + ! yywrap ();
12831 }
12832 _ACEOF
12833 { { ac_try="$LEX conftest.l"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12839 $as_echo "$ac_try_echo"; } >&5
12840 (eval "$LEX conftest.l") 2>&5
12841 ac_status=$?
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843 test $ac_status = 0; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12845 $as_echo_n "checking lex output file root... " >&6; }
12846 if ${ac_cv_prog_lex_root+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849
12850 if test -f lex.yy.c; then
12851 ac_cv_prog_lex_root=lex.yy
12852 elif test -f lexyy.c; then
12853 ac_cv_prog_lex_root=lexyy
12854 else
12855 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12856 fi
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12859 $as_echo "$ac_cv_prog_lex_root" >&6; }
12860 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12861
12862 if test -z "${LEXLIB+set}"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12864 $as_echo_n "checking lex library... " >&6; }
12865 if ${ac_cv_lib_lex+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868
12869 ac_save_LIBS=$LIBS
12870 ac_cv_lib_lex='none needed'
12871 for ac_lib in '' -lfl -ll; do
12872 LIBS="$ac_lib $ac_save_LIBS"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 `cat $LEX_OUTPUT_ROOT.c`
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 ac_cv_lib_lex=$ac_lib
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 test "$ac_cv_lib_lex" != 'none needed' && break
12883 done
12884 LIBS=$ac_save_LIBS
12885
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12888 $as_echo "$ac_cv_lib_lex" >&6; }
12889 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12890 fi
12891
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12894 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12895 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 # POSIX says lex can declare yytext either as a pointer or an array; the
12899 # default is implementation-dependent. Figure out which it is, since
12900 # not all implementations provide the %pointer and %array declarations.
12901 ac_cv_prog_lex_yytext_pointer=no
12902 ac_save_LIBS=$LIBS
12903 LIBS="$LEXLIB $ac_save_LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906
12907 #define YYTEXT_POINTER 1
12908 `cat $LEX_OUTPUT_ROOT.c`
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_prog_lex_yytext_pointer=yes
12912 fi
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 LIBS=$ac_save_LIBS
12916
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12919 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12920 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12921
12922 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12923
12924 fi
12925 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12926
12927 fi
12928 if test "$LEX" = :; then
12929 LEX=${am_missing_run}flex
12930 fi
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12933 $as_echo_n "checking for library containing socket... " >&6; }
12934 if ${ac_cv_search_socket+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_func_search_save_LIBS=$LIBS
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12944 #ifdef __cplusplus
12945 extern "C"
12946 #endif
12947 char socket ();
12948 int
12949 main ()
12950 {
12951 return socket ();
12952 ;
12953 return 0;
12954 }
12955 _ACEOF
12956 for ac_lib in '' socket; do
12957 if test -z "$ac_lib"; then
12958 ac_res="none required"
12959 else
12960 ac_res=-l$ac_lib
12961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12962 fi
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 ac_cv_search_socket=$ac_res
12965 fi
12966 rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext
12968 if ${ac_cv_search_socket+:} false; then :
12969 break
12970 fi
12971 done
12972 if ${ac_cv_search_socket+:} false; then :
12973
12974 else
12975 ac_cv_search_socket=no
12976 fi
12977 rm conftest.$ac_ext
12978 LIBS=$ac_func_search_save_LIBS
12979 fi
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12981 $as_echo "$ac_cv_search_socket" >&6; }
12982 ac_res=$ac_cv_search_socket
12983 if test "$ac_res" != no; then :
12984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12985
12986 else
12987 as_fn_error $? "socket library not found" "$LINENO" 5
12988 fi
12989
12990 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12991 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12992
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12995 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12996 if ${ac_cv_search_getaddrinfo+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_func_search_save_LIBS=$LIBS
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char getaddrinfo ();
13010 int
13011 main ()
13012 {
13013 return getaddrinfo ();
13014 ;
13015 return 0;
13016 }
13017 _ACEOF
13018 for ac_lib in '' nsl; do
13019 if test -z "$ac_lib"; then
13020 ac_res="none required"
13021 else
13022 ac_res=-l$ac_lib
13023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13024 fi
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 ac_cv_search_getaddrinfo=$ac_res
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext
13030 if ${ac_cv_search_getaddrinfo+:} false; then :
13031 break
13032 fi
13033 done
13034 if ${ac_cv_search_getaddrinfo+:} false; then :
13035
13036 else
13037 ac_cv_search_getaddrinfo=no
13038 fi
13039 rm conftest.$ac_ext
13040 LIBS=$ac_func_search_save_LIBS
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13043 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13044 ac_res=$ac_cv_search_getaddrinfo
13045 if test "$ac_res" != no; then :
13046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047
13048 fi
13049
13050 fi
13051
13052 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13053 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13054
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13057 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13058 if ${ac_cv_search_getnameinfo+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 ac_func_search_save_LIBS=$LIBS
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 /* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
13068 #ifdef __cplusplus
13069 extern "C"
13070 #endif
13071 char getnameinfo ();
13072 int
13073 main ()
13074 {
13075 return getnameinfo ();
13076 ;
13077 return 0;
13078 }
13079 _ACEOF
13080 for ac_lib in '' nsl; do
13081 if test -z "$ac_lib"; then
13082 ac_res="none required"
13083 else
13084 ac_res=-l$ac_lib
13085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13086 fi
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_search_getnameinfo=$ac_res
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext
13092 if ${ac_cv_search_getnameinfo+:} false; then :
13093 break
13094 fi
13095 done
13096 if ${ac_cv_search_getnameinfo+:} false; then :
13097
13098 else
13099 ac_cv_search_getnameinfo=no
13100 fi
13101 rm conftest.$ac_ext
13102 LIBS=$ac_func_search_save_LIBS
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13105 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13106 ac_res=$ac_cv_search_getnameinfo
13107 if test "$ac_res" != no; then :
13108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13109
13110 fi
13111
13112 fi
13113
13114
13115 for ac_func in strlcpy strlcat inet_aton inet_pton socket strdup strstr
13116 do :
13117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13119 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13120 cat >>confdefs.h <<_ACEOF
13121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13122 _ACEOF
13123
13124 fi
13125 done
13126
13127
13128 for ac_func in gethostbyname gethostbyname2
13129 do :
13130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13133 cat >>confdefs.h <<_ACEOF
13134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13135 _ACEOF
13136
13137 fi
13138 done
13139
13140
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13142 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13143 if ${ac_cv_c_bigendian+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 ac_cv_c_bigendian=unknown
13147 # See if we're dealing with a universal compiler.
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 #ifndef __APPLE_CC__
13151 not a universal capable compiler
13152 #endif
13153 typedef int dummy;
13154
13155 _ACEOF
13156 if ac_fn_c_try_compile "$LINENO"; then :
13157
13158 # Check for potential -arch flags. It is not universal unless
13159 # there are at least two -arch flags with different values.
13160 ac_arch=
13161 ac_prev=
13162 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13163 if test -n "$ac_prev"; then
13164 case $ac_word in
13165 i?86 | x86_64 | ppc | ppc64)
13166 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13167 ac_arch=$ac_word
13168 else
13169 ac_cv_c_bigendian=universal
13170 break
13171 fi
13172 ;;
13173 esac
13174 ac_prev=
13175 elif test "x$ac_word" = "x-arch"; then
13176 ac_prev=arch
13177 fi
13178 done
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13181 if test $ac_cv_c_bigendian = unknown; then
13182 # See if sys/param.h defines the BYTE_ORDER macro.
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <sys/types.h>
13186 #include <sys/param.h>
13187
13188 int
13189 main ()
13190 {
13191 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13192 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13193 && LITTLE_ENDIAN)
13194 bogus endian macros
13195 #endif
13196
13197 ;
13198 return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_compile "$LINENO"; then :
13202 # It does; now see whether it defined to BIG_ENDIAN or not.
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205 #include <sys/types.h>
13206 #include <sys/param.h>
13207
13208 int
13209 main ()
13210 {
13211 #if BYTE_ORDER != BIG_ENDIAN
13212 not big endian
13213 #endif
13214
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220 ac_cv_c_bigendian=yes
13221 else
13222 ac_cv_c_bigendian=no
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13227 fi
13228 if test $ac_cv_c_bigendian = unknown; then
13229 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #include <limits.h>
13233
13234 int
13235 main ()
13236 {
13237 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13238 bogus endian macros
13239 #endif
13240
13241 ;
13242 return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_compile "$LINENO"; then :
13246 # It does; now see whether it defined to _BIG_ENDIAN or not.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 #include <limits.h>
13250
13251 int
13252 main ()
13253 {
13254 #ifndef _BIG_ENDIAN
13255 not big endian
13256 #endif
13257
13258 ;
13259 return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_compile "$LINENO"; then :
13263 ac_cv_c_bigendian=yes
13264 else
13265 ac_cv_c_bigendian=no
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 fi
13271 if test $ac_cv_c_bigendian = unknown; then
13272 # Compile a test program.
13273 if test "$cross_compiling" = yes; then :
13274 # Try to guess by grepping values from an object file.
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 short int ascii_mm[] =
13278 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13279 short int ascii_ii[] =
13280 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13281 int use_ascii (int i) {
13282 return ascii_mm[i] + ascii_ii[i];
13283 }
13284 short int ebcdic_ii[] =
13285 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13286 short int ebcdic_mm[] =
13287 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13288 int use_ebcdic (int i) {
13289 return ebcdic_mm[i] + ebcdic_ii[i];
13290 }
13291 extern int foo;
13292
13293 int
13294 main ()
13295 {
13296 return use_ascii (foo) == use_ebcdic (foo);
13297 ;
13298 return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_c_try_compile "$LINENO"; then :
13302 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13303 ac_cv_c_bigendian=yes
13304 fi
13305 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13306 if test "$ac_cv_c_bigendian" = unknown; then
13307 ac_cv_c_bigendian=no
13308 else
13309 # finding both strings is unlikely to happen, but who knows?
13310 ac_cv_c_bigendian=unknown
13311 fi
13312 fi
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 else
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 $ac_includes_default
13319 int
13320 main ()
13321 {
13322
13323 /* Are we little or big endian? From Harbison&Steele. */
13324 union
13325 {
13326 long int l;
13327 char c[sizeof (long int)];
13328 } u;
13329 u.l = 1;
13330 return u.c[sizeof (long int) - 1] == 1;
13331
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 if ac_fn_c_try_run "$LINENO"; then :
13337 ac_cv_c_bigendian=no
13338 else
13339 ac_cv_c_bigendian=yes
13340 fi
13341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13342 conftest.$ac_objext conftest.beam conftest.$ac_ext
13343 fi
13344
13345 fi
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13348 $as_echo "$ac_cv_c_bigendian" >&6; }
13349 case $ac_cv_c_bigendian in #(
13350 yes)
13351 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13352 ;; #(
13353 no)
13354 ;; #(
13355 universal)
13356
13357 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13358
13359 ;; #(
13360 *)
13361 as_fn_error $? "unknown endianness
13362 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13363 esac
13364
13365
13366 # The cast to long int works around a bug in the HP C Compiler
13367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13369 # This bug is HP SR number 8606223364.
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13371 $as_echo_n "checking size of int... " >&6; }
13372 if ${ac_cv_sizeof_int+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13376
13377 else
13378 if test "$ac_cv_type_int" = yes; then
13379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13381 as_fn_error 77 "cannot compute sizeof (int)
13382 See \`config.log' for more details" "$LINENO" 5; }
13383 else
13384 ac_cv_sizeof_int=0
13385 fi
13386 fi
13387
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13390 $as_echo "$ac_cv_sizeof_int" >&6; }
13391
13392
13393
13394 cat >>confdefs.h <<_ACEOF
13395 #define SIZEOF_INT $ac_cv_sizeof_int
13396 _ACEOF
13397
13398
13399 # The cast to long int works around a bug in the HP C Compiler
13400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13402 # This bug is HP SR number 8606223364.
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13404 $as_echo_n "checking size of short... " >&6; }
13405 if ${ac_cv_sizeof_short+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13409
13410 else
13411 if test "$ac_cv_type_short" = yes; then
13412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13414 as_fn_error 77 "cannot compute sizeof (short)
13415 See \`config.log' for more details" "$LINENO" 5; }
13416 else
13417 ac_cv_sizeof_short=0
13418 fi
13419 fi
13420
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13423 $as_echo "$ac_cv_sizeof_short" >&6; }
13424
13425
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define SIZEOF_SHORT $ac_cv_sizeof_short
13429 _ACEOF
13430
13431
13432 # The cast to long int works around a bug in the HP C Compiler
13433 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13434 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13435 # This bug is HP SR number 8606223364.
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13437 $as_echo_n "checking size of long... " >&6; }
13438 if ${ac_cv_sizeof_long+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13442
13443 else
13444 if test "$ac_cv_type_long" = yes; then
13445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13447 as_fn_error 77 "cannot compute sizeof (long)
13448 See \`config.log' for more details" "$LINENO" 5; }
13449 else
13450 ac_cv_sizeof_long=0
13451 fi
13452 fi
13453
13454 fi
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13456 $as_echo "$ac_cv_sizeof_long" >&6; }
13457
13458
13459
13460 cat >>confdefs.h <<_ACEOF
13461 #define SIZEOF_LONG $ac_cv_sizeof_long
13462 _ACEOF
13463
13464
13465
13466
13467
13468
13469
13470
13471 subdirs="$subdirs src/libopm"
13472
13473
13474
13475 # Check whether --with-werror was given.
13476 if test "${with_werror+set}" = set; then :
13477 withval=$with_werror; CFLAGS="$CFLAGS -Werror"
13478 fi
13479
13480
13481 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13482
13483 cat >confcache <<\_ACEOF
13484 # This file is a shell script that caches the results of configure
13485 # tests run on this system so they can be shared between configure
13486 # scripts and configure runs, see configure's option --config-cache.
13487 # It is not useful on other systems. If it contains results you don't
13488 # want to keep, you may remove or edit it.
13489 #
13490 # config.status only pays attention to the cache file if you give it
13491 # the --recheck option to rerun configure.
13492 #
13493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13495 # following values.
13496
13497 _ACEOF
13498
13499 # The following way of writing the cache mishandles newlines in values,
13500 # but we know of no workaround that is simple, portable, and efficient.
13501 # So, we kill variables containing newlines.
13502 # Ultrix sh set writes to stderr and can't be redirected directly,
13503 # and sets the high bit in the cache file unless we assign to the vars.
13504 (
13505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13506 eval ac_val=\$$ac_var
13507 case $ac_val in #(
13508 *${as_nl}*)
13509 case $ac_var in #(
13510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13512 esac
13513 case $ac_var in #(
13514 _ | IFS | as_nl) ;; #(
13515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13516 *) { eval $ac_var=; unset $ac_var;} ;;
13517 esac ;;
13518 esac
13519 done
13520
13521 (set) 2>&1 |
13522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13523 *${as_nl}ac_space=\ *)
13524 # `set' does not quote correctly, so add quotes: double-quote
13525 # substitution turns \\\\ into \\, and sed turns \\ into \.
13526 sed -n \
13527 "s/'/'\\\\''/g;
13528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13529 ;; #(
13530 *)
13531 # `set' quotes correctly as required by POSIX, so do not add quotes.
13532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13533 ;;
13534 esac |
13535 sort
13536 ) |
13537 sed '
13538 /^ac_cv_env_/b end
13539 t clear
13540 :clear
13541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13542 t end
13543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13544 :end' >>confcache
13545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13546 if test -w "$cache_file"; then
13547 if test "x$cache_file" != "x/dev/null"; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13549 $as_echo "$as_me: updating cache $cache_file" >&6;}
13550 if test ! -f "$cache_file" || test -h "$cache_file"; then
13551 cat confcache >"$cache_file"
13552 else
13553 case $cache_file in #(
13554 */* | ?:*)
13555 mv -f confcache "$cache_file"$$ &&
13556 mv -f "$cache_file"$$ "$cache_file" ;; #(
13557 *)
13558 mv -f confcache "$cache_file" ;;
13559 esac
13560 fi
13561 fi
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13565 fi
13566 fi
13567 rm -f confcache
13568
13569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13570 # Let make expand exec_prefix.
13571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13572
13573 DEFS=-DHAVE_CONFIG_H
13574
13575 ac_libobjs=
13576 ac_ltlibobjs=
13577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13578 # 1. Remove the extension, and $U if already installed.
13579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13580 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13582 # will be set to the directory where LIBOBJS objects are built.
13583 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13584 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13585 done
13586 LIBOBJS=$ac_libobjs
13587
13588 LTLIBOBJS=$ac_ltlibobjs
13589
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13592 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13593 if test -n "$am_sleep_pid"; then
13594 # Hide warnings about reused PIDs.
13595 wait $am_sleep_pid 2>/dev/null
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13598 $as_echo "done" >&6; }
13599 if test -n "$EXEEXT"; then
13600 am__EXEEXT_TRUE=
13601 am__EXEEXT_FALSE='#'
13602 else
13603 am__EXEEXT_TRUE='#'
13604 am__EXEEXT_FALSE=
13605 fi
13606
13607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13608 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13610 fi
13611 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13612 as_fn_error $? "conditional \"AMDEP\" was never defined.
13613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13614 fi
13615 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13618 fi
13619
13620
13621 : "${CONFIG_STATUS=./config.status}"
13622 ac_write_fail=0
13623 ac_clean_files_save=$ac_clean_files
13624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13627 as_write_fail=0
13628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13629 #! $SHELL
13630 # Generated by $as_me.
13631 # Run this file to recreate the current configuration.
13632 # Compiler output produced by configure, useful for debugging
13633 # configure, is in config.log if it exists.
13634
13635 debug=false
13636 ac_cs_recheck=false
13637 ac_cs_silent=false
13638
13639 SHELL=\${CONFIG_SHELL-$SHELL}
13640 export SHELL
13641 _ASEOF
13642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13643 ## -------------------- ##
13644 ## M4sh Initialization. ##
13645 ## -------------------- ##
13646
13647 # Be more Bourne compatible
13648 DUALCASE=1; export DUALCASE # for MKS sh
13649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13650 emulate sh
13651 NULLCMD=:
13652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13653 # is contrary to our usage. Disable this feature.
13654 alias -g '${1+"$@"}'='"$@"'
13655 setopt NO_GLOB_SUBST
13656 else
13657 case `(set -o) 2>/dev/null` in #(
13658 *posix*) :
13659 set -o posix ;; #(
13660 *) :
13661 ;;
13662 esac
13663 fi
13664
13665
13666 as_nl='
13667 '
13668 export as_nl
13669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13670 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13673 # Prefer a ksh shell builtin over an external printf program on Solaris,
13674 # but without wasting forks for bash or zsh.
13675 if test -z "$BASH_VERSION$ZSH_VERSION" \
13676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13677 as_echo='print -r --'
13678 as_echo_n='print -rn --'
13679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13680 as_echo='printf %s\n'
13681 as_echo_n='printf %s'
13682 else
13683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13684 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13685 as_echo_n='/usr/ucb/echo -n'
13686 else
13687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13688 as_echo_n_body='eval
13689 arg=$1;
13690 case $arg in #(
13691 *"$as_nl"*)
13692 expr "X$arg" : "X\\(.*\\)$as_nl";
13693 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13694 esac;
13695 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13696 '
13697 export as_echo_n_body
13698 as_echo_n='sh -c $as_echo_n_body as_echo'
13699 fi
13700 export as_echo_body
13701 as_echo='sh -c $as_echo_body as_echo'
13702 fi
13703
13704 # The user is always right.
13705 if test "${PATH_SEPARATOR+set}" != set; then
13706 PATH_SEPARATOR=:
13707 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13708 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13709 PATH_SEPARATOR=';'
13710 }
13711 fi
13712
13713
13714 # IFS
13715 # We need space, tab and new line, in precisely that order. Quoting is
13716 # there to prevent editors from complaining about space-tab.
13717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13718 # splitting by setting IFS to empty value.)
13719 IFS=" "" $as_nl"
13720
13721 # Find who we are. Look in the path if we contain no directory separator.
13722 as_myself=
13723 case $0 in #((
13724 *[\\/]* ) as_myself=$0 ;;
13725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13731 done
13732 IFS=$as_save_IFS
13733
13734 ;;
13735 esac
13736 # We did not find ourselves, most probably we were run as `sh COMMAND'
13737 # in which case we are not to be found in the path.
13738 if test "x$as_myself" = x; then
13739 as_myself=$0
13740 fi
13741 if test ! -f "$as_myself"; then
13742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13743 exit 1
13744 fi
13745
13746 # Unset variables that we do not need and which cause bugs (e.g. in
13747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13748 # suppresses any "Segmentation fault" message there. '((' could
13749 # trigger a bug in pdksh 5.2.14.
13750 for as_var in BASH_ENV ENV MAIL MAILPATH
13751 do eval test x\${$as_var+set} = xset \
13752 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13753 done
13754 PS1='$ '
13755 PS2='> '
13756 PS4='+ '
13757
13758 # NLS nuisances.
13759 LC_ALL=C
13760 export LC_ALL
13761 LANGUAGE=C
13762 export LANGUAGE
13763
13764 # CDPATH.
13765 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13766
13767
13768 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13769 # ----------------------------------------
13770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13772 # script with STATUS, using 1 if that was 0.
13773 as_fn_error ()
13774 {
13775 as_status=$1; test $as_status -eq 0 && as_status=1
13776 if test "$4"; then
13777 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13779 fi
13780 $as_echo "$as_me: error: $2" >&2
13781 as_fn_exit $as_status
13782 } # as_fn_error
13783
13784
13785 # as_fn_set_status STATUS
13786 # -----------------------
13787 # Set $? to STATUS, without forking.
13788 as_fn_set_status ()
13789 {
13790 return $1
13791 } # as_fn_set_status
13792
13793 # as_fn_exit STATUS
13794 # -----------------
13795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13796 as_fn_exit ()
13797 {
13798 set +e
13799 as_fn_set_status $1
13800 exit $1
13801 } # as_fn_exit
13802
13803 # as_fn_unset VAR
13804 # ---------------
13805 # Portably unset VAR.
13806 as_fn_unset ()
13807 {
13808 { eval $1=; unset $1;}
13809 }
13810 as_unset=as_fn_unset
13811 # as_fn_append VAR VALUE
13812 # ----------------------
13813 # Append the text in VALUE to the end of the definition contained in VAR. Take
13814 # advantage of any shell optimizations that allow amortized linear growth over
13815 # repeated appends, instead of the typical quadratic growth present in naive
13816 # implementations.
13817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13818 eval 'as_fn_append ()
13819 {
13820 eval $1+=\$2
13821 }'
13822 else
13823 as_fn_append ()
13824 {
13825 eval $1=\$$1\$2
13826 }
13827 fi # as_fn_append
13828
13829 # as_fn_arith ARG...
13830 # ------------------
13831 # Perform arithmetic evaluation on the ARGs, and store the result in the
13832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13833 # must be portable across $(()) and expr.
13834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13835 eval 'as_fn_arith ()
13836 {
13837 as_val=$(( $* ))
13838 }'
13839 else
13840 as_fn_arith ()
13841 {
13842 as_val=`expr "$@" || test $? -eq 1`
13843 }
13844 fi # as_fn_arith
13845
13846
13847 if expr a : '\(a\)' >/dev/null 2>&1 &&
13848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13849 as_expr=expr
13850 else
13851 as_expr=false
13852 fi
13853
13854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13855 as_basename=basename
13856 else
13857 as_basename=false
13858 fi
13859
13860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13861 as_dirname=dirname
13862 else
13863 as_dirname=false
13864 fi
13865
13866 as_me=`$as_basename -- "$0" ||
13867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13868 X"$0" : 'X\(//\)$' \| \
13869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X/"$0" |
13871 sed '/^.*\/\([^/][^/]*\)\/*$/{
13872 s//\1/
13873 q
13874 }
13875 /^X\/\(\/\/\)$/{
13876 s//\1/
13877 q
13878 }
13879 /^X\/\(\/\).*/{
13880 s//\1/
13881 q
13882 }
13883 s/.*/./; q'`
13884
13885 # Avoid depending upon Character Ranges.
13886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13889 as_cr_digits='0123456789'
13890 as_cr_alnum=$as_cr_Letters$as_cr_digits
13891
13892 ECHO_C= ECHO_N= ECHO_T=
13893 case `echo -n x` in #(((((
13894 -n*)
13895 case `echo 'xy\c'` in
13896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13897 xy) ECHO_C='\c';;
13898 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13899 ECHO_T=' ';;
13900 esac;;
13901 *)
13902 ECHO_N='-n';;
13903 esac
13904
13905 rm -f conf$$ conf$$.exe conf$$.file
13906 if test -d conf$$.dir; then
13907 rm -f conf$$.dir/conf$$.file
13908 else
13909 rm -f conf$$.dir
13910 mkdir conf$$.dir 2>/dev/null
13911 fi
13912 if (echo >conf$$.file) 2>/dev/null; then
13913 if ln -s conf$$.file conf$$ 2>/dev/null; then
13914 as_ln_s='ln -s'
13915 # ... but there are two gotchas:
13916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13918 # In both cases, we have to default to `cp -pR'.
13919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13920 as_ln_s='cp -pR'
13921 elif ln conf$$.file conf$$ 2>/dev/null; then
13922 as_ln_s=ln
13923 else
13924 as_ln_s='cp -pR'
13925 fi
13926 else
13927 as_ln_s='cp -pR'
13928 fi
13929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13930 rmdir conf$$.dir 2>/dev/null
13931
13932
13933 # as_fn_mkdir_p
13934 # -------------
13935 # Create "$as_dir" as a directory, including parents if necessary.
13936 as_fn_mkdir_p ()
13937 {
13938
13939 case $as_dir in #(
13940 -*) as_dir=./$as_dir;;
13941 esac
13942 test -d "$as_dir" || eval $as_mkdir_p || {
13943 as_dirs=
13944 while :; do
13945 case $as_dir in #(
13946 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13947 *) as_qdir=$as_dir;;
13948 esac
13949 as_dirs="'$as_qdir' $as_dirs"
13950 as_dir=`$as_dirname -- "$as_dir" ||
13951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13952 X"$as_dir" : 'X\(//\)[^/]' \| \
13953 X"$as_dir" : 'X\(//\)$' \| \
13954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13955 $as_echo X"$as_dir" |
13956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13957 s//\1/
13958 q
13959 }
13960 /^X\(\/\/\)[^/].*/{
13961 s//\1/
13962 q
13963 }
13964 /^X\(\/\/\)$/{
13965 s//\1/
13966 q
13967 }
13968 /^X\(\/\).*/{
13969 s//\1/
13970 q
13971 }
13972 s/.*/./; q'`
13973 test -d "$as_dir" && break
13974 done
13975 test -z "$as_dirs" || eval "mkdir $as_dirs"
13976 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13977
13978
13979 } # as_fn_mkdir_p
13980 if mkdir -p . 2>/dev/null; then
13981 as_mkdir_p='mkdir -p "$as_dir"'
13982 else
13983 test -d ./-p && rmdir ./-p
13984 as_mkdir_p=false
13985 fi
13986
13987
13988 # as_fn_executable_p FILE
13989 # -----------------------
13990 # Test if FILE is an executable regular file.
13991 as_fn_executable_p ()
13992 {
13993 test -f "$1" && test -x "$1"
13994 } # as_fn_executable_p
13995 as_test_x='test -x'
13996 as_executable_p=as_fn_executable_p
13997
13998 # Sed expression to map a string onto a valid CPP name.
13999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14000
14001 # Sed expression to map a string onto a valid variable name.
14002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14003
14004
14005 exec 6>&1
14006 ## ----------------------------------- ##
14007 ## Main body of $CONFIG_STATUS script. ##
14008 ## ----------------------------------- ##
14009 _ASEOF
14010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14011
14012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14013 # Save the log message, to keep $0 and so on meaningful, and to
14014 # report actual input values of CONFIG_FILES etc. instead of their
14015 # values after options handling.
14016 ac_log="
14017 This file was extended by hopm $as_me 1.0.0beta1, which was
14018 generated by GNU Autoconf 2.69. Invocation command line was
14019
14020 CONFIG_FILES = $CONFIG_FILES
14021 CONFIG_HEADERS = $CONFIG_HEADERS
14022 CONFIG_LINKS = $CONFIG_LINKS
14023 CONFIG_COMMANDS = $CONFIG_COMMANDS
14024 $ $0 $@
14025
14026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14027 "
14028
14029 _ACEOF
14030
14031 case $ac_config_files in *"
14032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14033 esac
14034
14035 case $ac_config_headers in *"
14036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14037 esac
14038
14039
14040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14041 # Files that config.status was made for.
14042 config_files="$ac_config_files"
14043 config_headers="$ac_config_headers"
14044 config_commands="$ac_config_commands"
14045
14046 _ACEOF
14047
14048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049 ac_cs_usage="\
14050 \`$as_me' instantiates files and other configuration actions
14051 from templates according to the current configuration. Unless the files
14052 and actions are specified as TAGs, all are instantiated by default.
14053
14054 Usage: $0 [OPTION]... [TAG]...
14055
14056 -h, --help print this help, then exit
14057 -V, --version print version number and configuration settings, then exit
14058 --config print configuration, then exit
14059 -q, --quiet, --silent
14060 do not print progress messages
14061 -d, --debug don't remove temporary files
14062 --recheck update $as_me by reconfiguring in the same conditions
14063 --file=FILE[:TEMPLATE]
14064 instantiate the configuration file FILE
14065 --header=FILE[:TEMPLATE]
14066 instantiate the configuration header FILE
14067
14068 Configuration files:
14069 $config_files
14070
14071 Configuration headers:
14072 $config_headers
14073
14074 Configuration commands:
14075 $config_commands
14076
14077 Report bugs to the package provider."
14078
14079 _ACEOF
14080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14082 ac_cs_version="\\
14083 hopm config.status 1.0.0beta1
14084 configured by $0, generated by GNU Autoconf 2.69,
14085 with options \\"\$ac_cs_config\\"
14086
14087 Copyright (C) 2012 Free Software Foundation, Inc.
14088 This config.status script is free software; the Free Software Foundation
14089 gives unlimited permission to copy, distribute and modify it."
14090
14091 ac_pwd='$ac_pwd'
14092 srcdir='$srcdir'
14093 INSTALL='$INSTALL'
14094 MKDIR_P='$MKDIR_P'
14095 AWK='$AWK'
14096 test -n "\$AWK" || AWK=awk
14097 _ACEOF
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # The default lists apply if the user does not specify any file.
14101 ac_need_defaults=:
14102 while test $# != 0
14103 do
14104 case $1 in
14105 --*=?*)
14106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14108 ac_shift=:
14109 ;;
14110 --*=)
14111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14112 ac_optarg=
14113 ac_shift=:
14114 ;;
14115 *)
14116 ac_option=$1
14117 ac_optarg=$2
14118 ac_shift=shift
14119 ;;
14120 esac
14121
14122 case $ac_option in
14123 # Handling of the options.
14124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14125 ac_cs_recheck=: ;;
14126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14127 $as_echo "$ac_cs_version"; exit ;;
14128 --config | --confi | --conf | --con | --co | --c )
14129 $as_echo "$ac_cs_config"; exit ;;
14130 --debug | --debu | --deb | --de | --d | -d )
14131 debug=: ;;
14132 --file | --fil | --fi | --f )
14133 $ac_shift
14134 case $ac_optarg in
14135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14136 '') as_fn_error $? "missing file argument" ;;
14137 esac
14138 as_fn_append CONFIG_FILES " '$ac_optarg'"
14139 ac_need_defaults=false;;
14140 --header | --heade | --head | --hea )
14141 $ac_shift
14142 case $ac_optarg in
14143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14144 esac
14145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14146 ac_need_defaults=false;;
14147 --he | --h)
14148 # Conflict between --help and --header
14149 as_fn_error $? "ambiguous option: \`$1'
14150 Try \`$0 --help' for more information.";;
14151 --help | --hel | -h )
14152 $as_echo "$ac_cs_usage"; exit ;;
14153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14155 ac_cs_silent=: ;;
14156
14157 # This is an error.
14158 -*) as_fn_error $? "unrecognized option: \`$1'
14159 Try \`$0 --help' for more information." ;;
14160
14161 *) as_fn_append ac_config_targets " $1"
14162 ac_need_defaults=false ;;
14163
14164 esac
14165 shift
14166 done
14167
14168 ac_configure_extra_args=
14169
14170 if $ac_cs_silent; then
14171 exec 6>/dev/null
14172 ac_configure_extra_args="$ac_configure_extra_args --silent"
14173 fi
14174
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14177 if \$ac_cs_recheck; then
14178 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14179 shift
14180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14181 CONFIG_SHELL='$SHELL'
14182 export CONFIG_SHELL
14183 exec "\$@"
14184 fi
14185
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188 exec 5>>config.log
14189 {
14190 echo
14191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14192 ## Running $as_me. ##
14193 _ASBOX
14194 $as_echo "$ac_log"
14195 } >&5
14196
14197 _ACEOF
14198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 #
14200 # INIT-COMMANDS
14201 #
14202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14203
14204
14205 # The HP-UX ksh and POSIX shell print the target directory to stdout
14206 # if CDPATH is set.
14207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14208
14209 sed_quote_subst='$sed_quote_subst'
14210 double_quote_subst='$double_quote_subst'
14211 delay_variable_subst='$delay_variable_subst'
14212 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14213 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14214 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14215 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14216 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14217 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14218 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14219 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14220 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14221 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14222 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14223 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14224 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14225 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14226 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14227 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14228 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14229 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14230 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14231 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14232 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14233 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14234 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14235 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14236 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14237 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14238 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14239 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14240 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14241 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14242 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14243 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14244 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14245 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14246 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14247 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14248 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14249 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14250 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14251 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14252 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14253 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14254 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14255 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14256 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14257 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14258 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14259 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14260 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14261 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14262 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14263 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14264 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14265 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14266 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14267 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14268 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14269 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14270 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"`'
14271 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14272 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14273 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14274 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14275 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14276 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14277 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14278 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14279 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14280 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14281 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14282 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14283 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14284 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14285 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14286 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14287 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14288 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14289 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14290 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14291 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14292 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14293 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14294 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14295 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14296 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14297 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14298 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14299 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14300 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14301 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14302 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14303 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14304 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14305 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14306 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14307 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14308 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14309 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14310 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14311 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14312 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14313 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14314 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14315 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14316 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14317 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14318 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14319 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14320 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14321 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14322 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14323 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14324 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14325 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14326 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14327 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14328 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14329 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14330 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14331 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14332 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14333 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14334 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14335 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14336 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14337 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14338 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14339 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14340 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14341 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14342 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14343 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14344 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14345 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14346
14347 LTCC='$LTCC'
14348 LTCFLAGS='$LTCFLAGS'
14349 compiler='$compiler_DEFAULT'
14350
14351 # A function that is used when there is no print builtin or printf.
14352 func_fallback_echo ()
14353 {
14354 eval 'cat <<_LTECHO_EOF
14355 \$1
14356 _LTECHO_EOF'
14357 }
14358
14359 # Quote evaled strings.
14360 for var in SHELL \
14361 ECHO \
14362 PATH_SEPARATOR \
14363 SED \
14364 GREP \
14365 EGREP \
14366 FGREP \
14367 LD \
14368 NM \
14369 LN_S \
14370 lt_SP2NL \
14371 lt_NL2SP \
14372 reload_flag \
14373 OBJDUMP \
14374 deplibs_check_method \
14375 file_magic_cmd \
14376 file_magic_glob \
14377 want_nocaseglob \
14378 DLLTOOL \
14379 sharedlib_from_linklib_cmd \
14380 AR \
14381 AR_FLAGS \
14382 archiver_list_spec \
14383 STRIP \
14384 RANLIB \
14385 CC \
14386 CFLAGS \
14387 compiler \
14388 lt_cv_sys_global_symbol_pipe \
14389 lt_cv_sys_global_symbol_to_cdecl \
14390 lt_cv_sys_global_symbol_to_import \
14391 lt_cv_sys_global_symbol_to_c_name_address \
14392 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14393 lt_cv_nm_interface \
14394 nm_file_list_spec \
14395 lt_cv_truncate_bin \
14396 lt_prog_compiler_no_builtin_flag \
14397 lt_prog_compiler_pic \
14398 lt_prog_compiler_wl \
14399 lt_prog_compiler_static \
14400 lt_cv_prog_compiler_c_o \
14401 need_locks \
14402 MANIFEST_TOOL \
14403 DSYMUTIL \
14404 NMEDIT \
14405 LIPO \
14406 OTOOL \
14407 OTOOL64 \
14408 shrext_cmds \
14409 export_dynamic_flag_spec \
14410 whole_archive_flag_spec \
14411 compiler_needs_object \
14412 with_gnu_ld \
14413 allow_undefined_flag \
14414 no_undefined_flag \
14415 hardcode_libdir_flag_spec \
14416 hardcode_libdir_separator \
14417 exclude_expsyms \
14418 include_expsyms \
14419 file_list_spec \
14420 variables_saved_for_relink \
14421 libname_spec \
14422 library_names_spec \
14423 soname_spec \
14424 install_override_mode \
14425 finish_eval \
14426 old_striplib \
14427 striplib; do
14428 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14429 *[\\\\\\\`\\"\\\$]*)
14430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14431 ;;
14432 *)
14433 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14434 ;;
14435 esac
14436 done
14437
14438 # Double-quote double-evaled strings.
14439 for var in reload_cmds \
14440 old_postinstall_cmds \
14441 old_postuninstall_cmds \
14442 old_archive_cmds \
14443 extract_expsyms_cmds \
14444 old_archive_from_new_cmds \
14445 old_archive_from_expsyms_cmds \
14446 archive_cmds \
14447 archive_expsym_cmds \
14448 module_cmds \
14449 module_expsym_cmds \
14450 export_symbols_cmds \
14451 prelink_cmds \
14452 postlink_cmds \
14453 postinstall_cmds \
14454 postuninstall_cmds \
14455 finish_cmds \
14456 sys_lib_search_path_spec \
14457 sys_lib_dlsearch_path_spec; do
14458 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14459 *[\\\\\\\`\\"\\\$]*)
14460 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14461 ;;
14462 *)
14463 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14464 ;;
14465 esac
14466 done
14467
14468 ac_aux_dir='$ac_aux_dir'
14469
14470 # See if we are running on zsh, and set the options that allow our
14471 # commands through without removal of \ escapes INIT.
14472 if test -n "\${ZSH_VERSION+set}"; then
14473 setopt NO_GLOB_SUBST
14474 fi
14475
14476
14477 PACKAGE='$PACKAGE'
14478 VERSION='$VERSION'
14479 RM='$RM'
14480 ofile='$ofile'
14481
14482
14483
14484
14485 _ACEOF
14486
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488
14489 # Handling of arguments.
14490 for ac_config_target in $ac_config_targets
14491 do
14492 case $ac_config_target in
14493 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
14494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14495 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14497 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14498 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14499
14500 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14501 esac
14502 done
14503
14504
14505 # If the user did not use the arguments to specify the items to instantiate,
14506 # then the envvar interface is used. Set only those that are not.
14507 # We use the long form for the default assignment because of an extremely
14508 # bizarre bug on SunOS 4.1.3.
14509 if $ac_need_defaults; then
14510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14513 fi
14514
14515 # Have a temporary directory for convenience. Make it in the build tree
14516 # simply because there is no reason against having it here, and in addition,
14517 # creating and moving files from /tmp can sometimes cause problems.
14518 # Hook for its removal unless debugging.
14519 # Note that there is a small window in which the directory will not be cleaned:
14520 # after its creation but before its name has been assigned to `$tmp'.
14521 $debug ||
14522 {
14523 tmp= ac_tmp=
14524 trap 'exit_status=$?
14525 : "${ac_tmp:=$tmp}"
14526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14527 ' 0
14528 trap 'as_fn_exit 1' 1 2 13 15
14529 }
14530 # Create a (secure) tmp directory for tmp files.
14531
14532 {
14533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14534 test -d "$tmp"
14535 } ||
14536 {
14537 tmp=./conf$$-$RANDOM
14538 (umask 077 && mkdir "$tmp")
14539 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14540 ac_tmp=$tmp
14541
14542 # Set up the scripts for CONFIG_FILES section.
14543 # No need to generate them if there are no CONFIG_FILES.
14544 # This happens for instance with `./config.status config.h'.
14545 if test -n "$CONFIG_FILES"; then
14546
14547
14548 ac_cr=`echo X | tr X '\015'`
14549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14550 # But we know of no other shell where ac_cr would be empty at this
14551 # point, so we can use a bashism as a fallback.
14552 if test "x$ac_cr" = x; then
14553 eval ac_cr=\$\'\\r\'
14554 fi
14555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14557 ac_cs_awk_cr='\\r'
14558 else
14559 ac_cs_awk_cr=$ac_cr
14560 fi
14561
14562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14563 _ACEOF
14564
14565
14566 {
14567 echo "cat >conf$$subs.awk <<_ACEOF" &&
14568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14569 echo "_ACEOF"
14570 } >conf$$subs.sh ||
14571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14573 ac_delim='%!_!# '
14574 for ac_last_try in false false false false false :; do
14575 . ./conf$$subs.sh ||
14576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14577
14578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14579 if test $ac_delim_n = $ac_delim_num; then
14580 break
14581 elif $ac_last_try; then
14582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14583 else
14584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14585 fi
14586 done
14587 rm -f conf$$subs.sh
14588
14589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14591 _ACEOF
14592 sed -n '
14593 h
14594 s/^/S["/; s/!.*/"]=/
14595 p
14596 g
14597 s/^[^!]*!//
14598 :repl
14599 t repl
14600 s/'"$ac_delim"'$//
14601 t delim
14602 :nl
14603 h
14604 s/\(.\{148\}\)..*/\1/
14605 t more1
14606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14607 p
14608 n
14609 b repl
14610 :more1
14611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14612 p
14613 g
14614 s/.\{148\}//
14615 t nl
14616 :delim
14617 h
14618 s/\(.\{148\}\)..*/\1/
14619 t more2
14620 s/["\\]/\\&/g; s/^/"/; s/$/"/
14621 p
14622 b
14623 :more2
14624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14625 p
14626 g
14627 s/.\{148\}//
14628 t delim
14629 ' <conf$$subs.awk | sed '
14630 /^[^""]/{
14631 N
14632 s/\n//
14633 }
14634 ' >>$CONFIG_STATUS || ac_write_fail=1
14635 rm -f conf$$subs.awk
14636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14637 _ACAWK
14638 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14639 for (key in S) S_is_set[key] = 1
14640 FS = ""
14641
14642 }
14643 {
14644 line = $ 0
14645 nfields = split(line, field, "@")
14646 substed = 0
14647 len = length(field[1])
14648 for (i = 2; i < nfields; i++) {
14649 key = field[i]
14650 keylen = length(key)
14651 if (S_is_set[key]) {
14652 value = S[key]
14653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14654 len += length(value) + length(field[++i])
14655 substed = 1
14656 } else
14657 len += 1 + keylen
14658 }
14659
14660 print line
14661 }
14662
14663 _ACAWK
14664 _ACEOF
14665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14668 else
14669 cat
14670 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14672 _ACEOF
14673
14674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14676 # trailing colons and then remove the whole line if VPATH becomes empty
14677 # (actually we leave an empty line to preserve line numbers).
14678 if test "x$srcdir" = x.; then
14679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14680 h
14681 s///
14682 s/^/:/
14683 s/[ ]*$/:/
14684 s/:\$(srcdir):/:/g
14685 s/:\${srcdir}:/:/g
14686 s/:@srcdir@:/:/g
14687 s/^:*//
14688 s/:*$//
14689 x
14690 s/\(=[ ]*\).*/\1/
14691 G
14692 s/\n//
14693 s/^[^=]*=[ ]*$//
14694 }'
14695 fi
14696
14697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14698 fi # test -n "$CONFIG_FILES"
14699
14700 # Set up the scripts for CONFIG_HEADERS section.
14701 # No need to generate them if there are no CONFIG_HEADERS.
14702 # This happens for instance with `./config.status Makefile'.
14703 if test -n "$CONFIG_HEADERS"; then
14704 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14705 BEGIN {
14706 _ACEOF
14707
14708 # Transform confdefs.h into an awk script `defines.awk', embedded as
14709 # here-document in config.status, that substitutes the proper values into
14710 # config.h.in to produce config.h.
14711
14712 # Create a delimiter string that does not exist in confdefs.h, to ease
14713 # handling of long lines.
14714 ac_delim='%!_!# '
14715 for ac_last_try in false false :; do
14716 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14717 if test -z "$ac_tt"; then
14718 break
14719 elif $ac_last_try; then
14720 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14721 else
14722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14723 fi
14724 done
14725
14726 # For the awk script, D is an array of macro values keyed by name,
14727 # likewise P contains macro parameters if any. Preserve backslash
14728 # newline sequences.
14729
14730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14731 sed -n '
14732 s/.\{148\}/&'"$ac_delim"'/g
14733 t rset
14734 :rset
14735 s/^[ ]*#[ ]*define[ ][ ]*/ /
14736 t def
14737 d
14738 :def
14739 s/\\$//
14740 t bsnl
14741 s/["\\]/\\&/g
14742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14743 D["\1"]=" \3"/p
14744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14745 d
14746 :bsnl
14747 s/["\\]/\\&/g
14748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14749 D["\1"]=" \3\\\\\\n"\\/p
14750 t cont
14751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14752 t cont
14753 d
14754 :cont
14755 n
14756 s/.\{148\}/&'"$ac_delim"'/g
14757 t clear
14758 :clear
14759 s/\\$//
14760 t bsnlc
14761 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14762 d
14763 :bsnlc
14764 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14765 b cont
14766 ' <confdefs.h | sed '
14767 s/'"$ac_delim"'/"\\\
14768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14769
14770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14771 for (key in D) D_is_set[key] = 1
14772 FS = ""
14773 }
14774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14775 line = \$ 0
14776 split(line, arg, " ")
14777 if (arg[1] == "#") {
14778 defundef = arg[2]
14779 mac1 = arg[3]
14780 } else {
14781 defundef = substr(arg[1], 2)
14782 mac1 = arg[2]
14783 }
14784 split(mac1, mac2, "(") #)
14785 macro = mac2[1]
14786 prefix = substr(line, 1, index(line, defundef) - 1)
14787 if (D_is_set[macro]) {
14788 # Preserve the white space surrounding the "#".
14789 print prefix "define", macro P[macro] D[macro]
14790 next
14791 } else {
14792 # Replace #undef with comments. This is necessary, for example,
14793 # in the case of _POSIX_SOURCE, which is predefined and required
14794 # on some systems where configure will not decide to define it.
14795 if (defundef == "undef") {
14796 print "/*", prefix defundef, macro, "*/"
14797 next
14798 }
14799 }
14800 }
14801 { print }
14802 _ACAWK
14803 _ACEOF
14804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14805 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14806 fi # test -n "$CONFIG_HEADERS"
14807
14808
14809 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14810 shift
14811 for ac_tag
14812 do
14813 case $ac_tag in
14814 :[FHLC]) ac_mode=$ac_tag; continue;;
14815 esac
14816 case $ac_mode$ac_tag in
14817 :[FHL]*:*);;
14818 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14819 :[FH]-) ac_tag=-:-;;
14820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14821 esac
14822 ac_save_IFS=$IFS
14823 IFS=:
14824 set x $ac_tag
14825 IFS=$ac_save_IFS
14826 shift
14827 ac_file=$1
14828 shift
14829
14830 case $ac_mode in
14831 :L) ac_source=$1;;
14832 :[FH])
14833 ac_file_inputs=
14834 for ac_f
14835 do
14836 case $ac_f in
14837 -) ac_f="$ac_tmp/stdin";;
14838 *) # Look for the file first in the build tree, then in the source tree
14839 # (if the path is not absolute). The absolute path cannot be DOS-style,
14840 # because $ac_f cannot contain `:'.
14841 test -f "$ac_f" ||
14842 case $ac_f in
14843 [\\/$]*) false;;
14844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14845 esac ||
14846 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14847 esac
14848 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14849 as_fn_append ac_file_inputs " '$ac_f'"
14850 done
14851
14852 # Let's still pretend it is `configure' which instantiates (i.e., don't
14853 # use $as_me), people would be surprised to read:
14854 # /* config.h. Generated by config.status. */
14855 configure_input='Generated from '`
14856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14857 `' by configure.'
14858 if test x"$ac_file" != x-; then
14859 configure_input="$ac_file. $configure_input"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14861 $as_echo "$as_me: creating $ac_file" >&6;}
14862 fi
14863 # Neutralize special characters interpreted by sed in replacement strings.
14864 case $configure_input in #(
14865 *\&* | *\|* | *\\* )
14866 ac_sed_conf_input=`$as_echo "$configure_input" |
14867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14868 *) ac_sed_conf_input=$configure_input;;
14869 esac
14870
14871 case $ac_tag in
14872 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14874 esac
14875 ;;
14876 esac
14877
14878 ac_dir=`$as_dirname -- "$ac_file" ||
14879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14880 X"$ac_file" : 'X\(//\)[^/]' \| \
14881 X"$ac_file" : 'X\(//\)$' \| \
14882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14883 $as_echo X"$ac_file" |
14884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\(\/\/\)[^/].*/{
14889 s//\1/
14890 q
14891 }
14892 /^X\(\/\/\)$/{
14893 s//\1/
14894 q
14895 }
14896 /^X\(\/\).*/{
14897 s//\1/
14898 q
14899 }
14900 s/.*/./; q'`
14901 as_dir="$ac_dir"; as_fn_mkdir_p
14902 ac_builddir=.
14903
14904 case "$ac_dir" in
14905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14906 *)
14907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14908 # A ".." for each directory in $ac_dir_suffix.
14909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14910 case $ac_top_builddir_sub in
14911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14913 esac ;;
14914 esac
14915 ac_abs_top_builddir=$ac_pwd
14916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14917 # for backward compatibility:
14918 ac_top_builddir=$ac_top_build_prefix
14919
14920 case $srcdir in
14921 .) # We are building in place.
14922 ac_srcdir=.
14923 ac_top_srcdir=$ac_top_builddir_sub
14924 ac_abs_top_srcdir=$ac_pwd ;;
14925 [\\/]* | ?:[\\/]* ) # Absolute name.
14926 ac_srcdir=$srcdir$ac_dir_suffix;
14927 ac_top_srcdir=$srcdir
14928 ac_abs_top_srcdir=$srcdir ;;
14929 *) # Relative name.
14930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14931 ac_top_srcdir=$ac_top_build_prefix$srcdir
14932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14933 esac
14934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14935
14936
14937 case $ac_mode in
14938 :F)
14939 #
14940 # CONFIG_FILE
14941 #
14942
14943 case $INSTALL in
14944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14946 esac
14947 ac_MKDIR_P=$MKDIR_P
14948 case $MKDIR_P in
14949 [\\/$]* | ?:[\\/]* ) ;;
14950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14951 esac
14952 _ACEOF
14953
14954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 # If the template does not know about datarootdir, expand it.
14956 # FIXME: This hack should be removed a few years after 2.60.
14957 ac_datarootdir_hack=; ac_datarootdir_seen=
14958 ac_sed_dataroot='
14959 /datarootdir/ {
14960 p
14961 q
14962 }
14963 /@datadir@/p
14964 /@docdir@/p
14965 /@infodir@/p
14966 /@localedir@/p
14967 /@mandir@/p'
14968 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14969 *datarootdir*) ac_datarootdir_seen=yes;;
14970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14972 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14973 _ACEOF
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 ac_datarootdir_hack='
14976 s&@datadir@&$datadir&g
14977 s&@docdir@&$docdir&g
14978 s&@infodir@&$infodir&g
14979 s&@localedir@&$localedir&g
14980 s&@mandir@&$mandir&g
14981 s&\\\${datarootdir}&$datarootdir&g' ;;
14982 esac
14983 _ACEOF
14984
14985 # Neutralize VPATH when `$srcdir' = `.'.
14986 # Shell code in configure.ac might set extrasub.
14987 # FIXME: do we really want to maintain this feature?
14988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14989 ac_sed_extra="$ac_vpsub
14990 $extrasub
14991 _ACEOF
14992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14993 :t
14994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14995 s|@configure_input@|$ac_sed_conf_input|;t t
14996 s&@top_builddir@&$ac_top_builddir_sub&;t t
14997 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14998 s&@srcdir@&$ac_srcdir&;t t
14999 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15000 s&@top_srcdir@&$ac_top_srcdir&;t t
15001 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15002 s&@builddir@&$ac_builddir&;t t
15003 s&@abs_builddir@&$ac_abs_builddir&;t t
15004 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15005 s&@INSTALL@&$ac_INSTALL&;t t
15006 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15007 $ac_datarootdir_hack
15008 "
15009 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15010 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15011
15012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15013 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15015 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15017 which seems to be undefined. Please make sure it is defined" >&5
15018 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15019 which seems to be undefined. Please make sure it is defined" >&2;}
15020
15021 rm -f "$ac_tmp/stdin"
15022 case $ac_file in
15023 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15024 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15025 esac \
15026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15027 ;;
15028 :H)
15029 #
15030 # CONFIG_HEADER
15031 #
15032 if test x"$ac_file" != x-; then
15033 {
15034 $as_echo "/* $configure_input */" \
15035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15036 } >"$ac_tmp/config.h" \
15037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15038 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15040 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15041 else
15042 rm -f "$ac_file"
15043 mv "$ac_tmp/config.h" "$ac_file" \
15044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15045 fi
15046 else
15047 $as_echo "/* $configure_input */" \
15048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15049 || as_fn_error $? "could not create -" "$LINENO" 5
15050 fi
15051 # Compute "$ac_file"'s index in $config_headers.
15052 _am_arg="$ac_file"
15053 _am_stamp_count=1
15054 for _am_header in $config_headers :; do
15055 case $_am_header in
15056 $_am_arg | $_am_arg:* )
15057 break ;;
15058 * )
15059 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15060 esac
15061 done
15062 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15063 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064 X"$_am_arg" : 'X\(//\)[^/]' \| \
15065 X"$_am_arg" : 'X\(//\)$' \| \
15066 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15067 $as_echo X"$_am_arg" |
15068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15069 s//\1/
15070 q
15071 }
15072 /^X\(\/\/\)[^/].*/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\/\)$/{
15077 s//\1/
15078 q
15079 }
15080 /^X\(\/\).*/{
15081 s//\1/
15082 q
15083 }
15084 s/.*/./; q'`/stamp-h$_am_stamp_count
15085 ;;
15086
15087 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15088 $as_echo "$as_me: executing $ac_file commands" >&6;}
15089 ;;
15090 esac
15091
15092
15093 case $ac_file$ac_mode in
15094 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15095 # Older Autoconf quotes --file arguments for eval, but not when files
15096 # are listed without --file. Let's play safe and only enable the eval
15097 # if we detect the quoting.
15098 case $CONFIG_FILES in
15099 *\'*) eval set x "$CONFIG_FILES" ;;
15100 *) set x $CONFIG_FILES ;;
15101 esac
15102 shift
15103 for mf
15104 do
15105 # Strip MF so we end up with the name of the file.
15106 mf=`echo "$mf" | sed -e 's/:.*$//'`
15107 # Check whether this is an Automake generated Makefile or not.
15108 # We used to match only the files named 'Makefile.in', but
15109 # some people rename them; so instead we look at the file content.
15110 # Grep'ing the first line is not enough: some people post-process
15111 # each Makefile.in and add a new line on top of each file to say so.
15112 # Grep'ing the whole file is not good either: AIX grep has a line
15113 # limit of 2048, but all sed's we know have understand at least 4000.
15114 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15115 dirpart=`$as_dirname -- "$mf" ||
15116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15117 X"$mf" : 'X\(//\)[^/]' \| \
15118 X"$mf" : 'X\(//\)$' \| \
15119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15120 $as_echo X"$mf" |
15121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15122 s//\1/
15123 q
15124 }
15125 /^X\(\/\/\)[^/].*/{
15126 s//\1/
15127 q
15128 }
15129 /^X\(\/\/\)$/{
15130 s//\1/
15131 q
15132 }
15133 /^X\(\/\).*/{
15134 s//\1/
15135 q
15136 }
15137 s/.*/./; q'`
15138 else
15139 continue
15140 fi
15141 # Extract the definition of DEPDIR, am__include, and am__quote
15142 # from the Makefile without running 'make'.
15143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15144 test -z "$DEPDIR" && continue
15145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15146 test -z "$am__include" && continue
15147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15148 # Find all dependency output files, they are included files with
15149 # $(DEPDIR) in their names. We invoke sed twice because it is the
15150 # simplest approach to changing $(DEPDIR) to its actual value in the
15151 # expansion.
15152 for file in `sed -n "
15153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15155 # Make sure the directory exists.
15156 test -f "$dirpart/$file" && continue
15157 fdir=`$as_dirname -- "$file" ||
15158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15159 X"$file" : 'X\(//\)[^/]' \| \
15160 X"$file" : 'X\(//\)$' \| \
15161 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15162 $as_echo X"$file" |
15163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15164 s//\1/
15165 q
15166 }
15167 /^X\(\/\/\)[^/].*/{
15168 s//\1/
15169 q
15170 }
15171 /^X\(\/\/\)$/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\).*/{
15176 s//\1/
15177 q
15178 }
15179 s/.*/./; q'`
15180 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15181 # echo "creating $dirpart/$file"
15182 echo '# dummy' > "$dirpart/$file"
15183 done
15184 done
15185 }
15186 ;;
15187 "libtool":C)
15188
15189 # See if we are running on zsh, and set the options that allow our
15190 # commands through without removal of \ escapes.
15191 if test -n "${ZSH_VERSION+set}"; then
15192 setopt NO_GLOB_SUBST
15193 fi
15194
15195 cfgfile=${ofile}T
15196 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15197 $RM "$cfgfile"
15198
15199 cat <<_LT_EOF >> "$cfgfile"
15200 #! $SHELL
15201 # Generated automatically by $as_me ($PACKAGE) $VERSION
15202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15203 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15204
15205 # Provide generalized library-building support services.
15206 # Written by Gordon Matzigkeit, 1996
15207
15208 # Copyright (C) 2014 Free Software Foundation, Inc.
15209 # This is free software; see the source for copying conditions. There is NO
15210 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15211
15212 # GNU Libtool is free software; you can redistribute it and/or modify
15213 # it under the terms of the GNU General Public License as published by
15214 # the Free Software Foundation; either version 2 of of the License, or
15215 # (at your option) any later version.
15216 #
15217 # As a special exception to the GNU General Public License, if you
15218 # distribute this file as part of a program or library that is built
15219 # using GNU Libtool, you may include this file under the same
15220 # distribution terms that you use for the rest of that program.
15221 #
15222 # GNU Libtool is distributed in the hope that it will be useful, but
15223 # WITHOUT ANY WARRANTY; without even the implied warranty of
15224 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15225 # GNU General Public License for more details.
15226 #
15227 # You should have received a copy of the GNU General Public License
15228 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15229
15230
15231 # The names of the tagged configurations supported by this script.
15232 available_tags=''
15233
15234 # ### BEGIN LIBTOOL CONFIG
15235
15236 # Which release of libtool.m4 was used?
15237 macro_version=$macro_version
15238 macro_revision=$macro_revision
15239
15240 # Whether or not to build shared libraries.
15241 build_libtool_libs=$enable_shared
15242
15243 # Whether or not to build static libraries.
15244 build_old_libs=$enable_static
15245
15246 # What type of objects to build.
15247 pic_mode=$pic_mode
15248
15249 # Whether or not to optimize for fast installation.
15250 fast_install=$enable_fast_install
15251
15252 # Shared archive member basename,for filename based shared library versioning on AIX.
15253 shared_archive_member_spec=$shared_archive_member_spec
15254
15255 # Shell to use when invoking shell scripts.
15256 SHELL=$lt_SHELL
15257
15258 # An echo program that protects backslashes.
15259 ECHO=$lt_ECHO
15260
15261 # The PATH separator for the build system.
15262 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15263
15264 # The host system.
15265 host_alias=$host_alias
15266 host=$host
15267 host_os=$host_os
15268
15269 # The build system.
15270 build_alias=$build_alias
15271 build=$build
15272 build_os=$build_os
15273
15274 # A sed program that does not truncate output.
15275 SED=$lt_SED
15276
15277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15278 Xsed="\$SED -e 1s/^X//"
15279
15280 # A grep program that handles long lines.
15281 GREP=$lt_GREP
15282
15283 # An ERE matcher.
15284 EGREP=$lt_EGREP
15285
15286 # A literal string matcher.
15287 FGREP=$lt_FGREP
15288
15289 # A BSD- or MS-compatible name lister.
15290 NM=$lt_NM
15291
15292 # Whether we need soft or hard links.
15293 LN_S=$lt_LN_S
15294
15295 # What is the maximum length of a command?
15296 max_cmd_len=$max_cmd_len
15297
15298 # Object file suffix (normally "o").
15299 objext=$ac_objext
15300
15301 # Executable file suffix (normally "").
15302 exeext=$exeext
15303
15304 # whether the shell understands "unset".
15305 lt_unset=$lt_unset
15306
15307 # turn spaces into newlines.
15308 SP2NL=$lt_lt_SP2NL
15309
15310 # turn newlines into spaces.
15311 NL2SP=$lt_lt_NL2SP
15312
15313 # convert \$build file names to \$host format.
15314 to_host_file_cmd=$lt_cv_to_host_file_cmd
15315
15316 # convert \$build files to toolchain format.
15317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15318
15319 # An object symbol dumper.
15320 OBJDUMP=$lt_OBJDUMP
15321
15322 # Method to check whether dependent libraries are shared objects.
15323 deplibs_check_method=$lt_deplibs_check_method
15324
15325 # Command to use when deplibs_check_method = "file_magic".
15326 file_magic_cmd=$lt_file_magic_cmd
15327
15328 # How to find potential files when deplibs_check_method = "file_magic".
15329 file_magic_glob=$lt_file_magic_glob
15330
15331 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15332 want_nocaseglob=$lt_want_nocaseglob
15333
15334 # DLL creation program.
15335 DLLTOOL=$lt_DLLTOOL
15336
15337 # Command to associate shared and link libraries.
15338 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15339
15340 # The archiver.
15341 AR=$lt_AR
15342
15343 # Flags to create an archive.
15344 AR_FLAGS=$lt_AR_FLAGS
15345
15346 # How to feed a file listing to the archiver.
15347 archiver_list_spec=$lt_archiver_list_spec
15348
15349 # A symbol stripping program.
15350 STRIP=$lt_STRIP
15351
15352 # Commands used to install an old-style archive.
15353 RANLIB=$lt_RANLIB
15354 old_postinstall_cmds=$lt_old_postinstall_cmds
15355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15356
15357 # Whether to use a lock for old archive extraction.
15358 lock_old_archive_extraction=$lock_old_archive_extraction
15359
15360 # A C compiler.
15361 LTCC=$lt_CC
15362
15363 # LTCC compiler flags.
15364 LTCFLAGS=$lt_CFLAGS
15365
15366 # Take the output of nm and produce a listing of raw symbols and C names.
15367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15368
15369 # Transform the output of nm in a proper C declaration.
15370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15371
15372 # Transform the output of nm into a list of symbols to manually relocate.
15373 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15374
15375 # Transform the output of nm in a C name address pair.
15376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15377
15378 # Transform the output of nm in a C name address pair when lib prefix is needed.
15379 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15380
15381 # The name lister interface.
15382 nm_interface=$lt_lt_cv_nm_interface
15383
15384 # Specify filename containing input files for \$NM.
15385 nm_file_list_spec=$lt_nm_file_list_spec
15386
15387 # The root where to search for dependent libraries,and where our libraries should be installed.
15388 lt_sysroot=$lt_sysroot
15389
15390 # Command to truncate a binary pipe.
15391 lt_truncate_bin=$lt_lt_cv_truncate_bin
15392
15393 # The name of the directory that contains temporary libtool files.
15394 objdir=$objdir
15395
15396 # Used to examine libraries when file_magic_cmd begins with "file".
15397 MAGIC_CMD=$MAGIC_CMD
15398
15399 # Must we lock files when doing compilation?
15400 need_locks=$lt_need_locks
15401
15402 # Manifest tool.
15403 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15404
15405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15406 DSYMUTIL=$lt_DSYMUTIL
15407
15408 # Tool to change global to local symbols on Mac OS X.
15409 NMEDIT=$lt_NMEDIT
15410
15411 # Tool to manipulate fat objects and archives on Mac OS X.
15412 LIPO=$lt_LIPO
15413
15414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15415 OTOOL=$lt_OTOOL
15416
15417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15418 OTOOL64=$lt_OTOOL64
15419
15420 # Old archive suffix (normally "a").
15421 libext=$libext
15422
15423 # Shared library suffix (normally ".so").
15424 shrext_cmds=$lt_shrext_cmds
15425
15426 # The commands to extract the exported symbol list from a shared archive.
15427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15428
15429 # Variables whose values should be saved in libtool wrapper scripts and
15430 # restored at link time.
15431 variables_saved_for_relink=$lt_variables_saved_for_relink
15432
15433 # Do we need the "lib" prefix for modules?
15434 need_lib_prefix=$need_lib_prefix
15435
15436 # Do we need a version for libraries?
15437 need_version=$need_version
15438
15439 # Library versioning type.
15440 version_type=$version_type
15441
15442 # Shared library runtime path variable.
15443 runpath_var=$runpath_var
15444
15445 # Shared library path variable.
15446 shlibpath_var=$shlibpath_var
15447
15448 # Is shlibpath searched before the hard-coded library search path?
15449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15450
15451 # Format of library name prefix.
15452 libname_spec=$lt_libname_spec
15453
15454 # List of archive names. First name is the real one, the rest are links.
15455 # The last name is the one that the linker finds with -lNAME
15456 library_names_spec=$lt_library_names_spec
15457
15458 # The coded name of the library, if different from the real name.
15459 soname_spec=$lt_soname_spec
15460
15461 # Permission mode override for installation of shared libraries.
15462 install_override_mode=$lt_install_override_mode
15463
15464 # Command to use after installation of a shared archive.
15465 postinstall_cmds=$lt_postinstall_cmds
15466
15467 # Command to use after uninstallation of a shared archive.
15468 postuninstall_cmds=$lt_postuninstall_cmds
15469
15470 # Commands used to finish a libtool library installation in a directory.
15471 finish_cmds=$lt_finish_cmds
15472
15473 # As "finish_cmds", except a single script fragment to be evaled but
15474 # not shown.
15475 finish_eval=$lt_finish_eval
15476
15477 # Whether we should hardcode library paths into libraries.
15478 hardcode_into_libs=$hardcode_into_libs
15479
15480 # Compile-time system search path for libraries.
15481 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15482
15483 # Run-time system search path for libraries.
15484 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15485
15486 # Whether dlopen is supported.
15487 dlopen_support=$enable_dlopen
15488
15489 # Whether dlopen of programs is supported.
15490 dlopen_self=$enable_dlopen_self
15491
15492 # Whether dlopen of statically linked programs is supported.
15493 dlopen_self_static=$enable_dlopen_self_static
15494
15495 # Commands to strip libraries.
15496 old_striplib=$lt_old_striplib
15497 striplib=$lt_striplib
15498
15499
15500 # The linker used to build libraries.
15501 LD=$lt_LD
15502
15503 # How to create reloadable object files.
15504 reload_flag=$lt_reload_flag
15505 reload_cmds=$lt_reload_cmds
15506
15507 # Commands used to build an old-style archive.
15508 old_archive_cmds=$lt_old_archive_cmds
15509
15510 # A language specific compiler.
15511 CC=$lt_compiler
15512
15513 # Is the compiler the GNU compiler?
15514 with_gcc=$GCC
15515
15516 # Compiler flag to turn off builtin functions.
15517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15518
15519 # Additional compiler flags for building library objects.
15520 pic_flag=$lt_lt_prog_compiler_pic
15521
15522 # How to pass a linker flag through the compiler.
15523 wl=$lt_lt_prog_compiler_wl
15524
15525 # Compiler flag to prevent dynamic linking.
15526 link_static_flag=$lt_lt_prog_compiler_static
15527
15528 # Does compiler simultaneously support -c and -o options?
15529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15530
15531 # Whether or not to add -lc for building shared libraries.
15532 build_libtool_need_lc=$archive_cmds_need_lc
15533
15534 # Whether or not to disallow shared libs when runtime libs are static.
15535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15536
15537 # Compiler flag to allow reflexive dlopens.
15538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15539
15540 # Compiler flag to generate shared objects directly from archives.
15541 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15542
15543 # Whether the compiler copes with passing no objects directly.
15544 compiler_needs_object=$lt_compiler_needs_object
15545
15546 # Create an old-style archive from a shared archive.
15547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15548
15549 # Create a temporary old-style archive to link instead of a shared archive.
15550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15551
15552 # Commands used to build a shared archive.
15553 archive_cmds=$lt_archive_cmds
15554 archive_expsym_cmds=$lt_archive_expsym_cmds
15555
15556 # Commands used to build a loadable module if different from building
15557 # a shared archive.
15558 module_cmds=$lt_module_cmds
15559 module_expsym_cmds=$lt_module_expsym_cmds
15560
15561 # Whether we are building with GNU ld or not.
15562 with_gnu_ld=$lt_with_gnu_ld
15563
15564 # Flag that allows shared libraries with undefined symbols to be built.
15565 allow_undefined_flag=$lt_allow_undefined_flag
15566
15567 # Flag that enforces no undefined symbols.
15568 no_undefined_flag=$lt_no_undefined_flag
15569
15570 # Flag to hardcode \$libdir into a binary during linking.
15571 # This must work even if \$libdir does not exist
15572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15573
15574 # Whether we need a single "-rpath" flag with a separated argument.
15575 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15576
15577 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15578 # DIR into the resulting binary.
15579 hardcode_direct=$hardcode_direct
15580
15581 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15582 # DIR into the resulting binary and the resulting library dependency is
15583 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15584 # library is relocated.
15585 hardcode_direct_absolute=$hardcode_direct_absolute
15586
15587 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15588 # into the resulting binary.
15589 hardcode_minus_L=$hardcode_minus_L
15590
15591 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15592 # into the resulting binary.
15593 hardcode_shlibpath_var=$hardcode_shlibpath_var
15594
15595 # Set to "yes" if building a shared library automatically hardcodes DIR
15596 # into the library and all subsequent libraries and executables linked
15597 # against it.
15598 hardcode_automatic=$hardcode_automatic
15599
15600 # Set to yes if linker adds runtime paths of dependent libraries
15601 # to runtime path list.
15602 inherit_rpath=$inherit_rpath
15603
15604 # Whether libtool must link a program against all its dependency libraries.
15605 link_all_deplibs=$link_all_deplibs
15606
15607 # Set to "yes" if exported symbols are required.
15608 always_export_symbols=$always_export_symbols
15609
15610 # The commands to list exported symbols.
15611 export_symbols_cmds=$lt_export_symbols_cmds
15612
15613 # Symbols that should not be listed in the preloaded symbols.
15614 exclude_expsyms=$lt_exclude_expsyms
15615
15616 # Symbols that must always be exported.
15617 include_expsyms=$lt_include_expsyms
15618
15619 # Commands necessary for linking programs (against libraries) with templates.
15620 prelink_cmds=$lt_prelink_cmds
15621
15622 # Commands necessary for finishing linking programs.
15623 postlink_cmds=$lt_postlink_cmds
15624
15625 # Specify filename containing input files.
15626 file_list_spec=$lt_file_list_spec
15627
15628 # How to hardcode a shared library path into an executable.
15629 hardcode_action=$hardcode_action
15630
15631 # ### END LIBTOOL CONFIG
15632
15633 _LT_EOF
15634
15635 case $host_os in
15636 aix3*)
15637 cat <<\_LT_EOF >> "$cfgfile"
15638 # AIX sometimes has problems with the GCC collect2 program. For some
15639 # reason, if we set the COLLECT_NAMES environment variable, the problems
15640 # vanish in a puff of smoke.
15641 if test set != "${COLLECT_NAMES+set}"; then
15642 COLLECT_NAMES=
15643 export COLLECT_NAMES
15644 fi
15645 _LT_EOF
15646 ;;
15647 esac
15648
15649
15650 ltmain=$ac_aux_dir/ltmain.sh
15651
15652
15653 # We use sed instead of cat because bash on DJGPP gets confused if
15654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15655 # text mode, it properly converts lines to CR/LF. This bash problem
15656 # is reportedly fixed, but why not run on old versions too?
15657 sed '$q' "$ltmain" >> "$cfgfile" \
15658 || (rm -f "$cfgfile"; exit 1)
15659
15660 mv -f "$cfgfile" "$ofile" ||
15661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15662 chmod +x "$ofile"
15663
15664 ;;
15665
15666 esac
15667 done # for ac_tag
15668
15669
15670 as_fn_exit 0
15671 _ACEOF
15672 ac_clean_files=$ac_clean_files_save
15673
15674 test $ac_write_fail = 0 ||
15675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15676
15677
15678 # configure is writing to config.log, and then calls config.status.
15679 # config.status does its own redirection, appending to config.log.
15680 # Unfortunately, on DOS this fails, as config.log is still kept open
15681 # by configure, so config.status won't be able to write to it; its
15682 # output is simply discarded. So we exec the FD to /dev/null,
15683 # effectively closing config.log, so it can be properly (re)opened and
15684 # appended to by config.status. When coming back to configure, we
15685 # need to make the FD available again.
15686 if test "$no_create" != yes; then
15687 ac_cs_success=:
15688 ac_config_status_args=
15689 test "$silent" = yes &&
15690 ac_config_status_args="$ac_config_status_args --quiet"
15691 exec 5>/dev/null
15692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15693 exec 5>>config.log
15694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15695 # would make configure fail if this is the last instruction.
15696 $ac_cs_success || as_fn_exit 1
15697 fi
15698
15699 #
15700 # CONFIG_SUBDIRS section.
15701 #
15702 if test "$no_recursion" != yes; then
15703
15704 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15705 # so they do not pile up.
15706 ac_sub_configure_args=
15707 ac_prev=
15708 eval "set x $ac_configure_args"
15709 shift
15710 for ac_arg
15711 do
15712 if test -n "$ac_prev"; then
15713 ac_prev=
15714 continue
15715 fi
15716 case $ac_arg in
15717 -cache-file | --cache-file | --cache-fil | --cache-fi \
15718 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15719 ac_prev=cache_file ;;
15720 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15721 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15722 | --c=*)
15723 ;;
15724 --config-cache | -C)
15725 ;;
15726 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15727 ac_prev=srcdir ;;
15728 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15729 ;;
15730 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15731 ac_prev=prefix ;;
15732 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15733 ;;
15734 --disable-option-checking)
15735 ;;
15736 *)
15737 case $ac_arg in
15738 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15739 esac
15740 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15741 esac
15742 done
15743
15744 # Always prepend --prefix to ensure using the same prefix
15745 # in subdir configurations.
15746 ac_arg="--prefix=$prefix"
15747 case $ac_arg in
15748 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15749 esac
15750 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15751
15752 # Pass --silent
15753 if test "$silent" = yes; then
15754 ac_sub_configure_args="--silent $ac_sub_configure_args"
15755 fi
15756
15757 # Always prepend --disable-option-checking to silence warnings, since
15758 # different subdirs can have different --enable and --with options.
15759 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15760
15761 ac_popdir=`pwd`
15762 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15763
15764 # Do not complain, so a configure script can configure whichever
15765 # parts of a large source tree are present.
15766 test -d "$srcdir/$ac_dir" || continue
15767
15768 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15770 $as_echo "$ac_msg" >&6
15771 as_dir="$ac_dir"; as_fn_mkdir_p
15772 ac_builddir=.
15773
15774 case "$ac_dir" in
15775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15776 *)
15777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15778 # A ".." for each directory in $ac_dir_suffix.
15779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15780 case $ac_top_builddir_sub in
15781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15783 esac ;;
15784 esac
15785 ac_abs_top_builddir=$ac_pwd
15786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15787 # for backward compatibility:
15788 ac_top_builddir=$ac_top_build_prefix
15789
15790 case $srcdir in
15791 .) # We are building in place.
15792 ac_srcdir=.
15793 ac_top_srcdir=$ac_top_builddir_sub
15794 ac_abs_top_srcdir=$ac_pwd ;;
15795 [\\/]* | ?:[\\/]* ) # Absolute name.
15796 ac_srcdir=$srcdir$ac_dir_suffix;
15797 ac_top_srcdir=$srcdir
15798 ac_abs_top_srcdir=$srcdir ;;
15799 *) # Relative name.
15800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15801 ac_top_srcdir=$ac_top_build_prefix$srcdir
15802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15803 esac
15804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15805
15806
15807 cd "$ac_dir"
15808
15809 # Check for guested configure; otherwise get Cygnus style configure.
15810 if test -f "$ac_srcdir/configure.gnu"; then
15811 ac_sub_configure=$ac_srcdir/configure.gnu
15812 elif test -f "$ac_srcdir/configure"; then
15813 ac_sub_configure=$ac_srcdir/configure
15814 elif test -f "$ac_srcdir/configure.in"; then
15815 # This should be Cygnus configure.
15816 ac_sub_configure=$ac_aux_dir/configure
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15819 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15820 ac_sub_configure=
15821 fi
15822
15823 # The recursion is here.
15824 if test -n "$ac_sub_configure"; then
15825 # Make the cache file name correct relative to the subdirectory.
15826 case $cache_file in
15827 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15828 *) # Relative name.
15829 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15830 esac
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15833 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15834 # The eval makes quoting arguments work.
15835 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15836 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15837 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15838 fi
15839
15840 cd "$ac_popdir"
15841 done
15842 fi
15843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15846 fi
15847
15848
15849
15850 echo "##############################################################################"
15851 echo "Everything is now configured, but you can find some more (infrequently"
15852 echo "changed) options in options.h. To compile HOPM now, just type make. It"
15853 echo "requires GNU Make, which may be installed as gmake on your system."
15854 echo
15855 echo "hopm will be installed in ${prefix}. To change this, run:"
15856 echo " ./configure --prefix=DIRECTORY"
15857 echo "##############################################################################"

Properties

Name Value
svn:executable