blob: c9a74579ff5beeb767c0560ac0cfa3c1711d6d2d [file] [log] [blame]
Steve Kondik2111ad72013-07-07 12:07:44 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Steve Kondike68cb602016-08-28 00:45:36 -07003# Generated by GNU Autoconf 2.69 for ntfs-3g 2016.2.22.
Steve Kondik2111ad72013-07-07 12:07:44 -07004#
5# Report bugs to <ntfs-3g-devel@lists.sf.net>.
6#
Steve Kondik79165c32015-11-09 19:43:00 -08007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Steve Kondik2111ad72013-07-07 12:07:44 -070011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Steve Kondik79165c32015-11-09 19:43:00 -080013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -070016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Steve Kondik79165c32015-11-09 19:43:00 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070020 emulate sh
21 NULLCMD=:
Steve Kondik79165c32015-11-09 19:43:00 -080022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Steve Kondik2111ad72013-07-07 12:07:44 -070023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Steve Kondik79165c32015-11-09 19:43:00 -080027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070032esac
Steve Kondik2111ad72013-07-07 12:07:44 -070033fi
34
35
Steve Kondik79165c32015-11-09 19:43:00 -080036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Steve Kondik2111ad72013-07-07 12:07:44 -070073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Steve Kondik79165c32015-11-09 19:43:00 -080076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Steve Kondik2111ad72013-07-07 12:07:44 -070081fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Steve Kondik2111ad72013-07-07 12:07:44 -070089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Steve Kondik79165c32015-11-09 19:43:00 -080092as_myself=
93case $0 in #((
Steve Kondik2111ad72013-07-07 12:07:44 -070094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -0800100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Steve Kondik2111ad72013-07-07 12:07:44 -0700102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Steve Kondik79165c32015-11-09 19:43:00 -0800112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
Steve Kondik2111ad72013-07-07 12:07:44 -0700114fi
115
Steve Kondik79165c32015-11-09 19:43:00 -0800116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Steve Kondik2111ad72013-07-07 12:07:44 -0700123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Steve Kondik79165c32015-11-09 19:43:00 -0800129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Steve Kondik2111ad72013-07-07 12:07:44 -0700133
Steve Kondik79165c32015-11-09 19:43:00 -0800134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: ntfs-3g-devel@lists.sf.net about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Steve Kondik2111ad72013-07-07 12:07:44 -0700430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Steve Kondik79165c32015-11-09 19:43:00 -0800443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Steve Kondik2111ad72013-07-07 12:07:44 -0700448
Steve Kondik2111ad72013-07-07 12:07:44 -0700449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -0800453$as_echo X/"$0" |
Steve Kondik2111ad72013-07-07 12:07:44 -0700454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Steve Kondik79165c32015-11-09 19:43:00 -0800468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Steve Kondik2111ad72013-07-07 12:07:44 -0700474
475
Steve Kondik79165c32015-11-09 19:43:00 -0800476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Steve Kondik2111ad72013-07-07 12:07:44 -0700481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
Steve Kondik79165c32015-11-09 19:43:00 -0800497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Steve Kondik2111ad72013-07-07 12:07:44 -0700498
Steve Kondik79165c32015-11-09 19:43:00 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Steve Kondik2111ad72013-07-07 12:07:44 -0700503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
Steve Kondik2111ad72013-07-07 12:07:44 -0700511ECHO_C= ECHO_N= ECHO_T=
Steve Kondik79165c32015-11-09 19:43:00 -0800512case `echo -n x` in #(((((
Steve Kondik2111ad72013-07-07 12:07:44 -0700513-n*)
Steve Kondik79165c32015-11-09 19:43:00 -0800514 case `echo 'xy\c'` in
Steve Kondik2111ad72013-07-07 12:07:44 -0700515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Steve Kondik79165c32015-11-09 19:43:00 -0800516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Steve Kondik2111ad72013-07-07 12:07:44 -0700519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
Steve Kondik2111ad72013-07-07 12:07:44 -0700524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Steve Kondik79165c32015-11-09 19:43:00 -0800529 mkdir conf$$.dir 2>/dev/null
Steve Kondik2111ad72013-07-07 12:07:44 -0700530fi
Steve Kondik79165c32015-11-09 19:43:00 -0800531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
Steve Kondik2111ad72013-07-07 12:07:44 -0700545else
Steve Kondik79165c32015-11-09 19:43:00 -0800546 as_ln_s='cp -pR'
Steve Kondik2111ad72013-07-07 12:07:44 -0700547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
Steve Kondik79165c32015-11-09 19:43:00 -0800552 as_mkdir_p='mkdir -p "$as_dir"'
Steve Kondik2111ad72013-07-07 12:07:44 -0700553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Steve Kondik79165c32015-11-09 19:43:00 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Steve Kondik2111ad72013-07-07 12:07:44 -0700560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
Steve Kondik2111ad72013-07-07 12:07:44 -0700567SHELL=${CONFIG_SHELL-/bin/sh}
568
Steve Kondik2111ad72013-07-07 12:07:44 -0700569
Steve Kondik79165c32015-11-09 19:43:00 -0800570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Steve Kondik2111ad72013-07-07 12:07:44 -0700572
573# Name of the host.
Steve Kondik79165c32015-11-09 19:43:00 -0800574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Steve Kondik2111ad72013-07-07 12:07:44 -0700575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Steve Kondik2111ad72013-07-07 12:07:44 -0700589
590# Identity of this package.
591PACKAGE_NAME='ntfs-3g'
592PACKAGE_TARNAME='ntfs-3g'
Steve Kondike68cb602016-08-28 00:45:36 -0700593PACKAGE_VERSION='2016.2.22'
594PACKAGE_STRING='ntfs-3g 2016.2.22'
Steve Kondik2111ad72013-07-07 12:07:44 -0700595PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net'
Steve Kondik79165c32015-11-09 19:43:00 -0800596PACKAGE_URL=''
Steve Kondik2111ad72013-07-07 12:07:44 -0700597
598ac_unique_file="src/ntfs-3g.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
Steve Kondik79165c32015-11-09 19:43:00 -0800636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639ENABLE_QUARANTINED_FALSE
640ENABLE_QUARANTINED_TRUE
Steve Kondik2111ad72013-07-07 12:07:44 -0700641ENABLE_EXTRAS_FALSE
Steve Kondik79165c32015-11-09 19:43:00 -0800642ENABLE_EXTRAS_TRUE
643ENABLE_NTFSPROGS_FALSE
644ENABLE_NTFSPROGS_TRUE
645ENABLE_NTFS_3G_FALSE
646ENABLE_NTFS_3G_TRUE
647ENABLE_MOUNT_HELPER_FALSE
648ENABLE_MOUNT_HELPER_TRUE
649INSTALL_LIBRARY_FALSE
650INSTALL_LIBRARY_TRUE
651REALLYSTATIC_FALSE
652REALLYSTATIC_TRUE
653RUN_LDCONFIG_FALSE
654RUN_LDCONFIG_TRUE
655NTFS_DEVICE_DEFAULT_IO_OPS_FALSE
656NTFS_DEVICE_DEFAULT_IO_OPS_TRUE
657WINDOWS_FALSE
658WINDOWS_TRUE
659GENERATE_LDSCRIPT_FALSE
660GENERATE_LDSCRIPT_TRUE
661FUSE_INTERNAL_FALSE
662FUSE_INTERNAL_TRUE
663OUTPUT_FORMAT
664NTFSPROGS_STATIC_LIBS
665LIBNTFS_LIBS
666LIBNTFS_CPPFLAGS
667MKNTFS_LIBS
668MKNTFS_CPPFLAGS
669LIBFUSE_LITE_LIBS
670LIBFUSE_LITE_CFLAGS
671LIBNTFS_3G_VERSION
672rootlibdir
673rootsbindir
674rootbindir
675ntfs3gincludedir
676pkgconfigdir
677LIBOBJS
678all_libraries
679all_includes
680ENABLE_CRYPTO_FALSE
681ENABLE_CRYPTO_TRUE
682GNUTLS_LIBS
683GNUTLS_CFLAGS
684LIBGCRYPT_LIBS
685LIBGCRYPT_CFLAGS
686LIBGCRYPT_CONFIG
687FUSE_MODULE_LIBS
688FUSE_MODULE_CFLAGS
689LDCONFIG
690RM
691MV
692PKG_CONFIG_LIBDIR
693PKG_CONFIG_PATH
694PKG_CONFIG
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
713LN_S
714EGREP
715GREP
716CPP
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__quote
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734MAINT
735MAINTAINER_MODE_FALSE
736MAINTAINER_MODE_TRUE
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741am__untar
742am__tar
743AMTAR
744am__leading_dot
745SET_MAKE
746AWK
747mkdir_p
Steve Kondik2111ad72013-07-07 12:07:44 -0700748MKDIR_P
Steve Kondik79165c32015-11-09 19:43:00 -0800749INSTALL_STRIP_PROGRAM
750STRIP
751install_sh
752MAKEINFO
753AUTOHEADER
754AUTOMAKE
755AUTOCONF
756ACLOCAL
757VERSION
758PACKAGE
759CYGPATH_W
760am__isrc
761INSTALL_DATA
762INSTALL_SCRIPT
763INSTALL_PROGRAM
764target_os
765target_vendor
766target_cpu
767target
768host_os
769host_vendor
770host_cpu
771host
772build_os
773build_vendor
774build_cpu
775build
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_URL
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL'
Steve Kondik2111ad72013-07-07 12:07:44 -0700814ac_subst_files=''
Steve Kondik79165c32015-11-09 19:43:00 -0800815ac_user_opts='
816enable_option_checking
817enable_silent_rules
818enable_maintainer_mode
819enable_debug
820enable_warnings
821enable_pedantic
822enable_really_static
823enable_mount_helper
824enable_ldscript
825enable_ldconfig
826enable_library
827enable_mtab
828enable_posix_acls
829enable_xattr_mappings
830enable_device_default_io_ops
831enable_ntfs_3g
832enable_ntfsprogs
833enable_crypto
834enable_extras
835enable_quarantined
836enable_nfconv
837enable_dependency_tracking
838enable_shared
839enable_static
840with_pic
841enable_fast_install
842with_gnu_ld
843with_sysroot
844enable_libtool_lock
845with_fuse
846with_libgcrypt_prefix
847with_uuid
848with_hd
849enable_largefile
850'
Steve Kondik2111ad72013-07-07 12:07:44 -0700851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
Steve Kondik2111ad72013-07-07 12:07:44 -0700860PKG_CONFIG
Steve Kondik79165c32015-11-09 19:43:00 -0800861PKG_CONFIG_PATH
862PKG_CONFIG_LIBDIR
Steve Kondik2111ad72013-07-07 12:07:44 -0700863LDCONFIG
864FUSE_MODULE_CFLAGS
865FUSE_MODULE_LIBS
866GNUTLS_CFLAGS
867GNUTLS_LIBS'
868
869
870# Initialize some variables set by options.
871ac_init_help=
872ac_init_version=false
Steve Kondik79165c32015-11-09 19:43:00 -0800873ac_unrecognized_opts=
874ac_unrecognized_sep=
Steve Kondik2111ad72013-07-07 12:07:44 -0700875# The variables have the same names as the options, with
876# dashes changed to underlines.
877cache_file=/dev/null
878exec_prefix=NONE
879no_create=
880no_recursion=
881prefix=NONE
882program_prefix=NONE
883program_suffix=NONE
884program_transform_name=s,x,x,
885silent=
886site=
887srcdir=
888verbose=
889x_includes=NONE
890x_libraries=NONE
891
892# Installation directory options.
893# These are left unexpanded so users can "make install exec_prefix=/foo"
894# and all the variables that are supposed to be based on exec_prefix
895# by default will actually change.
896# Use braces instead of parens because sh, perl, etc. also accept them.
897# (The list follows the same order as the GNU Coding Standards.)
898bindir='${exec_prefix}/bin'
899sbindir='${exec_prefix}/sbin'
900libexecdir='${exec_prefix}/libexec'
901datarootdir='${prefix}/share'
902datadir='${datarootdir}'
903sysconfdir='${prefix}/etc'
904sharedstatedir='${prefix}/com'
905localstatedir='${prefix}/var'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
925 ac_prev=
926 continue
927 fi
928
929 case $ac_option in
Steve Kondik79165c32015-11-09 19:43:00 -0800930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 *=) ac_optarg= ;;
932 *) ac_optarg=yes ;;
Steve Kondik2111ad72013-07-07 12:07:44 -0700933 esac
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
945
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
950
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
960
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
965
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972
973 -disable-* | --disable-*)
Steve Kondik79165c32015-11-09 19:43:00 -0800974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Steve Kondik2111ad72013-07-07 12:07:44 -0700975 # Reject names that are not valid shell variable names.
Steve Kondik79165c32015-11-09 19:43:00 -0800976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
Steve Kondik2111ad72013-07-07 12:07:44 -0700988
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
998
999 -enable-* | --enable-*)
Steve Kondik79165c32015-11-09 19:43:00 -08001000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Steve Kondik2111ad72013-07-07 12:07:44 -07001001 # Reject names that are not valid shell variable names.
Steve Kondik79165c32015-11-09 19:43:00 -08001002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07001014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202
1203 -with-* | --with-*)
Steve Kondik79165c32015-11-09 19:43:00 -08001204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Steve Kondik2111ad72013-07-07 12:07:44 -07001205 # Reject names that are not valid shell variable names.
Steve Kondik79165c32015-11-09 19:43:00 -08001206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07001218
1219 -without-* | --without-*)
Steve Kondik79165c32015-11-09 19:43:00 -08001220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Steve Kondik2111ad72013-07-07 12:07:44 -07001221 # Reject names that are not valid shell variable names.
Steve Kondik79165c32015-11-09 19:43:00 -08001222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07001234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
Steve Kondik79165c32015-11-09 19:43:00 -08001253 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
Steve Kondik2111ad72013-07-07 12:07:44 -07001255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
Steve Kondik79165c32015-11-09 19:43:00 -08001260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07001264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
Steve Kondik79165c32015-11-09 19:43:00 -08001269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Steve Kondik2111ad72013-07-07 12:07:44 -07001270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Steve Kondik79165c32015-11-09 19:43:00 -08001271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Steve Kondik2111ad72013-07-07 12:07:44 -07001273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Steve Kondik79165c32015-11-09 19:43:00 -08001280 as_fn_error $? "missing argument to $ac_option"
Steve Kondik2111ad72013-07-07 12:07:44 -07001281fi
1282
Steve Kondik79165c32015-11-09 19:43:00 -08001283if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289fi
1290
1291# Check all directory arguments for consistency.
Steve Kondik2111ad72013-07-07 12:07:44 -07001292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1296do
1297 eval ac_val=\$$ac_var
Steve Kondik79165c32015-11-09 19:43:00 -08001298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
Steve Kondik2111ad72013-07-07 12:07:44 -07001305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
Steve Kondik79165c32015-11-09 19:43:00 -08001309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Steve Kondik2111ad72013-07-07 12:07:44 -07001310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
Steve Kondik2111ad72013-07-07 12:07:44 -07001323 elif test "x$build_alias" != "x$host_alias"; then
1324 cross_compiling=yes
1325 fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Steve Kondik79165c32015-11-09 19:43:00 -08001337 as_fn_error $? "working directory cannot be determined"
Steve Kondik2111ad72013-07-07 12:07:44 -07001338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Steve Kondik79165c32015-11-09 19:43:00 -08001339 as_fn_error $? "pwd does not report name of working directory"
Steve Kondik2111ad72013-07-07 12:07:44 -07001340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
Steve Kondik79165c32015-11-09 19:43:00 -08001346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351$as_echo X"$as_myself" |
Steve Kondik2111ad72013-07-07 12:07:44 -07001352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\).*/{
1365 s//\1/
1366 q
1367 }
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1372 fi
1373else
1374 ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Steve Kondik79165c32015-11-09 19:43:00 -08001378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Steve Kondik2111ad72013-07-07 12:07:44 -07001379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
Steve Kondik79165c32015-11-09 19:43:00 -08001382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Steve Kondik2111ad72013-07-07 12:07:44 -07001383 pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
Steve Kondike68cb602016-08-28 00:45:36 -07001408\`configure' configures ntfs-3g 2016.2.22 to adapt to many kinds of systems.
Steve Kondik2111ad72013-07-07 12:07:44 -07001409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
Steve Kondik79165c32015-11-09 19:43:00 -08001422 -q, --quiet, --silent do not print \`checking ...' messages
Steve Kondik2111ad72013-07-07 12:07:44 -07001423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
Steve Kondik79165c32015-11-09 19:43:00 -08001430 [$ac_default_prefix]
Steve Kondik2111ad72013-07-07 12:07:44 -07001431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Steve Kondik79165c32015-11-09 19:43:00 -08001432 [PREFIX]
Steve Kondik2111ad72013-07-07 12:07:44 -07001433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
Steve Kondik79165c32015-11-09 19:43:00 -08001442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
Steve Kondik2111ad72013-07-07 12:07:44 -07001461_ACEOF
1462
1463 cat <<\_ACEOF
1464
1465Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478 case $ac_init_help in
Steve Kondike68cb602016-08-28 00:45:36 -07001479 short | recursive ) echo "Configuration of ntfs-3g 2016.2.22:";;
Steve Kondik2111ad72013-07-07 12:07:44 -07001480 esac
1481 cat <<\_ACEOF
1482
1483Optional Features:
Steve Kondik79165c32015-11-09 19:43:00 -08001484 --disable-option-checking ignore unrecognized --enable/--with options
Steve Kondik2111ad72013-07-07 12:07:44 -07001485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Steve Kondik79165c32015-11-09 19:43:00 -08001487 --enable-silent-rules less verbose build output (undo: "make V=1")
1488 --disable-silent-rules verbose build output (undo: "make V=0")
1489 --enable-maintainer-mode
1490 enable make rules and dependencies not useful (and
1491 sometimes confusing) to the casual installer
Steve Kondik2111ad72013-07-07 12:07:44 -07001492 --enable-debug enable debugging code and output
1493 --enable-warnings enable lots of compiler warnings
1494 --enable-pedantic enable compile pedantic mode
1495 --enable-really-static create fully static binaries
1496 --enable-mount-helper install mount helper [default=enabled for linux]
1497 --enable-ldscript use ldscript instead of .so symlink
1498 --disable-ldconfig do not update dynamic linker cache using ldconfig
1499 --disable-library do not install libntfs-3g but link it into ntfs-3g
1500 --disable-mtab disable and ignore usage of /etc/mtab
1501 --enable-posix-acls enable POSIX ACL support
1502 --enable-xattr-mappings enable system extended attributes mappings
1503 --disable-device-default-io-ops
1504 install default IO ops
1505 --disable-ntfs-3g disable the ntfs-3g FUSE driver
1506 --disable-ntfsprogs disable ntfsprogs utilities (default=no)
1507 --enable-crypto enable crypto related code and utilities
1508 (default=no)
1509 --enable-extras enable extra ntfsprogs utilities (default=no)
Steve Kondik79165c32015-11-09 19:43:00 -08001510 --enable-quarantined enable quarantined ntfsprogs utilities (default=no)
Steve Kondik2111ad72013-07-07 12:07:44 -07001511 --disable-nfconv disable the 'nfconv' patch, which adds support for
1512 Unicode normalization form conversion when built on
1513 Mac OS X [default=enabled for Mac OS X]
Steve Kondik79165c32015-11-09 19:43:00 -08001514 --enable-dependency-tracking
1515 do not reject slow dependency extractors
1516 --disable-dependency-tracking
1517 speeds up one-time build
Steve Kondik2111ad72013-07-07 12:07:44 -07001518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --disable-largefile omit support for large files
1524
1525Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Steve Kondik79165c32015-11-09 19:43:00 -08001528 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Steve Kondik2111ad72013-07-07 12:07:44 -07001529 both]
Steve Kondik79165c32015-11-09 19:43:00 -08001530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-sysroot=DIR Search for dependent libraries within DIR
1532 (or the compiler's sysroot if not specified).
Steve Kondik2111ad72013-07-07 12:07:44 -07001533 --with-fuse=<internal|external>
1534 Select FUSE library: internal or external
1535 [default=internal]
1536 --with-libgcrypt-prefix=PFX
1537 prefix where LIBGCRYPT is installed (optional)
1538
1539 --with-uuid[=PFX] generate DCE compliant UUIDs, with optional prefix
1540 to uuid library and headers [default=detect]
1541 --without-uuid do not generate DCE compliant UUIDs
1542
Steve Kondik79165c32015-11-09 19:43:00 -08001543 --with-hd[=PFX] use Windows compliant disk geometry, with optional
1544 prefix to hd library and headers [default=detect]
1545 --without-hd do not use Windows compliant disk geometry
1546
Steve Kondik2111ad72013-07-07 12:07:44 -07001547Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
Steve Kondik79165c32015-11-09 19:43:00 -08001553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Steve Kondik2111ad72013-07-07 12:07:44 -07001554 you have headers in a nonstandard directory <include dir>
1555 CPP C preprocessor
Steve Kondik2111ad72013-07-07 12:07:44 -07001556 PKG_CONFIG path to pkg-config utility
Steve Kondik79165c32015-11-09 19:43:00 -08001557 PKG_CONFIG_PATH
1558 directories to add to pkg-config's search path
1559 PKG_CONFIG_LIBDIR
1560 path overriding pkg-config's built-in search path
Steve Kondik2111ad72013-07-07 12:07:44 -07001561 LDCONFIG ldconfig utility
1562 FUSE_MODULE_CFLAGS
1563 C compiler flags for FUSE_MODULE, overriding pkg-config
1564 FUSE_MODULE_LIBS
1565 linker flags for FUSE_MODULE, overriding pkg-config
1566 GNUTLS_CFLAGS
1567 C compiler flags for GNUTLS, overriding pkg-config
1568 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to <ntfs-3g-devel@lists.sf.net>.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Steve Kondik79165c32015-11-09 19:43:00 -08001581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
Steve Kondik2111ad72013-07-07 12:07:44 -07001584 ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
Steve Kondik79165c32015-11-09 19:43:00 -08001589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Steve Kondik2111ad72013-07-07 12:07:44 -07001590 # A ".." for each directory in $ac_dir_suffix.
Steve Kondik79165c32015-11-09 19:43:00 -08001591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Steve Kondik2111ad72013-07-07 12:07:44 -07001592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
Steve Kondik79165c32015-11-09 19:43:00 -08001627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Steve Kondik2111ad72013-07-07 12:07:44 -07001628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1631fi
1632
1633test -n "$ac_init_help" && exit $ac_status
1634if $ac_init_version; then
1635 cat <<\_ACEOF
Steve Kondike68cb602016-08-28 00:45:36 -07001636ntfs-3g configure 2016.2.22
Steve Kondik79165c32015-11-09 19:43:00 -08001637generated by GNU Autoconf 2.69
Steve Kondik2111ad72013-07-07 12:07:44 -07001638
Steve Kondik79165c32015-11-09 19:43:00 -08001639Copyright (C) 2012 Free Software Foundation, Inc.
Steve Kondik2111ad72013-07-07 12:07:44 -07001640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
1643 exit
1644fi
Steve Kondik79165c32015-11-09 19:43:00 -08001645
1646## ------------------------ ##
1647## Autoconf initialization. ##
1648## ------------------------ ##
1649
1650# ac_fn_c_try_compile LINENO
1651# --------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_compile ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_compile
1687
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_cpp
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if eval \${$3+:} false; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.i conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795( $as_echo "## ----------------------------------------- ##
1796## Report this to ntfs-3g-devel@lists.sf.net ##
1797## ----------------------------------------- ##"
1798 ) | sed "s/^/$as_me: WARNING: /" >&2
1799 ;;
1800esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805else
1806 eval "$3=\$ac_header_compiler"
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814} # ac_fn_c_check_header_mongrel
1815
1816# ac_fn_c_try_run LINENO
1817# ----------------------
1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819# that executables *can* be run.
1820ac_fn_c_try_run ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_run
1857
1858# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists and can be compiled using the include files in
1861# INCLUDES, setting the cache variable VAR accordingly.
1862ac_fn_c_check_header_compile ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_compile "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887} # ac_fn_c_check_header_compile
1888
1889# ac_fn_c_try_link LINENO
1890# -----------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_c_try_link ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933} # ac_fn_c_try_link
1934
1935# ac_fn_c_check_func LINENO FUNC VAR
1936# ----------------------------------
1937# Tests whether FUNC exists, setting the cache variable VAR accordingly
1938ac_fn_c_check_func ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
1943if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950#define $2 innocuous_$2
1951
1952/* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (); below.
1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955 <limits.h> exists even on freestanding compilers. */
1956
1957#ifdef __STDC__
1958# include <limits.h>
1959#else
1960# include <assert.h>
1961#endif
1962
1963#undef $2
1964
1965/* Override any GCC internal prototype to avoid an error.
1966 Use char because int might match the return type of a GCC
1967 builtin and then its argument prototype would still apply. */
1968#ifdef __cplusplus
1969extern "C"
1970#endif
1971char $2 ();
1972/* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975#if defined __stub_$2 || defined __stub___$2
1976choke me
1977#endif
1978
1979int
1980main ()
1981{
1982return $2 ();
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_link "$LINENO"; then :
1988 eval "$3=yes"
1989else
1990 eval "$3=no"
1991fi
1992rm -f core conftest.err conftest.$ac_objext \
1993 conftest$ac_exeext conftest.$ac_ext
1994fi
1995eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000} # ac_fn_c_check_func
2001
2002# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003# -------------------------------------------
2004# Tests whether TYPE exists after having included INCLUDES, setting cache
2005# variable VAR accordingly.
2006ac_fn_c_check_type ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018int
2019main ()
2020{
2021if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041
2042else
2043 eval "$3=yes"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054} # ac_fn_c_check_type
2055
2056# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2057# ----------------------------------------------------
2058# Tries to find if the field MEMBER exists in type AGGR, after including
2059# INCLUDES, setting cache variable VAR accordingly.
2060ac_fn_c_check_member ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2064$as_echo_n "checking for $2.$3... " >&6; }
2065if eval \${$4+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$5
2071int
2072main ()
2073{
2074static $2 ac_aggr;
2075if (ac_aggr.$3)
2076return 0;
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 eval "$4=yes"
2083else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$5
2087int
2088main ()
2089{
2090static $2 ac_aggr;
2091if (sizeof ac_aggr.$3)
2092return 0;
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098 eval "$4=yes"
2099else
2100 eval "$4=no"
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106eval ac_res=\$$4
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111} # ac_fn_c_check_member
Steve Kondik2111ad72013-07-07 12:07:44 -07002112cat >config.log <<_ACEOF
2113This file contains any messages produced by compilers while
2114running configure, to aid debugging if configure makes a mistake.
2115
Steve Kondike68cb602016-08-28 00:45:36 -07002116It was created by ntfs-3g $as_me 2016.2.22, which was
Steve Kondik79165c32015-11-09 19:43:00 -08002117generated by GNU Autoconf 2.69. Invocation command line was
Steve Kondik2111ad72013-07-07 12:07:44 -07002118
2119 $ $0 $@
2120
2121_ACEOF
2122exec 5>>config.log
2123{
2124cat <<_ASUNAME
2125## --------- ##
2126## Platform. ##
2127## --------- ##
2128
2129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134
2135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137
2138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145
2146_ASUNAME
2147
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08002153 $as_echo "PATH: $as_dir"
2154 done
Steve Kondik2111ad72013-07-07 12:07:44 -07002155IFS=$as_save_IFS
2156
2157} >&5
2158
2159cat >&5 <<_ACEOF
2160
2161
2162## ----------- ##
2163## Core tests. ##
2164## ----------- ##
2165
2166_ACEOF
2167
2168
2169# Keep a trace of the command line.
2170# Strip out --no-create and --no-recursion so they do not pile up.
2171# Strip out --silent because we don't want to record it for future runs.
2172# Also quote any args containing shell meta-characters.
2173# Make two passes to allow for proper duplicate-argument suppression.
2174ac_configure_args=
2175ac_configure_args0=
2176ac_configure_args1=
2177ac_must_keep_next=false
2178for ac_pass in 1 2
2179do
2180 for ac_arg
2181 do
2182 case $ac_arg in
2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185 | -silent | --silent | --silen | --sile | --sil)
2186 continue ;;
2187 *\'*)
Steve Kondik79165c32015-11-09 19:43:00 -08002188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002189 esac
2190 case $ac_pass in
Steve Kondik79165c32015-11-09 19:43:00 -08002191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002192 2)
Steve Kondik79165c32015-11-09 19:43:00 -08002193 as_fn_append ac_configure_args1 " '$ac_arg'"
Steve Kondik2111ad72013-07-07 12:07:44 -07002194 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal.
2196 else
2197 case $ac_arg in
2198 *=* | --config-cache | -C | -disable-* | --disable-* \
2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201 | -with-* | --with-* | -without-* | --without-* | --x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 esac
2205 ;;
2206 -* ) ac_must_keep_next=true ;;
2207 esac
2208 fi
Steve Kondik79165c32015-11-09 19:43:00 -08002209 as_fn_append ac_configure_args " '$ac_arg'"
Steve Kondik2111ad72013-07-07 12:07:44 -07002210 ;;
2211 esac
2212 done
2213done
Steve Kondik79165c32015-11-09 19:43:00 -08002214{ ac_configure_args0=; unset ac_configure_args0;}
2215{ ac_configure_args1=; unset ac_configure_args1;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002216
2217# When interrupted or exit'd, cleanup temporary files, and complete
2218# config.log. We remove comments because anyway the quotes in there
2219# would cause problems or look ugly.
2220# WARNING: Use '\'' to represent an apostrophe within the trap.
2221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222trap 'exit_status=$?
2223 # Save into config.log some information that might help in debugging.
2224 {
2225 echo
2226
Steve Kondik79165c32015-11-09 19:43:00 -08002227 $as_echo "## ---------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -07002228## Cache variables. ##
Steve Kondik79165c32015-11-09 19:43:00 -08002229## ---------------- ##"
Steve Kondik2111ad72013-07-07 12:07:44 -07002230 echo
2231 # The following way of writing the cache mishandles newlines in values,
2232(
2233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in #(
2236 *${as_nl}*)
2237 case $ac_var in #(
Steve Kondik79165c32015-11-09 19:43:00 -08002238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002240 esac
2241 case $ac_var in #(
2242 _ | IFS | as_nl) ;; #(
Steve Kondik79165c32015-11-09 19:43:00 -08002243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244 *) { eval $ac_var=; unset $ac_var;} ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002245 esac ;;
2246 esac
2247 done
2248 (set) 2>&1 |
2249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250 *${as_nl}ac_space=\ *)
2251 sed -n \
2252 "s/'\''/'\''\\\\'\'''\''/g;
2253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254 ;; #(
2255 *)
2256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257 ;;
2258 esac |
2259 sort
2260)
2261 echo
2262
Steve Kondik79165c32015-11-09 19:43:00 -08002263 $as_echo "## ----------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -07002264## Output variables. ##
Steve Kondik79165c32015-11-09 19:43:00 -08002265## ----------------- ##"
Steve Kondik2111ad72013-07-07 12:07:44 -07002266 echo
2267 for ac_var in $ac_subst_vars
2268 do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
Steve Kondik79165c32015-11-09 19:43:00 -08002271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002272 esac
Steve Kondik79165c32015-11-09 19:43:00 -08002273 $as_echo "$ac_var='\''$ac_val'\''"
Steve Kondik2111ad72013-07-07 12:07:44 -07002274 done | sort
2275 echo
2276
2277 if test -n "$ac_subst_files"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002278 $as_echo "## ------------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -07002279## File substitutions. ##
Steve Kondik79165c32015-11-09 19:43:00 -08002280## ------------------- ##"
Steve Kondik2111ad72013-07-07 12:07:44 -07002281 echo
2282 for ac_var in $ac_subst_files
2283 do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
Steve Kondik79165c32015-11-09 19:43:00 -08002286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002287 esac
Steve Kondik79165c32015-11-09 19:43:00 -08002288 $as_echo "$ac_var='\''$ac_val'\''"
Steve Kondik2111ad72013-07-07 12:07:44 -07002289 done | sort
2290 echo
2291 fi
2292
2293 if test -s confdefs.h; then
Steve Kondik79165c32015-11-09 19:43:00 -08002294 $as_echo "## ----------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -07002295## confdefs.h. ##
Steve Kondik79165c32015-11-09 19:43:00 -08002296## ----------- ##"
Steve Kondik2111ad72013-07-07 12:07:44 -07002297 echo
2298 cat confdefs.h
2299 echo
2300 fi
2301 test "$ac_signal" != 0 &&
Steve Kondik79165c32015-11-09 19:43:00 -08002302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
Steve Kondik2111ad72013-07-07 12:07:44 -07002304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2308' 0
2309for ac_signal in 1 2 13 15; do
Steve Kondik79165c32015-11-09 19:43:00 -08002310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Steve Kondik2111ad72013-07-07 12:07:44 -07002311done
2312ac_signal=0
2313
2314# confdefs.h avoids OS command line length limits that DEFS can exceed.
2315rm -f -r conftest* confdefs.h
2316
Steve Kondik79165c32015-11-09 19:43:00 -08002317$as_echo "/* confdefs.h */" > confdefs.h
2318
Steve Kondik2111ad72013-07-07 12:07:44 -07002319# Predefined preprocessor variables.
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_NAME "$PACKAGE_NAME"
2323_ACEOF
2324
Steve Kondik2111ad72013-07-07 12:07:44 -07002325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327_ACEOF
2328
Steve Kondik2111ad72013-07-07 12:07:44 -07002329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_VERSION "$PACKAGE_VERSION"
2331_ACEOF
2332
Steve Kondik2111ad72013-07-07 12:07:44 -07002333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_STRING "$PACKAGE_STRING"
2335_ACEOF
2336
Steve Kondik2111ad72013-07-07 12:07:44 -07002337cat >>confdefs.h <<_ACEOF
2338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339_ACEOF
2340
Steve Kondik79165c32015-11-09 19:43:00 -08002341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_URL "$PACKAGE_URL"
2343_ACEOF
2344
Steve Kondik2111ad72013-07-07 12:07:44 -07002345
2346# Let the site file select an alternate cache file if it wants to.
Steve Kondik79165c32015-11-09 19:43:00 -08002347# Prefer an explicitly selected file to automatically selected ones.
2348ac_site_file1=NONE
2349ac_site_file2=NONE
Steve Kondik2111ad72013-07-07 12:07:44 -07002350if test -n "$CONFIG_SITE"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002351 # We do not want a PATH search for config.site.
2352 case $CONFIG_SITE in #((
2353 -*) ac_site_file1=./$CONFIG_SITE;;
2354 */*) ac_site_file1=$CONFIG_SITE;;
2355 *) ac_site_file1=./$CONFIG_SITE;;
2356 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07002357elif test "x$prefix" != xNONE; then
Steve Kondik79165c32015-11-09 19:43:00 -08002358 ac_site_file1=$prefix/share/config.site
2359 ac_site_file2=$prefix/etc/config.site
Steve Kondik2111ad72013-07-07 12:07:44 -07002360else
Steve Kondik79165c32015-11-09 19:43:00 -08002361 ac_site_file1=$ac_default_prefix/share/config.site
2362 ac_site_file2=$ac_default_prefix/etc/config.site
Steve Kondik2111ad72013-07-07 12:07:44 -07002363fi
Steve Kondik79165c32015-11-09 19:43:00 -08002364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Steve Kondik2111ad72013-07-07 12:07:44 -07002365do
Steve Kondik79165c32015-11-09 19:43:00 -08002366 test "x$ac_site_file" = xNONE && continue
2367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002370 sed 's/^/| /' "$ac_site_file" >&5
Steve Kondik79165c32015-11-09 19:43:00 -08002371 . "$ac_site_file" \
2372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374as_fn_error $? "failed to load site script $ac_site_file
2375See \`config.log' for more details" "$LINENO" 5; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002376 fi
2377done
2378
2379if test -r "$cache_file"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384$as_echo "$as_me: loading cache $cache_file" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2389 fi
2390else
Steve Kondik79165c32015-11-09 19:43:00 -08002391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392$as_echo "$as_me: creating cache $cache_file" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002393 >$cache_file
2394fi
2395
Steve Kondik79165c32015-11-09 19:43:00 -08002396as_fn_append ac_header_list " utime.h"
Steve Kondik2111ad72013-07-07 12:07:44 -07002397# Check that the precious variables saved in the cache have kept the same
2398# value.
2399ac_cache_corrupted=false
2400for ac_var in $ac_precious_vars; do
2401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2402 eval ac_new_set=\$ac_env_${ac_var}_set
2403 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2404 eval ac_new_val=\$ac_env_${ac_var}_value
2405 case $ac_old_set,$ac_new_set in
2406 set,)
Steve Kondik79165c32015-11-09 19:43:00 -08002407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2408$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002409 ac_cache_corrupted=: ;;
2410 ,set)
Steve Kondik79165c32015-11-09 19:43:00 -08002411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2412$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002413 ac_cache_corrupted=: ;;
2414 ,);;
2415 *)
2416 if test "x$ac_old_val" != "x$ac_new_val"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002417 # differences in whitespace do not lead to failure.
2418 ac_old_val_w=`echo x $ac_old_val`
2419 ac_new_val_w=`echo x $ac_new_val`
2420 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2422$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2423 ac_cache_corrupted=:
2424 else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2426$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2427 eval $ac_var=\$ac_old_val
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2430$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2432$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002433 fi;;
2434 esac
2435 # Pass precious variables to config.status.
2436 if test "$ac_new_set" = set; then
2437 case $ac_new_val in
Steve Kondik79165c32015-11-09 19:43:00 -08002438 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002439 *) ac_arg=$ac_var=$ac_new_val ;;
2440 esac
2441 case " $ac_configure_args " in
2442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Steve Kondik79165c32015-11-09 19:43:00 -08002443 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002444 esac
2445 fi
2446done
2447if $ac_cache_corrupted; then
Steve Kondik79165c32015-11-09 19:43:00 -08002448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2451$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2452 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002453fi
Steve Kondik79165c32015-11-09 19:43:00 -08002454## -------------------- ##
2455## Main body of script. ##
2456## -------------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -07002457
2458ac_ext=c
2459ac_cpp='$CPP $CPPFLAGS'
2460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464
Steve Kondike68cb602016-08-28 00:45:36 -07002465LIBNTFS_3G_VERSION="87"
Steve Kondik2111ad72013-07-07 12:07:44 -07002466
2467
2468# Environment
2469ac_aux_dir=
2470for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 if test -f "$ac_dir/install-sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install-sh -c"
2474 break
2475 elif test -f "$ac_dir/install.sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install.sh -c"
2478 break
2479 elif test -f "$ac_dir/shtool"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/shtool install -c"
2482 break
2483 fi
2484done
2485if test -z "$ac_aux_dir"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002487fi
2488
2489# These three variables are undocumented and unsupported,
2490# and are intended to be withdrawn in a future Autoconf release.
2491# They can cause serious problems if a builder's source tree is in a directory
2492# whose full name contains unusual characters.
2493ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2494ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2495ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496
2497
2498# Make sure we can run config.sub.
2499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Steve Kondik79165c32015-11-09 19:43:00 -08002500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002501
Steve Kondik79165c32015-11-09 19:43:00 -08002502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503$as_echo_n "checking build system type... " >&6; }
2504if ${ac_cv_build+:} false; then :
2505 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002506else
2507 ac_build_alias=$build_alias
2508test "x$ac_build_alias" = x &&
2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510test "x$ac_build_alias" = x &&
Steve Kondik79165c32015-11-09 19:43:00 -08002511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Steve Kondik79165c32015-11-09 19:43:00 -08002513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002514
2515fi
Steve Kondik79165c32015-11-09 19:43:00 -08002516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517$as_echo "$ac_cv_build" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002518case $ac_cv_build in
2519*-*-*) ;;
Steve Kondik79165c32015-11-09 19:43:00 -08002520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002521esac
2522build=$ac_cv_build
2523ac_save_IFS=$IFS; IFS='-'
2524set x $ac_cv_build
2525shift
2526build_cpu=$1
2527build_vendor=$2
2528shift; shift
2529# Remember, the first character of IFS is used to create $*,
2530# except with old shells:
2531build_os=$*
2532IFS=$ac_save_IFS
2533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534
2535
Steve Kondik79165c32015-11-09 19:43:00 -08002536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537$as_echo_n "checking host system type... " >&6; }
2538if ${ac_cv_host+:} false; then :
2539 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002540else
2541 if test "x$host_alias" = x; then
2542 ac_cv_host=$ac_cv_build
2543else
2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Steve Kondik79165c32015-11-09 19:43:00 -08002545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002546fi
2547
2548fi
Steve Kondik79165c32015-11-09 19:43:00 -08002549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550$as_echo "$ac_cv_host" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002551case $ac_cv_host in
2552*-*-*) ;;
Steve Kondik79165c32015-11-09 19:43:00 -08002553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002554esac
2555host=$ac_cv_host
2556ac_save_IFS=$IFS; IFS='-'
2557set x $ac_cv_host
2558shift
2559host_cpu=$1
2560host_vendor=$2
2561shift; shift
2562# Remember, the first character of IFS is used to create $*,
2563# except with old shells:
2564host_os=$*
2565IFS=$ac_save_IFS
2566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567
2568
Steve Kondik79165c32015-11-09 19:43:00 -08002569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2570$as_echo_n "checking target system type... " >&6; }
2571if ${ac_cv_target+:} false; then :
2572 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002573else
2574 if test "x$target_alias" = x; then
2575 ac_cv_target=$ac_cv_host
2576else
2577 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Steve Kondik79165c32015-11-09 19:43:00 -08002578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002579fi
2580
2581fi
Steve Kondik79165c32015-11-09 19:43:00 -08002582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2583$as_echo "$ac_cv_target" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002584case $ac_cv_target in
2585*-*-*) ;;
Steve Kondik79165c32015-11-09 19:43:00 -08002586*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -07002587esac
2588target=$ac_cv_target
2589ac_save_IFS=$IFS; IFS='-'
2590set x $ac_cv_target
2591shift
2592target_cpu=$1
2593target_vendor=$2
2594shift; shift
2595# Remember, the first character of IFS is used to create $*,
2596# except with old shells:
2597target_os=$*
2598IFS=$ac_save_IFS
2599case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2600
2601
2602# The aliases save the names the user supplied, while $host etc.
2603# will get canonicalized.
2604test -n "$target_alias" &&
2605 test "$program_prefix$program_suffix$program_transform_name" = \
2606 NONENONEs,x,x, &&
2607 program_prefix=${target_alias}-
2608
2609# Automake
Steve Kondik79165c32015-11-09 19:43:00 -08002610am__api_version='1.14'
Steve Kondik2111ad72013-07-07 12:07:44 -07002611
2612# Find a good install program. We prefer a C program (faster),
2613# so one script is as good as another. But avoid the broken or
2614# incompatible versions:
2615# SysV /etc/install, /usr/sbin/install
2616# SunOS /usr/etc/install
2617# IRIX /sbin/install
2618# AIX /bin/install
2619# AmigaOS /C/install, which installs bootblocks on floppy discs
2620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2623# OS/2's system install, which has a completely different semantic
2624# ./install, which can be erroneously created by make from ./install.sh.
Steve Kondik79165c32015-11-09 19:43:00 -08002625# Reject install programs that cannot install multiple files.
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2627$as_echo_n "checking for a BSD-compatible install... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002628if test -z "$INSTALL"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002629if ${ac_cv_path_install+:} false; then :
2630 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002631else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08002637 # Account for people who put trailing slashes in PATH elements.
2638case $as_dir/ in #((
2639 ./ | .// | /[cC]/* | \
Steve Kondik2111ad72013-07-07 12:07:44 -07002640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Steve Kondik79165c32015-11-09 19:43:00 -08002641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Steve Kondik2111ad72013-07-07 12:07:44 -07002642 /usr/ucb/* ) ;;
2643 *)
2644 # OSF1 and SCO ODT 3.0 have their own names for install.
2645 # Don't use installbsd from OSF since it installs stuff as root
2646 # by default.
2647 for ac_prog in ginstall scoinst install; do
2648 for ac_exec_ext in '' $ac_executable_extensions; do
Steve Kondik79165c32015-11-09 19:43:00 -08002649 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07002650 if test $ac_prog = install &&
2651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652 # AIX install. It has an incompatible calling convention.
2653 :
2654 elif test $ac_prog = install &&
2655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2656 # program-specific install script used by HP pwplus--don't use.
2657 :
2658 else
Steve Kondik79165c32015-11-09 19:43:00 -08002659 rm -rf conftest.one conftest.two conftest.dir
2660 echo one > conftest.one
2661 echo two > conftest.two
2662 mkdir conftest.dir
2663 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2664 test -s conftest.one && test -s conftest.two &&
2665 test -s conftest.dir/conftest.one &&
2666 test -s conftest.dir/conftest.two
2667 then
2668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2669 break 3
2670 fi
Steve Kondik2111ad72013-07-07 12:07:44 -07002671 fi
2672 fi
2673 done
2674 done
2675 ;;
2676esac
Steve Kondik79165c32015-11-09 19:43:00 -08002677
2678 done
Steve Kondik2111ad72013-07-07 12:07:44 -07002679IFS=$as_save_IFS
2680
Steve Kondik79165c32015-11-09 19:43:00 -08002681rm -rf conftest.one conftest.two conftest.dir
Steve Kondik2111ad72013-07-07 12:07:44 -07002682
2683fi
2684 if test "${ac_cv_path_install+set}" = set; then
2685 INSTALL=$ac_cv_path_install
2686 else
2687 # As a last resort, use the slow shell script. Don't cache a
2688 # value for INSTALL within a source directory, because that will
2689 # break other packages using the cache if that directory is
2690 # removed, or if the value is a relative name.
2691 INSTALL=$ac_install_sh
2692 fi
2693fi
Steve Kondik79165c32015-11-09 19:43:00 -08002694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2695$as_echo "$INSTALL" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002696
2697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2698# It thinks the first close brace ends the variable substitution.
2699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700
2701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702
2703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704
Steve Kondik79165c32015-11-09 19:43:00 -08002705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2706$as_echo_n "checking whether build environment is sane... " >&6; }
2707# Reject unsafe characters in $srcdir or the absolute working directory
2708# name. Accept space and tab only in the latter.
2709am_lf='
2710'
2711case `pwd` in
2712 *[\\\"\#\$\&\'\`$am_lf]*)
2713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2714esac
2715case $srcdir in
2716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2718esac
2719
2720# Do 'set' in a subshell so we don't clobber the current shell's
Steve Kondik2111ad72013-07-07 12:07:44 -07002721# arguments. Must try -L first in case configure is actually a
2722# symlink; some systems play weird games with the mod time of symlinks
2723# (eg FreeBSD returns the mod time of the symlink's containing
2724# directory).
2725if (
Steve Kondik79165c32015-11-09 19:43:00 -08002726 am_has_slept=no
2727 for am_try in 1 2; do
2728 echo "timestamp, slept: $am_has_slept" > conftest.file
2729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2730 if test "$*" = "X"; then
2731 # -L didn't work.
2732 set X `ls -t "$srcdir/configure" conftest.file`
2733 fi
2734 if test "$*" != "X $srcdir/configure conftest.file" \
2735 && test "$*" != "X conftest.file $srcdir/configure"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07002736
Steve Kondik79165c32015-11-09 19:43:00 -08002737 # If neither matched, then we have a broken ls. This can happen
2738 # if, for instance, CONFIG_SHELL is bash and it inherits a
2739 # broken ls alias from the environment. This has actually
2740 # happened. Such a system could not be considered "sane".
2741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2743 fi
2744 if test "$2" = conftest.file || test $am_try -eq 2; then
2745 break
2746 fi
2747 # Just in case.
2748 sleep 1
2749 am_has_slept=yes
2750 done
Steve Kondik2111ad72013-07-07 12:07:44 -07002751 test "$2" = conftest.file
2752 )
2753then
2754 # Ok.
2755 :
2756else
Steve Kondik79165c32015-11-09 19:43:00 -08002757 as_fn_error $? "newly created file is older than distributed files!
2758Check your system clock" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07002759fi
Steve Kondik79165c32015-11-09 19:43:00 -08002760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761$as_echo "yes" >&6; }
2762# If we didn't sleep, we still need to ensure time stamps of config.status and
2763# generated files are strictly newer.
2764am_sleep_pid=
2765if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2766 ( sleep 1 ) &
2767 am_sleep_pid=$!
2768fi
2769
2770rm -f conftest.file
2771
Steve Kondik2111ad72013-07-07 12:07:44 -07002772test "$program_prefix" != NONE &&
2773 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2774# Use a double $ so make ignores it.
2775test "$program_suffix" != NONE &&
2776 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Steve Kondik79165c32015-11-09 19:43:00 -08002777# Double any \ or $.
Steve Kondik2111ad72013-07-07 12:07:44 -07002778# By default was `s,x,x', remove it if useless.
Steve Kondik79165c32015-11-09 19:43:00 -08002779ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2780program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Steve Kondik2111ad72013-07-07 12:07:44 -07002781
2782# expand $ac_aux_dir to an absolute path
2783am_aux_dir=`cd $ac_aux_dir && pwd`
2784
Steve Kondik79165c32015-11-09 19:43:00 -08002785if test x"${MISSING+set}" != xset; then
2786 case $am_aux_dir in
2787 *\ * | *\ *)
2788 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2789 *)
2790 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2791 esac
2792fi
Steve Kondik2111ad72013-07-07 12:07:44 -07002793# Use eval to expand $SHELL
Steve Kondik79165c32015-11-09 19:43:00 -08002794if eval "$MISSING --is-lightweight"; then
2795 am_missing_run="$MISSING "
Steve Kondik2111ad72013-07-07 12:07:44 -07002796else
2797 am_missing_run=
Steve Kondik79165c32015-11-09 19:43:00 -08002798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2799$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07002800fi
2801
Steve Kondik79165c32015-11-09 19:43:00 -08002802if test x"${install_sh}" != xset; then
2803 case $am_aux_dir in
2804 *\ * | *\ *)
2805 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2806 *)
2807 install_sh="\${SHELL} $am_aux_dir/install-sh"
2808 esac
2809fi
2810
2811# Installed binaries are usually stripped using 'strip' when the user
2812# run "make install-strip". However 'strip' might not be the right
2813# tool to use in cross-compilation environments, therefore Automake
2814# will honor the 'STRIP' environment variable to overrule this program.
2815if test "$cross_compiling" != no; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2818set dummy ${ac_tool_prefix}strip; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if ${ac_cv_prog_STRIP+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823else
2824 if test -n "$STRIP"; then
2825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
2841
2842fi
2843fi
2844STRIP=$ac_cv_prog_STRIP
2845if test -n "$STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2847$as_echo "$STRIP" >&6; }
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853
2854fi
2855if test -z "$ac_cv_prog_STRIP"; then
2856 ac_ct_STRIP=$STRIP
2857 # Extract the first word of "strip", so it can be a program name with args.
2858set dummy strip; ac_word=$2
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
2861if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863else
2864 if test -n "$ac_ct_STRIP"; then
2865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_ac_ct_STRIP="strip"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878done
2879 done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2885if test -n "$ac_ct_STRIP"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2887$as_echo "$ac_ct_STRIP" >&6; }
2888else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890$as_echo "no" >&6; }
2891fi
2892
2893 if test "x$ac_ct_STRIP" = x; then
2894 STRIP=":"
2895 else
2896 case $cross_compiling:$ac_tool_warned in
2897yes:)
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2900ac_tool_warned=yes ;;
2901esac
2902 STRIP=$ac_ct_STRIP
2903 fi
2904else
2905 STRIP="$ac_cv_prog_STRIP"
2906fi
2907
2908fi
2909INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2910
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2912$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002913if test -z "$MKDIR_P"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002914 if ${ac_cv_path_mkdir+:} false; then :
2915 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002916else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08002922 for ac_prog in mkdir gmkdir; do
Steve Kondik2111ad72013-07-07 12:07:44 -07002923 for ac_exec_ext in '' $ac_executable_extensions; do
Steve Kondik79165c32015-11-09 19:43:00 -08002924 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Steve Kondik2111ad72013-07-07 12:07:44 -07002925 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2926 'mkdir (GNU coreutils) '* | \
2927 'mkdir (coreutils) '* | \
2928 'mkdir (fileutils) '4.1*)
2929 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2930 break 3;;
2931 esac
2932 done
2933 done
Steve Kondik79165c32015-11-09 19:43:00 -08002934 done
Steve Kondik2111ad72013-07-07 12:07:44 -07002935IFS=$as_save_IFS
2936
2937fi
2938
Steve Kondik79165c32015-11-09 19:43:00 -08002939 test -d ./--version && rmdir ./--version
Steve Kondik2111ad72013-07-07 12:07:44 -07002940 if test "${ac_cv_path_mkdir+set}" = set; then
2941 MKDIR_P="$ac_cv_path_mkdir -p"
2942 else
2943 # As a last resort, use the slow shell script. Don't cache a
2944 # value for MKDIR_P within a source directory, because that will
2945 # break other packages using the cache if that directory is
2946 # removed, or if the value is a relative name.
Steve Kondik2111ad72013-07-07 12:07:44 -07002947 MKDIR_P="$ac_install_sh -d"
2948 fi
2949fi
Steve Kondik79165c32015-11-09 19:43:00 -08002950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2951$as_echo "$MKDIR_P" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002952
2953for ac_prog in gawk mawk nawk awk
2954do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956set dummy $ac_prog; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -08002957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if ${ac_cv_prog_AWK+:} false; then :
2960 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07002961else
2962 if test -n "$AWK"; then
2963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08002970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07002972 ac_cv_prog_AWK="$ac_prog"
Steve Kondik79165c32015-11-09 19:43:00 -08002973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07002974 break 2
2975 fi
2976done
Steve Kondik79165c32015-11-09 19:43:00 -08002977 done
Steve Kondik2111ad72013-07-07 12:07:44 -07002978IFS=$as_save_IFS
2979
2980fi
2981fi
2982AWK=$ac_cv_prog_AWK
2983if test -n "$AWK"; then
Steve Kondik79165c32015-11-09 19:43:00 -08002984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2985$as_echo "$AWK" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002986else
Steve Kondik79165c32015-11-09 19:43:00 -08002987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07002989fi
2990
2991
2992 test -n "$AWK" && break
2993done
2994
Steve Kondik79165c32015-11-09 19:43:00 -08002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2996$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2997set x ${MAKE-make}
2998ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2999if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3000 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07003001else
3002 cat >conftest.make <<\_ACEOF
3003SHELL = /bin/sh
3004all:
3005 @echo '@@@%%%=$(MAKE)=@@@%%%'
3006_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08003007# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Steve Kondik2111ad72013-07-07 12:07:44 -07003008case `${MAKE-make} -f conftest.make 2>/dev/null` in
3009 *@@@%%%=?*=@@@%%%*)
3010 eval ac_cv_prog_make_${ac_make}_set=yes;;
3011 *)
3012 eval ac_cv_prog_make_${ac_make}_set=no;;
3013esac
3014rm -f conftest.make
3015fi
3016if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -08003017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3018$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003019 SET_MAKE=
3020else
Steve Kondik79165c32015-11-09 19:43:00 -08003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003023 SET_MAKE="MAKE=${MAKE-make}"
3024fi
3025
3026rm -rf .tst 2>/dev/null
3027mkdir .tst 2>/dev/null
3028if test -d .tst; then
3029 am__leading_dot=.
3030else
3031 am__leading_dot=_
3032fi
3033rmdir .tst 2>/dev/null
3034
Steve Kondik79165c32015-11-09 19:43:00 -08003035# Check whether --enable-silent-rules was given.
3036if test "${enable_silent_rules+set}" = set; then :
3037 enableval=$enable_silent_rules;
3038fi
3039
3040case $enable_silent_rules in # (((
3041 yes) AM_DEFAULT_VERBOSITY=0;;
3042 no) AM_DEFAULT_VERBOSITY=1;;
3043 *) AM_DEFAULT_VERBOSITY=1;;
3044esac
3045am_make=${MAKE-make}
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3047$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3048if ${am_cv_make_support_nested_variables+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if $as_echo 'TRUE=$(BAR$(V))
3052BAR0=false
3053BAR1=true
3054V=1
3055am__doit:
3056 @$(TRUE)
3057.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3058 am_cv_make_support_nested_variables=yes
3059else
3060 am_cv_make_support_nested_variables=no
3061fi
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3064$as_echo "$am_cv_make_support_nested_variables" >&6; }
3065if test $am_cv_make_support_nested_variables = yes; then
3066 AM_V='$(V)'
3067 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3068else
3069 AM_V=$AM_DEFAULT_VERBOSITY
3070 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3071fi
3072AM_BACKSLASH='\'
3073
Steve Kondik2111ad72013-07-07 12:07:44 -07003074if test "`cd $srcdir && pwd`" != "`pwd`"; then
3075 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3076 # is not polluted with repeated "-I."
3077 am__isrc=' -I$(srcdir)'
3078 # test to see if srcdir already configured
3079 if test -f $srcdir/config.status; then
Steve Kondik79165c32015-11-09 19:43:00 -08003080 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -07003081 fi
3082fi
3083
3084# test whether we have cygpath
3085if test -z "$CYGPATH_W"; then
3086 if (cygpath --version) >/dev/null 2>/dev/null; then
3087 CYGPATH_W='cygpath -w'
3088 else
3089 CYGPATH_W=echo
3090 fi
3091fi
3092
3093
3094# Define the identity of the package.
Steve Kondik79165c32015-11-09 19:43:00 -08003095
Steve Kondik2111ad72013-07-07 12:07:44 -07003096 PACKAGE=${PACKAGE_NAME}
3097 VERSION=${PACKAGE_VERSION}
3098
3099
3100cat >>confdefs.h <<_ACEOF
3101#define PACKAGE "$PACKAGE"
3102_ACEOF
3103
3104
3105cat >>confdefs.h <<_ACEOF
3106#define VERSION "$VERSION"
3107_ACEOF
3108
3109# Some tools Automake needs.
3110
3111ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3112
3113
3114AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3115
3116
3117AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3118
3119
3120AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3121
3122
3123MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3124
Steve Kondik79165c32015-11-09 19:43:00 -08003125# For better backward compatibility. To be removed once Automake 1.9.x
3126# dies out for good. For more background, see:
3127# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3128# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3129mkdir_p='$(MKDIR_P)'
Steve Kondik2111ad72013-07-07 12:07:44 -07003130
3131# We need awk for the "check" target. The system "awk" is bad on
3132# some platforms.
Steve Kondik79165c32015-11-09 19:43:00 -08003133# Always define AMTAR for backward compatibility. Yes, it's still used
3134# in the wild :-( We should find a proper way to deprecate it ...
3135AMTAR='$${TAR-tar}'
Steve Kondik2111ad72013-07-07 12:07:44 -07003136
Steve Kondik2111ad72013-07-07 12:07:44 -07003137
Steve Kondik79165c32015-11-09 19:43:00 -08003138# We'll loop over all known methods to create a tar archive until one works.
3139_am_tools='gnutar pax cpio none'
3140
3141am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Steve Kondik2111ad72013-07-07 12:07:44 -07003142
3143
3144
3145
3146
Steve Kondik79165c32015-11-09 19:43:00 -08003147
3148# POSIX will say in a future version that running "rm -f" with no argument
3149# is OK; and we want to be able to make that assumption in our Makefile
3150# recipes. So use an aggressive probe to check that the usage we want is
3151# actually supported "in the wild" to an acceptable degree.
3152# See automake bug#10828.
3153# To make any issue more visible, cause the running configure to be aborted
3154# by default if the 'rm' program in use doesn't match our expectations; the
3155# user can still override this though.
3156if rm -f && rm -fr && rm -rf; then : OK; else
3157 cat >&2 <<'END'
3158Oops!
3159
3160Your 'rm' program seems unable to run without file operands specified
3161on the command line, even when the '-f' option is present. This is contrary
3162to the behaviour of most rm programs out there, and not conforming with
3163the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3164
3165Please tell bug-automake@gnu.org about your system, including the value
3166of your $PATH and any error possibly output before this message. This
3167can help us improve future automake versions.
3168
3169END
3170 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3171 echo 'Configuration will proceed anyway, since you have set the' >&2
3172 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3173 echo >&2
3174 else
3175 cat >&2 <<'END'
3176Aborting the configuration process, to ensure you take notice of the issue.
3177
3178You can download and install GNU coreutils to get an 'rm' implementation
3179that behaves properly: <http://www.gnu.org/software/coreutils/>.
3180
3181If you want to complete the configuration process using your problematic
3182'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3183to "yes", and re-run configure.
3184
3185END
3186 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3187 fi
3188fi
Steve Kondik2111ad72013-07-07 12:07:44 -07003189ac_config_headers="$ac_config_headers config.h"
3190
3191
Steve Kondik79165c32015-11-09 19:43:00 -08003192
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3194$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003195 # Check whether --enable-maintainer-mode was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003196if test "${enable_maintainer_mode+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003197 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3198else
3199 USE_MAINTAINER_MODE=no
3200fi
3201
Steve Kondik79165c32015-11-09 19:43:00 -08003202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3203$as_echo "$USE_MAINTAINER_MODE" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003204 if test $USE_MAINTAINER_MODE = yes; then
3205 MAINTAINER_MODE_TRUE=
3206 MAINTAINER_MODE_FALSE='#'
3207else
3208 MAINTAINER_MODE_TRUE='#'
3209 MAINTAINER_MODE_FALSE=
3210fi
3211
3212 MAINT=$MAINTAINER_MODE_TRUE
3213
3214
3215
3216# Options
3217# Check whether --enable-debug was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003218if test "${enable_debug+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003219 enableval=$enable_debug;
3220else
3221 enable_debug="no"
3222
3223fi
3224
3225
3226# Check whether --enable-warnings was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003227if test "${enable_warnings+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003228 enableval=$enable_warnings;
3229else
3230 enable_warnings="no"
3231
3232fi
3233
3234
3235# Check whether --enable-pedantic was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003236if test "${enable_pedantic+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003237 enableval=$enable_pedantic;
3238else
3239 enable_pedantic="no"
3240
3241fi
3242
3243
3244# Check whether --enable-really-static was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003245if test "${enable_really_static+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003246 enableval=$enable_really_static;
3247else
3248 enable_really_static="no"
3249
3250fi
3251
3252
3253# Check whether --enable-mount-helper was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003254if test "${enable_mount_helper+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003255 enableval=$enable_mount_helper;
3256else
3257
3258 case "${target_os}" in
3259 linux*) enable_mount_helper="yes" ;;
3260 *) enable_mount_helper="no" ;;
3261 esac
3262
3263
3264fi
3265
3266
3267# Check whether --enable-ldscript was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003268if test "${enable_ldscript+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003269 enableval=$enable_ldscript;
3270else
3271 enable_ldscript="no"
3272
3273fi
3274
3275
3276# Check whether --enable-ldconfig was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003277if test "${enable_ldconfig+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003278 enableval=$enable_ldconfig;
3279else
3280 enable_ldconfig="yes"
3281
3282fi
3283
3284
3285# Check whether --enable-library was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003286if test "${enable_library+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003287 enableval=$enable_library;
3288else
3289 enable_library="yes"
3290
3291fi
3292
3293
3294# Check whether --enable-mtab was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003295if test "${enable_mtab+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003296 enableval=$enable_mtab;
3297else
3298 enable_mtab="yes"
3299
3300fi
3301
3302
3303# Check whether --enable-posix-acls was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003304if test "${enable_posix_acls+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003305 enableval=$enable_posix_acls;
3306else
3307 enable_posix_acls="no"
3308
3309fi
3310
3311
3312# Check whether --enable-xattr-mappings was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003313if test "${enable_xattr_mappings+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003314 enableval=$enable_xattr_mappings;
3315else
3316 enable_xattr_mappings="no"
3317
3318fi
3319
3320
3321# Check whether --enable-device-default-io-ops was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003322if test "${enable_device_default_io_ops+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003323 enableval=$enable_device_default_io_ops;
3324else
3325 enable_device_default_io_ops="yes"
3326
3327fi
3328
3329
3330# Check whether --enable-ntfs-3g was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003331if test "${enable_ntfs_3g+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003332 enableval=$enable_ntfs_3g;
3333else
3334 enable_ntfs_3g="yes"
3335
3336fi
3337
3338
3339# Check whether --enable-ntfsprogs was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003340if test "${enable_ntfsprogs+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003341 enableval=$enable_ntfsprogs;
3342else
3343 enable_ntfsprogs="yes"
3344
3345fi
3346
3347
3348# Check whether --enable-crypto was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003349if test "${enable_crypto+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003350 enableval=$enable_crypto;
3351else
3352 enable_crypto=no
3353
3354fi
3355
3356
3357# Check whether --enable-extras was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003358if test "${enable_extras+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003359 enableval=$enable_extras;
3360else
3361 enable_extras="no"
3362
3363fi
3364
3365
Steve Kondik79165c32015-11-09 19:43:00 -08003366# Check whether --enable-quarantined was given.
3367if test "${enable_quarantined+set}" = set; then :
3368 enableval=$enable_quarantined;
3369else
3370 enable_quarantined="no"
3371
3372fi
3373
3374
Steve Kondik2111ad72013-07-07 12:07:44 -07003375# Check whether --enable-nfconv was given.
Steve Kondik79165c32015-11-09 19:43:00 -08003376if test "${enable_nfconv+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003377 enableval=$enable_nfconv; enable_nfconv="no"
3378else
3379
3380 case "${target_os}" in
3381 darwin*) enable_nfconv="yes" ;;
3382 *) enable_nfconv="no" ;;
3383 esac
3384
3385
3386fi
3387
3388
3389# pthread_rwlock_t requires _GNU_SOURCE
Steve Kondik79165c32015-11-09 19:43:00 -08003390DEPDIR="${am__leading_dot}deps"
Steve Kondik2111ad72013-07-07 12:07:44 -07003391
Steve Kondik79165c32015-11-09 19:43:00 -08003392ac_config_commands="$ac_config_commands depfiles"
Steve Kondik2111ad72013-07-07 12:07:44 -07003393
3394
Steve Kondik79165c32015-11-09 19:43:00 -08003395am_make=${MAKE-make}
3396cat > confinc << 'END'
3397am__doit:
3398 @echo this is the am__doit target
3399.PHONY: am__doit
3400END
3401# If we don't find an include directive, just comment out the code.
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3403$as_echo_n "checking for style of include used by $am_make... " >&6; }
3404am__include="#"
3405am__quote=
3406_am_result=none
3407# First try GNU make style include.
3408echo "include confinc" > confmf
3409# Ignore all kinds of additional output from 'make'.
3410case `$am_make -s -f confmf 2> /dev/null` in #(
3411*the\ am__doit\ target*)
3412 am__include=include
3413 am__quote=
3414 _am_result=GNU
3415 ;;
3416esac
3417# Now try BSD make style include.
3418if test "$am__include" = "#"; then
3419 echo '.include "confinc"' > confmf
3420 case `$am_make -s -f confmf 2> /dev/null` in #(
3421 *the\ am__doit\ target*)
3422 am__include=.include
3423 am__quote="\""
3424 _am_result=BSD
3425 ;;
3426 esac
3427fi
Steve Kondik2111ad72013-07-07 12:07:44 -07003428
Steve Kondik79165c32015-11-09 19:43:00 -08003429
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3431$as_echo "$_am_result" >&6; }
3432rm -f confinc confmf
3433
3434# Check whether --enable-dependency-tracking was given.
3435if test "${enable_dependency_tracking+set}" = set; then :
3436 enableval=$enable_dependency_tracking;
3437fi
3438
3439if test "x$enable_dependency_tracking" != xno; then
3440 am_depcomp="$ac_aux_dir/depcomp"
3441 AMDEPBACKSLASH='\'
3442 am__nodep='_no'
3443fi
3444 if test "x$enable_dependency_tracking" != xno; then
3445 AMDEP_TRUE=
3446 AMDEP_FALSE='#'
3447else
3448 AMDEP_TRUE='#'
3449 AMDEP_FALSE=
3450fi
3451
3452
Steve Kondik2111ad72013-07-07 12:07:44 -07003453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458if test -n "$ac_tool_prefix"; then
Steve Kondik79165c32015-11-09 19:43:00 -08003459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
3463if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07003465else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08003474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07003478 break 2
3479 fi
3480done
Steve Kondik79165c32015-11-09 19:43:00 -08003481 done
Steve Kondik2111ad72013-07-07 12:07:44 -07003482IFS=$as_save_IFS
3483
3484fi
3485fi
3486CC=$ac_cv_prog_CC
3487if test -n "$CC"; then
Steve Kondik79165c32015-11-09 19:43:00 -08003488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489$as_echo "$CC" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003490else
Steve Kondik79165c32015-11-09 19:43:00 -08003491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003493fi
3494
3495
Steve Kondik2111ad72013-07-07 12:07:44 -07003496fi
Steve Kondik79165c32015-11-09 19:43:00 -08003497if test -z "$ac_cv_prog_CC"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07003498 ac_ct_CC=$CC
Steve Kondik79165c32015-11-09 19:43:00 -08003499 # Extract the first word of "gcc", so it can be a program name with args.
3500set dummy gcc; ac_word=$2
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502$as_echo_n "checking for $ac_word... " >&6; }
3503if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07003505else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08003514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07003518 break 2
3519 fi
3520done
Steve Kondik79165c32015-11-09 19:43:00 -08003521 done
Steve Kondik2111ad72013-07-07 12:07:44 -07003522IFS=$as_save_IFS
3523
3524fi
3525fi
3526ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527if test -n "$ac_ct_CC"; then
Steve Kondik79165c32015-11-09 19:43:00 -08003528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529$as_echo "$ac_ct_CC" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003530else
Steve Kondik79165c32015-11-09 19:43:00 -08003531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532$as_echo "no" >&6; }
3533fi
3534
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544 CC=$ac_ct_CC
3545 fi
3546else
3547 CC="$ac_cv_prog_CC"
3548fi
3549
3550if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553set dummy ${ac_tool_prefix}cc; ac_word=$2
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555$as_echo_n "checking for $ac_word... " >&6; }
3556if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573done
3574 done
3575IFS=$as_save_IFS
3576
3577fi
3578fi
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582$as_echo "$CC" >&6; }
3583else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585$as_echo "no" >&6; }
3586fi
3587
3588
3589 fi
3590fi
3591if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595$as_echo_n "checking for $ac_word... " >&6; }
3596if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601else
3602 ac_prog_rejected=no
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3613 fi
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618done
3619 done
3620IFS=$as_save_IFS
3621
3622if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3632 fi
3633fi
3634fi
3635fi
3636CC=$ac_cv_prog_CC
3637if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639$as_echo "$CC" >&6; }
3640else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
3643fi
3644
3645
3646fi
3647if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3650 do
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654$as_echo_n "checking for $ac_word... " >&6; }
3655if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672done
3673 done
3674IFS=$as_save_IFS
3675
3676fi
3677fi
3678CC=$ac_cv_prog_CC
3679if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681$as_echo "$CC" >&6; }
3682else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684$as_echo "no" >&6; }
3685fi
3686
3687
3688 test -n "$CC" && break
3689 done
3690fi
3691if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3694do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696set dummy $ac_prog; ac_word=$2
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698$as_echo_n "checking for $ac_word... " >&6; }
3699if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717 done
3718IFS=$as_save_IFS
3719
3720fi
3721fi
3722ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725$as_echo "$ac_ct_CC" >&6; }
3726else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003729fi
3730
3731
3732 test -n "$ac_ct_CC" && break
3733done
3734
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739yes:)
Steve Kondik79165c32015-11-09 19:43:00 -08003740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07003742ac_tool_warned=yes ;;
3743esac
3744 CC=$ac_ct_CC
3745 fi
3746fi
3747
Steve Kondik79165c32015-11-09 19:43:00 -08003748fi
Steve Kondik2111ad72013-07-07 12:07:44 -07003749
Steve Kondik79165c32015-11-09 19:43:00 -08003750
3751test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753as_fn_error $? "no acceptable C compiler found in \$PATH
3754See \`config.log' for more details" "$LINENO" 5; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003755
3756# Provide some information about the compiler.
Steve Kondik79165c32015-11-09 19:43:00 -08003757$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758set X $ac_compile
3759ac_compiler=$2
3760for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
Steve Kondik2111ad72013-07-07 12:07:44 -07003762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
Steve Kondik79165c32015-11-09 19:43:00 -08003766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767$as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Steve Kondik2111ad72013-07-07 12:07:44 -07003769 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08003770 if test -s conftest.err; then
3771 sed '10a\
3772... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3775 fi
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779done
Steve Kondik2111ad72013-07-07 12:07:44 -07003780
Steve Kondik79165c32015-11-09 19:43:00 -08003781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07003782/* end confdefs.h. */
3783
3784int
3785main ()
3786{
3787
3788 ;
3789 return 0;
3790}
3791_ACEOF
3792ac_clean_files_save=$ac_clean_files
Steve Kondik79165c32015-11-09 19:43:00 -08003793ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Steve Kondik2111ad72013-07-07 12:07:44 -07003794# Try to create an executable without -o first, disregard a.out.
3795# It will help us diagnose broken compilers, and finding out an intuition
3796# of exeext.
Steve Kondik79165c32015-11-09 19:43:00 -08003797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798$as_echo_n "checking whether the C compiler works... " >&6; }
3799ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800
3801# The possible output files:
3802ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803
Steve Kondik2111ad72013-07-07 12:07:44 -07003804ac_rmfiles=
3805for ac_file in $ac_files
3806do
3807 case $ac_file in
Steve Kondik79165c32015-11-09 19:43:00 -08003808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07003809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811done
3812rm -f $ac_rmfiles
3813
Steve Kondik79165c32015-11-09 19:43:00 -08003814if { { ac_try="$ac_link_default"
Steve Kondik2111ad72013-07-07 12:07:44 -07003815case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
Steve Kondik79165c32015-11-09 19:43:00 -08003819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820$as_echo "$ac_try_echo"; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07003821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08003823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827# in a Makefile. We should not override ac_cv_exeext if it was cached,
3828# so that the user can short-circuit this test for compilers unknown to
3829# Autoconf.
3830for ac_file in $ac_files ''
3831do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
Steve Kondik79165c32015-11-09 19:43:00 -08003834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Steve Kondik2111ad72013-07-07 12:07:44 -07003835 ;;
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
Steve Kondik79165c32015-11-09 19:43:00 -08003841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Steve Kondik2111ad72013-07-07 12:07:44 -07003842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 fi
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3851 * )
3852 break;;
3853 esac
3854done
3855test "$ac_cv_exeext" = no && ac_cv_exeext=
3856
3857else
3858 ac_file=''
3859fi
Steve Kondik79165c32015-11-09 19:43:00 -08003860if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862$as_echo "no" >&6; }
3863$as_echo "$as_me: failed program was:" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07003864sed 's/^/| /' conftest.$ac_ext >&5
3865
Steve Kondik79165c32015-11-09 19:43:00 -08003866{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error 77 "C compiler cannot create executables
3869See \`config.log' for more details" "$LINENO" 5; }
3870else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003873fi
Steve Kondik79165c32015-11-09 19:43:00 -08003874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875$as_echo_n "checking for C compiler default output file name... " >&6; }
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877$as_echo "$ac_file" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003878ac_exeext=$ac_cv_exeext
3879
Steve Kondik79165c32015-11-09 19:43:00 -08003880rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Steve Kondik2111ad72013-07-07 12:07:44 -07003881ac_clean_files=$ac_clean_files_save
Steve Kondik79165c32015-11-09 19:43:00 -08003882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883$as_echo_n "checking for suffix of executables... " >&6; }
3884if { { ac_try="$ac_link"
Steve Kondik2111ad72013-07-07 12:07:44 -07003885case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888esac
Steve Kondik79165c32015-11-09 19:43:00 -08003889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890$as_echo "$ac_try_echo"; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07003891 (eval "$ac_link") 2>&5
3892 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08003893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07003895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897# work properly (i.e., refer to `conftest.exe'), while it won't with
3898# `rm'.
3899for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
Steve Kondik79165c32015-11-09 19:43:00 -08003902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07003903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907done
3908else
Steve Kondik79165c32015-11-09 19:43:00 -08003909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912See \`config.log' for more details" "$LINENO" 5; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003913fi
Steve Kondik79165c32015-11-09 19:43:00 -08003914rm -f conftest conftest$ac_cv_exeext
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916$as_echo "$ac_cv_exeext" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07003917
3918rm -f conftest.$ac_ext
3919EXEEXT=$ac_cv_exeext
3920ac_exeext=$EXEEXT
Steve Kondik79165c32015-11-09 19:43:00 -08003921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923#include <stdio.h>
3924int
3925main ()
3926{
3927FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3929
3930 ;
3931 return 0;
3932}
Steve Kondik2111ad72013-07-07 12:07:44 -07003933_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08003934ac_clean_files="$ac_clean_files conftest.out"
3935# Check that the compiler produces executables we can run. If not, either
3936# the compiler is broken, or we cross compile.
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938$as_echo_n "checking whether we are cross compiling... " >&6; }
3939if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944esac
3945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946$as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957$as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969as_fn_error $? "cannot run C compiled programs.
3970If you meant to cross compile, use \`--host'.
3971See \`config.log' for more details" "$LINENO" 5; }
3972 fi
3973 fi
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976$as_echo "$cross_compiling" >&6; }
3977
3978rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979ac_clean_files=$ac_clean_files_save
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981$as_echo_n "checking for suffix of object files... " >&6; }
3982if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07003986/* end confdefs.h. */
3987
3988int
3989main ()
3990{
3991
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996rm -f conftest.o conftest.obj
Steve Kondik79165c32015-11-09 19:43:00 -08003997if { { ac_try="$ac_compile"
Steve Kondik2111ad72013-07-07 12:07:44 -07003998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
Steve Kondik79165c32015-11-09 19:43:00 -08004002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003$as_echo "$ac_try_echo"; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07004004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08004006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
Steve Kondik79165c32015-11-09 19:43:00 -08004011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015done
4016else
Steve Kondik79165c32015-11-09 19:43:00 -08004017 $as_echo "$as_me: failed program was:" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07004018sed 's/^/| /' conftest.$ac_ext >&5
4019
Steve Kondik79165c32015-11-09 19:43:00 -08004020{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022as_fn_error $? "cannot compute suffix of object files: cannot compile
4023See \`config.log' for more details" "$LINENO" 5; }
Steve Kondik2111ad72013-07-07 12:07:44 -07004024fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004025rm -f conftest.$ac_cv_objext conftest.$ac_ext
4026fi
Steve Kondik79165c32015-11-09 19:43:00 -08004027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028$as_echo "$ac_cv_objext" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07004029OBJEXT=$ac_cv_objext
4030ac_objext=$OBJEXT
Steve Kondik79165c32015-11-09 19:43:00 -08004031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004035else
Steve Kondik79165c32015-11-09 19:43:00 -08004036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07004037/* end confdefs.h. */
4038
4039int
4040main ()
4041{
4042#ifndef __GNUC__
4043 choke me
4044#endif
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08004050if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004051 ac_compiler_gnu=yes
4052else
Steve Kondik79165c32015-11-09 19:43:00 -08004053 ac_compiler_gnu=no
Steve Kondik2111ad72013-07-07 12:07:44 -07004054fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057
4058fi
Steve Kondik79165c32015-11-09 19:43:00 -08004059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063else
4064 GCC=
4065fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004066ac_test_CFLAGS=${CFLAGS+set}
4067ac_save_CFLAGS=$CFLAGS
Steve Kondik79165c32015-11-09 19:43:00 -08004068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069$as_echo_n "checking whether $CC accepts -g... " >&6; }
4070if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004072else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
Steve Kondik79165c32015-11-09 19:43:00 -08004077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07004078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08004088if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004089 ac_cv_prog_cc_g=yes
4090else
Steve Kondik79165c32015-11-09 19:43:00 -08004091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07004093/* end confdefs.h. */
4094
4095int
4096main ()
4097{
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08004103if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004104
Steve Kondik79165c32015-11-09 19:43:00 -08004105else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
Steve Kondik2111ad72013-07-07 12:07:44 -07004107 CFLAGS="-g"
Steve Kondik79165c32015-11-09 19:43:00 -08004108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07004109/* end confdefs.h. */
4110
4111int
4112main ()
4113{
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -08004119if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004120 ac_cv_prog_cc_g=yes
Steve Kondik2111ad72013-07-07 12:07:44 -07004121fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4128fi
Steve Kondik79165c32015-11-09 19:43:00 -08004129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130$as_echo "$ac_cv_prog_cc_g" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07004131if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4138 fi
4139else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4144 fi
4145fi
Steve Kondik79165c32015-11-09 19:43:00 -08004146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004150else
4151 ac_cv_prog_cc_c89=no
4152ac_save_CC=$CC
Steve Kondik79165c32015-11-09 19:43:00 -08004153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07004154/* end confdefs.h. */
4155#include <stdarg.h>
4156#include <stdio.h>
Steve Kondik79165c32015-11-09 19:43:00 -08004157struct stat;
Steve Kondik2111ad72013-07-07 12:07:44 -07004158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159struct buf { int x; };
4160FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161static char *e (p, i)
4162 char **p;
4163 int i;
4164{
4165 return p[i];
4166}
4167static char *f (char * (*g) (char **, int), char **p, ...)
4168{
4169 char *s;
4170 va_list v;
4171 va_start (v,p);
4172 s = g (p, va_arg (v,int));
4173 va_end (v);
4174 return s;
4175}
4176
4177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185
4186/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4188#define FOO(x) 'x'
4189int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190
4191int test (int i, double x);
4192struct s1 {int (*f) (int a);};
4193struct s2 {int (*f) (double a);};
4194int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195int argc;
4196char **argv;
4197int
4198main ()
4199{
4200return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207do
4208 CC="$ac_save_CC $ac_arg"
Steve Kondik79165c32015-11-09 19:43:00 -08004209 if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004210 ac_cv_prog_cc_c89=$ac_arg
Steve Kondik2111ad72013-07-07 12:07:44 -07004211fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004212rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214done
4215rm -f conftest.$ac_ext
4216CC=$ac_save_CC
4217
4218fi
4219# AC_CACHE_VAL
4220case "x$ac_cv_prog_cc_c89" in
4221 x)
Steve Kondik79165c32015-11-09 19:43:00 -08004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223$as_echo "none needed" >&6; } ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004224 xno)
Steve Kondik79165c32015-11-09 19:43:00 -08004225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226$as_echo "unsupported" >&6; } ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004227 *)
4228 CC="$CC $ac_cv_prog_cc_c89"
Steve Kondik79165c32015-11-09 19:43:00 -08004229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004231esac
Steve Kondik79165c32015-11-09 19:43:00 -08004232if test "x$ac_cv_prog_cc_c89" != xno; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004233
Steve Kondik79165c32015-11-09 19:43:00 -08004234fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004235
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
Steve Kondik2111ad72013-07-07 12:07:44 -07004241
Steve Kondik79165c32015-11-09 19:43:00 -08004242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4248$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4249if ${am_cv_prog_cc_c_o+:} false; then :
4250 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004251else
Steve Kondik79165c32015-11-09 19:43:00 -08004252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h. */
Steve Kondik2111ad72013-07-07 12:07:44 -07004254
Steve Kondik79165c32015-11-09 19:43:00 -08004255int
4256main ()
4257{
4258
4259 ;
4260 return 0;
4261}
4262_ACEOF
4263 # Make sure it works both with $CC and with simple cc.
4264 # Following AC_PROG_CC_C_O, we do the test twice because some
4265 # compilers refuse to overwrite an existing .o file with -o,
4266 # though they will create one.
4267 am_cv_prog_cc_c_o=yes
4268 for am_i in 1 2; do
4269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } \
4274 && test -f conftest2.$ac_objext; then
4275 : OK
4276 else
4277 am_cv_prog_cc_c_o=no
4278 break
4279 fi
4280 done
4281 rm -f core conftest*
4282 unset am_i
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4285$as_echo "$am_cv_prog_cc_c_o" >&6; }
4286if test "$am_cv_prog_cc_c_o" != yes; then
4287 # Losing compiler, so override with the script.
4288 # FIXME: It is wrong to rewrite CC.
4289 # But if we don't then we get into trouble of one sort or another.
4290 # A longer-term fix would be to have automake use am__CC in this case,
4291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4292 CC="$am_aux_dir/compile $CC"
4293fi
4294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
Steve Kondik2111ad72013-07-07 12:07:44 -07004299
4300
4301depcc="$CC" am_compiler_list=
4302
Steve Kondik79165c32015-11-09 19:43:00 -08004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304$as_echo_n "checking dependency style of $depcc... " >&6; }
4305if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004307else
4308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309 # We make a subdir and do the tests there. Otherwise we can end up
4310 # making bogus files that we don't know about and never remove. For
4311 # instance it was reported that on HP-UX the gcc test will end up
Steve Kondik79165c32015-11-09 19:43:00 -08004312 # making a dummy file named 'D' -- because '-MD' means "put the output
4313 # in D".
4314 rm -rf conftest.dir
Steve Kondik2111ad72013-07-07 12:07:44 -07004315 mkdir conftest.dir
4316 # Copy depcomp to subdir because otherwise we won't find it if we're
4317 # using a relative directory.
4318 cp "$am_depcomp" conftest.dir
4319 cd conftest.dir
4320 # We will build objects and dependencies in a subdirectory because
4321 # it helps to detect inapplicable dependency modes. For instance
4322 # both Tru64's cc and ICC support -MD to output dependencies as a
4323 # side effect of compilation, but ICC will put the dependencies in
4324 # the current directory while Tru64 will put them in the object
4325 # directory.
4326 mkdir sub
4327
4328 am_cv_CC_dependencies_compiler_type=none
4329 if test "$am_compiler_list" = ""; then
4330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4331 fi
Steve Kondik79165c32015-11-09 19:43:00 -08004332 am__universal=false
4333 case " $depcc " in #(
4334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4335 esac
4336
Steve Kondik2111ad72013-07-07 12:07:44 -07004337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4341 #
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4345 : > sub/conftest.c
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Steve Kondik79165c32015-11-09 19:43:00 -08004348 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4349 # Solaris 10 /bin/sh.
4350 echo '/* dummy */' > sub/conftst$i.h
Steve Kondik2111ad72013-07-07 12:07:44 -07004351 done
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4353
Steve Kondik79165c32015-11-09 19:43:00 -08004354 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4355 # mode. It turns out that the SunPro C++ compiler does not properly
4356 # handle '-M -o', and we need to detect this. Also, some Intel
4357 # versions had trouble with output in subdirs.
4358 am__obj=sub/conftest.${OBJEXT-o}
4359 am__minus_obj="-o $am__obj"
Steve Kondik2111ad72013-07-07 12:07:44 -07004360 case $depmode in
Steve Kondik79165c32015-11-09 19:43:00 -08004361 gcc)
4362 # This depmode causes a compiler race in universal mode.
4363 test "$am__universal" = false || continue
4364 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004365 nosideeffect)
Steve Kondik79165c32015-11-09 19:43:00 -08004366 # After this tag, mechanisms are not by side-effect, so they'll
4367 # only be used when explicitly requested.
Steve Kondik2111ad72013-07-07 12:07:44 -07004368 if test "x$enable_dependency_tracking" = xyes; then
4369 continue
4370 else
4371 break
4372 fi
4373 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08004374 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4375 # This compiler won't grok '-c -o', but also, the minuso test has
4376 # not run yet. These depmodes are late enough in the game, and
4377 # so weak that their functioning should not be impacted.
4378 am__obj=conftest.${OBJEXT-o}
4379 am__minus_obj=
4380 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07004381 none) break ;;
4382 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07004383 if depmode=$depmode \
Steve Kondik79165c32015-11-09 19:43:00 -08004384 source=sub/conftest.c object=$am__obj \
Steve Kondik2111ad72013-07-07 12:07:44 -07004385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Steve Kondik79165c32015-11-09 19:43:00 -08004386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Steve Kondik2111ad72013-07-07 12:07:44 -07004387 >/dev/null 2>conftest.err &&
4388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Steve Kondik79165c32015-11-09 19:43:00 -08004390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Steve Kondik2111ad72013-07-07 12:07:44 -07004391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4392 # icc doesn't choke on unknown options, it will just issue warnings
4393 # or remarks (even with -Werror). So we grep stderr for any message
4394 # that says an option was ignored or not supported.
4395 # When given -MP, icc 7.0 and 7.1 complain thusly:
4396 # icc: Command line warning: ignoring option '-M'; no argument required
4397 # The diagnosis changed in icc 8.0:
4398 # icc: Command line remark: option '-MP' not supported
4399 if (grep 'ignoring option' conftest.err ||
4400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4401 am_cv_CC_dependencies_compiler_type=$depmode
4402 break
4403 fi
4404 fi
4405 done
4406
4407 cd ..
4408 rm -rf conftest.dir
4409else
4410 am_cv_CC_dependencies_compiler_type=none
4411fi
4412
4413fi
Steve Kondik79165c32015-11-09 19:43:00 -08004414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4415$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07004416CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4417
4418 if
4419 test "x$enable_dependency_tracking" != xno \
4420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4421 am__fastdepCC_TRUE=
4422 am__fastdepCC_FALSE='#'
4423else
4424 am__fastdepCC_TRUE='#'
4425 am__fastdepCC_FALSE=
4426fi
4427
4428
Steve Kondik79165c32015-11-09 19:43:00 -08004429
4430ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436$as_echo_n "checking how to run the C preprocessor... " >&6; }
4437# On Suns, sometimes $CPP names a directory.
4438if test -n "$CPP" && test -d "$CPP"; then
4439 CPP=
Steve Kondik2111ad72013-07-07 12:07:44 -07004440fi
Steve Kondik79165c32015-11-09 19:43:00 -08004441if test -z "$CPP"; then
4442 if ${ac_cv_prog_CPP+:} false; then :
4443 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004444else
Steve Kondik79165c32015-11-09 19:43:00 -08004445 # Double quotes because CPP needs to be expanded
4446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447 do
4448 ac_preproc_ok=false
4449for ac_c_preproc_warn_flag in '' yes
Steve Kondik2111ad72013-07-07 12:07:44 -07004450do
Steve Kondik79165c32015-11-09 19:43:00 -08004451 # Use a header file that comes with gcc, so configuring glibc
4452 # with a fresh cross-compiler works.
4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454 # <limits.h> exists even on freestanding compilers.
4455 # On the NeXT, cc -E runs the code through the compiler's parser,
4456 # not just through cpp. "Syntax error" is here to catch this case.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h. */
4459#ifdef __STDC__
4460# include <limits.h>
4461#else
4462# include <assert.h>
4463#endif
4464 Syntax error
4465_ACEOF
4466if ac_fn_c_try_cpp "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004467
Steve Kondik79165c32015-11-09 19:43:00 -08004468else
4469 # Broken: fails on valid input.
4470continue
4471fi
4472rm -f conftest.err conftest.i conftest.$ac_ext
4473
4474 # OK, works on sane cases. Now check whether nonexistent headers
4475 # can be detected and how.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h. */
4478#include <ac_nonexistent.h>
4479_ACEOF
4480if ac_fn_c_try_cpp "$LINENO"; then :
4481 # Broken: success on invalid input.
4482continue
4483else
4484 # Passes both tests.
4485ac_preproc_ok=:
4486break
4487fi
4488rm -f conftest.err conftest.i conftest.$ac_ext
4489
4490done
4491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492rm -f conftest.i conftest.err conftest.$ac_ext
4493if $ac_preproc_ok; then :
4494 break
Steve Kondik2111ad72013-07-07 12:07:44 -07004495fi
4496
Steve Kondik79165c32015-11-09 19:43:00 -08004497 done
4498 ac_cv_prog_CPP=$CPP
Steve Kondik2111ad72013-07-07 12:07:44 -07004499
Steve Kondik79165c32015-11-09 19:43:00 -08004500fi
4501 CPP=$ac_cv_prog_CPP
4502else
4503 ac_cv_prog_CPP=$CPP
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506$as_echo "$CPP" >&6; }
4507ac_preproc_ok=false
4508for ac_c_preproc_warn_flag in '' yes
4509do
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h. */
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
4523 Syntax error
4524_ACEOF
4525if ac_fn_c_try_cpp "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07004526
Steve Kondik2111ad72013-07-07 12:07:44 -07004527else
Steve Kondik79165c32015-11-09 19:43:00 -08004528 # Broken: fails on valid input.
4529continue
4530fi
4531rm -f conftest.err conftest.i conftest.$ac_ext
4532
4533 # OK, works on sane cases. Now check whether nonexistent headers
4534 # can be detected and how.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */
4537#include <ac_nonexistent.h>
4538_ACEOF
4539if ac_fn_c_try_cpp "$LINENO"; then :
4540 # Broken: success on invalid input.
4541continue
Steve Kondik2111ad72013-07-07 12:07:44 -07004542else
Steve Kondik79165c32015-11-09 19:43:00 -08004543 # Passes both tests.
4544ac_preproc_ok=:
4545break
4546fi
4547rm -f conftest.err conftest.i conftest.$ac_ext
4548
4549done
4550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551rm -f conftest.i conftest.err conftest.$ac_ext
4552if $ac_preproc_ok; then :
4553
4554else
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558See \`config.log' for more details" "$LINENO" 5; }
4559fi
4560
4561ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4569$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4570if ${ac_cv_path_GREP+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 if test -z "$GREP"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07004574 ac_path_GREP_found=false
Steve Kondik79165c32015-11-09 19:43:00 -08004575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Steve Kondik2111ad72013-07-07 12:07:44 -07004577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08004581 for ac_prog in grep ggrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4584 as_fn_executable_p "$ac_path_GREP" || continue
4585# Check for GNU ac_path_GREP and select it if it is found.
Steve Kondik2111ad72013-07-07 12:07:44 -07004586 # Check for GNU $ac_path_GREP
4587case `"$ac_path_GREP" --version 2>&1` in
4588*GNU*)
4589 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4590*)
4591 ac_count=0
Steve Kondik79165c32015-11-09 19:43:00 -08004592 $as_echo_n 0123456789 >"conftest.in"
Steve Kondik2111ad72013-07-07 12:07:44 -07004593 while :
4594 do
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
Steve Kondik79165c32015-11-09 19:43:00 -08004598 $as_echo 'GREP' >> "conftest.nl"
Steve Kondik2111ad72013-07-07 12:07:44 -07004599 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Steve Kondik79165c32015-11-09 19:43:00 -08004601 as_fn_arith $ac_count + 1 && ac_count=$as_val
Steve Kondik2111ad72013-07-07 12:07:44 -07004602 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_GREP="$ac_path_GREP"
4605 ac_path_GREP_max=$ac_count
4606 fi
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4609 done
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611esac
4612
Steve Kondik79165c32015-11-09 19:43:00 -08004613 $ac_path_GREP_found && break 3
4614 done
Steve Kondik2111ad72013-07-07 12:07:44 -07004615 done
Steve Kondik79165c32015-11-09 19:43:00 -08004616 done
Steve Kondik2111ad72013-07-07 12:07:44 -07004617IFS=$as_save_IFS
Steve Kondik79165c32015-11-09 19:43:00 -08004618 if test -z "$ac_cv_path_GREP"; then
4619 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4620 fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004621else
4622 ac_cv_path_GREP=$GREP
4623fi
4624
Steve Kondik2111ad72013-07-07 12:07:44 -07004625fi
Steve Kondik79165c32015-11-09 19:43:00 -08004626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4627$as_echo "$ac_cv_path_GREP" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07004628 GREP="$ac_cv_path_GREP"
4629
4630
Steve Kondik79165c32015-11-09 19:43:00 -08004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4632$as_echo_n "checking for egrep... " >&6; }
4633if ${ac_cv_path_EGREP+:} false; then :
4634 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07004635else
4636 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4637 then ac_cv_path_EGREP="$GREP -E"
4638 else
Steve Kondik79165c32015-11-09 19:43:00 -08004639 if test -z "$EGREP"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07004640 ac_path_EGREP_found=false
Steve Kondik79165c32015-11-09 19:43:00 -08004641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Steve Kondik2111ad72013-07-07 12:07:44 -07004643for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -08004647 for ac_prog in egrep; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4650 as_fn_executable_p "$ac_path_EGREP" || continue
4651# Check for GNU ac_path_EGREP and select it if it is found.
Steve Kondik2111ad72013-07-07 12:07:44 -07004652 # Check for GNU $ac_path_EGREP
4653case `"$ac_path_EGREP" --version 2>&1` in
4654*GNU*)
4655 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4656*)
4657 ac_count=0
Steve Kondik79165c32015-11-09 19:43:00 -08004658 $as_echo_n 0123456789 >"conftest.in"
Steve Kondik2111ad72013-07-07 12:07:44 -07004659 while :
4660 do
4661 cat "conftest.in" "conftest.in" >"conftest.tmp"
4662 mv "conftest.tmp" "conftest.in"
4663 cp "conftest.in" "conftest.nl"
Steve Kondik79165c32015-11-09 19:43:00 -08004664 $as_echo 'EGREP' >> "conftest.nl"
Steve Kondik2111ad72013-07-07 12:07:44 -07004665 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Steve Kondik79165c32015-11-09 19:43:00 -08004667 as_fn_arith $ac_count + 1 && ac_count=$as_val
Steve Kondik2111ad72013-07-07 12:07:44 -07004668 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4669 # Best one so far, save it but keep looking for a better one
4670 ac_cv_path_EGREP="$ac_path_EGREP"
4671 ac_path_EGREP_max=$ac_count
4672 fi
4673 # 10*(2^10) chars as input seems more than enough
4674 test $ac_count -gt 10 && break
4675 done
4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677esac
4678
Steve Kondik79165c32015-11-09 19:43:00 -08004679 $ac_path_EGREP_found && break 3
4680 done
Steve Kondik2111ad72013-07-07 12:07:44 -07004681 done
Steve Kondik79165c32015-11-09 19:43:00 -08004682 done
Steve Kondik2111ad72013-07-07 12:07:44 -07004683IFS=$as_save_IFS
Steve Kondik79165c32015-11-09 19:43:00 -08004684 if test -z "$ac_cv_path_EGREP"; then
4685 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686 fi
Steve Kondik2111ad72013-07-07 12:07:44 -07004687else
4688 ac_cv_path_EGREP=$EGREP
4689fi
4690
Steve Kondik79165c32015-11-09 19:43:00 -08004691 fi
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4694$as_echo "$ac_cv_path_EGREP" >&6; }
4695 EGREP="$ac_cv_path_EGREP"
4696
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4699$as_echo_n "checking for ANSI C header files... " >&6; }
4700if ${ac_cv_header_stdc+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h. */
4705#include <stdlib.h>
4706#include <stdarg.h>
4707#include <string.h>
4708#include <float.h>
4709
4710int
4711main ()
4712{
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
4718if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_header_stdc=yes
4720else
4721 ac_cv_header_stdc=no
4722fi
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724
4725if test $ac_cv_header_stdc = yes; then
4726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h. */
4729#include <string.h>
4730
4731_ACEOF
4732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "memchr" >/dev/null 2>&1; then :
4734
4735else
4736 ac_cv_header_stdc=no
4737fi
4738rm -f conftest*
4739
4740fi
4741
4742if test $ac_cv_header_stdc = yes; then
4743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746#include <stdlib.h>
4747
4748_ACEOF
4749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750 $EGREP "free" >/dev/null 2>&1; then :
4751
4752else
4753 ac_cv_header_stdc=no
4754fi
4755rm -f conftest*
4756
4757fi
4758
4759if test $ac_cv_header_stdc = yes; then
4760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4761 if test "$cross_compiling" = yes; then :
4762 :
4763else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766#include <ctype.h>
4767#include <stdlib.h>
4768#if ((' ' & 0x0FF) == 0x020)
4769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4770# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4771#else
4772# define ISLOWER(c) \
4773 (('a' <= (c) && (c) <= 'i') \
4774 || ('j' <= (c) && (c) <= 'r') \
4775 || ('s' <= (c) && (c) <= 'z'))
4776# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4777#endif
4778
4779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4780int
4781main ()
4782{
4783 int i;
4784 for (i = 0; i < 256; i++)
4785 if (XOR (islower (i), ISLOWER (i))
4786 || toupper (i) != TOUPPER (i))
4787 return 2;
4788 return 0;
4789}
4790_ACEOF
4791if ac_fn_c_try_run "$LINENO"; then :
4792
4793else
4794 ac_cv_header_stdc=no
4795fi
4796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4797 conftest.$ac_objext conftest.beam conftest.$ac_ext
4798fi
4799
4800fi
4801fi
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4803$as_echo "$ac_cv_header_stdc" >&6; }
4804if test $ac_cv_header_stdc = yes; then
4805
4806$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4807
4808fi
4809
4810# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4811for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4812 inttypes.h stdint.h unistd.h
4813do :
4814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4816"
4817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4818 cat >>confdefs.h <<_ACEOF
4819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820_ACEOF
4821
4822fi
4823
4824done
4825
4826
4827
4828 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4829if test "x$ac_cv_header_minix_config_h" = xyes; then :
4830 MINIX=yes
4831else
4832 MINIX=
4833fi
4834
4835
4836 if test "$MINIX" = yes; then
4837
4838$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4839
4840
4841$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4842
4843
4844$as_echo "#define _MINIX 1" >>confdefs.h
4845
4846 fi
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4850$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4851if ${ac_cv_safe_to_define___extensions__+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853else
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856
4857# define __EXTENSIONS__ 1
4858 $ac_includes_default
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_safe_to_define___extensions__=yes
4869else
4870 ac_cv_safe_to_define___extensions__=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4875$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4876 test $ac_cv_safe_to_define___extensions__ = yes &&
4877 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4878
4879 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4880
4881 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4882
4883 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4884
4885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4886
4887
4888
4889
4890# Programs
4891ac_ext=c
4892ac_cpp='$CPP $CPPFLAGS'
4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896if test -n "$ac_tool_prefix"; then
4897 for ac_prog in gcc cc
4898 do
4899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902$as_echo_n "checking for $ac_word... " >&6; }
4903if ${ac_cv_prog_CC+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 if test -n "$CC"; then
4907 ac_cv_prog_CC="$CC" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921 done
4922IFS=$as_save_IFS
4923
4924fi
4925fi
4926CC=$ac_cv_prog_CC
4927if test -n "$CC"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4929$as_echo "$CC" >&6; }
4930else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932$as_echo "no" >&6; }
4933fi
4934
4935
4936 test -n "$CC" && break
4937 done
4938fi
4939if test -z "$CC"; then
4940 ac_ct_CC=$CC
4941 for ac_prog in gcc cc
4942do
4943 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944set dummy $ac_prog; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_ac_ct_CC+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949else
4950 if test -n "$ac_ct_CC"; then
4951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_ac_ct_CC="$ac_prog"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4963 fi
4964done
4965 done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_CC=$ac_cv_prog_ac_ct_CC
4971if test -n "$ac_ct_CC"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4973$as_echo "$ac_ct_CC" >&6; }
4974else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980 test -n "$ac_ct_CC" && break
4981done
4982
4983 if test "x$ac_ct_CC" = x; then
4984 CC=""
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992 CC=$ac_ct_CC
4993 fi
4994fi
4995
4996
4997test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4999as_fn_error $? "no acceptable C compiler found in \$PATH
5000See \`config.log' for more details" "$LINENO" 5; }
5001
5002# Provide some information about the compiler.
5003$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5004set X $ac_compile
5005ac_compiler=$2
5006for ac_option in --version -v -V -qversion; do
5007 { { ac_try="$ac_compiler $ac_option >&5"
5008case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011esac
5012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5013$as_echo "$ac_try_echo"; } >&5
5014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5015 ac_status=$?
5016 if test -s conftest.err; then
5017 sed '10a\
5018... rest of stderr output deleted ...
5019 10q' conftest.err >conftest.er1
5020 cat conftest.er1 >&5
5021 fi
5022 rm -f conftest.er1 conftest.err
5023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024 test $ac_status = 0; }
5025done
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5028$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5029if ${ac_cv_c_compiler_gnu+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h. */
5034
5035int
5036main ()
5037{
5038#ifndef __GNUC__
5039 choke me
5040#endif
5041
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_compiler_gnu=yes
5048else
5049 ac_compiler_gnu=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052ac_cv_c_compiler_gnu=$ac_compiler_gnu
5053
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5056$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5057if test $ac_compiler_gnu = yes; then
5058 GCC=yes
5059else
5060 GCC=
5061fi
5062ac_test_CFLAGS=${CFLAGS+set}
5063ac_save_CFLAGS=$CFLAGS
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5065$as_echo_n "checking whether $CC accepts -g... " >&6; }
5066if ${ac_cv_prog_cc_g+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068else
5069 ac_save_c_werror_flag=$ac_c_werror_flag
5070 ac_c_werror_flag=yes
5071 ac_cv_prog_cc_g=no
5072 CFLAGS="-g"
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h. */
5075
5076int
5077main ()
5078{
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 ac_cv_prog_cc_g=yes
5086else
5087 CFLAGS=""
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099if ac_fn_c_try_compile "$LINENO"; then :
5100
5101else
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5103 CFLAGS="-g"
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h. */
5106
5107int
5108main ()
5109{
5110
5111 ;
5112 return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116 ac_cv_prog_cc_g=yes
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_c_werror_flag=$ac_save_c_werror_flag
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5126$as_echo "$ac_cv_prog_cc_g" >&6; }
5127if test "$ac_test_CFLAGS" = set; then
5128 CFLAGS=$ac_save_CFLAGS
5129elif test $ac_cv_prog_cc_g = yes; then
5130 if test "$GCC" = yes; then
5131 CFLAGS="-g -O2"
5132 else
5133 CFLAGS="-g"
5134 fi
5135else
5136 if test "$GCC" = yes; then
5137 CFLAGS="-O2"
5138 else
5139 CFLAGS=
5140 fi
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5144if ${ac_cv_prog_cc_c89+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 ac_cv_prog_cc_c89=no
5148ac_save_CC=$CC
5149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h. */
5151#include <stdarg.h>
5152#include <stdio.h>
5153struct stat;
5154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5155struct buf { int x; };
5156FILE * (*rcsopen) (struct buf *, struct stat *, int);
5157static char *e (p, i)
5158 char **p;
5159 int i;
5160{
5161 return p[i];
5162}
5163static char *f (char * (*g) (char **, int), char **p, ...)
5164{
5165 char *s;
5166 va_list v;
5167 va_start (v,p);
5168 s = g (p, va_arg (v,int));
5169 va_end (v);
5170 return s;
5171}
5172
5173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5174 function prototypes and stuff, but not '\xHH' hex character constants.
5175 These don't provoke an error unfortunately, instead are silently treated
5176 as 'x'. The following induces an error, until -std is added to get
5177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5178 array size at least. It's necessary to write '\x00'==0 to get something
5179 that's true only with -std. */
5180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5181
5182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5183 inside strings and character constants. */
5184#define FOO(x) 'x'
5185int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5186
5187int test (int i, double x);
5188struct s1 {int (*f) (int a);};
5189struct s2 {int (*f) (double a);};
5190int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5191int argc;
5192char **argv;
5193int
5194main ()
5195{
5196return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5197 ;
5198 return 0;
5199}
5200_ACEOF
5201for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5203do
5204 CC="$ac_save_CC $ac_arg"
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 ac_cv_prog_cc_c89=$ac_arg
5207fi
5208rm -f core conftest.err conftest.$ac_objext
5209 test "x$ac_cv_prog_cc_c89" != "xno" && break
5210done
5211rm -f conftest.$ac_ext
5212CC=$ac_save_CC
5213
5214fi
5215# AC_CACHE_VAL
5216case "x$ac_cv_prog_cc_c89" in
5217 x)
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5219$as_echo "none needed" >&6; } ;;
5220 xno)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5222$as_echo "unsupported" >&6; } ;;
5223 *)
5224 CC="$CC $ac_cv_prog_cc_c89"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5226$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5227esac
5228if test "x$ac_cv_prog_cc_c89" != xno; then :
5229
5230fi
5231
5232ac_ext=c
5233ac_cpp='$CPP $CPPFLAGS'
5234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237
5238ac_ext=c
5239ac_cpp='$CPP $CPPFLAGS'
5240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5244$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5245if ${am_cv_prog_cc_c_o+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h. */
5250
5251int
5252main ()
5253{
5254
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259 # Make sure it works both with $CC and with simple cc.
5260 # Following AC_PROG_CC_C_O, we do the test twice because some
5261 # compilers refuse to overwrite an existing .o file with -o,
5262 # though they will create one.
5263 am_cv_prog_cc_c_o=yes
5264 for am_i in 1 2; do
5265 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5266 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } \
5270 && test -f conftest2.$ac_objext; then
5271 : OK
5272 else
5273 am_cv_prog_cc_c_o=no
5274 break
5275 fi
5276 done
5277 rm -f core conftest*
5278 unset am_i
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5281$as_echo "$am_cv_prog_cc_c_o" >&6; }
5282if test "$am_cv_prog_cc_c_o" != yes; then
5283 # Losing compiler, so override with the script.
5284 # FIXME: It is wrong to rewrite CC.
5285 # But if we don't then we get into trouble of one sort or another.
5286 # A longer-term fix would be to have automake use am__CC in this case,
5287 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5288 CC="$am_aux_dir/compile $CC"
5289fi
5290ac_ext=c
5291ac_cpp='$CPP $CPPFLAGS'
5292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295
5296
5297depcc="$CC" am_compiler_list=
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5300$as_echo_n "checking dependency style of $depcc... " >&6; }
5301if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5305 # We make a subdir and do the tests there. Otherwise we can end up
5306 # making bogus files that we don't know about and never remove. For
5307 # instance it was reported that on HP-UX the gcc test will end up
5308 # making a dummy file named 'D' -- because '-MD' means "put the output
5309 # in D".
5310 rm -rf conftest.dir
5311 mkdir conftest.dir
5312 # Copy depcomp to subdir because otherwise we won't find it if we're
5313 # using a relative directory.
5314 cp "$am_depcomp" conftest.dir
5315 cd conftest.dir
5316 # We will build objects and dependencies in a subdirectory because
5317 # it helps to detect inapplicable dependency modes. For instance
5318 # both Tru64's cc and ICC support -MD to output dependencies as a
5319 # side effect of compilation, but ICC will put the dependencies in
5320 # the current directory while Tru64 will put them in the object
5321 # directory.
5322 mkdir sub
5323
5324 am_cv_CC_dependencies_compiler_type=none
5325 if test "$am_compiler_list" = ""; then
5326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5327 fi
5328 am__universal=false
5329 case " $depcc " in #(
5330 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5331 esac
5332
5333 for depmode in $am_compiler_list; do
5334 # Setup a source with many dependencies, because some compilers
5335 # like to wrap large dependency lists on column 80 (with \), and
5336 # we should not choose a depcomp mode which is confused by this.
5337 #
5338 # We need to recreate these files for each test, as the compiler may
5339 # overwrite some of them when testing with obscure command lines.
5340 # This happens at least with the AIX C compiler.
5341 : > sub/conftest.c
5342 for i in 1 2 3 4 5 6; do
5343 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5344 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5345 # Solaris 10 /bin/sh.
5346 echo '/* dummy */' > sub/conftst$i.h
5347 done
5348 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5349
5350 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5351 # mode. It turns out that the SunPro C++ compiler does not properly
5352 # handle '-M -o', and we need to detect this. Also, some Intel
5353 # versions had trouble with output in subdirs.
5354 am__obj=sub/conftest.${OBJEXT-o}
5355 am__minus_obj="-o $am__obj"
5356 case $depmode in
5357 gcc)
5358 # This depmode causes a compiler race in universal mode.
5359 test "$am__universal" = false || continue
5360 ;;
5361 nosideeffect)
5362 # After this tag, mechanisms are not by side-effect, so they'll
5363 # only be used when explicitly requested.
5364 if test "x$enable_dependency_tracking" = xyes; then
5365 continue
5366 else
5367 break
5368 fi
5369 ;;
5370 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5371 # This compiler won't grok '-c -o', but also, the minuso test has
5372 # not run yet. These depmodes are late enough in the game, and
5373 # so weak that their functioning should not be impacted.
5374 am__obj=conftest.${OBJEXT-o}
5375 am__minus_obj=
5376 ;;
5377 none) break ;;
5378 esac
5379 if depmode=$depmode \
5380 source=sub/conftest.c object=$am__obj \
5381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5382 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5383 >/dev/null 2>conftest.err &&
5384 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5385 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5386 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5387 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5388 # icc doesn't choke on unknown options, it will just issue warnings
5389 # or remarks (even with -Werror). So we grep stderr for any message
5390 # that says an option was ignored or not supported.
5391 # When given -MP, icc 7.0 and 7.1 complain thusly:
5392 # icc: Command line warning: ignoring option '-M'; no argument required
5393 # The diagnosis changed in icc 8.0:
5394 # icc: Command line remark: option '-MP' not supported
5395 if (grep 'ignoring option' conftest.err ||
5396 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5397 am_cv_CC_dependencies_compiler_type=$depmode
5398 break
5399 fi
5400 fi
5401 done
5402
5403 cd ..
5404 rm -rf conftest.dir
5405else
5406 am_cv_CC_dependencies_compiler_type=none
5407fi
5408
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5411$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5412CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5413
5414 if
5415 test "x$enable_dependency_tracking" != xno \
5416 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5417 am__fastdepCC_TRUE=
5418 am__fastdepCC_FALSE='#'
5419else
5420 am__fastdepCC_TRUE='#'
5421 am__fastdepCC_FALSE=
5422fi
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5426$as_echo_n "checking whether ln -s works... " >&6; }
5427LN_S=$as_ln_s
5428if test "$LN_S" = "ln -s"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5430$as_echo "yes" >&6; }
5431else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5433$as_echo "no, using $LN_S" >&6; }
5434fi
5435
5436
5437
5438case `pwd` in
5439 *\ * | *\ *)
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5441$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5442esac
5443
5444
5445
5446macro_version='2.4.2'
5447macro_revision='1.3337'
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461ltmain="$ac_aux_dir/ltmain.sh"
5462
5463# Backslashify metacharacters that are still active within
5464# double-quoted strings.
5465sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5466
5467# Same as above, but do not quote variable references.
5468double_quote_subst='s/\(["`\\]\)/\\\1/g'
5469
5470# Sed substitution to delay expansion of an escaped shell variable in a
5471# double_quote_subst'ed string.
5472delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5473
5474# Sed substitution to delay expansion of an escaped single quote.
5475delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5476
5477# Sed substitution to avoid accidental globbing in evaled expressions
5478no_glob_subst='s/\*/\\\*/g'
5479
5480ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5481ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5482ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5485$as_echo_n "checking how to print strings... " >&6; }
5486# Test print first, because it will be a builtin if present.
5487if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5488 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5489 ECHO='print -r --'
5490elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5491 ECHO='printf %s\n'
5492else
5493 # Use this function as a fallback that always works.
5494 func_fallback_echo ()
5495 {
5496 eval 'cat <<_LTECHO_EOF
5497$1
5498_LTECHO_EOF'
5499 }
5500 ECHO='func_fallback_echo'
5501fi
5502
5503# func_echo_all arg...
5504# Invoke $ECHO with all args, space-separated.
5505func_echo_all ()
5506{
5507 $ECHO ""
5508}
5509
5510case "$ECHO" in
5511 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5512$as_echo "printf" >&6; } ;;
5513 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5514$as_echo "print -r" >&6; } ;;
5515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5516$as_echo "cat" >&6; } ;;
5517esac
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5533$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5534if ${ac_cv_path_SED+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5538 for ac_i in 1 2 3 4 5 6 7; do
5539 ac_script="$ac_script$as_nl$ac_script"
5540 done
5541 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5542 { ac_script=; unset ac_script;}
5543 if test -z "$SED"; then
5544 ac_path_SED_found=false
5545 # Loop through the user's path and test for each of PROGNAME-LIST
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_prog in sed gsed; do
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5554 as_fn_executable_p "$ac_path_SED" || continue
5555# Check for GNU ac_path_SED and select it if it is found.
5556 # Check for GNU $ac_path_SED
5557case `"$ac_path_SED" --version 2>&1` in
5558*GNU*)
5559 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5560*)
5561 ac_count=0
5562 $as_echo_n 0123456789 >"conftest.in"
5563 while :
5564 do
5565 cat "conftest.in" "conftest.in" >"conftest.tmp"
5566 mv "conftest.tmp" "conftest.in"
5567 cp "conftest.in" "conftest.nl"
5568 $as_echo '' >> "conftest.nl"
5569 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5571 as_fn_arith $ac_count + 1 && ac_count=$as_val
5572 if test $ac_count -gt ${ac_path_SED_max-0}; then
5573 # Best one so far, save it but keep looking for a better one
5574 ac_cv_path_SED="$ac_path_SED"
5575 ac_path_SED_max=$ac_count
5576 fi
5577 # 10*(2^10) chars as input seems more than enough
5578 test $ac_count -gt 10 && break
5579 done
5580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5581esac
5582
5583 $ac_path_SED_found && break 3
5584 done
5585 done
5586 done
5587IFS=$as_save_IFS
5588 if test -z "$ac_cv_path_SED"; then
5589 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5590 fi
5591else
5592 ac_cv_path_SED=$SED
5593fi
5594
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5597$as_echo "$ac_cv_path_SED" >&6; }
5598 SED="$ac_cv_path_SED"
5599 rm -f conftest.sed
5600
5601test -z "$SED" && SED=sed
5602Xsed="$SED -e 1s/^X//"
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5615$as_echo_n "checking for fgrep... " >&6; }
5616if ${ac_cv_path_FGREP+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618else
5619 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5620 then ac_cv_path_FGREP="$GREP -F"
5621 else
5622 if test -z "$FGREP"; then
5623 ac_path_FGREP_found=false
5624 # Loop through the user's path and test for each of PROGNAME-LIST
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_prog in fgrep; do
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5633 as_fn_executable_p "$ac_path_FGREP" || continue
5634# Check for GNU ac_path_FGREP and select it if it is found.
5635 # Check for GNU $ac_path_FGREP
5636case `"$ac_path_FGREP" --version 2>&1` in
5637*GNU*)
5638 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5639*)
5640 ac_count=0
5641 $as_echo_n 0123456789 >"conftest.in"
5642 while :
5643 do
5644 cat "conftest.in" "conftest.in" >"conftest.tmp"
5645 mv "conftest.tmp" "conftest.in"
5646 cp "conftest.in" "conftest.nl"
5647 $as_echo 'FGREP' >> "conftest.nl"
5648 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5650 as_fn_arith $ac_count + 1 && ac_count=$as_val
5651 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5652 # Best one so far, save it but keep looking for a better one
5653 ac_cv_path_FGREP="$ac_path_FGREP"
5654 ac_path_FGREP_max=$ac_count
5655 fi
5656 # 10*(2^10) chars as input seems more than enough
5657 test $ac_count -gt 10 && break
5658 done
5659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5660esac
5661
5662 $ac_path_FGREP_found && break 3
5663 done
5664 done
5665 done
5666IFS=$as_save_IFS
5667 if test -z "$ac_cv_path_FGREP"; then
5668 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5669 fi
5670else
5671 ac_cv_path_FGREP=$FGREP
5672fi
Steve Kondik2111ad72013-07-07 12:07:44 -07005673
5674 fi
5675fi
Steve Kondik79165c32015-11-09 19:43:00 -08005676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5677$as_echo "$ac_cv_path_FGREP" >&6; }
5678 FGREP="$ac_cv_path_FGREP"
5679
5680
5681test -z "$GREP" && GREP=grep
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
Steve Kondik2111ad72013-07-07 12:07:44 -07005698
5699
5700
5701# Check whether --with-gnu-ld was given.
Steve Kondik79165c32015-11-09 19:43:00 -08005702if test "${with_gnu_ld+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -07005703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5704else
5705 with_gnu_ld=no
5706fi
5707
5708ac_prog=ld
5709if test "$GCC" = yes; then
5710 # Check if gcc -print-prog-name=ld gives a path.
Steve Kondik79165c32015-11-09 19:43:00 -08005711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5712$as_echo_n "checking for ld used by $CC... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005713 case $host in
5714 *-*-mingw*)
5715 # gcc leaves a trailing carriage return which upsets mingw
5716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5717 *)
5718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5719 esac
5720 case $ac_prog in
5721 # Accept absolute paths.
5722 [\\/]* | ?:[\\/]*)
5723 re_direlt='/[^/][^/]*/\.\./'
5724 # Canonicalize the pathname of ld
Steve Kondik79165c32015-11-09 19:43:00 -08005725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Steve Kondik2111ad72013-07-07 12:07:44 -07005728 done
5729 test -z "$LD" && LD="$ac_prog"
5730 ;;
5731 "")
5732 # If it fails, then pretend we aren't using GCC.
5733 ac_prog=ld
5734 ;;
5735 *)
5736 # If it is relative, then search for the first ld in PATH.
5737 with_gnu_ld=unknown
5738 ;;
5739 esac
5740elif test "$with_gnu_ld" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -08005741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5742$as_echo_n "checking for GNU ld... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005743else
Steve Kondik79165c32015-11-09 19:43:00 -08005744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5745$as_echo_n "checking for non-GNU ld... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005746fi
Steve Kondik79165c32015-11-09 19:43:00 -08005747if ${lt_cv_path_LD+:} false; then :
5748 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07005749else
5750 if test -z "$LD"; then
5751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5752 for ac_dir in $PATH; do
5753 IFS="$lt_save_ifs"
5754 test -z "$ac_dir" && ac_dir=.
5755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5756 lt_cv_path_LD="$ac_dir/$ac_prog"
5757 # Check to see if the program is GNU ld. I'd rather use --version,
5758 # but apparently some variants of GNU ld only accept -v.
5759 # Break only if it was the GNU/non-GNU ld that we prefer.
5760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5761 *GNU* | *'with BFD'*)
5762 test "$with_gnu_ld" != no && break
5763 ;;
5764 *)
5765 test "$with_gnu_ld" != yes && break
5766 ;;
5767 esac
5768 fi
5769 done
5770 IFS="$lt_save_ifs"
5771else
5772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5773fi
5774fi
5775
5776LD="$lt_cv_path_LD"
5777if test -n "$LD"; then
Steve Kondik79165c32015-11-09 19:43:00 -08005778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5779$as_echo "$LD" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005780else
Steve Kondik79165c32015-11-09 19:43:00 -08005781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005783fi
Steve Kondik79165c32015-11-09 19:43:00 -08005784test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5786$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5787if ${lt_cv_prog_gnu_ld+:} false; then :
5788 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07005789else
5790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5791case `$LD -v 2>&1 </dev/null` in
5792*GNU* | *'with BFD'*)
5793 lt_cv_prog_gnu_ld=yes
5794 ;;
5795*)
5796 lt_cv_prog_gnu_ld=no
5797 ;;
5798esac
5799fi
Steve Kondik79165c32015-11-09 19:43:00 -08005800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5801$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07005802with_gnu_ld=$lt_cv_prog_gnu_ld
5803
5804
Steve Kondik2111ad72013-07-07 12:07:44 -07005805
Steve Kondik79165c32015-11-09 19:43:00 -08005806
5807
5808
5809
5810
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5813$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5814if ${lt_cv_path_NM+:} false; then :
5815 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07005816else
5817 if test -n "$NM"; then
5818 # Let the user override the test.
5819 lt_cv_path_NM="$NM"
5820else
5821 lt_nm_to_check="${ac_tool_prefix}nm"
5822 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5823 lt_nm_to_check="$lt_nm_to_check nm"
5824 fi
5825 for lt_tmp_nm in $lt_nm_to_check; do
5826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5827 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5828 IFS="$lt_save_ifs"
5829 test -z "$ac_dir" && ac_dir=.
5830 tmp_nm="$ac_dir/$lt_tmp_nm"
5831 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5832 # Check to see if the nm accepts a BSD-compat flag.
5833 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5834 # nm: unknown option "B" ignored
5835 # Tru64's nm complains that /dev/null is an invalid object file
5836 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5837 */dev/null* | *'Invalid file or object type'*)
5838 lt_cv_path_NM="$tmp_nm -B"
5839 break
5840 ;;
5841 *)
5842 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5843 */dev/null*)
5844 lt_cv_path_NM="$tmp_nm -p"
5845 break
5846 ;;
5847 *)
5848 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5849 continue # so that we can try to find one that supports BSD flags
5850 ;;
5851 esac
5852 ;;
5853 esac
5854 fi
5855 done
5856 IFS="$lt_save_ifs"
5857 done
Steve Kondik79165c32015-11-09 19:43:00 -08005858 : ${lt_cv_path_NM=no}
Steve Kondik2111ad72013-07-07 12:07:44 -07005859fi
5860fi
Steve Kondik79165c32015-11-09 19:43:00 -08005861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5862$as_echo "$lt_cv_path_NM" >&6; }
5863if test "$lt_cv_path_NM" != "no"; then
5864 NM="$lt_cv_path_NM"
5865else
5866 # Didn't find any BSD compatible name lister, look for dumpbin.
5867 if test -n "$DUMPBIN"; then :
5868 # Let the user override the test.
5869 else
5870 if test -n "$ac_tool_prefix"; then
5871 for ac_prog in dumpbin "link -dump"
5872 do
5873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5874set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
5877if ${ac_cv_prog_DUMPBIN+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$DUMPBIN"; then
5881 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
Steve Kondik2111ad72013-07-07 12:07:44 -07005897
Steve Kondik79165c32015-11-09 19:43:00 -08005898fi
5899fi
5900DUMPBIN=$ac_cv_prog_DUMPBIN
5901if test -n "$DUMPBIN"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5903$as_echo "$DUMPBIN" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910 test -n "$DUMPBIN" && break
5911 done
5912fi
5913if test -z "$DUMPBIN"; then
5914 ac_ct_DUMPBIN=$DUMPBIN
5915 for ac_prog in dumpbin "link -dump"
5916do
5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
5918set dummy $ac_prog; ac_word=$2
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920$as_echo_n "checking for $ac_word... " >&6; }
5921if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923else
5924 if test -n "$ac_ct_DUMPBIN"; then
5925 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939 done
5940IFS=$as_save_IFS
5941
5942fi
5943fi
5944ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5945if test -n "$ac_ct_DUMPBIN"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5947$as_echo "$ac_ct_DUMPBIN" >&6; }
5948else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950$as_echo "no" >&6; }
5951fi
5952
5953
5954 test -n "$ac_ct_DUMPBIN" && break
5955done
5956
5957 if test "x$ac_ct_DUMPBIN" = x; then
5958 DUMPBIN=":"
5959 else
5960 case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966 DUMPBIN=$ac_ct_DUMPBIN
5967 fi
5968fi
5969
5970 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5971 *COFF*)
5972 DUMPBIN="$DUMPBIN -symbols"
5973 ;;
5974 *)
5975 DUMPBIN=:
5976 ;;
5977 esac
5978 fi
5979
5980 if test "$DUMPBIN" != ":"; then
5981 NM="$DUMPBIN"
5982 fi
5983fi
5984test -z "$NM" && NM=nm
5985
5986
5987
5988
5989
5990
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5992$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5993if ${lt_cv_nm_interface+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995else
5996 lt_cv_nm_interface="BSD nm"
5997 echo "int some_variable = 0;" > conftest.$ac_ext
5998 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5999 (eval "$ac_compile" 2>conftest.err)
6000 cat conftest.err >&5
6001 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6002 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6003 cat conftest.err >&5
6004 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6005 cat conftest.out >&5
6006 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6007 lt_cv_nm_interface="MS dumpbin"
6008 fi
6009 rm -f conftest*
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6012$as_echo "$lt_cv_nm_interface" >&6; }
6013
6014# find the maximum length of command line arguments
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6016$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6017if ${lt_cv_sys_max_cmd_len+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019else
6020 i=0
6021 teststring="ABCD"
6022
6023 case $build_os in
6024 msdosdjgpp*)
6025 # On DJGPP, this test can blow up pretty badly due to problems in libc
6026 # (any single argument exceeding 2000 bytes causes a buffer overrun
6027 # during glob expansion). Even if it were fixed, the result of this
6028 # check would be larger than it should be.
6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6030 ;;
6031
6032 gnu*)
6033 # Under GNU Hurd, this test is not required because there is
6034 # no limit to the length of command line arguments.
6035 # Libtool will interpret -1 as no limit whatsoever
6036 lt_cv_sys_max_cmd_len=-1;
6037 ;;
6038
6039 cygwin* | mingw* | cegcc*)
6040 # On Win9x/ME, this test blows up -- it succeeds, but takes
6041 # about 5 minutes as the teststring grows exponentially.
6042 # Worse, since 9x/ME are not pre-emptively multitasking,
6043 # you end up with a "frozen" computer, even though with patience
6044 # the test eventually succeeds (with a max line length of 256k).
6045 # Instead, let's just punt: use the minimum linelength reported by
6046 # all of the supported platforms: 8192 (on NT/2K/XP).
6047 lt_cv_sys_max_cmd_len=8192;
6048 ;;
6049
6050 mint*)
6051 # On MiNT this can take a long time and run out of memory.
6052 lt_cv_sys_max_cmd_len=8192;
6053 ;;
6054
6055 amigaos*)
6056 # On AmigaOS with pdksh, this test takes hours, literally.
6057 # So we just punt and use a minimum line length of 8192.
6058 lt_cv_sys_max_cmd_len=8192;
6059 ;;
6060
6061 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062 # This has been around since 386BSD, at least. Likely further.
6063 if test -x /sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065 elif test -x /usr/sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067 else
6068 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6069 fi
6070 # And add a safety zone
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 ;;
6074
6075 interix*)
6076 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077 lt_cv_sys_max_cmd_len=196608
6078 ;;
6079
6080 os2*)
6081 # The test takes a long time on OS/2.
6082 lt_cv_sys_max_cmd_len=8192
6083 ;;
6084
6085 osf*)
6086 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6087 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6088 # nice to cause kernel panics so lets avoid the loop below.
6089 # First set a reasonable default.
6090 lt_cv_sys_max_cmd_len=16384
6091 #
6092 if test -x /sbin/sysconfig; then
6093 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6094 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6095 esac
6096 fi
6097 ;;
6098 sco3.2v5*)
6099 lt_cv_sys_max_cmd_len=102400
6100 ;;
6101 sysv5* | sco5v6* | sysv4.2uw2*)
6102 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6103 if test -n "$kargmax"; then
6104 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6105 else
6106 lt_cv_sys_max_cmd_len=32768
6107 fi
6108 ;;
6109 *)
6110 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6111 if test -n "$lt_cv_sys_max_cmd_len"; then
6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6114 else
6115 # Make teststring a little bigger before we do anything with it.
6116 # a 1K string should be a reasonable start.
6117 for i in 1 2 3 4 5 6 7 8 ; do
6118 teststring=$teststring$teststring
6119 done
6120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6121 # If test is not a shell built-in, we'll probably end up computing a
6122 # maximum length that is only half of the actual maximum length, but
6123 # we can't tell.
6124 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6125 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6126 test $i != 17 # 1/2 MB should be enough
6127 do
6128 i=`expr $i + 1`
6129 teststring=$teststring$teststring
6130 done
6131 # Only check the string length outside the loop.
6132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6133 teststring=
6134 # Add a significant safety factor because C++ compilers can tack on
6135 # massive amounts of additional arguments before passing them to the
6136 # linker. It appears as though 1/2 is a usable value.
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6138 fi
6139 ;;
6140 esac
6141
6142fi
6143
6144if test -n $lt_cv_sys_max_cmd_len ; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6146$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6149$as_echo "none" >&6; }
6150fi
6151max_cmd_len=$lt_cv_sys_max_cmd_len
6152
6153
6154
6155
6156
6157
6158: ${CP="cp -f"}
6159: ${MV="mv -f"}
6160: ${RM="rm -f"}
6161
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6163$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6164# Try some XSI features
6165xsi_shell=no
6166( _lt_dummy="a/b/c"
6167 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6168 = c,a/b,b/c, \
6169 && eval 'test $(( 1 + 1 )) -eq 2 \
6170 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6171 && xsi_shell=yes
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6173$as_echo "$xsi_shell" >&6; }
6174
6175
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6177$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6178lt_shell_append=no
6179( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6180 >/dev/null 2>&1 \
6181 && lt_shell_append=yes
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6183$as_echo "$lt_shell_append" >&6; }
6184
6185
6186if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6187 lt_unset=unset
6188else
6189 lt_unset=false
6190fi
6191
6192
6193
6194
6195
6196# test EBCDIC or ASCII
6197case `echo X|tr X '\101'` in
6198 A) # ASCII based system
6199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6200 lt_SP2NL='tr \040 \012'
6201 lt_NL2SP='tr \015\012 \040\040'
6202 ;;
6203 *) # EBCDIC based system
6204 lt_SP2NL='tr \100 \n'
6205 lt_NL2SP='tr \r\n \100\100'
6206 ;;
6207esac
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6218$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6219if ${lt_cv_to_host_file_cmd+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221else
6222 case $host in
6223 *-*-mingw* )
6224 case $build in
6225 *-*-mingw* ) # actually msys
6226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6227 ;;
6228 *-*-cygwin* )
6229 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6230 ;;
6231 * ) # otherwise, assume *nix
6232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6233 ;;
6234 esac
6235 ;;
6236 *-*-cygwin* )
6237 case $build in
6238 *-*-mingw* ) # actually msys
6239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6240 ;;
6241 *-*-cygwin* )
6242 lt_cv_to_host_file_cmd=func_convert_file_noop
6243 ;;
6244 * ) # otherwise, assume *nix
6245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6246 ;;
6247 esac
6248 ;;
6249 * ) # unhandled hosts (and "normal" native builds)
6250 lt_cv_to_host_file_cmd=func_convert_file_noop
6251 ;;
6252esac
6253
6254fi
6255
6256to_host_file_cmd=$lt_cv_to_host_file_cmd
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6258$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6259
6260
6261
6262
6263
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6265$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6266if ${lt_cv_to_tool_file_cmd+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268else
6269 #assume ordinary cross tools, or native build.
6270lt_cv_to_tool_file_cmd=func_convert_file_noop
6271case $host in
6272 *-*-mingw* )
6273 case $build in
6274 *-*-mingw* ) # actually msys
6275 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6276 ;;
6277 esac
6278 ;;
6279esac
6280
6281fi
6282
6283to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6285$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6286
6287
6288
6289
6290
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6292$as_echo_n "checking for $LD option to reload object files... " >&6; }
6293if ${lt_cv_ld_reload_flag+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295else
6296 lt_cv_ld_reload_flag='-r'
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6299$as_echo "$lt_cv_ld_reload_flag" >&6; }
6300reload_flag=$lt_cv_ld_reload_flag
6301case $reload_flag in
6302"" | " "*) ;;
6303*) reload_flag=" $reload_flag" ;;
6304esac
6305reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306case $host_os in
6307 cygwin* | mingw* | pw32* | cegcc*)
6308 if test "$GCC" != yes; then
6309 reload_cmds=false
6310 fi
6311 ;;
6312 darwin*)
6313 if test "$GCC" = yes; then
6314 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6315 else
6316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6317 fi
6318 ;;
6319esac
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6331set dummy ${ac_tool_prefix}objdump; ac_word=$2
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
6334if ${ac_cv_prog_OBJDUMP+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336else
6337 if test -n "$OBJDUMP"; then
6338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6339else
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351done
6352 done
6353IFS=$as_save_IFS
6354
6355fi
6356fi
6357OBJDUMP=$ac_cv_prog_OBJDUMP
6358if test -n "$OBJDUMP"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6360$as_echo "$OBJDUMP" >&6; }
6361else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; }
6364fi
6365
6366
6367fi
6368if test -z "$ac_cv_prog_OBJDUMP"; then
6369 ac_ct_OBJDUMP=$OBJDUMP
6370 # Extract the first word of "objdump", so it can be a program name with args.
6371set dummy objdump; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376else
6377 if test -n "$ac_ct_OBJDUMP"; then
6378 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392 done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6398if test -n "$ac_ct_OBJDUMP"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6400$as_echo "$ac_ct_OBJDUMP" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406 if test "x$ac_ct_OBJDUMP" = x; then
6407 OBJDUMP="false"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410yes:)
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413ac_tool_warned=yes ;;
6414esac
6415 OBJDUMP=$ac_ct_OBJDUMP
6416 fi
6417else
6418 OBJDUMP="$ac_cv_prog_OBJDUMP"
6419fi
6420
6421test -z "$OBJDUMP" && OBJDUMP=objdump
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6432$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6433if ${lt_cv_deplibs_check_method+:} false; then :
6434 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07006435else
6436 lt_cv_file_magic_cmd='$MAGIC_CMD'
6437lt_cv_file_magic_test_file=
6438lt_cv_deplibs_check_method='unknown'
6439# Need to set the preceding variable on all platforms that support
6440# interlibrary dependencies.
6441# 'none' -- dependencies not supported.
6442# `unknown' -- same as none, but documents that we really don't know.
6443# 'pass_all' -- all dependencies passed with no checks.
6444# 'test_compile' -- check by making test program.
6445# 'file_magic [[regex]]' -- check by looking for files in library path
6446# which responds to the $file_magic_cmd with a given extended regex.
6447# If you have `file' or equivalent on your system and you're not sure
6448# whether `pass_all' will *always* work, you probably want this one.
6449
6450case $host_os in
6451aix[4-9]*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455beos*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459bsdi[45]*)
6460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6461 lt_cv_file_magic_cmd='/usr/bin/file -L'
6462 lt_cv_file_magic_test_file=/shlib/libc.so
6463 ;;
6464
6465cygwin*)
6466 # func_win32_libid is a shell function defined in ltmain.sh
6467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6468 lt_cv_file_magic_cmd='func_win32_libid'
6469 ;;
6470
6471mingw* | pw32*)
6472 # Base MSYS/MinGW do not provide the 'file' command needed by
6473 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6474 # unless we find 'file', for example because we are cross-compiling.
Steve Kondik79165c32015-11-09 19:43:00 -08006475 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6476 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Steve Kondik2111ad72013-07-07 12:07:44 -07006477 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6478 lt_cv_file_magic_cmd='func_win32_libid'
6479 else
Steve Kondik79165c32015-11-09 19:43:00 -08006480 # Keep this pattern in sync with the one in func_win32_libid.
6481 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Steve Kondik2111ad72013-07-07 12:07:44 -07006482 lt_cv_file_magic_cmd='$OBJDUMP -f'
6483 fi
6484 ;;
6485
Steve Kondik79165c32015-11-09 19:43:00 -08006486cegcc*)
6487 # use the weaker test based on 'objdump'. See mingw*.
6488 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6489 lt_cv_file_magic_cmd='$OBJDUMP -f'
6490 ;;
6491
Steve Kondik2111ad72013-07-07 12:07:44 -07006492darwin* | rhapsody*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496freebsd* | dragonfly*)
Steve Kondik79165c32015-11-09 19:43:00 -08006497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07006498 case $host_cpu in
6499 i*86 )
6500 # Not sure whether the presence of OpenBSD here was a mistake.
6501 # Let's accept both of them until this is cleared up.
6502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6503 lt_cv_file_magic_cmd=/usr/bin/file
6504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6505 ;;
6506 esac
6507 else
6508 lt_cv_deplibs_check_method=pass_all
6509 fi
6510 ;;
6511
6512gnu*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
Steve Kondik79165c32015-11-09 19:43:00 -08006516haiku*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
Steve Kondik2111ad72013-07-07 12:07:44 -07006520hpux10.20* | hpux11*)
6521 lt_cv_file_magic_cmd=/usr/bin/file
6522 case $host_cpu in
6523 ia64*)
6524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6526 ;;
6527 hppa*64*)
Steve Kondik79165c32015-11-09 19:43:00 -08006528 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]'
Steve Kondik2111ad72013-07-07 12:07:44 -07006529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6530 ;;
6531 *)
Steve Kondik79165c32015-11-09 19:43:00 -08006532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Steve Kondik2111ad72013-07-07 12:07:44 -07006533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6534 ;;
6535 esac
6536 ;;
6537
6538interix[3-9]*)
6539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6541 ;;
6542
6543irix5* | irix6* | nonstopux*)
6544 case $LD in
6545 *-32|*"-32 ") libmagic=32-bit;;
6546 *-n32|*"-n32 ") libmagic=N32;;
6547 *-64|*"-64 ") libmagic=64-bit;;
6548 *) libmagic=never-match;;
6549 esac
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
Steve Kondik79165c32015-11-09 19:43:00 -08006553# This must be glibc/ELF.
6554linux* | k*bsd*-gnu | kopensolaris*-gnu)
Steve Kondik2111ad72013-07-07 12:07:44 -07006555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557
6558netbsd*)
Steve Kondik79165c32015-11-09 19:43:00 -08006559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07006560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6561 else
6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6563 fi
6564 ;;
6565
6566newos6*)
6567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6568 lt_cv_file_magic_cmd=/usr/bin/file
6569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6570 ;;
6571
Steve Kondik79165c32015-11-09 19:43:00 -08006572*nto* | *qnx*)
6573 lt_cv_deplibs_check_method=pass_all
Steve Kondik2111ad72013-07-07 12:07:44 -07006574 ;;
6575
6576openbsd*)
Steve Kondik79165c32015-11-09 19:43:00 -08006577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07006578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6579 else
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6581 fi
6582 ;;
6583
6584osf3* | osf4* | osf5*)
6585 lt_cv_deplibs_check_method=pass_all
6586 ;;
6587
6588rdos*)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591
6592solaris*)
6593 lt_cv_deplibs_check_method=pass_all
6594 ;;
6595
Steve Kondik79165c32015-11-09 19:43:00 -08006596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599
Steve Kondik2111ad72013-07-07 12:07:44 -07006600sysv4 | sysv4.3*)
6601 case $host_vendor in
6602 motorola)
6603 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]'
6604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6605 ;;
6606 ncr)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609 sequent)
6610 lt_cv_file_magic_cmd='/bin/file'
6611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6612 ;;
6613 sni)
6614 lt_cv_file_magic_cmd='/bin/file'
6615 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6616 lt_cv_file_magic_test_file=/lib/libc.so
6617 ;;
6618 siemens)
6619 lt_cv_deplibs_check_method=pass_all
6620 ;;
6621 pc)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624 esac
6625 ;;
6626
Steve Kondik79165c32015-11-09 19:43:00 -08006627tpf*)
Steve Kondik2111ad72013-07-07 12:07:44 -07006628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630esac
6631
6632fi
Steve Kondik79165c32015-11-09 19:43:00 -08006633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6634$as_echo "$lt_cv_deplibs_check_method" >&6; }
6635
6636file_magic_glob=
6637want_nocaseglob=no
6638if test "$build" = "$host"; then
6639 case $host_os in
6640 mingw* | pw32*)
6641 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6642 want_nocaseglob=yes
6643 else
6644 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6645 fi
6646 ;;
6647 esac
6648fi
6649
Steve Kondik2111ad72013-07-07 12:07:44 -07006650file_magic_cmd=$lt_cv_file_magic_cmd
6651deplibs_check_method=$lt_cv_deplibs_check_method
6652test -z "$deplibs_check_method" && deplibs_check_method=unknown
6653
6654
6655
6656
Steve Kondik79165c32015-11-09 19:43:00 -08006657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if ${ac_cv_prog_DLLTOOL+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682else
6683 if test -n "$DLLTOOL"; then
6684 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697done
6698 done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703DLLTOOL=$ac_cv_prog_DLLTOOL
6704if test -n "$DLLTOOL"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6706$as_echo "$DLLTOOL" >&6; }
6707else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712
6713fi
6714if test -z "$ac_cv_prog_DLLTOOL"; then
6715 ac_ct_DLLTOOL=$DLLTOOL
6716 # Extract the first word of "dlltool", so it can be a program name with args.
6717set dummy dlltool; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722else
6723 if test -n "$ac_ct_DLLTOOL"; then
6724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738 done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6744if test -n "$ac_ct_DLLTOOL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6746$as_echo "$ac_ct_DLLTOOL" >&6; }
6747else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752 if test "x$ac_ct_DLLTOOL" = x; then
6753 DLLTOOL="false"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759ac_tool_warned=yes ;;
6760esac
6761 DLLTOOL=$ac_ct_DLLTOOL
6762 fi
6763else
6764 DLLTOOL="$ac_cv_prog_DLLTOOL"
6765fi
6766
6767test -z "$DLLTOOL" && DLLTOOL=dlltool
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6779$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6780if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782else
6783 lt_cv_sharedlib_from_linklib_cmd='unknown'
6784
6785case $host_os in
6786cygwin* | mingw* | pw32* | cegcc*)
6787 # two different shell functions defined in ltmain.sh
6788 # decide which to use based on capabilities of $DLLTOOL
6789 case `$DLLTOOL --help 2>&1` in
6790 *--identify-strict*)
6791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6792 ;;
6793 *)
6794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6795 ;;
6796 esac
6797 ;;
6798*)
6799 # fallback: assume linklib IS sharedlib
6800 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6801 ;;
6802esac
6803
6804fi
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6806$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6807sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6808test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6809
6810
6811
6812
6813
6814
6815
6816if test -n "$ac_tool_prefix"; then
6817 for ac_prog in ar
6818 do
6819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if ${ac_cv_prog_AR+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$AR"; then
6827 ac_cv_prog_AR="$AR" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841 done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846AR=$ac_cv_prog_AR
6847if test -n "$AR"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6849$as_echo "$AR" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856 test -n "$AR" && break
6857 done
6858fi
6859if test -z "$AR"; then
6860 ac_ct_AR=$AR
6861 for ac_prog in ar
6862do
6863 # Extract the first word of "$ac_prog", so it can be a program name with args.
6864set dummy $ac_prog; ac_word=$2
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866$as_echo_n "checking for $ac_word... " >&6; }
6867if ${ac_cv_prog_ac_ct_AR+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869else
6870 if test -n "$ac_ct_AR"; then
6871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6872else
6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_ac_ct_AR="$ac_prog"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884done
6885 done
6886IFS=$as_save_IFS
6887
6888fi
6889fi
6890ac_ct_AR=$ac_cv_prog_ac_ct_AR
6891if test -n "$ac_ct_AR"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6893$as_echo "$ac_ct_AR" >&6; }
6894else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896$as_echo "no" >&6; }
6897fi
6898
6899
6900 test -n "$ac_ct_AR" && break
6901done
6902
6903 if test "x$ac_ct_AR" = x; then
6904 AR="false"
6905 else
6906 case $cross_compiling:$ac_tool_warned in
6907yes:)
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910ac_tool_warned=yes ;;
6911esac
6912 AR=$ac_ct_AR
6913 fi
6914fi
6915
6916: ${AR=ar}
6917: ${AR_FLAGS=cru}
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6930$as_echo_n "checking for archiver @FILE support... " >&6; }
6931if ${lt_cv_ar_at_file+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933else
6934 lt_cv_ar_at_file=no
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h. */
6937
6938int
6939main ()
6940{
6941
6942 ;
6943 return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_compile "$LINENO"; then :
6947 echo conftest.$ac_objext > conftest.lst
6948 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6950 (eval $lt_ar_try) 2>&5
6951 ac_status=$?
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; }
6954 if test "$ac_status" -eq 0; then
6955 # Ensure the archiver fails upon bogus file names.
6956 rm -f conftest.$ac_objext libconftest.a
6957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6958 (eval $lt_ar_try) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }
6962 if test "$ac_status" -ne 0; then
6963 lt_cv_ar_at_file=@
6964 fi
6965 fi
6966 rm -f conftest.* libconftest.a
6967
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6973$as_echo "$lt_cv_ar_at_file" >&6; }
6974
6975if test "x$lt_cv_ar_at_file" = xno; then
6976 archiver_list_spec=
6977else
6978 archiver_list_spec=$lt_cv_ar_at_file
6979fi
6980
6981
6982
6983
6984
6985
6986
6987if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}strip; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if ${ac_cv_prog_STRIP+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994else
6995 if test -n "$STRIP"; then
6996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010 done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015STRIP=$ac_cv_prog_STRIP
7016if test -n "$STRIP"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7018$as_echo "$STRIP" >&6; }
7019else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_STRIP"; then
7027 ac_ct_STRIP=$STRIP
7028 # Extract the first word of "strip", so it can be a program name with args.
7029set dummy strip; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034else
7035 if test -n "$ac_ct_STRIP"; then
7036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_ac_ct_STRIP="strip"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049done
7050 done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7056if test -n "$ac_ct_STRIP"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7058$as_echo "$ac_ct_STRIP" >&6; }
7059else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064 if test "x$ac_ct_STRIP" = x; then
7065 STRIP=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073 STRIP=$ac_ct_STRIP
7074 fi
7075else
7076 STRIP="$ac_cv_prog_STRIP"
7077fi
7078
7079test -z "$STRIP" && STRIP=:
7080
7081
7082
7083
7084
7085
7086if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_RANLIB+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093else
7094 if test -n "$RANLIB"; then
7095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109 done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114RANLIB=$ac_cv_prog_RANLIB
7115if test -n "$RANLIB"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7117$as_echo "$RANLIB" >&6; }
7118else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124fi
7125if test -z "$ac_cv_prog_RANLIB"; then
7126 ac_ct_RANLIB=$RANLIB
7127 # Extract the first word of "ranlib", so it can be a program name with args.
7128set dummy ranlib; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133else
7134 if test -n "$ac_ct_RANLIB"; then
7135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_RANLIB="ranlib"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149 done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7155if test -n "$ac_ct_RANLIB"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7157$as_echo "$ac_ct_RANLIB" >&6; }
7158else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163 if test "x$ac_ct_RANLIB" = x; then
7164 RANLIB=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167yes:)
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172 RANLIB=$ac_ct_RANLIB
7173 fi
7174else
7175 RANLIB="$ac_cv_prog_RANLIB"
7176fi
7177
7178test -z "$RANLIB" && RANLIB=:
7179
7180
7181
7182
7183
7184
7185# Determine commands to create old-style static archives.
7186old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7187old_postinstall_cmds='chmod 644 $oldlib'
7188old_postuninstall_cmds=
7189
7190if test -n "$RANLIB"; then
7191 case $host_os in
7192 openbsd*)
7193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7194 ;;
7195 *)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7197 ;;
7198 esac
7199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7200fi
7201
7202case $host_os in
7203 darwin*)
7204 lock_old_archive_extraction=yes ;;
7205 *)
7206 lock_old_archive_extraction=no ;;
7207esac
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
Steve Kondik2111ad72013-07-07 12:07:44 -07007247# If no C compiler was specified, use CC.
7248LTCC=${LTCC-"$CC"}
7249
7250# If no C compiler flags were specified, use CFLAGS.
7251LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253# Allow CC to be a program name with arguments.
7254compiler=$CC
7255
7256
Steve Kondik2111ad72013-07-07 12:07:44 -07007257# Check for command to grab the raw symbol name followed by C symbol from nm.
Steve Kondik79165c32015-11-09 19:43:00 -08007258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7259$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7260if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7261 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07007262else
7263
7264# These are sane defaults that work on at least a few old systems.
7265# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7266
7267# Character class describing NM global symbol codes.
7268symcode='[BCDEGRST]'
7269
7270# Regexp to match symbols that can be accessed directly from C.
7271sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7272
Steve Kondik2111ad72013-07-07 12:07:44 -07007273# Define system-specific variables.
7274case $host_os in
7275aix*)
7276 symcode='[BCDT]'
7277 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08007278cygwin* | mingw* | pw32* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -07007279 symcode='[ABCDGISTW]'
7280 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08007281hpux*)
Steve Kondik2111ad72013-07-07 12:07:44 -07007282 if test "$host_cpu" = ia64; then
7283 symcode='[ABCDEGRST]'
7284 fi
Steve Kondik2111ad72013-07-07 12:07:44 -07007285 ;;
7286irix* | nonstopux*)
7287 symcode='[BCDEGRST]'
7288 ;;
7289osf*)
7290 symcode='[BCDEGQRST]'
7291 ;;
7292solaris*)
7293 symcode='[BDRT]'
7294 ;;
7295sco3.2v5*)
7296 symcode='[DT]'
7297 ;;
7298sysv4.2uw2*)
7299 symcode='[DT]'
7300 ;;
7301sysv5* | sco5v6* | unixware* | OpenUNIX*)
7302 symcode='[ABDT]'
7303 ;;
7304sysv4)
7305 symcode='[DFNSTU]'
7306 ;;
7307esac
7308
Steve Kondik2111ad72013-07-07 12:07:44 -07007309# If we're using GNU nm, then use its standard symbol codes.
7310case `$NM -V 2>&1` in
7311*GNU* | *'with BFD'*)
7312 symcode='[ABCDGIRSTW]' ;;
7313esac
7314
Steve Kondik79165c32015-11-09 19:43:00 -08007315# Transform an extracted symbol line into a proper C declaration.
7316# Some systems (esp. on ia64) link data and code symbols differently,
7317# so use this general approach.
7318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7319
7320# Transform an extracted symbol line into symbol name and symbol address
7321lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7322lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7323
7324# Handle CRLF in mingw tool chain
7325opt_cr=
7326case $build_os in
7327mingw*)
7328 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7329 ;;
7330esac
7331
7332# Try without a prefix underscore, then with it.
Steve Kondik2111ad72013-07-07 12:07:44 -07007333for ac_symprfx in "" "_"; do
7334
7335 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7336 symxfrm="\\1 $ac_symprfx\\2 \\2"
7337
7338 # Write the raw and C identifiers.
Steve Kondik79165c32015-11-09 19:43:00 -08007339 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7340 # Fake it for dumpbin and say T for any non-static function
7341 # and D for any global variable.
7342 # Also find C++ and __fastcall symbols from MSVC++,
7343 # which start with @ or ?.
7344 lt_cv_sys_global_symbol_pipe="$AWK '"\
7345" {last_section=section; section=\$ 3};"\
7346" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7347" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7348" \$ 0!~/External *\|/{next};"\
7349" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7350" {if(hide[section]) next};"\
7351" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7352" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7353" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7354" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7355" ' prfx=^$ac_symprfx"
7356 else
7357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7358 fi
7359 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Steve Kondik2111ad72013-07-07 12:07:44 -07007360
7361 # Check to see that the pipe works correctly.
7362 pipe_works=no
7363
7364 rm -f conftest*
Steve Kondik79165c32015-11-09 19:43:00 -08007365 cat > conftest.$ac_ext <<_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07007366#ifdef __cplusplus
7367extern "C" {
7368#endif
7369char nm_test_var;
Steve Kondik79165c32015-11-09 19:43:00 -08007370void nm_test_func(void);
7371void nm_test_func(void){}
Steve Kondik2111ad72013-07-07 12:07:44 -07007372#ifdef __cplusplus
7373}
7374#endif
7375int main(){nm_test_var='a';nm_test_func();return(0);}
Steve Kondik79165c32015-11-09 19:43:00 -08007376_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07007377
Steve Kondik79165c32015-11-09 19:43:00 -08007378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07007379 (eval $ac_compile) 2>&5
7380 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08007381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
Steve Kondik2111ad72013-07-07 12:07:44 -07007383 # Now try to grab the symbols.
7384 nlist=conftest.nm
Steve Kondik79165c32015-11-09 19:43:00 -08007385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7386 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Steve Kondik2111ad72013-07-07 12:07:44 -07007387 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08007388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; } && test -s "$nlist"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07007390 # Try sorting and uniquifying the output.
7391 if sort "$nlist" | uniq > "$nlist"T; then
7392 mv -f "$nlist"T "$nlist"
7393 else
7394 rm -f "$nlist"T
7395 fi
7396
7397 # Make sure that we snagged all the symbols we need.
Steve Kondik79165c32015-11-09 19:43:00 -08007398 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7399 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7400 cat <<_LT_EOF > conftest.$ac_ext
7401/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7402#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7403/* DATA imports from DLLs on WIN32 con't be const, because runtime
7404 relocations are performed -- see ld's documentation on pseudo-relocs. */
7405# define LT_DLSYM_CONST
7406#elif defined(__osf__)
7407/* This system does not cope well with relocations in const data. */
7408# define LT_DLSYM_CONST
7409#else
7410# define LT_DLSYM_CONST const
7411#endif
7412
Steve Kondik2111ad72013-07-07 12:07:44 -07007413#ifdef __cplusplus
7414extern "C" {
7415#endif
7416
Steve Kondik79165c32015-11-09 19:43:00 -08007417_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07007418 # Now generate the symbol file.
Steve Kondik79165c32015-11-09 19:43:00 -08007419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Steve Kondik2111ad72013-07-07 12:07:44 -07007420
Steve Kondik79165c32015-11-09 19:43:00 -08007421 cat <<_LT_EOF >> conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -07007422
Steve Kondik79165c32015-11-09 19:43:00 -08007423/* The mapping between symbol names and symbols. */
7424LT_DLSYM_CONST struct {
Steve Kondik2111ad72013-07-07 12:07:44 -07007425 const char *name;
Steve Kondik79165c32015-11-09 19:43:00 -08007426 void *address;
Steve Kondik2111ad72013-07-07 12:07:44 -07007427}
Steve Kondik79165c32015-11-09 19:43:00 -08007428lt__PROGRAM__LTX_preloaded_symbols[] =
Steve Kondik2111ad72013-07-07 12:07:44 -07007429{
Steve Kondik79165c32015-11-09 19:43:00 -08007430 { "@PROGRAM@", (void *) 0 },
7431_LT_EOF
7432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7433 cat <<\_LT_EOF >> conftest.$ac_ext
7434 {0, (void *) 0}
Steve Kondik2111ad72013-07-07 12:07:44 -07007435};
7436
Steve Kondik79165c32015-11-09 19:43:00 -08007437/* This works around a problem in FreeBSD linker */
7438#ifdef FREEBSD_WORKAROUND
7439static const void *lt_preloaded_setup() {
7440 return lt__PROGRAM__LTX_preloaded_symbols;
7441}
7442#endif
7443
Steve Kondik2111ad72013-07-07 12:07:44 -07007444#ifdef __cplusplus
7445}
7446#endif
Steve Kondik79165c32015-11-09 19:43:00 -08007447_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07007448 # Now try linking the two files.
7449 mv conftest.$ac_objext conftstm.$ac_objext
Steve Kondik79165c32015-11-09 19:43:00 -08007450 lt_globsym_save_LIBS=$LIBS
7451 lt_globsym_save_CFLAGS=$CFLAGS
Steve Kondik2111ad72013-07-07 12:07:44 -07007452 LIBS="conftstm.$ac_objext"
7453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Steve Kondik79165c32015-11-09 19:43:00 -08007454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07007455 (eval $ac_link) 2>&5
7456 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -08007457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Steve Kondik2111ad72013-07-07 12:07:44 -07007459 pipe_works=yes
7460 fi
Steve Kondik79165c32015-11-09 19:43:00 -08007461 LIBS=$lt_globsym_save_LIBS
7462 CFLAGS=$lt_globsym_save_CFLAGS
Steve Kondik2111ad72013-07-07 12:07:44 -07007463 else
7464 echo "cannot find nm_test_func in $nlist" >&5
7465 fi
7466 else
7467 echo "cannot find nm_test_var in $nlist" >&5
7468 fi
7469 else
7470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7471 fi
7472 else
7473 echo "$progname: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 fi
7476 rm -rf conftest* conftst*
7477
7478 # Do not use the global_symbol_pipe unless it works.
7479 if test "$pipe_works" = yes; then
7480 break
7481 else
7482 lt_cv_sys_global_symbol_pipe=
7483 fi
7484done
7485
7486fi
7487
7488if test -z "$lt_cv_sys_global_symbol_pipe"; then
7489 lt_cv_sys_global_symbol_to_cdecl=
7490fi
7491if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Steve Kondik79165c32015-11-09 19:43:00 -08007492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7493$as_echo "failed" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07007494else
Steve Kondik79165c32015-11-09 19:43:00 -08007495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7496$as_echo "ok" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07007497fi
7498
Steve Kondik79165c32015-11-09 19:43:00 -08007499# Response file support.
7500if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7501 nm_file_list_spec='@'
7502elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7503 nm_file_list_spec='@'
7504fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7533$as_echo_n "checking for sysroot... " >&6; }
7534
7535# Check whether --with-sysroot was given.
7536if test "${with_sysroot+set}" = set; then :
7537 withval=$with_sysroot;
7538else
7539 with_sysroot=no
7540fi
7541
7542
7543lt_sysroot=
7544case ${with_sysroot} in #(
7545 yes)
7546 if test "$GCC" = yes; then
7547 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7548 fi
7549 ;; #(
7550 /*)
7551 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7552 ;; #(
7553 no|'')
7554 ;; #(
7555 *)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7557$as_echo "${with_sysroot}" >&6; }
7558 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7559 ;;
7560esac
7561
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7563$as_echo "${lt_sysroot:-no}" >&6; }
7564
7565
7566
7567
7568
7569# Check whether --enable-libtool-lock was given.
7570if test "${enable_libtool_lock+set}" = set; then :
7571 enableval=$enable_libtool_lock;
7572fi
7573
7574test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7575
7576# Some flags need to be propagated to the compiler or linker for good
7577# libtool support.
7578case $host in
7579ia64-*-hpux*)
7580 # Find out which ABI we are using.
7581 echo 'int i;' > conftest.$ac_ext
7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583 (eval $ac_compile) 2>&5
7584 ac_status=$?
7585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586 test $ac_status = 0; }; then
7587 case `/usr/bin/file conftest.$ac_objext` in
7588 *ELF-32*)
7589 HPUX_IA64_MODE="32"
7590 ;;
7591 *ELF-64*)
7592 HPUX_IA64_MODE="64"
7593 ;;
7594 esac
7595 fi
7596 rm -rf conftest*
7597 ;;
7598*-*-irix6*)
7599 # Find out which ABI we are using.
7600 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7602 (eval $ac_compile) 2>&5
7603 ac_status=$?
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; }; then
7606 if test "$lt_cv_prog_gnu_ld" = yes; then
7607 case `/usr/bin/file conftest.$ac_objext` in
7608 *32-bit*)
7609 LD="${LD-ld} -melf32bsmip"
7610 ;;
7611 *N32*)
7612 LD="${LD-ld} -melf32bmipn32"
7613 ;;
7614 *64-bit*)
7615 LD="${LD-ld} -melf64bmip"
7616 ;;
7617 esac
7618 else
7619 case `/usr/bin/file conftest.$ac_objext` in
7620 *32-bit*)
7621 LD="${LD-ld} -32"
7622 ;;
7623 *N32*)
7624 LD="${LD-ld} -n32"
7625 ;;
7626 *64-bit*)
7627 LD="${LD-ld} -64"
7628 ;;
7629 esac
7630 fi
7631 fi
7632 rm -rf conftest*
7633 ;;
7634
7635x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7636s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7645 *32-bit*)
7646 case $host in
7647 x86_64-*kfreebsd*-gnu)
7648 LD="${LD-ld} -m elf_i386_fbsd"
7649 ;;
7650 x86_64-*linux*)
7651 LD="${LD-ld} -m elf_i386"
7652 ;;
7653 powerpc64le-*linux*)
7654 LD="${LD-ld} -m elf32lppclinux"
7655 ;;
7656 powerpc64-*linux*)
7657 LD="${LD-ld} -m elf32ppclinux"
7658 ;;
7659 s390x-*linux*)
7660 LD="${LD-ld} -m elf_s390"
7661 ;;
7662 sparc64-*linux*)
7663 LD="${LD-ld} -m elf32_sparc"
7664 ;;
7665 esac
7666 ;;
7667 *64-bit*)
7668 case $host in
7669 x86_64-*kfreebsd*-gnu)
7670 LD="${LD-ld} -m elf_x86_64_fbsd"
7671 ;;
7672 x86_64-*linux*)
7673 LD="${LD-ld} -m elf_x86_64"
7674 ;;
7675 powerpcle-*linux*)
7676 LD="${LD-ld} -m elf64lppc"
7677 ;;
7678 powerpc-*linux*)
7679 LD="${LD-ld} -m elf64ppc"
7680 ;;
7681 s390*-*linux*|s390*-*tpf*)
7682 LD="${LD-ld} -m elf64_s390"
7683 ;;
7684 sparc*-*linux*)
7685 LD="${LD-ld} -m elf64_sparc"
7686 ;;
7687 esac
7688 ;;
7689 esac
7690 fi
7691 rm -rf conftest*
7692 ;;
7693
7694*-*-sco3.2v5*)
7695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7696 SAVE_CFLAGS="$CFLAGS"
7697 CFLAGS="$CFLAGS -belf"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7699$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7700if ${lt_cv_cc_needs_belf+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711
7712int
7713main ()
7714{
7715
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720if ac_fn_c_try_link "$LINENO"; then :
7721 lt_cv_cc_needs_belf=yes
7722else
7723 lt_cv_cc_needs_belf=no
7724fi
7725rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727 ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7735$as_echo "$lt_cv_cc_needs_belf" >&6; }
7736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7738 CFLAGS="$SAVE_CFLAGS"
7739 fi
7740 ;;
7741*-*solaris*)
7742 # Find out which ABI we are using.
7743 echo 'int i;' > conftest.$ac_ext
7744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745 (eval $ac_compile) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748 test $ac_status = 0; }; then
7749 case `/usr/bin/file conftest.o` in
7750 *64-bit*)
7751 case $lt_cv_prog_gnu_ld in
7752 yes*)
7753 case $host in
7754 i?86-*-solaris*)
7755 LD="${LD-ld} -m elf_x86_64"
7756 ;;
7757 sparc*-*-solaris*)
7758 LD="${LD-ld} -m elf64_sparc"
7759 ;;
7760 esac
7761 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7762 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7763 LD="${LD-ld}_sol2"
7764 fi
7765 ;;
7766 *)
7767 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7768 LD="${LD-ld} -64"
7769 fi
7770 ;;
7771 esac
7772 ;;
7773 esac
7774 fi
7775 rm -rf conftest*
7776 ;;
7777esac
7778
7779need_locks="$enable_libtool_lock"
7780
7781if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7783set dummy ${ac_tool_prefix}mt; ac_word=$2
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785$as_echo_n "checking for $ac_word... " >&6; }
7786if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788else
7789 if test -n "$MANIFEST_TOOL"; then
7790 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7791else
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804 done
7805IFS=$as_save_IFS
7806
7807fi
7808fi
7809MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7810if test -n "$MANIFEST_TOOL"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7812$as_echo "$MANIFEST_TOOL" >&6; }
7813else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816fi
7817
7818
7819fi
7820if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7821 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7822 # Extract the first word of "mt", so it can be a program name with args.
7823set dummy mt; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828else
7829 if test -n "$ac_ct_MANIFEST_TOOL"; then
7830 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844 done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7850if test -n "$ac_ct_MANIFEST_TOOL"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7852$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7853else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7859 MANIFEST_TOOL=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862yes:)
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865ac_tool_warned=yes ;;
7866esac
7867 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7868 fi
7869else
7870 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7871fi
7872
7873test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7875$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7876if ${lt_cv_path_mainfest_tool+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878else
7879 lt_cv_path_mainfest_tool=no
7880 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7881 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7882 cat conftest.err >&5
7883 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7884 lt_cv_path_mainfest_tool=yes
7885 fi
7886 rm -f conftest*
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7889$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7890if test "x$lt_cv_path_mainfest_tool" != xyes; then
7891 MANIFEST_TOOL=:
7892fi
7893
7894
7895
7896
7897
7898
7899 case $host_os in
7900 rhapsody* | darwin*)
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7903set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if ${ac_cv_prog_DSYMUTIL+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908else
7909 if test -n "$DSYMUTIL"; then
7910 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924 done
7925IFS=$as_save_IFS
7926
7927fi
7928fi
7929DSYMUTIL=$ac_cv_prog_DSYMUTIL
7930if test -n "$DSYMUTIL"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7932$as_echo "$DSYMUTIL" >&6; }
7933else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
7936fi
7937
7938
7939fi
7940if test -z "$ac_cv_prog_DSYMUTIL"; then
7941 ac_ct_DSYMUTIL=$DSYMUTIL
7942 # Extract the first word of "dsymutil", so it can be a program name with args.
7943set dummy dsymutil; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948else
7949 if test -n "$ac_ct_DSYMUTIL"; then
7950 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964 done
7965IFS=$as_save_IFS
7966
7967fi
7968fi
7969ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7970if test -n "$ac_ct_DSYMUTIL"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7972$as_echo "$ac_ct_DSYMUTIL" >&6; }
7973else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
7978 if test "x$ac_ct_DSYMUTIL" = x; then
7979 DSYMUTIL=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982yes:)
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985ac_tool_warned=yes ;;
7986esac
7987 DSYMUTIL=$ac_ct_DSYMUTIL
7988 fi
7989else
7990 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7991fi
7992
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7995set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997$as_echo_n "checking for $ac_word... " >&6; }
7998if ${ac_cv_prog_NMEDIT+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000else
8001 if test -n "$NMEDIT"; then
8002 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8003else
8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015done
8016 done
8017IFS=$as_save_IFS
8018
8019fi
8020fi
8021NMEDIT=$ac_cv_prog_NMEDIT
8022if test -n "$NMEDIT"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8024$as_echo "$NMEDIT" >&6; }
8025else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027$as_echo "no" >&6; }
8028fi
8029
8030
8031fi
8032if test -z "$ac_cv_prog_NMEDIT"; then
8033 ac_ct_NMEDIT=$NMEDIT
8034 # Extract the first word of "nmedit", so it can be a program name with args.
8035set dummy nmedit; ac_word=$2
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037$as_echo_n "checking for $ac_word... " >&6; }
8038if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040else
8041 if test -n "$ac_ct_NMEDIT"; then
8042 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8043else
8044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045for as_dir in $PATH
8046do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055done
8056 done
8057IFS=$as_save_IFS
8058
8059fi
8060fi
8061ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8062if test -n "$ac_ct_NMEDIT"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8064$as_echo "$ac_ct_NMEDIT" >&6; }
8065else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
8068fi
8069
8070 if test "x$ac_ct_NMEDIT" = x; then
8071 NMEDIT=":"
8072 else
8073 case $cross_compiling:$ac_tool_warned in
8074yes:)
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077ac_tool_warned=yes ;;
8078esac
8079 NMEDIT=$ac_ct_NMEDIT
8080 fi
8081else
8082 NMEDIT="$ac_cv_prog_NMEDIT"
8083fi
8084
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8087set dummy ${ac_tool_prefix}lipo; ac_word=$2
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089$as_echo_n "checking for $ac_word... " >&6; }
8090if ${ac_cv_prog_LIPO+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092else
8093 if test -n "$LIPO"; then
8094 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8095else
8096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097for as_dir in $PATH
8098do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107done
8108 done
8109IFS=$as_save_IFS
8110
8111fi
8112fi
8113LIPO=$ac_cv_prog_LIPO
8114if test -n "$LIPO"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8116$as_echo "$LIPO" >&6; }
8117else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120fi
8121
8122
8123fi
8124if test -z "$ac_cv_prog_LIPO"; then
8125 ac_ct_LIPO=$LIPO
8126 # Extract the first word of "lipo", so it can be a program name with args.
8127set dummy lipo; ac_word=$2
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
8130if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132else
8133 if test -n "$ac_ct_LIPO"; then
8134 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8135else
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_LIPO="lipo"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147done
8148 done
8149IFS=$as_save_IFS
8150
8151fi
8152fi
8153ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8154if test -n "$ac_ct_LIPO"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8156$as_echo "$ac_ct_LIPO" >&6; }
8157else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160fi
8161
8162 if test "x$ac_ct_LIPO" = x; then
8163 LIPO=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166yes:)
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169ac_tool_warned=yes ;;
8170esac
8171 LIPO=$ac_ct_LIPO
8172 fi
8173else
8174 LIPO="$ac_cv_prog_LIPO"
8175fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8179set dummy ${ac_tool_prefix}otool; ac_word=$2
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if ${ac_cv_prog_OTOOL+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184else
8185 if test -n "$OTOOL"; then
8186 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199done
8200 done
8201IFS=$as_save_IFS
8202
8203fi
8204fi
8205OTOOL=$ac_cv_prog_OTOOL
8206if test -n "$OTOOL"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8208$as_echo "$OTOOL" >&6; }
8209else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
8212fi
8213
8214
8215fi
8216if test -z "$ac_cv_prog_OTOOL"; then
8217 ac_ct_OTOOL=$OTOOL
8218 # Extract the first word of "otool", so it can be a program name with args.
8219set dummy otool; ac_word=$2
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221$as_echo_n "checking for $ac_word... " >&6; }
8222if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224else
8225 if test -n "$ac_ct_OTOOL"; then
8226 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_ac_ct_OTOOL="otool"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240 done
8241IFS=$as_save_IFS
8242
8243fi
8244fi
8245ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8246if test -n "$ac_ct_OTOOL"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8248$as_echo "$ac_ct_OTOOL" >&6; }
8249else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254 if test "x$ac_ct_OTOOL" = x; then
8255 OTOOL=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258yes:)
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261ac_tool_warned=yes ;;
8262esac
8263 OTOOL=$ac_ct_OTOOL
8264 fi
8265else
8266 OTOOL="$ac_cv_prog_OTOOL"
8267fi
8268
8269 if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8271set dummy ${ac_tool_prefix}otool64; ac_word=$2
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if ${ac_cv_prog_OTOOL64+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276else
8277 if test -n "$OTOOL64"; then
8278 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8279else
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292 done
8293IFS=$as_save_IFS
8294
8295fi
8296fi
8297OTOOL64=$ac_cv_prog_OTOOL64
8298if test -n "$OTOOL64"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8300$as_echo "$OTOOL64" >&6; }
8301else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
8304fi
8305
8306
8307fi
8308if test -z "$ac_cv_prog_OTOOL64"; then
8309 ac_ct_OTOOL64=$OTOOL64
8310 # Extract the first word of "otool64", so it can be a program name with args.
8311set dummy otool64; ac_word=$2
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313$as_echo_n "checking for $ac_word... " >&6; }
8314if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316else
8317 if test -n "$ac_ct_OTOOL64"; then
8318 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327 ac_cv_prog_ac_ct_OTOOL64="otool64"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8330 fi
8331done
8332 done
8333IFS=$as_save_IFS
8334
8335fi
8336fi
8337ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8338if test -n "$ac_ct_OTOOL64"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8340$as_echo "$ac_ct_OTOOL64" >&6; }
8341else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
8344fi
8345
8346 if test "x$ac_ct_OTOOL64" = x; then
8347 OTOOL64=":"
8348 else
8349 case $cross_compiling:$ac_tool_warned in
8350yes:)
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353ac_tool_warned=yes ;;
8354esac
8355 OTOOL64=$ac_ct_OTOOL64
8356 fi
8357else
8358 OTOOL64="$ac_cv_prog_OTOOL64"
8359fi
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8388$as_echo_n "checking for -single_module linker flag... " >&6; }
8389if ${lt_cv_apple_cc_single_mod+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391else
8392 lt_cv_apple_cc_single_mod=no
8393 if test -z "${LT_MULTI_MODULE}"; then
8394 # By default we will add the -single_module flag. You can override
8395 # by either setting the environment variable LT_MULTI_MODULE
8396 # non-empty at configure time, or by adding -multi_module to the
8397 # link flags.
8398 rm -rf libconftest.dylib*
8399 echo "int foo(void){return 1;}" > conftest.c
8400 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8401-dynamiclib -Wl,-single_module conftest.c" >&5
8402 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8403 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8404 _lt_result=$?
8405 # If there is a non-empty error log, and "single_module"
8406 # appears in it, assume the flag caused a linker warning
8407 if test -s conftest.err && $GREP single_module conftest.err; then
8408 cat conftest.err >&5
8409 # Otherwise, if the output was created with a 0 exit code from
8410 # the compiler, it worked.
8411 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8412 lt_cv_apple_cc_single_mod=yes
8413 else
8414 cat conftest.err >&5
8415 fi
8416 rm -rf libconftest.dylib*
8417 rm -f conftest.*
8418 fi
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8421$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8422
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8424$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8425if ${lt_cv_ld_exported_symbols_list+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427else
8428 lt_cv_ld_exported_symbols_list=no
8429 save_LDFLAGS=$LDFLAGS
8430 echo "_main" > conftest.sym
8431 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h. */
8434
8435int
8436main ()
8437{
8438
8439 ;
8440 return 0;
8441}
8442_ACEOF
8443if ac_fn_c_try_link "$LINENO"; then :
8444 lt_cv_ld_exported_symbols_list=yes
8445else
8446 lt_cv_ld_exported_symbols_list=no
8447fi
8448rm -f core conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 LDFLAGS="$save_LDFLAGS"
8451
8452fi
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8454$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8457$as_echo_n "checking for -force_load linker flag... " >&6; }
8458if ${lt_cv_ld_force_load+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460else
8461 lt_cv_ld_force_load=no
8462 cat > conftest.c << _LT_EOF
8463int forced_loaded() { return 2;}
8464_LT_EOF
8465 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8466 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8467 echo "$AR cru libconftest.a conftest.o" >&5
8468 $AR cru libconftest.a conftest.o 2>&5
8469 echo "$RANLIB libconftest.a" >&5
8470 $RANLIB libconftest.a 2>&5
8471 cat > conftest.c << _LT_EOF
8472int main() { return 0;}
8473_LT_EOF
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8476 _lt_result=$?
8477 if test -s conftest.err && $GREP force_load conftest.err; then
8478 cat conftest.err >&5
8479 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8480 lt_cv_ld_force_load=yes
8481 else
8482 cat conftest.err >&5
8483 fi
8484 rm -f conftest.err libconftest.a conftest conftest.c
8485 rm -rf conftest.dSYM
8486
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8489$as_echo "$lt_cv_ld_force_load" >&6; }
8490 case $host_os in
8491 rhapsody* | darwin1.[012])
8492 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8493 darwin1.*)
8494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8495 darwin*) # darwin 5.x on
8496 # if running on 10.5 or later, the deployment target defaults
8497 # to the OS version, if on x86, and 10.4, the deployment
8498 # target defaults to 10.4. Don't you love it?
8499 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8500 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8502 10.[012]*)
8503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8504 10.*)
8505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8506 esac
8507 ;;
8508 esac
8509 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8510 _lt_dar_single_mod='$single_module'
8511 fi
8512 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8513 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8514 else
8515 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8516 fi
8517 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8518 _lt_dsymutil='~$DSYMUTIL $lib || :'
8519 else
8520 _lt_dsymutil=
8521 fi
8522 ;;
8523 esac
8524
8525for ac_header in dlfcn.h
8526do :
8527 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8528"
8529if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8530 cat >>confdefs.h <<_ACEOF
8531#define HAVE_DLFCN_H 1
8532_ACEOF
8533
8534fi
8535
8536done
8537
8538
8539
8540
8541
8542# Set options
8543
8544
8545
8546 enable_dlopen=no
8547
8548
8549 enable_win32_dll=no
8550
8551
8552 # Check whether --enable-shared was given.
8553if test "${enable_shared+set}" = set; then :
8554 enableval=$enable_shared; p=${PACKAGE-default}
8555 case $enableval in
8556 yes) enable_shared=yes ;;
8557 no) enable_shared=no ;;
8558 *)
8559 enable_shared=no
8560 # Look at the argument we got. We use all the common list separators.
8561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8562 for pkg in $enableval; do
8563 IFS="$lt_save_ifs"
8564 if test "X$pkg" = "X$p"; then
8565 enable_shared=yes
8566 fi
8567 done
8568 IFS="$lt_save_ifs"
8569 ;;
8570 esac
8571else
8572 enable_shared=yes
8573fi
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583 # Check whether --enable-static was given.
8584if test "${enable_static+set}" = set; then :
8585 enableval=$enable_static; p=${PACKAGE-default}
8586 case $enableval in
8587 yes) enable_static=yes ;;
8588 no) enable_static=no ;;
8589 *)
8590 enable_static=no
8591 # Look at the argument we got. We use all the common list separators.
8592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8593 for pkg in $enableval; do
8594 IFS="$lt_save_ifs"
8595 if test "X$pkg" = "X$p"; then
8596 enable_static=yes
8597 fi
8598 done
8599 IFS="$lt_save_ifs"
8600 ;;
8601 esac
8602else
8603 enable_static=yes
8604fi
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615# Check whether --with-pic was given.
8616if test "${with_pic+set}" = set; then :
8617 withval=$with_pic; lt_p=${PACKAGE-default}
8618 case $withval in
8619 yes|no) pic_mode=$withval ;;
8620 *)
8621 pic_mode=default
8622 # Look at the argument we got. We use all the common list separators.
8623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8624 for lt_pkg in $withval; do
8625 IFS="$lt_save_ifs"
8626 if test "X$lt_pkg" = "X$lt_p"; then
8627 pic_mode=yes
8628 fi
8629 done
8630 IFS="$lt_save_ifs"
8631 ;;
8632 esac
8633else
8634 pic_mode=default
8635fi
8636
8637
8638test -z "$pic_mode" && pic_mode=default
8639
8640
8641
8642
8643
8644
8645
8646 # Check whether --enable-fast-install was given.
8647if test "${enable_fast_install+set}" = set; then :
8648 enableval=$enable_fast_install; p=${PACKAGE-default}
8649 case $enableval in
8650 yes) enable_fast_install=yes ;;
8651 no) enable_fast_install=no ;;
8652 *)
8653 enable_fast_install=no
8654 # Look at the argument we got. We use all the common list separators.
8655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8656 for pkg in $enableval; do
8657 IFS="$lt_save_ifs"
8658 if test "X$pkg" = "X$p"; then
8659 enable_fast_install=yes
8660 fi
8661 done
8662 IFS="$lt_save_ifs"
8663 ;;
8664 esac
8665else
8666 enable_fast_install=yes
8667fi
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679# This can be used to rebuild libtool when needed
8680LIBTOOL_DEPS="$ltmain"
8681
8682# Always use our own libtool.
8683LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714test -z "$LN_S" && LN_S="ln -s"
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729if test -n "${ZSH_VERSION+set}" ; then
8730 setopt NO_GLOB_SUBST
8731fi
8732
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8734$as_echo_n "checking for objdir... " >&6; }
8735if ${lt_cv_objdir+:} false; then :
8736 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07008737else
8738 rm -f .libs 2>/dev/null
8739mkdir .libs 2>/dev/null
8740if test -d .libs; then
8741 lt_cv_objdir=.libs
8742else
8743 # MS-DOS does not allow filenames that begin with a dot.
8744 lt_cv_objdir=_libs
8745fi
8746rmdir .libs 2>/dev/null
8747fi
Steve Kondik79165c32015-11-09 19:43:00 -08008748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8749$as_echo "$lt_cv_objdir" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07008750objdir=$lt_cv_objdir
8751
8752
8753
8754
8755
Steve Kondik79165c32015-11-09 19:43:00 -08008756cat >>confdefs.h <<_ACEOF
8757#define LT_OBJDIR "$lt_cv_objdir/"
8758_ACEOF
8759
8760
8761
8762
Steve Kondik2111ad72013-07-07 12:07:44 -07008763case $host_os in
8764aix3*)
8765 # AIX sometimes has problems with the GCC collect2 program. For some
8766 # reason, if we set the COLLECT_NAMES environment variable, the problems
8767 # vanish in a puff of smoke.
8768 if test "X${COLLECT_NAMES+set}" != Xset; then
8769 COLLECT_NAMES=
8770 export COLLECT_NAMES
8771 fi
8772 ;;
8773esac
8774
Steve Kondik2111ad72013-07-07 12:07:44 -07008775# Global variables:
Steve Kondik79165c32015-11-09 19:43:00 -08008776ofile=libtool
Steve Kondik2111ad72013-07-07 12:07:44 -07008777can_build_shared=yes
8778
8779# All known linkers require a `.a' archive for static linking (except MSVC,
8780# which needs '.lib').
8781libext=a
Steve Kondik79165c32015-11-09 19:43:00 -08008782
Steve Kondik2111ad72013-07-07 12:07:44 -07008783with_gnu_ld="$lt_cv_prog_gnu_ld"
8784
Steve Kondik2111ad72013-07-07 12:07:44 -07008785old_CC="$CC"
8786old_CFLAGS="$CFLAGS"
8787
8788# Set sane defaults for various variables
Steve Kondik2111ad72013-07-07 12:07:44 -07008789test -z "$CC" && CC=cc
8790test -z "$LTCC" && LTCC=$CC
8791test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Steve Kondik2111ad72013-07-07 12:07:44 -07008792test -z "$LD" && LD=ld
Steve Kondik2111ad72013-07-07 12:07:44 -07008793test -z "$ac_objext" && ac_objext=o
8794
Steve Kondik2111ad72013-07-07 12:07:44 -07008795for cc_temp in $compiler""; do
8796 case $cc_temp in
8797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8799 \-*) ;;
8800 *) break;;
8801 esac
8802done
Steve Kondik79165c32015-11-09 19:43:00 -08008803cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Steve Kondik2111ad72013-07-07 12:07:44 -07008804
8805
8806# Only perform the check for file, if the check method requires it
Steve Kondik79165c32015-11-09 19:43:00 -08008807test -z "$MAGIC_CMD" && MAGIC_CMD=file
Steve Kondik2111ad72013-07-07 12:07:44 -07008808case $deplibs_check_method in
8809file_magic*)
8810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Steve Kondik79165c32015-11-09 19:43:00 -08008811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8812$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8813if ${lt_cv_path_MAGIC_CMD+:} false; then :
8814 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07008815else
8816 case $MAGIC_CMD in
8817[\\/*] | ?:[\\/]*)
8818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8819 ;;
8820*)
8821 lt_save_MAGIC_CMD="$MAGIC_CMD"
8822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824 for ac_dir in $ac_dummy; do
8825 IFS="$lt_save_ifs"
8826 test -z "$ac_dir" && ac_dir=.
8827 if test -f $ac_dir/${ac_tool_prefix}file; then
8828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8829 if test -n "$file_magic_test_file"; then
8830 case $deplibs_check_method in
8831 "file_magic "*)
8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835 $EGREP "$file_magic_regex" > /dev/null; then
8836 :
8837 else
Steve Kondik79165c32015-11-09 19:43:00 -08008838 cat <<_LT_EOF 1>&2
Steve Kondik2111ad72013-07-07 12:07:44 -07008839
8840*** Warning: the command libtool uses to detect shared libraries,
8841*** $file_magic_cmd, produces output that libtool cannot recognize.
8842*** The result is that libtool may fail to recognize shared libraries
8843*** as such. This will affect the creation of libtool libraries that
8844*** depend on shared libraries, but programs linked with such libtool
8845*** libraries will work regardless of this problem. Nevertheless, you
8846*** may want to report the problem to your system manager and/or to
8847*** bug-libtool@gnu.org
8848
Steve Kondik79165c32015-11-09 19:43:00 -08008849_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07008850 fi ;;
8851 esac
8852 fi
8853 break
8854 fi
8855 done
8856 IFS="$lt_save_ifs"
8857 MAGIC_CMD="$lt_save_MAGIC_CMD"
8858 ;;
8859esac
8860fi
8861
8862MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863if test -n "$MAGIC_CMD"; then
Steve Kondik79165c32015-11-09 19:43:00 -08008864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8865$as_echo "$MAGIC_CMD" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07008866else
Steve Kondik79165c32015-11-09 19:43:00 -08008867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07008869fi
8870
Steve Kondik79165c32015-11-09 19:43:00 -08008871
8872
8873
8874
Steve Kondik2111ad72013-07-07 12:07:44 -07008875if test -z "$lt_cv_path_MAGIC_CMD"; then
8876 if test -n "$ac_tool_prefix"; then
Steve Kondik79165c32015-11-09 19:43:00 -08008877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8878$as_echo_n "checking for file... " >&6; }
8879if ${lt_cv_path_MAGIC_CMD+:} false; then :
8880 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07008881else
8882 case $MAGIC_CMD in
8883[\\/*] | ?:[\\/]*)
8884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8885 ;;
8886*)
8887 lt_save_MAGIC_CMD="$MAGIC_CMD"
8888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8890 for ac_dir in $ac_dummy; do
8891 IFS="$lt_save_ifs"
8892 test -z "$ac_dir" && ac_dir=.
8893 if test -f $ac_dir/file; then
8894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8895 if test -n "$file_magic_test_file"; then
8896 case $deplibs_check_method in
8897 "file_magic "*)
8898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8901 $EGREP "$file_magic_regex" > /dev/null; then
8902 :
8903 else
Steve Kondik79165c32015-11-09 19:43:00 -08008904 cat <<_LT_EOF 1>&2
Steve Kondik2111ad72013-07-07 12:07:44 -07008905
8906*** Warning: the command libtool uses to detect shared libraries,
8907*** $file_magic_cmd, produces output that libtool cannot recognize.
8908*** The result is that libtool may fail to recognize shared libraries
8909*** as such. This will affect the creation of libtool libraries that
8910*** depend on shared libraries, but programs linked with such libtool
8911*** libraries will work regardless of this problem. Nevertheless, you
8912*** may want to report the problem to your system manager and/or to
8913*** bug-libtool@gnu.org
8914
Steve Kondik79165c32015-11-09 19:43:00 -08008915_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07008916 fi ;;
8917 esac
8918 fi
8919 break
8920 fi
8921 done
8922 IFS="$lt_save_ifs"
8923 MAGIC_CMD="$lt_save_MAGIC_CMD"
8924 ;;
8925esac
8926fi
8927
8928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929if test -n "$MAGIC_CMD"; then
Steve Kondik79165c32015-11-09 19:43:00 -08008930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8931$as_echo "$MAGIC_CMD" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07008932else
Steve Kondik79165c32015-11-09 19:43:00 -08008933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07008935fi
8936
Steve Kondik79165c32015-11-09 19:43:00 -08008937
Steve Kondik2111ad72013-07-07 12:07:44 -07008938 else
8939 MAGIC_CMD=:
8940 fi
8941fi
8942
8943 fi
8944 ;;
8945esac
8946
Steve Kondik2111ad72013-07-07 12:07:44 -07008947# Use C for the default configuration in the libtool script
Steve Kondik79165c32015-11-09 19:43:00 -08008948
Steve Kondik2111ad72013-07-07 12:07:44 -07008949lt_save_CC="$CC"
8950ac_ext=c
8951ac_cpp='$CPP $CPPFLAGS'
8952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955
8956
8957# Source file extension for C test sources.
8958ac_ext=c
8959
8960# Object file extension for compiled C test sources.
8961objext=o
8962objext=$objext
8963
8964# Code to be used in simple compile tests
8965lt_simple_compile_test_code="int some_variable = 0;"
8966
8967# Code to be used in simple link tests
8968lt_simple_link_test_code='int main(){return(0);}'
8969
8970
Steve Kondik79165c32015-11-09 19:43:00 -08008971
8972
8973
8974
8975
Steve Kondik2111ad72013-07-07 12:07:44 -07008976# If no C compiler was specified, use CC.
8977LTCC=${LTCC-"$CC"}
8978
8979# If no C compiler flags were specified, use CFLAGS.
8980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8981
8982# Allow CC to be a program name with arguments.
8983compiler=$CC
8984
Steve Kondik79165c32015-11-09 19:43:00 -08008985# Save the default compiler, since it gets overwritten when the other
8986# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8987compiler_DEFAULT=$CC
Steve Kondik2111ad72013-07-07 12:07:44 -07008988
8989# save warnings/boilerplate of simple test code
8990ac_outfile=conftest.$ac_objext
8991echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8992eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8993_lt_compiler_boilerplate=`cat conftest.err`
Steve Kondik79165c32015-11-09 19:43:00 -08008994$RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07008995
8996ac_outfile=conftest.$ac_objext
8997echo "$lt_simple_link_test_code" >conftest.$ac_ext
8998eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999_lt_linker_boilerplate=`cat conftest.err`
Steve Kondik79165c32015-11-09 19:43:00 -08009000$RM -r conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009001
9002
Steve Kondik79165c32015-11-09 19:43:00 -08009003## CAVEAT EMPTOR:
9004## There is no encapsulation within the following macros, do not change
9005## the running order or otherwise move them around unless you know exactly
9006## what you are doing...
9007if test -n "$compiler"; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009008
9009lt_prog_compiler_no_builtin_flag=
9010
9011if test "$GCC" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -08009012 case $cc_basename in
9013 nvcc*)
9014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9015 *)
9016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9017 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07009018
Steve Kondik79165c32015-11-09 19:43:00 -08009019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9020$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9021if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9022 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07009023else
9024 lt_cv_prog_compiler_rtti_exceptions=no
Steve Kondik79165c32015-11-09 19:43:00 -08009025 ac_outfile=conftest.$ac_objext
Steve Kondik2111ad72013-07-07 12:07:44 -07009026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027 lt_compiler_flag="-fno-rtti -fno-exceptions"
9028 # Insert the option either (1) after the last *FLAGS variable, or
9029 # (2) before a word containing "conftest.", or (3) at the end.
9030 # Note that $ac_compile itself does not contain backslashes and begins
9031 # with a dollar sign (not a hyphen), so the echo should work correctly.
9032 # The option is referenced via a variable to avoid confusing sed.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
Steve Kondik79165c32015-11-09 19:43:00 -08009037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Steve Kondik2111ad72013-07-07 12:07:44 -07009038 (eval "$lt_compile" 2>conftest.err)
9039 ac_status=$?
9040 cat conftest.err >&5
Steve Kondik79165c32015-11-09 19:43:00 -08009041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07009042 if (exit $ac_status) && test -s "$ac_outfile"; then
9043 # The compiler can only warn and ignore the option if not recognized
9044 # So say no if there are warnings other than the usual output.
Steve Kondik79165c32015-11-09 19:43:00 -08009045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Steve Kondik2111ad72013-07-07 12:07:44 -07009046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9048 lt_cv_prog_compiler_rtti_exceptions=yes
9049 fi
9050 fi
Steve Kondik79165c32015-11-09 19:43:00 -08009051 $RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009052
9053fi
Steve Kondik79165c32015-11-09 19:43:00 -08009054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9055$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009056
9057if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9059else
9060 :
9061fi
9062
9063fi
9064
Steve Kondik79165c32015-11-09 19:43:00 -08009065
9066
9067
9068
9069
9070 lt_prog_compiler_wl=
Steve Kondik2111ad72013-07-07 12:07:44 -07009071lt_prog_compiler_pic=
9072lt_prog_compiler_static=
9073
Steve Kondik2111ad72013-07-07 12:07:44 -07009074
9075 if test "$GCC" = yes; then
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_static='-static'
9078
9079 case $host_os in
9080 aix*)
9081 # All AIX code is PIC.
9082 if test "$host_cpu" = ia64; then
9083 # AIX 5 now supports IA64 processor
9084 lt_prog_compiler_static='-Bstatic'
9085 fi
9086 ;;
9087
9088 amigaos*)
Steve Kondik79165c32015-11-09 19:43:00 -08009089 case $host_cpu in
9090 powerpc)
9091 # see comment about AmigaOS4 .so support
9092 lt_prog_compiler_pic='-fPIC'
9093 ;;
9094 m68k)
9095 # FIXME: we need at least 68020 code to build shared libraries, but
9096 # adding the `-m68020' flag to GCC prevents building anything better,
9097 # like `-m68040'.
9098 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9099 ;;
9100 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07009101 ;;
9102
9103 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9104 # PIC is the default for these OSes.
9105 ;;
9106
Steve Kondik79165c32015-11-09 19:43:00 -08009107 mingw* | cygwin* | pw32* | os2* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009108 # This hack is so that the source file can tell whether it is being
9109 # built for inclusion in a dll (and should export symbols for example).
9110 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9111 # (--disable-auto-import) libraries
9112 lt_prog_compiler_pic='-DDLL_EXPORT'
9113 ;;
9114
9115 darwin* | rhapsody*)
9116 # PIC is the default on this platform
9117 # Common symbols not allowed in MH_DYLIB files
9118 lt_prog_compiler_pic='-fno-common'
9119 ;;
9120
Steve Kondik79165c32015-11-09 19:43:00 -08009121 haiku*)
9122 # PIC is the default for Haiku.
9123 # The "-static" flag exists, but is broken.
9124 lt_prog_compiler_static=
9125 ;;
9126
9127 hpux*)
9128 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9129 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9130 # sets the default TLS model and affects inlining.
9131 case $host_cpu in
9132 hppa*64*)
9133 # +Z the default
9134 ;;
9135 *)
9136 lt_prog_compiler_pic='-fPIC'
9137 ;;
9138 esac
9139 ;;
9140
Steve Kondik2111ad72013-07-07 12:07:44 -07009141 interix[3-9]*)
9142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9143 # Instead, we relocate shared libraries at runtime.
9144 ;;
9145
9146 msdosdjgpp*)
9147 # Just because we use GCC doesn't mean we suddenly get shared libraries
9148 # on systems that don't support them.
9149 lt_prog_compiler_can_build_shared=no
9150 enable_shared=no
9151 ;;
9152
Steve Kondik79165c32015-11-09 19:43:00 -08009153 *nto* | *qnx*)
9154 # QNX uses GNU C++, but need to define -shared option too, otherwise
9155 # it will coredump.
9156 lt_prog_compiler_pic='-fPIC -shared'
9157 ;;
9158
Steve Kondik2111ad72013-07-07 12:07:44 -07009159 sysv4*MP*)
9160 if test -d /usr/nec; then
9161 lt_prog_compiler_pic=-Kconform_pic
9162 fi
9163 ;;
9164
Steve Kondik2111ad72013-07-07 12:07:44 -07009165 *)
9166 lt_prog_compiler_pic='-fPIC'
9167 ;;
9168 esac
Steve Kondik79165c32015-11-09 19:43:00 -08009169
9170 case $cc_basename in
9171 nvcc*) # Cuda Compiler Driver 2.2
9172 lt_prog_compiler_wl='-Xlinker '
9173 if test -n "$lt_prog_compiler_pic"; then
9174 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9175 fi
9176 ;;
9177 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07009178 else
9179 # PORTME Check for flag to pass linker flags through the system compiler.
9180 case $host_os in
9181 aix*)
9182 lt_prog_compiler_wl='-Wl,'
9183 if test "$host_cpu" = ia64; then
9184 # AIX 5 now supports IA64 processor
9185 lt_prog_compiler_static='-Bstatic'
9186 else
9187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9188 fi
9189 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009190
Steve Kondik79165c32015-11-09 19:43:00 -08009191 mingw* | cygwin* | pw32* | os2* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009192 # This hack is so that the source file can tell whether it is being
9193 # built for inclusion in a dll (and should export symbols for example).
9194 lt_prog_compiler_pic='-DDLL_EXPORT'
9195 ;;
9196
9197 hpux9* | hpux10* | hpux11*)
9198 lt_prog_compiler_wl='-Wl,'
9199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9200 # not for PA HP-UX.
9201 case $host_cpu in
9202 hppa*64*|ia64*)
9203 # +Z the default
9204 ;;
9205 *)
9206 lt_prog_compiler_pic='+Z'
9207 ;;
9208 esac
9209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9210 lt_prog_compiler_static='${wl}-a ${wl}archive'
9211 ;;
9212
9213 irix5* | irix6* | nonstopux*)
9214 lt_prog_compiler_wl='-Wl,'
9215 # PIC (with -KPIC) is the default.
9216 lt_prog_compiler_static='-non_shared'
9217 ;;
9218
Steve Kondik79165c32015-11-09 19:43:00 -08009219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Steve Kondik2111ad72013-07-07 12:07:44 -07009220 case $cc_basename in
Steve Kondik79165c32015-11-09 19:43:00 -08009221 # old Intel for x86_64 which still supported -KPIC.
9222 ecc*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_pic='-KPIC'
9225 lt_prog_compiler_static='-static'
9226 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009227 # icc used to be incompatible with GCC.
9228 # ICC 10 doesn't accept -KPIC any more.
9229 icc* | ifort*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-fPIC'
9232 lt_prog_compiler_static='-static'
9233 ;;
9234 # Lahey Fortran 8.1.
9235 lf95*)
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_pic='--shared'
9238 lt_prog_compiler_static='--static'
9239 ;;
9240 nagfor*)
9241 # NAG Fortran compiler
9242 lt_prog_compiler_wl='-Wl,-Wl,,'
9243 lt_prog_compiler_pic='-PIC'
9244 lt_prog_compiler_static='-Bstatic'
9245 ;;
9246 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009247 # Portland Group compilers (*not* the Pentium gcc compiler,
9248 # which looks to be a dead project)
9249 lt_prog_compiler_wl='-Wl,'
9250 lt_prog_compiler_pic='-fpic'
9251 lt_prog_compiler_static='-Bstatic'
9252 ;;
9253 ccc*)
9254 lt_prog_compiler_wl='-Wl,'
9255 # All Alpha code is PIC.
9256 lt_prog_compiler_static='-non_shared'
9257 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009258 xl* | bgxl* | bgf* | mpixl*)
9259 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-qpic'
9262 lt_prog_compiler_static='-qstaticlink'
9263 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009264 *)
Steve Kondik79165c32015-11-09 19:43:00 -08009265 case `$CC -V 2>&1 | sed 5q` in
9266 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9267 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-Bstatic'
9270 lt_prog_compiler_wl=''
9271 ;;
9272 *Sun\ F* | *Sun*Fortran*)
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 lt_prog_compiler_wl='-Qoption ld '
9276 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009277 *Sun\ C*)
9278 # Sun C 5.9
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 lt_prog_compiler_wl='-Wl,'
9282 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009283 *Intel*\ [CF]*Compiler*)
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-fPIC'
9286 lt_prog_compiler_static='-static'
9287 ;;
9288 *Portland\ Group*)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-fpic'
Steve Kondik2111ad72013-07-07 12:07:44 -07009291 lt_prog_compiler_static='-Bstatic'
Steve Kondik2111ad72013-07-07 12:07:44 -07009292 ;;
9293 esac
9294 ;;
9295 esac
9296 ;;
9297
Steve Kondik79165c32015-11-09 19:43:00 -08009298 newsos6)
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 ;;
9302
9303 *nto* | *qnx*)
9304 # QNX uses GNU C++, but need to define -shared option too, otherwise
9305 # it will coredump.
9306 lt_prog_compiler_pic='-fPIC -shared'
9307 ;;
9308
Steve Kondik2111ad72013-07-07 12:07:44 -07009309 osf3* | osf4* | osf5*)
9310 lt_prog_compiler_wl='-Wl,'
9311 # All OSF/1 code is PIC.
9312 lt_prog_compiler_static='-non_shared'
9313 ;;
9314
9315 rdos*)
9316 lt_prog_compiler_static='-non_shared'
9317 ;;
9318
9319 solaris*)
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9322 case $cc_basename in
Steve Kondik79165c32015-11-09 19:43:00 -08009323 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009324 lt_prog_compiler_wl='-Qoption ld ';;
9325 *)
9326 lt_prog_compiler_wl='-Wl,';;
9327 esac
9328 ;;
9329
9330 sunos4*)
9331 lt_prog_compiler_wl='-Qoption ld '
9332 lt_prog_compiler_pic='-PIC'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335
9336 sysv4 | sysv4.2uw2* | sysv4.3*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 ;;
9341
9342 sysv4*MP*)
9343 if test -d /usr/nec ;then
9344 lt_prog_compiler_pic='-Kconform_pic'
9345 lt_prog_compiler_static='-Bstatic'
9346 fi
9347 ;;
9348
9349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 ;;
9354
9355 unicos*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_can_build_shared=no
9358 ;;
9359
9360 uts4*)
9361 lt_prog_compiler_pic='-pic'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364
9365 *)
9366 lt_prog_compiler_can_build_shared=no
9367 ;;
9368 esac
9369 fi
9370
Steve Kondik79165c32015-11-09 19:43:00 -08009371case $host_os in
9372 # For platforms which do not support PIC, -DPIC is meaningless:
9373 *djgpp*)
9374 lt_prog_compiler_pic=
9375 ;;
9376 *)
9377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9378 ;;
9379esac
9380
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9382$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9383if ${lt_cv_prog_compiler_pic+:} false; then :
9384 $as_echo_n "(cached) " >&6
9385else
9386 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9389$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9390lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Steve Kondik2111ad72013-07-07 12:07:44 -07009391
9392#
9393# Check to make sure the PIC flag actually works.
9394#
9395if test -n "$lt_prog_compiler_pic"; then
Steve Kondik79165c32015-11-09 19:43:00 -08009396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9397$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9398if ${lt_cv_prog_compiler_pic_works+:} false; then :
9399 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07009400else
9401 lt_cv_prog_compiler_pic_works=no
Steve Kondik79165c32015-11-09 19:43:00 -08009402 ac_outfile=conftest.$ac_objext
Steve Kondik2111ad72013-07-07 12:07:44 -07009403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9405 # Insert the option either (1) after the last *FLAGS variable, or
9406 # (2) before a word containing "conftest.", or (3) at the end.
9407 # Note that $ac_compile itself does not contain backslashes and begins
9408 # with a dollar sign (not a hyphen), so the echo should work correctly.
9409 # The option is referenced via a variable to avoid confusing sed.
9410 lt_compile=`echo "$ac_compile" | $SED \
9411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9413 -e 's:$: $lt_compiler_flag:'`
Steve Kondik79165c32015-11-09 19:43:00 -08009414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Steve Kondik2111ad72013-07-07 12:07:44 -07009415 (eval "$lt_compile" 2>conftest.err)
9416 ac_status=$?
9417 cat conftest.err >&5
Steve Kondik79165c32015-11-09 19:43:00 -08009418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07009419 if (exit $ac_status) && test -s "$ac_outfile"; then
9420 # The compiler can only warn and ignore the option if not recognized
9421 # So say no if there are warnings other than the usual output.
Steve Kondik79165c32015-11-09 19:43:00 -08009422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Steve Kondik2111ad72013-07-07 12:07:44 -07009423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9425 lt_cv_prog_compiler_pic_works=yes
9426 fi
9427 fi
Steve Kondik79165c32015-11-09 19:43:00 -08009428 $RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009429
9430fi
Steve Kondik79165c32015-11-09 19:43:00 -08009431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9432$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009433
9434if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9435 case $lt_prog_compiler_pic in
9436 "" | " "*) ;;
9437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9438 esac
9439else
9440 lt_prog_compiler_pic=
9441 lt_prog_compiler_can_build_shared=no
9442fi
9443
9444fi
Steve Kondik79165c32015-11-09 19:43:00 -08009445
9446
9447
9448
9449
9450
9451
9452
9453
9454
Steve Kondik2111ad72013-07-07 12:07:44 -07009455
9456#
9457# Check to make sure the static flag actually works.
9458#
9459wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Steve Kondik79165c32015-11-09 19:43:00 -08009460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9461$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9462if ${lt_cv_prog_compiler_static_works+:} false; then :
9463 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07009464else
9465 lt_cv_prog_compiler_static_works=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
Steve Kondik79165c32015-11-09 19:43:00 -08009475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Steve Kondik2111ad72013-07-07 12:07:44 -07009476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler_static_works=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler_static_works=yes
9482 fi
9483 fi
Steve Kondik79165c32015-11-09 19:43:00 -08009484 $RM -r conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009485 LDFLAGS="$save_LDFLAGS"
9486
9487fi
Steve Kondik79165c32015-11-09 19:43:00 -08009488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9489$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009490
9491if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9492 :
9493else
9494 lt_prog_compiler_static=
9495fi
9496
9497
Steve Kondik79165c32015-11-09 19:43:00 -08009498
9499
9500
9501
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9505if ${lt_cv_prog_compiler_c_o+:} false; then :
9506 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -07009507else
9508 lt_cv_prog_compiler_c_o=no
Steve Kondik79165c32015-11-09 19:43:00 -08009509 $RM -r conftest 2>/dev/null
Steve Kondik2111ad72013-07-07 12:07:44 -07009510 mkdir conftest
9511 cd conftest
9512 mkdir out
9513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9514
9515 lt_compiler_flag="-o out/conftest2.$ac_objext"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 lt_compile=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
Steve Kondik79165c32015-11-09 19:43:00 -08009524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Steve Kondik2111ad72013-07-07 12:07:44 -07009525 (eval "$lt_compile" 2>out/conftest.err)
9526 ac_status=$?
9527 cat out/conftest.err >&5
Steve Kondik79165c32015-11-09 19:43:00 -08009528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -07009529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9530 then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings
Steve Kondik79165c32015-11-09 19:43:00 -08009533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Steve Kondik2111ad72013-07-07 12:07:44 -07009534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_c_o=yes
9537 fi
9538 fi
9539 chmod u+w . 2>&5
Steve Kondik79165c32015-11-09 19:43:00 -08009540 $RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009541 # SGI C++ compiler will create directory out/ii_files/ for
9542 # template instantiation
Steve Kondik79165c32015-11-09 19:43:00 -08009543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9544 $RM out/* && rmdir out
Steve Kondik2111ad72013-07-07 12:07:44 -07009545 cd ..
Steve Kondik79165c32015-11-09 19:43:00 -08009546 $RM -r conftest
9547 $RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009548
9549fi
Steve Kondik79165c32015-11-09 19:43:00 -08009550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9552
9553
9554
9555
9556
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560if ${lt_cv_prog_compiler_c_o+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562else
9563 lt_cv_prog_compiler_c_o=no
9564 $RM -r conftest 2>/dev/null
9565 mkdir conftest
9566 cd conftest
9567 mkdir out
9568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570 lt_compiler_flag="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out/conftest.err)
9581 ac_status=$?
9582 cat out/conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9585 then
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_c_o=yes
9592 fi
9593 fi
9594 chmod u+w . 2>&5
9595 $RM conftest*
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9599 $RM out/* && rmdir out
9600 cd ..
9601 $RM -r conftest
9602 $RM conftest*
9603
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9607
9608
Steve Kondik2111ad72013-07-07 12:07:44 -07009609
9610
9611hard_links="nottested"
9612if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9613 # do not overwrite the value of need_locks provided by the user
Steve Kondik79165c32015-11-09 19:43:00 -08009614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615$as_echo_n "checking if we can lock with hard links... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009616 hard_links=yes
Steve Kondik79165c32015-11-09 19:43:00 -08009617 $RM conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -07009618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619 touch conftest.a
9620 ln conftest.a conftest.b 2>&5 || hard_links=no
9621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Steve Kondik79165c32015-11-09 19:43:00 -08009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623$as_echo "$hard_links" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009624 if test "$hard_links" = no; then
Steve Kondik79165c32015-11-09 19:43:00 -08009625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9626$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -07009627 need_locks=warn
9628 fi
9629else
9630 need_locks=no
9631fi
9632
Steve Kondik79165c32015-11-09 19:43:00 -08009633
9634
9635
9636
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -07009640
9641 runpath_var=
9642 allow_undefined_flag=
Steve Kondik79165c32015-11-09 19:43:00 -08009643 always_export_symbols=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009644 archive_cmds=
9645 archive_expsym_cmds=
Steve Kondik79165c32015-11-09 19:43:00 -08009646 compiler_needs_object=no
9647 enable_shared_with_static_runtimes=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009648 export_dynamic_flag_spec=
Steve Kondik79165c32015-11-09 19:43:00 -08009649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009651 hardcode_direct=no
Steve Kondik79165c32015-11-09 19:43:00 -08009652 hardcode_direct_absolute=no
9653 hardcode_libdir_flag_spec=
9654 hardcode_libdir_separator=
Steve Kondik2111ad72013-07-07 12:07:44 -07009655 hardcode_minus_L=no
9656 hardcode_shlibpath_var=unsupported
Steve Kondik79165c32015-11-09 19:43:00 -08009657 inherit_rpath=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009658 link_all_deplibs=unknown
Steve Kondik2111ad72013-07-07 12:07:44 -07009659 module_cmds=
9660 module_expsym_cmds=
Steve Kondik79165c32015-11-09 19:43:00 -08009661 old_archive_from_new_cmds=
9662 old_archive_from_expsyms_cmds=
9663 thread_safe_flag_spec=
9664 whole_archive_flag_spec=
Steve Kondik2111ad72013-07-07 12:07:44 -07009665 # include_expsyms should be a list of space-separated symbols to be *always*
9666 # included in the symbol list
9667 include_expsyms=
9668 # exclude_expsyms can be an extended regexp of symbols to exclude
9669 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9670 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9671 # as well as any symbol that contains `d'.
9672 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9673 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9674 # platforms (ab)use it in PIC code, but their linkers get confused if
9675 # the symbol is explicitly referenced. Since portable code cannot
9676 # rely on this symbol name, it's probably fine to never include it in
9677 # preloaded symbol tables.
9678 # Exclude shared library initialization/finalization symbols.
9679 extract_expsyms_cmds=
Steve Kondik2111ad72013-07-07 12:07:44 -07009680
9681 case $host_os in
Steve Kondik79165c32015-11-09 19:43:00 -08009682 cygwin* | mingw* | pw32* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -07009683 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9684 # When not using gcc, we currently assume that we are using
9685 # Microsoft Visual C++.
9686 if test "$GCC" != yes; then
9687 with_gnu_ld=no
9688 fi
9689 ;;
9690 interix*)
9691 # we just hope/assume this is gcc and not c89 (= MSVC++)
9692 with_gnu_ld=yes
9693 ;;
9694 openbsd*)
9695 with_gnu_ld=no
9696 ;;
9697 esac
9698
9699 ld_shlibs=yes
Steve Kondik79165c32015-11-09 19:43:00 -08009700
9701 # On some targets, GNU ld is compatible enough with the native linker
9702 # that we're better off using the native interface for both.
9703 lt_use_gnu_ld_interface=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009704 if test "$with_gnu_ld" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -08009705 case $host_os in
9706 aix*)
9707 # The AIX port of GNU ld has always aspired to compatibility
9708 # with the native linker. However, as the warning in the GNU ld
9709 # block says, versions before 2.19.5* couldn't really create working
9710 # shared libraries, regardless of the interface used.
9711 case `$LD -v 2>&1` in
9712 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9713 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9714 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9715 *)
9716 lt_use_gnu_ld_interface=yes
9717 ;;
9718 esac
9719 ;;
9720 *)
9721 lt_use_gnu_ld_interface=yes
9722 ;;
9723 esac
9724 fi
9725
9726 if test "$lt_use_gnu_ld_interface" = yes; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009727 # If archive_cmds runs LD, not CC, wlarc should be empty
9728 wlarc='${wl}'
9729
9730 # Set some defaults for GNU ld with shared library support. These
9731 # are reset later if shared libraries are not supported. Putting them
9732 # here allows them to be overridden if necessary.
9733 runpath_var=LD_RUN_PATH
Steve Kondik79165c32015-11-09 19:43:00 -08009734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Steve Kondik2111ad72013-07-07 12:07:44 -07009735 export_dynamic_flag_spec='${wl}--export-dynamic'
9736 # ancient GNU ld didn't support --whole-archive et. al.
Steve Kondik79165c32015-11-09 19:43:00 -08009737 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9738 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9739 else
9740 whole_archive_flag_spec=
Steve Kondik2111ad72013-07-07 12:07:44 -07009741 fi
9742 supports_anon_versioning=no
Steve Kondik79165c32015-11-09 19:43:00 -08009743 case `$LD -v 2>&1` in
9744 *GNU\ gold*) supports_anon_versioning=yes ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9748 *\ 2.11.*) ;; # other 2.11 versions
9749 *) supports_anon_versioning=yes ;;
9750 esac
9751
9752 # See if GNU ld supports shared libraries.
9753 case $host_os in
9754 aix[3-9]*)
9755 # On AIX/PPC, the GNU linker is very broken
9756 if test "$host_cpu" != ia64; then
9757 ld_shlibs=no
Steve Kondik79165c32015-11-09 19:43:00 -08009758 cat <<_LT_EOF 1>&2
Steve Kondik2111ad72013-07-07 12:07:44 -07009759
Steve Kondik79165c32015-11-09 19:43:00 -08009760*** Warning: the GNU linker, at least up to release 2.19, is reported
Steve Kondik2111ad72013-07-07 12:07:44 -07009761*** to be unable to reliably create shared libraries on AIX.
9762*** Therefore, libtool is disabling shared libraries support. If you
Steve Kondik79165c32015-11-09 19:43:00 -08009763*** really care for shared libraries, you may want to install binutils
9764*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9765*** You will then need to restart the configuration process.
Steve Kondik2111ad72013-07-07 12:07:44 -07009766
Steve Kondik79165c32015-11-09 19:43:00 -08009767_LT_EOF
Steve Kondik2111ad72013-07-07 12:07:44 -07009768 fi
9769 ;;
9770
9771 amigaos*)
Steve Kondik79165c32015-11-09 19:43:00 -08009772 case $host_cpu in
9773 powerpc)
9774 # see comment about AmigaOS4 .so support
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 archive_expsym_cmds=''
9777 ;;
9778 m68k)
9779 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)'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_minus_L=yes
9782 ;;
9783 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07009784 ;;
9785
9786 beos*)
Steve Kondik79165c32015-11-09 19:43:00 -08009787 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009788 allow_undefined_flag=unsupported
9789 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9790 # support --undefined. This deserves some investigation. FIXME
9791 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9792 else
9793 ld_shlibs=no
9794 fi
9795 ;;
9796
Steve Kondik79165c32015-11-09 19:43:00 -08009797 cygwin* | mingw* | pw32* | cegcc*)
9798 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Steve Kondik2111ad72013-07-07 12:07:44 -07009799 # as there is no search path for DLLs.
9800 hardcode_libdir_flag_spec='-L$libdir'
Steve Kondik79165c32015-11-09 19:43:00 -08009801 export_dynamic_flag_spec='${wl}--export-all-symbols'
Steve Kondik2111ad72013-07-07 12:07:44 -07009802 allow_undefined_flag=unsupported
9803 always_export_symbols=no
9804 enable_shared_with_static_runtimes=yes
Steve Kondik79165c32015-11-09 19:43:00 -08009805 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'
9806 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Steve Kondik2111ad72013-07-07 12:07:44 -07009807
Steve Kondik79165c32015-11-09 19:43:00 -08009808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9810 # If the export-symbols file already is a .def file (1st line
9811 # is EXPORTS), use it as is; otherwise, prepend...
9812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9813 cp $export_symbols $output_objdir/$soname.def;
9814 else
9815 echo EXPORTS > $output_objdir/$soname.def;
9816 cat $export_symbols >> $output_objdir/$soname.def;
9817 fi~
9818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9819 else
9820 ld_shlibs=no
9821 fi
9822 ;;
9823
Steve Kondik79165c32015-11-09 19:43:00 -08009824 haiku*)
9825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826 link_all_deplibs=yes
9827 ;;
9828
Steve Kondik2111ad72013-07-07 12:07:44 -07009829 interix[3-9]*)
9830 hardcode_direct=no
9831 hardcode_shlibpath_var=no
9832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9833 export_dynamic_flag_spec='${wl}-E'
9834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9835 # Instead, shared libraries are loaded at an image base (0x10000000 by
9836 # default) and relocated if they conflict, which is a slow very memory
9837 # consuming and fragmenting process. To avoid this, we pick a random,
9838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9839 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9841 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'
9842 ;;
9843
Steve Kondik79165c32015-11-09 19:43:00 -08009844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9845 tmp_diet=no
9846 if test "$host_os" = linux-dietlibc; then
9847 case $cc_basename in
9848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9849 esac
9850 fi
9851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9852 && test "$tmp_diet" = no
9853 then
9854 tmp_addflag=' $pic_flag'
9855 tmp_sharedflag='-shared'
Steve Kondik2111ad72013-07-07 12:07:44 -07009856 case $cc_basename,$host_cpu in
Steve Kondik79165c32015-11-09 19:43:00 -08009857 pgcc*) # Portland Group C compiler
9858 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'
Steve Kondik2111ad72013-07-07 12:07:44 -07009859 tmp_addflag=' $pic_flag'
9860 ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009861 pgf77* | pgf90* | pgf95* | pgfortran*)
9862 # Portland Group f77 and f90 compilers
9863 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'
Steve Kondik2111ad72013-07-07 12:07:44 -07009864 tmp_addflag=' $pic_flag -Mnomain' ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009865 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Steve Kondik2111ad72013-07-07 12:07:44 -07009866 tmp_addflag=' -i_dynamic' ;;
9867 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9868 tmp_addflag=' -i_dynamic -nofor_main' ;;
9869 ifc* | ifort*) # Intel Fortran compiler
9870 tmp_addflag=' -nofor_main' ;;
Steve Kondik79165c32015-11-09 19:43:00 -08009871 lf95*) # Lahey Fortran 8.1
9872 whole_archive_flag_spec=
9873 tmp_sharedflag='--shared' ;;
9874 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9875 tmp_sharedflag='-qmkshrobj'
9876 tmp_addflag= ;;
9877 nvcc*) # Cuda Compiler Driver 2.2
9878 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'
9879 compiler_needs_object=yes
9880 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009881 esac
9882 case `$CC -V 2>&1 | sed 5q` in
9883 *Sun\ C*) # Sun C 5.9
Steve Kondik79165c32015-11-09 19:43:00 -08009884 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'
9885 compiler_needs_object=yes
Steve Kondik2111ad72013-07-07 12:07:44 -07009886 tmp_sharedflag='-G' ;;
9887 *Sun\ F*) # Sun Fortran 8.3
9888 tmp_sharedflag='-G' ;;
Steve Kondik2111ad72013-07-07 12:07:44 -07009889 esac
9890 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891
Steve Kondik79165c32015-11-09 19:43:00 -08009892 if test "x$supports_anon_versioning" = xyes; then
9893 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9895 echo "local: *; };" >> $output_objdir/$libname.ver~
9896 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9897 fi
9898
9899 case $cc_basename in
9900 xlf* | bgf* | bgxlf* | mpixlf*)
9901 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9902 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9905 if test "x$supports_anon_versioning" = xyes; then
9906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9908 echo "local: *; };" >> $output_objdir/$libname.ver~
9909 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9910 fi
9911 ;;
9912 esac
Steve Kondik2111ad72013-07-07 12:07:44 -07009913 else
Steve Kondik79165c32015-11-09 19:43:00 -08009914 ld_shlibs=no
Steve Kondik2111ad72013-07-07 12:07:44 -07009915 fi
9916 ;;
9917
9918 netbsd*)
Steve Kondik79165c32015-11-09 19:43:00 -08009919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009920 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9921 wlarc=
9922 else
Steve Kondik79165c32015-11-09 19:43:00 -08009923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -07009925 fi
9926 ;;
9927
9928 solaris*)
Steve Kondik79165c32015-11-09 19:43:00 -08009929 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -07009930 ld_shlibs=no
Steve Kondik79165c32015-11-09 19:43:00 -08009931 cat <<_LT_EOF 1>&2
Steve Kondik2111ad72013-07-07 12:07:44 -07009932
9933*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9934*** create shared libraries on Solaris systems. Therefore, libtool
9935*** is disabling shared libraries support. We urge you to upgrade GNU
9936*** binutils to release 2.9.1 or newer. Another option is to modify
9937*** your PATH or compiler configuration so that the native linker is
9938*** used, and then restart.
9939
Steve Kondik79165c32015-11-09 19:43:00 -08009940_LT_EOF
9941 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -07009944 else
9945 ld_shlibs=no
9946 fi
9947 ;;
9948
9949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9950 case `$LD -v 2>&1` in
9951 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9952 ld_shlibs=no
9953 cat <<_LT_EOF 1>&2
9954
9955*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9956*** reliably create shared libraries on SCO systems. Therefore, libtool
9957*** is disabling shared libraries support. We urge you to upgrade GNU
9958*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9959*** your PATH or compiler configuration so that the native linker is
9960*** used, and then restart.
9961
9962_LT_EOF
9963 ;;
9964 *)
Steve Kondik79165c32015-11-09 19:43:00 -08009965 # For security reasons, it is highly recommended that you always
9966 # use absolute paths for naming shared libraries, and exclude the
9967 # DT_RUNPATH tag from executables and libraries. But doing so
9968 # requires that you compile everything twice, which is a pain.
9969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -07009973 else
9974 ld_shlibs=no
9975 fi
9976 ;;
9977 esac
9978 ;;
9979
9980 sunos4*)
9981 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9982 wlarc=
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 ;;
9986
9987 *)
Steve Kondik79165c32015-11-09 19:43:00 -08009988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -07009991 else
9992 ld_shlibs=no
9993 fi
9994 ;;
9995 esac
9996
9997 if test "$ld_shlibs" = no; then
9998 runpath_var=
9999 hardcode_libdir_flag_spec=
10000 export_dynamic_flag_spec=
10001 whole_archive_flag_spec=
10002 fi
10003 else
10004 # PORTME fill in a description of your system's linker (not GNU ld)
10005 case $host_os in
10006 aix3*)
10007 allow_undefined_flag=unsupported
10008 always_export_symbols=yes
10009 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'
10010 # Note: this linker hardcodes the directories in LIBPATH if there
10011 # are no directories specified by -L.
10012 hardcode_minus_L=yes
10013 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10014 # Neither direct hardcoding nor static linking is supported with a
10015 # broken collect2.
10016 hardcode_direct=unsupported
10017 fi
10018 ;;
10019
10020 aix[4-9]*)
10021 if test "$host_cpu" = ia64; then
10022 # On IA64, the linker does run time linking by default, so we don't
10023 # have to do anything special.
10024 aix_use_runtimelinking=no
10025 exp_sym_flag='-Bexport'
10026 no_entry_flag=""
10027 else
10028 # If we're using GNU nm, then we don't want the "-C" option.
10029 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Steve Kondik79165c32015-11-09 19:43:00 -080010030 # Also, AIX nm treats weak defined symbols like other global
10031 # defined symbols, whereas GNU nm marks them as "W".
10032 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10033 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Steve Kondik2111ad72013-07-07 12:07:44 -070010034 else
Steve Kondik79165c32015-11-09 19:43:00 -080010035 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Steve Kondik2111ad72013-07-07 12:07:44 -070010036 fi
10037 aix_use_runtimelinking=no
10038
10039 # Test if we are trying to use run time linking or normal
10040 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10041 # need to do runtime linking.
10042 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10043 for ld_flag in $LDFLAGS; do
Steve Kondik79165c32015-11-09 19:43:00 -080010044 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10045 aix_use_runtimelinking=yes
10046 break
10047 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010048 done
10049 ;;
10050 esac
10051
10052 exp_sym_flag='-bexport'
10053 no_entry_flag='-bnoentry'
10054 fi
10055
10056 # When large executables or shared objects are built, AIX ld can
10057 # have problems creating the table of contents. If linking a library
10058 # or program results in "error TOC overflow" add -mminimal-toc to
10059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10061
10062 archive_cmds=''
10063 hardcode_direct=yes
Steve Kondik79165c32015-11-09 19:43:00 -080010064 hardcode_direct_absolute=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070010065 hardcode_libdir_separator=':'
10066 link_all_deplibs=yes
Steve Kondik79165c32015-11-09 19:43:00 -080010067 file_list_spec='${wl}-f,'
Steve Kondik2111ad72013-07-07 12:07:44 -070010068
10069 if test "$GCC" = yes; then
10070 case $host_os in aix4.[012]|aix4.[012].*)
10071 # We only want to do this on AIX 4.2 and lower, the check
10072 # below for broken collect2 doesn't work under 4.3+
10073 collect2name=`${CC} -print-prog-name=collect2`
Steve Kondik79165c32015-11-09 19:43:00 -080010074 if test -f "$collect2name" &&
10075 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Steve Kondik2111ad72013-07-07 12:07:44 -070010076 then
Steve Kondik79165c32015-11-09 19:43:00 -080010077 # We have reworked collect2
10078 :
Steve Kondik2111ad72013-07-07 12:07:44 -070010079 else
Steve Kondik79165c32015-11-09 19:43:00 -080010080 # We have old collect2
10081 hardcode_direct=unsupported
10082 # It fails to find uninstalled libraries when the uninstalled
10083 # path is not listed in the libpath. Setting hardcode_minus_L
10084 # to unsupported forces relinking
10085 hardcode_minus_L=yes
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 hardcode_libdir_separator=
Steve Kondik2111ad72013-07-07 12:07:44 -070010088 fi
10089 ;;
10090 esac
10091 shared_flag='-shared'
10092 if test "$aix_use_runtimelinking" = yes; then
10093 shared_flag="$shared_flag "'${wl}-G'
10094 fi
10095 else
10096 # not using gcc
10097 if test "$host_cpu" = ia64; then
Steve Kondik79165c32015-11-09 19:43:00 -080010098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10099 # chokes on -Wl,-G. The following line is correct:
Steve Kondik2111ad72013-07-07 12:07:44 -070010100 shared_flag='-G'
10101 else
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag='${wl}-G'
10104 else
10105 shared_flag='${wl}-bM:SRE'
10106 fi
10107 fi
10108 fi
10109
Steve Kondik79165c32015-11-09 19:43:00 -080010110 export_dynamic_flag_spec='${wl}-bexpall'
Steve Kondik2111ad72013-07-07 12:07:44 -070010111 # It seems that -bexpall does not export symbols beginning with
10112 # underscore (_), so it is better to generate a list of symbols to export.
10113 always_export_symbols=yes
10114 if test "$aix_use_runtimelinking" = yes; then
10115 # Warning - without using the other runtime loading flags (-brtl),
10116 # -berok will link without error, but may produce a broken library.
10117 allow_undefined_flag='-berok'
Steve Kondik79165c32015-11-09 19:43:00 -080010118 # Determine the default libpath from the value encoded in an
10119 # empty executable.
10120 if test "${lt_cv_aix_libpath+set}" = set; then
10121 aix_libpath=$lt_cv_aix_libpath
10122else
10123 if ${lt_cv_aix_libpath_+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070010127/* end confdefs.h. */
10128
10129int
10130main ()
10131{
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080010137if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070010138
Steve Kondik79165c32015-11-09 19:43:00 -080010139 lt_aix_libpath_sed='
10140 /Import File Strings/,/^$/ {
10141 /^0/ {
10142 s/^0 *\([^ ]*\) *$/\1/
10143 p
10144 }
10145 }'
10146 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 # Check for a 64-bit object if we didn't find anything.
10148 if test -z "$lt_cv_aix_libpath_"; then
10149 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10150 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010151fi
Steve Kondik79165c32015-11-09 19:43:00 -080010152rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 if test -z "$lt_cv_aix_libpath_"; then
10155 lt_cv_aix_libpath_="/usr/lib:/lib"
10156 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010157
10158fi
10159
Steve Kondik79165c32015-11-09 19:43:00 -080010160 aix_libpath=$lt_cv_aix_libpath_
10161fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010162
Steve Kondik79165c32015-11-09 19:43:00 -080010163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10164 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10165 else
Steve Kondik2111ad72013-07-07 12:07:44 -070010166 if test "$host_cpu" = ia64; then
10167 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10168 allow_undefined_flag="-z nodefs"
10169 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"
10170 else
Steve Kondik79165c32015-11-09 19:43:00 -080010171 # Determine the default libpath from the value encoded in an
10172 # empty executable.
10173 if test "${lt_cv_aix_libpath+set}" = set; then
10174 aix_libpath=$lt_cv_aix_libpath
10175else
10176 if ${lt_cv_aix_libpath_+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070010180/* end confdefs.h. */
10181
10182int
10183main ()
10184{
10185
10186 ;
10187 return 0;
10188}
10189_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080010190if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070010191
Steve Kondik79165c32015-11-09 19:43:00 -080010192 lt_aix_libpath_sed='
10193 /Import File Strings/,/^$/ {
10194 /^0/ {
10195 s/^0 *\([^ ]*\) *$/\1/
10196 p
10197 }
10198 }'
10199 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10200 # Check for a 64-bit object if we didn't find anything.
10201 if test -z "$lt_cv_aix_libpath_"; then
10202 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10203 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010204fi
Steve Kondik79165c32015-11-09 19:43:00 -080010205rm -f core conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207 if test -z "$lt_cv_aix_libpath_"; then
10208 lt_cv_aix_libpath_="/usr/lib:/lib"
10209 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010210
10211fi
10212
Steve Kondik79165c32015-11-09 19:43:00 -080010213 aix_libpath=$lt_cv_aix_libpath_
10214fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010215
10216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10217 # Warning - without using the other run time loading flags,
10218 # -berok will link without error, but may produce a broken library.
10219 no_undefined_flag=' ${wl}-bernotok'
10220 allow_undefined_flag=' ${wl}-berok'
Steve Kondik79165c32015-11-09 19:43:00 -080010221 if test "$with_gnu_ld" = yes; then
10222 # We only use this code for GNU lds that support --whole-archive.
10223 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10224 else
10225 # Exported symbols can be pulled into shared objects from archives
10226 whole_archive_flag_spec='$convenience'
10227 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010228 archive_cmds_need_lc=yes
10229 # This is similar to how AIX traditionally builds its shared libraries.
10230 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10231 fi
10232 fi
10233 ;;
10234
10235 amigaos*)
Steve Kondik79165c32015-11-09 19:43:00 -080010236 case $host_cpu in
10237 powerpc)
10238 # see comment about AmigaOS4 .so support
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds=''
10241 ;;
10242 m68k)
10243 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)'
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_minus_L=yes
10246 ;;
10247 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070010248 ;;
10249
10250 bsdi[45]*)
10251 export_dynamic_flag_spec=-rdynamic
10252 ;;
10253
Steve Kondik79165c32015-11-09 19:43:00 -080010254 cygwin* | mingw* | pw32* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -070010255 # When not using gcc, we currently assume that we are using
10256 # Microsoft Visual C++.
10257 # hardcode_libdir_flag_spec is actually meaningless, as there is
10258 # no search path for DLLs.
Steve Kondik79165c32015-11-09 19:43:00 -080010259 case $cc_basename in
10260 cl*)
10261 # Native MSVC
10262 hardcode_libdir_flag_spec=' '
10263 allow_undefined_flag=unsupported
10264 always_export_symbols=yes
10265 file_list_spec='@'
10266 # Tell ltmain to make .lib files, not .a files.
10267 libext=lib
10268 # Tell ltmain to make .dll files, not .so files.
10269 shrext_cmds=".dll"
10270 # FIXME: Setting linknames here is a bad hack.
10271 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10272 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10273 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10274 else
10275 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10276 fi~
10277 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10278 linknames='
10279 # The linker will not automatically build a static lib if we build a DLL.
10280 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10281 enable_shared_with_static_runtimes=yes
10282 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10284 # Don't use ranlib
10285 old_postinstall_cmds='chmod 644 $oldlib'
10286 postlink_cmds='lt_outputfile="@OUTPUT@"~
10287 lt_tool_outputfile="@TOOL_OUTPUT@"~
10288 case $lt_outputfile in
10289 *.exe|*.EXE) ;;
10290 *)
10291 lt_outputfile="$lt_outputfile.exe"
10292 lt_tool_outputfile="$lt_tool_outputfile.exe"
10293 ;;
10294 esac~
10295 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10296 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10297 $RM "$lt_outputfile.manifest";
10298 fi'
10299 ;;
10300 *)
10301 # Assume MSVC wrapper
10302 hardcode_libdir_flag_spec=' '
10303 allow_undefined_flag=unsupported
10304 # Tell ltmain to make .lib files, not .a files.
10305 libext=lib
10306 # Tell ltmain to make .dll files, not .so files.
10307 shrext_cmds=".dll"
10308 # FIXME: Setting linknames here is a bad hack.
10309 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10310 # The linker will automatically build a .lib file if we build a DLL.
10311 old_archive_from_new_cmds='true'
10312 # FIXME: Should let the user specify the lib program.
10313 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10314 enable_shared_with_static_runtimes=yes
10315 ;;
10316 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070010317 ;;
10318
10319 darwin* | rhapsody*)
Steve Kondik79165c32015-11-09 19:43:00 -080010320
10321
10322 archive_cmds_need_lc=no
10323 hardcode_direct=no
10324 hardcode_automatic=yes
10325 hardcode_shlibpath_var=unsupported
10326 if test "$lt_cv_ld_force_load" = "yes"; then
10327 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\"`'
10328
10329 else
10330 whole_archive_flag_spec=''
10331 fi
10332 link_all_deplibs=yes
10333 allow_undefined_flag="$_lt_dar_allow_undefined"
10334 case $cc_basename in
10335 ifort*) _lt_dar_can_shared=yes ;;
10336 *) _lt_dar_can_shared=$GCC ;;
10337 esac
10338 if test "$_lt_dar_can_shared" = "yes"; then
10339 output_verbose_link_cmd=func_echo_all
10340 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10341 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10342 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}"
10343 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}"
10344
10345 else
10346 ld_shlibs=no
10347 fi
10348
Steve Kondik2111ad72013-07-07 12:07:44 -070010349 ;;
10350
10351 dgux*)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
10355 ;;
10356
Steve Kondik2111ad72013-07-07 12:07:44 -070010357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10358 # support. Future versions do this automatically, but an explicit c++rt0.o
10359 # does not break anything, and helps significantly (at the cost of a little
10360 # extra space).
10361 freebsd2.2*)
10362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10366 ;;
10367
10368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Steve Kondik79165c32015-11-09 19:43:00 -080010369 freebsd2.*)
Steve Kondik2111ad72013-07-07 12:07:44 -070010370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_direct=yes
10372 hardcode_minus_L=yes
10373 hardcode_shlibpath_var=no
10374 ;;
10375
10376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10377 freebsd* | dragonfly*)
Steve Kondik79165c32015-11-09 19:43:00 -080010378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010379 hardcode_libdir_flag_spec='-R$libdir'
10380 hardcode_direct=yes
10381 hardcode_shlibpath_var=no
10382 ;;
10383
10384 hpux9*)
10385 if test "$GCC" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080010386 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070010387 else
Steve Kondik79165c32015-11-09 19:43:00 -080010388 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070010389 fi
10390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_separator=:
10392 hardcode_direct=yes
10393
10394 # hardcode_minus_L: Not really in the search PATH,
10395 # but as the default location of the library.
10396 hardcode_minus_L=yes
10397 export_dynamic_flag_spec='${wl}-E'
10398 ;;
10399
10400 hpux10*)
Steve Kondik79165c32015-11-09 19:43:00 -080010401 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10402 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010403 else
10404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10405 fi
10406 if test "$with_gnu_ld" = no; then
10407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10408 hardcode_libdir_separator=:
Steve Kondik2111ad72013-07-07 12:07:44 -070010409 hardcode_direct=yes
Steve Kondik79165c32015-11-09 19:43:00 -080010410 hardcode_direct_absolute=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070010411 export_dynamic_flag_spec='${wl}-E'
Steve Kondik2111ad72013-07-07 12:07:44 -070010412 # hardcode_minus_L: Not really in the search PATH,
10413 # but as the default location of the library.
10414 hardcode_minus_L=yes
10415 fi
10416 ;;
10417
10418 hpux11*)
Steve Kondik79165c32015-11-09 19:43:00 -080010419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Steve Kondik2111ad72013-07-07 12:07:44 -070010420 case $host_cpu in
10421 hppa*64*)
10422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 ;;
10424 ia64*)
Steve Kondik79165c32015-11-09 19:43:00 -080010425 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010426 ;;
10427 *)
Steve Kondik79165c32015-11-09 19:43:00 -080010428 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010429 ;;
10430 esac
10431 else
10432 case $host_cpu in
10433 hppa*64*)
10434 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10435 ;;
10436 ia64*)
10437 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10438 ;;
10439 *)
Steve Kondik79165c32015-11-09 19:43:00 -080010440
10441 # Older versions of the 11.00 compiler do not understand -b yet
10442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10444$as_echo_n "checking if $CC understands -b... " >&6; }
10445if ${lt_cv_prog_compiler__b+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447else
10448 lt_cv_prog_compiler__b=no
10449 save_LDFLAGS="$LDFLAGS"
10450 LDFLAGS="$LDFLAGS -b"
10451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10453 # The linker can only warn and ignore the option if not recognized
10454 # So say no if there are warnings
10455 if test -s conftest.err; then
10456 # Append any errors to the config.log.
10457 cat conftest.err 1>&5
10458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10460 if diff conftest.exp conftest.er2 >/dev/null; then
10461 lt_cv_prog_compiler__b=yes
10462 fi
10463 else
10464 lt_cv_prog_compiler__b=yes
10465 fi
10466 fi
10467 $RM -r conftest*
10468 LDFLAGS="$save_LDFLAGS"
10469
10470fi
10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10472$as_echo "$lt_cv_prog_compiler__b" >&6; }
10473
10474if test x"$lt_cv_prog_compiler__b" = xyes; then
10475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10476else
10477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10478fi
10479
Steve Kondik2111ad72013-07-07 12:07:44 -070010480 ;;
10481 esac
10482 fi
10483 if test "$with_gnu_ld" = no; then
10484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10485 hardcode_libdir_separator=:
10486
10487 case $host_cpu in
10488 hppa*64*|ia64*)
Steve Kondik2111ad72013-07-07 12:07:44 -070010489 hardcode_direct=no
10490 hardcode_shlibpath_var=no
10491 ;;
10492 *)
10493 hardcode_direct=yes
Steve Kondik79165c32015-11-09 19:43:00 -080010494 hardcode_direct_absolute=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070010495 export_dynamic_flag_spec='${wl}-E'
10496
10497 # hardcode_minus_L: Not really in the search PATH,
10498 # but as the default location of the library.
10499 hardcode_minus_L=yes
10500 ;;
10501 esac
10502 fi
10503 ;;
10504
10505 irix5* | irix6* | nonstopux*)
10506 if test "$GCC" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080010507 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'
10508 # Try to use the -exported_symbol ld option, if it does not
10509 # work, assume that -exports_file does not work either and
10510 # implicitly export all symbols.
10511 # This should be the same for all languages, so no per-tag cache variable.
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10513$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10514if ${lt_cv_irix_exported_symbol+:} false; then :
10515 $as_echo_n "(cached) " >&6
10516else
10517 save_LDFLAGS="$LDFLAGS"
10518 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h. */
10521int foo (void) { return 0; }
10522_ACEOF
10523if ac_fn_c_try_link "$LINENO"; then :
10524 lt_cv_irix_exported_symbol=yes
10525else
10526 lt_cv_irix_exported_symbol=no
10527fi
10528rm -f core conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LDFLAGS="$save_LDFLAGS"
10531fi
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10533$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10534 if test "$lt_cv_irix_exported_symbol" = yes; then
10535 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'
10536 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010537 else
Steve Kondik79165c32015-11-09 19:43:00 -080010538 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'
10539 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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010540 fi
Steve Kondik79165c32015-11-09 19:43:00 -080010541 archive_cmds_need_lc='no'
Steve Kondik2111ad72013-07-07 12:07:44 -070010542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10543 hardcode_libdir_separator=:
Steve Kondik79165c32015-11-09 19:43:00 -080010544 inherit_rpath=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070010545 link_all_deplibs=yes
10546 ;;
10547
10548 netbsd*)
Steve Kondik79165c32015-11-09 19:43:00 -080010549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -070010550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10551 else
10552 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10553 fi
10554 hardcode_libdir_flag_spec='-R$libdir'
10555 hardcode_direct=yes
10556 hardcode_shlibpath_var=no
10557 ;;
10558
10559 newsos6)
10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_direct=yes
10562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10563 hardcode_libdir_separator=:
10564 hardcode_shlibpath_var=no
10565 ;;
10566
Steve Kondik79165c32015-11-09 19:43:00 -080010567 *nto* | *qnx*)
10568 ;;
10569
Steve Kondik2111ad72013-07-07 12:07:44 -070010570 openbsd*)
10571 if test -f /usr/libexec/ld.so; then
10572 hardcode_direct=yes
10573 hardcode_shlibpath_var=no
Steve Kondik79165c32015-11-09 19:43:00 -080010574 hardcode_direct_absolute=yes
10575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070010576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10579 export_dynamic_flag_spec='${wl}-E'
10580 else
10581 case $host_os in
10582 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10584 hardcode_libdir_flag_spec='-R$libdir'
10585 ;;
10586 *)
10587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10589 ;;
10590 esac
Steve Kondik79165c32015-11-09 19:43:00 -080010591 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010592 else
10593 ld_shlibs=no
10594 fi
10595 ;;
10596
10597 os2*)
10598 hardcode_libdir_flag_spec='-L$libdir'
10599 hardcode_minus_L=yes
10600 allow_undefined_flag=unsupported
Steve Kondik79165c32015-11-09 19:43:00 -080010601 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10602 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Steve Kondik2111ad72013-07-07 12:07:44 -070010603 ;;
10604
10605 osf3*)
10606 if test "$GCC" = yes; then
10607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Steve Kondik79165c32015-11-09 19:43:00 -080010608 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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010609 else
10610 allow_undefined_flag=' -expect_unresolved \*'
Steve Kondik79165c32015-11-09 19:43:00 -080010611 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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010612 fi
Steve Kondik79165c32015-11-09 19:43:00 -080010613 archive_cmds_need_lc='no'
Steve Kondik2111ad72013-07-07 12:07:44 -070010614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 hardcode_libdir_separator=:
10616 ;;
10617
10618 osf4* | osf5*) # as osf3* with the addition of -msym flag
10619 if test "$GCC" = yes; then
10620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Steve Kondik79165c32015-11-09 19:43:00 -080010621 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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10623 else
10624 allow_undefined_flag=' -expect_unresolved \*'
Steve Kondik79165c32015-11-09 19:43:00 -080010625 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'
10626 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~
10627 $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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010628
10629 # Both c and cxx compiler support -rpath directly
10630 hardcode_libdir_flag_spec='-rpath $libdir'
10631 fi
Steve Kondik79165c32015-11-09 19:43:00 -080010632 archive_cmds_need_lc='no'
Steve Kondik2111ad72013-07-07 12:07:44 -070010633 hardcode_libdir_separator=:
10634 ;;
10635
10636 solaris*)
Steve Kondik79165c32015-11-09 19:43:00 -080010637 no_undefined_flag=' -z defs'
Steve Kondik2111ad72013-07-07 12:07:44 -070010638 if test "$GCC" = yes; then
10639 wlarc='${wl}'
Steve Kondik79165c32015-11-09 19:43:00 -080010640 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10642 $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'
Steve Kondik2111ad72013-07-07 12:07:44 -070010643 else
Steve Kondik79165c32015-11-09 19:43:00 -080010644 case `$CC -V 2>&1` in
10645 *"Compilers 5.0"*)
10646 wlarc=''
10647 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10649 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10650 ;;
10651 *)
10652 wlarc='${wl}'
10653 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10656 ;;
10657 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070010658 fi
10659 hardcode_libdir_flag_spec='-R$libdir'
10660 hardcode_shlibpath_var=no
10661 case $host_os in
10662 solaris2.[0-5] | solaris2.[0-5].*) ;;
10663 *)
10664 # The compiler driver will combine and reorder linker options,
10665 # but understands `-z linker_flag'. GCC discards it without `$wl',
10666 # but is careful enough not to reorder.
Steve Kondik79165c32015-11-09 19:43:00 -080010667 # Supported since Solaris 2.6 (maybe 2.5.1?)
Steve Kondik2111ad72013-07-07 12:07:44 -070010668 if test "$GCC" = yes; then
10669 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10670 else
10671 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10672 fi
10673 ;;
10674 esac
10675 link_all_deplibs=yes
10676 ;;
10677
10678 sunos4*)
10679 if test "x$host_vendor" = xsequent; then
10680 # Use $CC to link under sequent, because it throws in some extra .o
10681 # files that make .init and .fini sections work.
10682 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10683 else
10684 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10685 fi
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_direct=yes
10688 hardcode_minus_L=yes
10689 hardcode_shlibpath_var=no
10690 ;;
10691
10692 sysv4)
10693 case $host_vendor in
10694 sni)
10695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_direct=yes # is this really true???
10697 ;;
10698 siemens)
10699 ## LD is ld it makes a PLAMLIB
10700 ## CC just makes a GrossModule.
10701 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10702 reload_cmds='$CC -r -o $output$reload_objs'
10703 hardcode_direct=no
10704 ;;
10705 motorola)
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10708 ;;
10709 esac
10710 runpath_var='LD_RUN_PATH'
10711 hardcode_shlibpath_var=no
10712 ;;
10713
10714 sysv4.3*)
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_shlibpath_var=no
10717 export_dynamic_flag_spec='-Bexport'
10718 ;;
10719
10720 sysv4*MP*)
10721 if test -d /usr/nec; then
10722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10723 hardcode_shlibpath_var=no
10724 runpath_var=LD_RUN_PATH
10725 hardcode_runpath_var=yes
10726 ld_shlibs=yes
10727 fi
10728 ;;
10729
10730 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10731 no_undefined_flag='${wl}-z,text'
10732 archive_cmds_need_lc=no
10733 hardcode_shlibpath_var=no
10734 runpath_var='LD_RUN_PATH'
10735
10736 if test "$GCC" = yes; then
10737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 else
10740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 fi
10743 ;;
10744
10745 sysv5* | sco3.2v5* | sco5v6*)
10746 # Note: We can NOT use -z defs as we might desire, because we do not
10747 # link with -lc, and that would cause any symbols used from libc to
10748 # always be unresolved, which means just about no library would
10749 # ever link correctly. If we're not using GNU ld we use -z text
10750 # though, which does catch some bad symbols but isn't as heavy-handed
10751 # as -z defs.
10752 no_undefined_flag='${wl}-z,text'
10753 allow_undefined_flag='${wl}-z,nodefs'
10754 archive_cmds_need_lc=no
10755 hardcode_shlibpath_var=no
Steve Kondik79165c32015-11-09 19:43:00 -080010756 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Steve Kondik2111ad72013-07-07 12:07:44 -070010757 hardcode_libdir_separator=':'
10758 link_all_deplibs=yes
10759 export_dynamic_flag_spec='${wl}-Bexport'
10760 runpath_var='LD_RUN_PATH'
10761
10762 if test "$GCC" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080010763 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010765 else
Steve Kondik79165c32015-11-09 19:43:00 -080010766 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Steve Kondik2111ad72013-07-07 12:07:44 -070010768 fi
10769 ;;
10770
10771 uts4*)
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_libdir_flag_spec='-L$libdir'
10774 hardcode_shlibpath_var=no
10775 ;;
10776
10777 *)
10778 ld_shlibs=no
10779 ;;
10780 esac
Steve Kondik79165c32015-11-09 19:43:00 -080010781
10782 if test x$host_vendor = xsni; then
10783 case $host in
10784 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10785 export_dynamic_flag_spec='${wl}-Blargedynsym'
10786 ;;
10787 esac
10788 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070010789 fi
10790
Steve Kondik79165c32015-11-09 19:43:00 -080010791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10792$as_echo "$ld_shlibs" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070010793test "$ld_shlibs" = no && can_build_shared=no
10794
Steve Kondik79165c32015-11-09 19:43:00 -080010795with_gnu_ld=$with_gnu_ld
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
Steve Kondik2111ad72013-07-07 12:07:44 -070010811#
10812# Do we need to explicitly link libc?
10813#
10814case "x$archive_cmds_need_lc" in
10815x|xyes)
10816 # Assume -lc should be added
10817 archive_cmds_need_lc=yes
10818
10819 if test "$enable_shared" = yes && test "$GCC" = yes; then
10820 case $archive_cmds in
10821 *'~'*)
10822 # FIXME: we may have to deal with multi-command sequences.
10823 ;;
10824 '$CC '*)
10825 # Test whether the compiler implicitly links with -lc since on some
10826 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10827 # to ld, don't add -lc before -lgcc.
Steve Kondik79165c32015-11-09 19:43:00 -080010828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10829$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10830if ${lt_cv_archive_cmds_need_lc+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832else
10833 $RM conftest*
10834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070010835
Steve Kondik79165c32015-11-09 19:43:00 -080010836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070010837 (eval $ac_compile) 2>&5
10838 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080010839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840 test $ac_status = 0; } 2>conftest.err; then
10841 soname=conftest
10842 lib=conftest
10843 libobjs=conftest.$ac_objext
10844 deplibs=
10845 wl=$lt_prog_compiler_wl
10846 pic_flag=$lt_prog_compiler_pic
10847 compiler_flags=-v
10848 linker_flags=-v
10849 verstring=
10850 output_objdir=.
10851 libname=conftest
10852 lt_save_allow_undefined_flag=$allow_undefined_flag
10853 allow_undefined_flag=
10854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10855 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Steve Kondik2111ad72013-07-07 12:07:44 -070010856 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080010857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858 test $ac_status = 0; }
10859 then
10860 lt_cv_archive_cmds_need_lc=no
10861 else
10862 lt_cv_archive_cmds_need_lc=yes
10863 fi
10864 allow_undefined_flag=$lt_save_allow_undefined_flag
10865 else
10866 cat conftest.err 1>&5
10867 fi
10868 $RM conftest*
10869
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10872$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10873 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Steve Kondik2111ad72013-07-07 12:07:44 -070010874 ;;
10875 esac
10876 fi
10877 ;;
10878esac
10879
Steve Kondik79165c32015-11-09 19:43:00 -080010880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11032$as_echo_n "checking dynamic linker characteristics... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070011033
11034if test "$GCC" = yes; then
11035 case $host_os in
11036 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11037 *) lt_awk_arg="/^libraries:/" ;;
11038 esac
Steve Kondik79165c32015-11-09 19:43:00 -080011039 case $host_os in
11040 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11041 *) lt_sed_strip_eq="s,=/,/,g" ;;
11042 esac
11043 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11044 case $lt_search_path_spec in
11045 *\;*)
Steve Kondik2111ad72013-07-07 12:07:44 -070011046 # if the path contains ";" then we assume it to be the separator
11047 # otherwise default to the standard path separator (i.e. ":") - it is
11048 # assumed that no part of a normal pathname contains ";" but that should
11049 # okay in the real world where ";" in dirpaths is itself problematic.
Steve Kondik79165c32015-11-09 19:43:00 -080011050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11051 ;;
11052 *)
11053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11054 ;;
11055 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070011056 # Ok, now we have the path, separated by spaces, we can step through it
11057 # and add multilib dir if necessary.
11058 lt_tmp_lt_search_path_spec=
11059 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11060 for lt_sys_path in $lt_search_path_spec; do
11061 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11063 else
11064 test -d "$lt_sys_path" && \
11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11066 fi
11067 done
Steve Kondik79165c32015-11-09 19:43:00 -080011068 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Steve Kondik2111ad72013-07-07 12:07:44 -070011069BEGIN {RS=" "; FS="/|\n";} {
11070 lt_foo="";
11071 lt_count=0;
11072 for (lt_i = NF; lt_i > 0; lt_i--) {
11073 if ($lt_i != "" && $lt_i != ".") {
11074 if ($lt_i == "..") {
11075 lt_count++;
11076 } else {
11077 if (lt_count == 0) {
11078 lt_foo="/" $lt_i lt_foo;
11079 } else {
11080 lt_count--;
11081 }
11082 }
11083 }
11084 }
11085 if (lt_foo != "") { lt_freq[lt_foo]++; }
11086 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11087}'`
Steve Kondik79165c32015-11-09 19:43:00 -080011088 # AWK program above erroneously prepends '/' to C:/dos/paths
11089 # for these hosts.
11090 case $host_os in
11091 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11092 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11093 esac
11094 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Steve Kondik2111ad72013-07-07 12:07:44 -070011095else
11096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11097fi
Steve Kondik79165c32015-11-09 19:43:00 -080011098library_names_spec=
11099libname_spec='lib$name'
11100soname_spec=
11101shrext_cmds=".so"
11102postinstall_cmds=
11103postuninstall_cmds=
11104finish_cmds=
11105finish_eval=
11106shlibpath_var=
11107shlibpath_overrides_runpath=unknown
11108version_type=none
11109dynamic_linker="$host_os ld.so"
11110sys_lib_dlsearch_path_spec="/lib /usr/lib"
Steve Kondik2111ad72013-07-07 12:07:44 -070011111need_lib_prefix=unknown
11112hardcode_into_libs=no
11113
11114# when you set need_version to no, make sure it does not cause -set_version
11115# flags to be left without arguments
11116need_version=unknown
11117
11118case $host_os in
11119aix3*)
Steve Kondik79165c32015-11-09 19:43:00 -080011120 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11122 shlibpath_var=LIBPATH
11123
11124 # AIX 3 has no versioning support, so we append a major version to the name.
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 ;;
11127
11128aix[4-9]*)
Steve Kondik79165c32015-11-09 19:43:00 -080011129 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011130 need_lib_prefix=no
11131 need_version=no
11132 hardcode_into_libs=yes
11133 if test "$host_cpu" = ia64; then
11134 # AIX 5 supports IA64
11135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 else
11138 # With GCC up to 2.95.x, collect2 would create an import file
11139 # for dependence libraries. The import file would start with
11140 # the line `#! .'. This would cause the generated library to
11141 # depend on `.', always an invalid library. This was fixed in
11142 # development snapshots of GCC prior to 3.0.
11143 case $host_os in
11144 aix4 | aix4.[01] | aix4.[01].*)
11145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11146 echo ' yes '
Steve Kondik79165c32015-11-09 19:43:00 -080011147 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -070011148 :
11149 else
11150 can_build_shared=no
11151 fi
11152 ;;
11153 esac
11154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11155 # soname into executable. Probably we can add versioning support to
11156 # collect2, so additional links can be useful in future.
11157 if test "$aix_use_runtimelinking" = yes; then
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 else
11163 # We preserve .a as extension for shared libraries through AIX4.2
11164 # and later when we are not doing run time linking.
11165 library_names_spec='${libname}${release}.a $libname.a'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 fi
11168 shlibpath_var=LIBPATH
11169 fi
11170 ;;
11171
11172amigaos*)
Steve Kondik79165c32015-11-09 19:43:00 -080011173 case $host_cpu in
11174 powerpc)
11175 # Since July 2007 AmigaOS4 officially supports .so libraries.
11176 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 ;;
11179 m68k)
11180 library_names_spec='$libname.ixlibrary $libname.a'
11181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11182 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11183 ;;
11184 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070011185 ;;
11186
11187beos*)
11188 library_names_spec='${libname}${shared_ext}'
11189 dynamic_linker="$host_os ld.so"
11190 shlibpath_var=LIBRARY_PATH
11191 ;;
11192
11193bsdi[45]*)
Steve Kondik79165c32015-11-09 19:43:00 -080011194 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011195 need_version=no
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11202 # the default ld.so.conf also contains /usr/contrib/lib and
11203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11204 # libtool to hard-code these into programs
11205 ;;
11206
Steve Kondik79165c32015-11-09 19:43:00 -080011207cygwin* | mingw* | pw32* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -070011208 version_type=windows
11209 shrext_cmds=".dll"
11210 need_version=no
11211 need_lib_prefix=no
11212
Steve Kondik79165c32015-11-09 19:43:00 -080011213 case $GCC,$cc_basename in
11214 yes,*)
11215 # gcc
Steve Kondik2111ad72013-07-07 12:07:44 -070011216 library_names_spec='$libname.dll.a'
11217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11218 postinstall_cmds='base_file=`basename \${file}`~
Steve Kondik79165c32015-11-09 19:43:00 -080011219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Steve Kondik2111ad72013-07-07 12:07:44 -070011220 dldir=$destdir/`dirname \$dlpath`~
11221 test -d \$dldir || mkdir -p \$dldir~
11222 $install_prog $dir/$dlname \$dldir/$dlname~
Steve Kondik79165c32015-11-09 19:43:00 -080011223 chmod a+x \$dldir/$dlname~
11224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11225 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11226 fi'
Steve Kondik2111ad72013-07-07 12:07:44 -070011227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11228 dlpath=$dir/\$dldll~
Steve Kondik79165c32015-11-09 19:43:00 -080011229 $RM \$dlpath'
Steve Kondik2111ad72013-07-07 12:07:44 -070011230 shlibpath_overrides_runpath=yes
11231
11232 case $host_os in
11233 cygwin*)
11234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Steve Kondik79165c32015-11-09 19:43:00 -080011236
11237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Steve Kondik2111ad72013-07-07 12:07:44 -070011238 ;;
Steve Kondik79165c32015-11-09 19:43:00 -080011239 mingw* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -070011240 # MinGW DLLs use traditional 'lib' prefix
11241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Steve Kondik2111ad72013-07-07 12:07:44 -070011242 ;;
11243 pw32*)
11244 # pw32 DLLs use 'pw' prefix rather than 'lib'
11245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246 ;;
11247 esac
Steve Kondik79165c32015-11-09 19:43:00 -080011248 dynamic_linker='Win32 ld.exe'
11249 ;;
11250
11251 *,cl*)
11252 # Native MSVC
11253 libname_spec='$name'
11254 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11255 library_names_spec='${libname}.dll.lib'
11256
11257 case $build_os in
11258 mingw*)
11259 sys_lib_search_path_spec=
11260 lt_save_ifs=$IFS
11261 IFS=';'
11262 for lt_path in $LIB
11263 do
11264 IFS=$lt_save_ifs
11265 # Let DOS variable expansion print the short 8.3 style file name.
11266 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11268 done
11269 IFS=$lt_save_ifs
11270 # Convert to MSYS style.
11271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11272 ;;
11273 cygwin*)
11274 # Convert to unix form, then to dos form, then back to unix form
11275 # but this time dos style (no spaces!) so that the unix form looks
11276 # like /cygdrive/c/PROGRA~1:/cygdr...
11277 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11278 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11279 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11280 ;;
11281 *)
11282 sys_lib_search_path_spec="$LIB"
11283 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11284 # It is most probably a Windows format PATH.
11285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11286 else
11287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11288 fi
11289 # FIXME: find the short name or the path components, as spaces are
11290 # common. (e.g. "Program Files" -> "PROGRA~1")
11291 ;;
11292 esac
11293
11294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295 postinstall_cmds='base_file=`basename \${file}`~
11296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11297 dldir=$destdir/`dirname \$dlpath`~
11298 test -d \$dldir || mkdir -p \$dldir~
11299 $install_prog $dir/$dlname \$dldir/$dlname'
11300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11301 dlpath=$dir/\$dldll~
11302 $RM \$dlpath'
11303 shlibpath_overrides_runpath=yes
11304 dynamic_linker='Win32 link.exe'
Steve Kondik2111ad72013-07-07 12:07:44 -070011305 ;;
11306
11307 *)
Steve Kondik79165c32015-11-09 19:43:00 -080011308 # Assume MSVC wrapper
Steve Kondik2111ad72013-07-07 12:07:44 -070011309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Steve Kondik79165c32015-11-09 19:43:00 -080011310 dynamic_linker='Win32 ld.exe'
Steve Kondik2111ad72013-07-07 12:07:44 -070011311 ;;
11312 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070011313 # FIXME: first we should search . and the directory the executable is in
11314 shlibpath_var=PATH
11315 ;;
11316
11317darwin* | rhapsody*)
11318 dynamic_linker="$host_os dyld"
11319 version_type=darwin
11320 need_lib_prefix=no
11321 need_version=no
Steve Kondik79165c32015-11-09 19:43:00 -080011322 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Steve Kondik2111ad72013-07-07 12:07:44 -070011323 soname_spec='${libname}${release}${major}$shared_ext'
11324 shlibpath_overrides_runpath=yes
11325 shlibpath_var=DYLD_LIBRARY_PATH
11326 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11327
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11329 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11330 ;;
11331
11332dgux*)
Steve Kondik79165c32015-11-09 19:43:00 -080011333 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011334 need_lib_prefix=no
11335 need_version=no
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 ;;
11340
Steve Kondik2111ad72013-07-07 12:07:44 -070011341freebsd* | dragonfly*)
11342 # DragonFly does not have aout. When/if they implement a new
11343 # versioning mechanism, adjust this.
11344 if test -x /usr/bin/objformat; then
11345 objformat=`/usr/bin/objformat`
11346 else
11347 case $host_os in
Steve Kondik79165c32015-11-09 19:43:00 -080011348 freebsd[23].*) objformat=aout ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070011349 *) objformat=elf ;;
11350 esac
11351 fi
11352 version_type=freebsd-$objformat
11353 case $version_type in
11354 freebsd-elf*)
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11356 need_version=no
11357 need_lib_prefix=no
11358 ;;
11359 freebsd-*)
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11361 need_version=yes
11362 ;;
11363 esac
11364 shlibpath_var=LD_LIBRARY_PATH
11365 case $host_os in
Steve Kondik79165c32015-11-09 19:43:00 -080011366 freebsd2.*)
Steve Kondik2111ad72013-07-07 12:07:44 -070011367 shlibpath_overrides_runpath=yes
11368 ;;
11369 freebsd3.[01]* | freebsdelf3.[01]*)
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11372 ;;
11373 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11374 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11375 shlibpath_overrides_runpath=no
11376 hardcode_into_libs=yes
11377 ;;
11378 *) # from 4.6 on, and DragonFly
11379 shlibpath_overrides_runpath=yes
11380 hardcode_into_libs=yes
11381 ;;
11382 esac
11383 ;;
11384
11385gnu*)
Steve Kondik79165c32015-11-09 19:43:00 -080011386 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011387 need_lib_prefix=no
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LD_LIBRARY_PATH
Steve Kondik79165c32015-11-09 19:43:00 -080011392 shlibpath_overrides_runpath=no
11393 hardcode_into_libs=yes
11394 ;;
11395
11396haiku*)
11397 version_type=linux # correct to gnu/linux during the next big refactor
11398 need_lib_prefix=no
11399 need_version=no
11400 dynamic_linker="$host_os runtime_loader"
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11402 soname_spec='${libname}${release}${shared_ext}$major'
11403 shlibpath_var=LIBRARY_PATH
11404 shlibpath_overrides_runpath=yes
11405 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070011406 hardcode_into_libs=yes
11407 ;;
11408
11409hpux9* | hpux10* | hpux11*)
11410 # Give a soname corresponding to the major version so that dld.sl refuses to
11411 # link against other versions.
11412 version_type=sunos
11413 need_lib_prefix=no
11414 need_version=no
11415 case $host_cpu in
11416 ia64*)
11417 shrext_cmds='.so'
11418 hardcode_into_libs=yes
11419 dynamic_linker="$host_os dld.so"
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 if test "X$HPUX_IA64_MODE" = X32; then
11425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11426 else
11427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11428 fi
11429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11430 ;;
Steve Kondik79165c32015-11-09 19:43:00 -080011431 hppa*64*)
11432 shrext_cmds='.sl'
11433 hardcode_into_libs=yes
11434 dynamic_linker="$host_os dld.sl"
11435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11441 ;;
11442 *)
Steve Kondik2111ad72013-07-07 12:07:44 -070011443 shrext_cmds='.sl'
11444 dynamic_linker="$host_os dld.sl"
11445 shlibpath_var=SHLIB_PATH
11446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 ;;
11450 esac
Steve Kondik79165c32015-11-09 19:43:00 -080011451 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Steve Kondik2111ad72013-07-07 12:07:44 -070011452 postinstall_cmds='chmod 555 $lib'
Steve Kondik79165c32015-11-09 19:43:00 -080011453 # or fails outright, so override atomically:
11454 install_override_mode=555
Steve Kondik2111ad72013-07-07 12:07:44 -070011455 ;;
11456
11457interix[3-9]*)
Steve Kondik79165c32015-11-09 19:43:00 -080011458 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 ;;
11468
11469irix5* | irix6* | nonstopux*)
11470 case $host_os in
11471 nonstopux*) version_type=nonstopux ;;
11472 *)
11473 if test "$lt_cv_prog_gnu_ld" = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080011474 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011475 else
11476 version_type=irix
11477 fi ;;
11478 esac
11479 need_lib_prefix=no
11480 need_version=no
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11483 case $host_os in
11484 irix5* | nonstopux*)
11485 libsuff= shlibsuff=
11486 ;;
11487 *)
11488 case $LD in # libtool.m4 will add one of these switches to LD
11489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11490 libsuff= shlibsuff= libmagic=32-bit;;
11491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11492 libsuff=32 shlibsuff=N32 libmagic=N32;;
11493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11494 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11495 *) libsuff= shlibsuff= libmagic=never-match;;
11496 esac
11497 ;;
11498 esac
11499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11500 shlibpath_overrides_runpath=no
11501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11503 hardcode_into_libs=yes
11504 ;;
11505
11506# No shared lib support for Linux oldld, aout, or coff.
11507linux*oldld* | linux*aout* | linux*coff*)
11508 dynamic_linker=no
11509 ;;
11510
Steve Kondik79165c32015-11-09 19:43:00 -080011511# This must be glibc/ELF.
11512linux* | k*bsd*-gnu | kopensolaris*-gnu)
11513 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=no
Steve Kondik79165c32015-11-09 19:43:00 -080011521
11522 # Some binutils ld are patched to set DT_RUNPATH
11523 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525else
11526 lt_cv_shlibpath_overrides_runpath=no
11527 save_LDFLAGS=$LDFLAGS
11528 save_libdir=$libdir
11529 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11530 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532/* end confdefs.h. */
11533
11534int
11535main ()
11536{
11537
11538 ;
11539 return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11544 lt_cv_shlibpath_overrides_runpath=yes
11545fi
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LDFLAGS=$save_LDFLAGS
11550 libdir=$save_libdir
11551
11552fi
11553
11554 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11555
Steve Kondik2111ad72013-07-07 12:07:44 -070011556 # This implies no fast_install, which is unacceptable.
11557 # Some rework will be needed to allow for fast_install
11558 # before this can be enabled.
11559 hardcode_into_libs=yes
11560
Steve Kondik79165c32015-11-09 19:43:00 -080011561 # Add ABI-specific directories to the system library path.
11562 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11563
Steve Kondik2111ad72013-07-07 12:07:44 -070011564 # Append ld.so.conf contents to the search path
11565 if test -f /etc/ld.so.conf; then
Steve Kondik79165c32015-11-09 19:43:00 -080011566 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' ' '`
11567 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11568
Steve Kondik2111ad72013-07-07 12:07:44 -070011569 fi
11570
11571 # We used to test for /lib/ld.so.1 and disable shared libraries on
11572 # powerpc, because MkLinux only supported shared libraries with the
11573 # GNU dynamic linker. Since this was broken with cross compilers,
11574 # most powerpc-linux boxes support dynamic linking these days and
11575 # people can always --disable-shared, the test was removed, and we
11576 # assume the GNU/Linux dynamic linker is in use.
11577 dynamic_linker='GNU/Linux ld.so'
11578 ;;
11579
11580netbsd*)
11581 version_type=sunos
11582 need_lib_prefix=no
11583 need_version=no
Steve Kondik79165c32015-11-09 19:43:00 -080011584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -070011585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11587 dynamic_linker='NetBSD (a.out) ld.so'
11588 else
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 dynamic_linker='NetBSD ld.elf_so'
11592 fi
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595 hardcode_into_libs=yes
11596 ;;
11597
11598newsos6)
Steve Kondik79165c32015-11-09 19:43:00 -080011599 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=yes
11603 ;;
11604
Steve Kondik79165c32015-11-09 19:43:00 -080011605*nto* | *qnx*)
11606 version_type=qnx
Steve Kondik2111ad72013-07-07 12:07:44 -070011607 need_lib_prefix=no
11608 need_version=no
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 shlibpath_var=LD_LIBRARY_PATH
Steve Kondik79165c32015-11-09 19:43:00 -080011612 shlibpath_overrides_runpath=no
11613 hardcode_into_libs=yes
11614 dynamic_linker='ldqnx.so'
Steve Kondik2111ad72013-07-07 12:07:44 -070011615 ;;
11616
11617openbsd*)
11618 version_type=sunos
11619 sys_lib_dlsearch_path_spec="/usr/lib"
11620 need_lib_prefix=no
11621 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11622 case $host_os in
Steve Kondik79165c32015-11-09 19:43:00 -080011623 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11624 *) need_version=no ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070011625 esac
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11628 shlibpath_var=LD_LIBRARY_PATH
Steve Kondik79165c32015-11-09 19:43:00 -080011629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070011630 case $host_os in
11631 openbsd2.[89] | openbsd2.[89].*)
11632 shlibpath_overrides_runpath=no
11633 ;;
11634 *)
11635 shlibpath_overrides_runpath=yes
11636 ;;
11637 esac
11638 else
11639 shlibpath_overrides_runpath=yes
11640 fi
11641 ;;
11642
11643os2*)
11644 libname_spec='$name'
11645 shrext_cmds=".dll"
11646 need_lib_prefix=no
11647 library_names_spec='$libname${shared_ext} $libname.a'
11648 dynamic_linker='OS/2 ld.exe'
11649 shlibpath_var=LIBPATH
11650 ;;
11651
11652osf3* | osf4* | osf5*)
11653 version_type=osf
11654 need_lib_prefix=no
11655 need_version=no
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11661 ;;
11662
11663rdos*)
11664 dynamic_linker=no
11665 ;;
11666
11667solaris*)
Steve Kondik79165c32015-11-09 19:43:00 -080011668 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011669 need_lib_prefix=no
11670 need_version=no
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11676 # ldd complains unless libraries are executable
11677 postinstall_cmds='chmod +x $lib'
11678 ;;
11679
11680sunos4*)
11681 version_type=sunos
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath=yes
11686 if test "$with_gnu_ld" = yes; then
11687 need_lib_prefix=no
11688 fi
11689 need_version=yes
11690 ;;
11691
11692sysv4 | sysv4.3*)
Steve Kondik79165c32015-11-09 19:43:00 -080011693 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 case $host_vendor in
11698 sni)
11699 shlibpath_overrides_runpath=no
11700 need_lib_prefix=no
Steve Kondik2111ad72013-07-07 12:07:44 -070011701 runpath_var=LD_RUN_PATH
11702 ;;
11703 siemens)
11704 need_lib_prefix=no
11705 ;;
11706 motorola)
11707 need_lib_prefix=no
11708 need_version=no
11709 shlibpath_overrides_runpath=no
11710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11711 ;;
11712 esac
11713 ;;
11714
11715sysv4*MP*)
11716 if test -d /usr/nec ;then
Steve Kondik79165c32015-11-09 19:43:00 -080011717 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11719 soname_spec='$libname${shared_ext}.$major'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 fi
11722 ;;
11723
11724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11725 version_type=freebsd-elf
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 shlibpath_var=LD_LIBRARY_PATH
Steve Kondik79165c32015-11-09 19:43:00 -080011731 shlibpath_overrides_runpath=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070011732 hardcode_into_libs=yes
11733 if test "$with_gnu_ld" = yes; then
11734 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070011735 else
11736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070011737 case $host_os in
11738 sco3.2v5*)
11739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11740 ;;
11741 esac
11742 fi
11743 sys_lib_dlsearch_path_spec='/usr/lib'
11744 ;;
11745
Steve Kondik79165c32015-11-09 19:43:00 -080011746tpf*)
11747 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11748 version_type=linux # correct to gnu/linux during the next big refactor
11749 need_lib_prefix=no
11750 need_version=no
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=no
11754 hardcode_into_libs=yes
11755 ;;
11756
Steve Kondik2111ad72013-07-07 12:07:44 -070011757uts4*)
Steve Kondik79165c32015-11-09 19:43:00 -080011758 version_type=linux # correct to gnu/linux during the next big refactor
Steve Kondik2111ad72013-07-07 12:07:44 -070011759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 ;;
11763
11764*)
11765 dynamic_linker=no
11766 ;;
11767esac
Steve Kondik79165c32015-11-09 19:43:00 -080011768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11769$as_echo "$dynamic_linker" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070011770test "$dynamic_linker" = no && can_build_shared=no
11771
Steve Kondik2111ad72013-07-07 12:07:44 -070011772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11773if test "$GCC" = yes; then
11774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11775fi
11776
Steve Kondik79165c32015-11-09 19:43:00 -080011777if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11778 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11779fi
11780if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11781 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11782fi
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11876$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070011877hardcode_action=
Steve Kondik79165c32015-11-09 19:43:00 -080011878if test -n "$hardcode_libdir_flag_spec" ||
11879 test -n "$runpath_var" ||
Steve Kondik2111ad72013-07-07 12:07:44 -070011880 test "X$hardcode_automatic" = "Xyes" ; then
11881
Steve Kondik79165c32015-11-09 19:43:00 -080011882 # We can hardcode non-existent directories.
Steve Kondik2111ad72013-07-07 12:07:44 -070011883 if test "$hardcode_direct" != no &&
11884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11885 # have to relink, otherwise we might link with an installed library
11886 # when we should be linking with a yet-to-be-installed one
Steve Kondik79165c32015-11-09 19:43:00 -080011887 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Steve Kondik2111ad72013-07-07 12:07:44 -070011888 test "$hardcode_minus_L" != no; then
11889 # Linking always hardcodes the temporary library directory.
11890 hardcode_action=relink
11891 else
11892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11893 hardcode_action=immediate
11894 fi
11895else
11896 # We cannot hardcode anything, or else we can only hardcode existing
11897 # directories.
11898 hardcode_action=unsupported
11899fi
Steve Kondik79165c32015-11-09 19:43:00 -080011900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11901$as_echo "$hardcode_action" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070011902
Steve Kondik79165c32015-11-09 19:43:00 -080011903if test "$hardcode_action" = relink ||
11904 test "$inherit_rpath" = yes; then
Steve Kondik2111ad72013-07-07 12:07:44 -070011905 # Fast installation is not supported
11906 enable_fast_install=no
11907elif test "$shlibpath_overrides_runpath" = yes ||
11908 test "$enable_shared" = no; then
11909 # Fast installation is not necessary
11910 enable_fast_install=needless
11911fi
11912
Steve Kondik2111ad72013-07-07 12:07:44 -070011913
Steve Kondik79165c32015-11-09 19:43:00 -080011914
11915
11916
11917
11918 if test "x$enable_dlopen" != xyes; then
Steve Kondik2111ad72013-07-07 12:07:44 -070011919 enable_dlopen=unknown
11920 enable_dlopen_self=unknown
11921 enable_dlopen_self_static=unknown
11922else
11923 lt_cv_dlopen=no
11924 lt_cv_dlopen_libs=
11925
11926 case $host_os in
11927 beos*)
11928 lt_cv_dlopen="load_add_on"
11929 lt_cv_dlopen_libs=
11930 lt_cv_dlopen_self=yes
11931 ;;
11932
Steve Kondik79165c32015-11-09 19:43:00 -080011933 mingw* | pw32* | cegcc*)
Steve Kondik2111ad72013-07-07 12:07:44 -070011934 lt_cv_dlopen="LoadLibrary"
11935 lt_cv_dlopen_libs=
Steve Kondik79165c32015-11-09 19:43:00 -080011936 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070011937
11938 cygwin*)
11939 lt_cv_dlopen="dlopen"
11940 lt_cv_dlopen_libs=
Steve Kondik79165c32015-11-09 19:43:00 -080011941 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070011942
11943 darwin*)
11944 # if libdl is installed we need to link against it
Steve Kondik79165c32015-11-09 19:43:00 -080011945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11946$as_echo_n "checking for dlopen in -ldl... " >&6; }
11947if ${ac_cv_lib_dl_dlopen+:} false; then :
11948 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070011949else
11950 ac_check_lib_save_LIBS=$LIBS
11951LIBS="-ldl $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080011952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070011953/* end confdefs.h. */
11954
11955/* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char dlopen ();
11962int
11963main ()
11964{
11965return dlopen ();
11966 ;
11967 return 0;
11968}
11969_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080011970if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070011971 ac_cv_lib_dl_dlopen=yes
11972else
Steve Kondik79165c32015-11-09 19:43:00 -080011973 ac_cv_lib_dl_dlopen=no
Steve Kondik2111ad72013-07-07 12:07:44 -070011974fi
Steve Kondik79165c32015-11-09 19:43:00 -080011975rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070011977LIBS=$ac_check_lib_save_LIBS
11978fi
Steve Kondik79165c32015-11-09 19:43:00 -080011979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11980$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11981if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070011982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11983else
11984
11985 lt_cv_dlopen="dyld"
11986 lt_cv_dlopen_libs=
11987 lt_cv_dlopen_self=yes
11988
11989fi
11990
Steve Kondik79165c32015-11-09 19:43:00 -080011991 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070011992
11993 *)
Steve Kondik79165c32015-11-09 19:43:00 -080011994 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11995if test "x$ac_cv_func_shl_load" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070011996 lt_cv_dlopen="shl_load"
11997else
Steve Kondik79165c32015-11-09 19:43:00 -080011998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11999$as_echo_n "checking for shl_load in -ldld... " >&6; }
12000if ${ac_cv_lib_dld_shl_load+:} false; then :
12001 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012002else
12003 ac_check_lib_save_LIBS=$LIBS
12004LIBS="-ldld $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080012005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012006/* end confdefs.h. */
12007
12008/* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12011#ifdef __cplusplus
12012extern "C"
12013#endif
12014char shl_load ();
12015int
12016main ()
12017{
12018return shl_load ();
12019 ;
12020 return 0;
12021}
12022_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012023if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012024 ac_cv_lib_dld_shl_load=yes
12025else
Steve Kondik79165c32015-11-09 19:43:00 -080012026 ac_cv_lib_dld_shl_load=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012027fi
Steve Kondik79165c32015-11-09 19:43:00 -080012028rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012030LIBS=$ac_check_lib_save_LIBS
12031fi
Steve Kondik79165c32015-11-09 19:43:00 -080012032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12033$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12034if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012035 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12036else
Steve Kondik79165c32015-11-09 19:43:00 -080012037 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12038if test "x$ac_cv_func_dlopen" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012039 lt_cv_dlopen="dlopen"
12040else
Steve Kondik79165c32015-11-09 19:43:00 -080012041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12042$as_echo_n "checking for dlopen in -ldl... " >&6; }
12043if ${ac_cv_lib_dl_dlopen+:} false; then :
12044 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012045else
12046 ac_check_lib_save_LIBS=$LIBS
12047LIBS="-ldl $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080012048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012049/* end confdefs.h. */
12050
12051/* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12054#ifdef __cplusplus
12055extern "C"
12056#endif
12057char dlopen ();
12058int
12059main ()
12060{
12061return dlopen ();
12062 ;
12063 return 0;
12064}
12065_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012066if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012067 ac_cv_lib_dl_dlopen=yes
12068else
Steve Kondik79165c32015-11-09 19:43:00 -080012069 ac_cv_lib_dl_dlopen=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012070fi
Steve Kondik79165c32015-11-09 19:43:00 -080012071rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012073LIBS=$ac_check_lib_save_LIBS
12074fi
Steve Kondik79165c32015-11-09 19:43:00 -080012075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12076$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12077if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12079else
Steve Kondik79165c32015-11-09 19:43:00 -080012080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12081$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12082if ${ac_cv_lib_svld_dlopen+:} false; then :
12083 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012084else
12085 ac_check_lib_save_LIBS=$LIBS
12086LIBS="-lsvld $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080012087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012088/* end confdefs.h. */
12089
12090/* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093#ifdef __cplusplus
12094extern "C"
12095#endif
12096char dlopen ();
12097int
12098main ()
12099{
12100return dlopen ();
12101 ;
12102 return 0;
12103}
12104_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012105if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012106 ac_cv_lib_svld_dlopen=yes
12107else
Steve Kondik79165c32015-11-09 19:43:00 -080012108 ac_cv_lib_svld_dlopen=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012109fi
Steve Kondik79165c32015-11-09 19:43:00 -080012110rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012112LIBS=$ac_check_lib_save_LIBS
12113fi
Steve Kondik79165c32015-11-09 19:43:00 -080012114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12115$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12116if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12118else
Steve Kondik79165c32015-11-09 19:43:00 -080012119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12120$as_echo_n "checking for dld_link in -ldld... " >&6; }
12121if ${ac_cv_lib_dld_dld_link+:} false; then :
12122 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012123else
12124 ac_check_lib_save_LIBS=$LIBS
12125LIBS="-ldld $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080012126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012127/* end confdefs.h. */
12128
12129/* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132#ifdef __cplusplus
12133extern "C"
12134#endif
12135char dld_link ();
12136int
12137main ()
12138{
12139return dld_link ();
12140 ;
12141 return 0;
12142}
12143_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012144if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012145 ac_cv_lib_dld_dld_link=yes
12146else
Steve Kondik79165c32015-11-09 19:43:00 -080012147 ac_cv_lib_dld_dld_link=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012148fi
Steve Kondik79165c32015-11-09 19:43:00 -080012149rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012151LIBS=$ac_check_lib_save_LIBS
12152fi
Steve Kondik79165c32015-11-09 19:43:00 -080012153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12154$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12155if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12157fi
12158
12159
12160fi
12161
12162
12163fi
12164
12165
12166fi
12167
12168
12169fi
12170
12171
12172fi
12173
12174 ;;
12175 esac
12176
12177 if test "x$lt_cv_dlopen" != xno; then
12178 enable_dlopen=yes
12179 else
12180 enable_dlopen=no
12181 fi
12182
12183 case $lt_cv_dlopen in
12184 dlopen)
12185 save_CPPFLAGS="$CPPFLAGS"
12186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12187
12188 save_LDFLAGS="$LDFLAGS"
12189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12190
12191 save_LIBS="$LIBS"
12192 LIBS="$lt_cv_dlopen_libs $LIBS"
12193
Steve Kondik79165c32015-11-09 19:43:00 -080012194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12195$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12196if ${lt_cv_dlopen_self+:} false; then :
12197 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012198else
12199 if test "$cross_compiling" = yes; then :
12200 lt_cv_dlopen_self=cross
12201else
12202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203 lt_status=$lt_dlunknown
Steve Kondik79165c32015-11-09 19:43:00 -080012204 cat > conftest.$ac_ext <<_LT_EOF
12205#line $LINENO "configure"
Steve Kondik2111ad72013-07-07 12:07:44 -070012206#include "confdefs.h"
12207
12208#if HAVE_DLFCN_H
12209#include <dlfcn.h>
12210#endif
12211
12212#include <stdio.h>
12213
12214#ifdef RTLD_GLOBAL
12215# define LT_DLGLOBAL RTLD_GLOBAL
12216#else
12217# ifdef DL_GLOBAL
12218# define LT_DLGLOBAL DL_GLOBAL
12219# else
12220# define LT_DLGLOBAL 0
12221# endif
12222#endif
12223
12224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225 find out it does not work in some platform. */
12226#ifndef LT_DLLAZY_OR_NOW
12227# ifdef RTLD_LAZY
12228# define LT_DLLAZY_OR_NOW RTLD_LAZY
12229# else
12230# ifdef DL_LAZY
12231# define LT_DLLAZY_OR_NOW DL_LAZY
12232# else
12233# ifdef RTLD_NOW
12234# define LT_DLLAZY_OR_NOW RTLD_NOW
12235# else
12236# ifdef DL_NOW
12237# define LT_DLLAZY_OR_NOW DL_NOW
12238# else
12239# define LT_DLLAZY_OR_NOW 0
12240# endif
12241# endif
12242# endif
12243# endif
12244#endif
12245
Steve Kondik79165c32015-11-09 19:43:00 -080012246/* When -fvisbility=hidden is used, assume the code has been annotated
12247 correspondingly for the symbols needed. */
12248#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12249int fnord () __attribute__((visibility("default")));
Steve Kondik2111ad72013-07-07 12:07:44 -070012250#endif
12251
Steve Kondik79165c32015-11-09 19:43:00 -080012252int fnord () { return 42; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012253int main ()
12254{
12255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256 int status = $lt_dlunknown;
12257
12258 if (self)
12259 {
12260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Steve Kondik79165c32015-11-09 19:43:00 -080012261 else
12262 {
12263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12264 else puts (dlerror ());
12265 }
Steve Kondik2111ad72013-07-07 12:07:44 -070012266 /* dlclose (self); */
12267 }
12268 else
12269 puts (dlerror ());
12270
Steve Kondik79165c32015-11-09 19:43:00 -080012271 return status;
Steve Kondik2111ad72013-07-07 12:07:44 -070012272}
Steve Kondik79165c32015-11-09 19:43:00 -080012273_LT_EOF
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012275 (eval $ac_link) 2>&5
12276 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080012277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012279 (./conftest; exit; ) >&5 2>/dev/null
12280 lt_status=$?
12281 case x$lt_status in
12282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12284 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12285 esac
12286 else :
12287 # compilation failed
12288 lt_cv_dlopen_self=no
12289 fi
12290fi
12291rm -fr conftest*
12292
12293
12294fi
Steve Kondik79165c32015-11-09 19:43:00 -080012295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12296$as_echo "$lt_cv_dlopen_self" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012297
12298 if test "x$lt_cv_dlopen_self" = xyes; then
12299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Steve Kondik79165c32015-11-09 19:43:00 -080012300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12301$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12302if ${lt_cv_dlopen_self_static+:} false; then :
12303 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012304else
12305 if test "$cross_compiling" = yes; then :
12306 lt_cv_dlopen_self_static=cross
12307else
12308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12309 lt_status=$lt_dlunknown
Steve Kondik79165c32015-11-09 19:43:00 -080012310 cat > conftest.$ac_ext <<_LT_EOF
12311#line $LINENO "configure"
Steve Kondik2111ad72013-07-07 12:07:44 -070012312#include "confdefs.h"
12313
12314#if HAVE_DLFCN_H
12315#include <dlfcn.h>
12316#endif
12317
12318#include <stdio.h>
12319
12320#ifdef RTLD_GLOBAL
12321# define LT_DLGLOBAL RTLD_GLOBAL
12322#else
12323# ifdef DL_GLOBAL
12324# define LT_DLGLOBAL DL_GLOBAL
12325# else
12326# define LT_DLGLOBAL 0
12327# endif
12328#endif
12329
12330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12331 find out it does not work in some platform. */
12332#ifndef LT_DLLAZY_OR_NOW
12333# ifdef RTLD_LAZY
12334# define LT_DLLAZY_OR_NOW RTLD_LAZY
12335# else
12336# ifdef DL_LAZY
12337# define LT_DLLAZY_OR_NOW DL_LAZY
12338# else
12339# ifdef RTLD_NOW
12340# define LT_DLLAZY_OR_NOW RTLD_NOW
12341# else
12342# ifdef DL_NOW
12343# define LT_DLLAZY_OR_NOW DL_NOW
12344# else
12345# define LT_DLLAZY_OR_NOW 0
12346# endif
12347# endif
12348# endif
12349# endif
12350#endif
12351
Steve Kondik79165c32015-11-09 19:43:00 -080012352/* When -fvisbility=hidden is used, assume the code has been annotated
12353 correspondingly for the symbols needed. */
12354#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12355int fnord () __attribute__((visibility("default")));
Steve Kondik2111ad72013-07-07 12:07:44 -070012356#endif
12357
Steve Kondik79165c32015-11-09 19:43:00 -080012358int fnord () { return 42; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012359int main ()
12360{
12361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12362 int status = $lt_dlunknown;
12363
12364 if (self)
12365 {
12366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Steve Kondik79165c32015-11-09 19:43:00 -080012367 else
12368 {
12369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12370 else puts (dlerror ());
12371 }
Steve Kondik2111ad72013-07-07 12:07:44 -070012372 /* dlclose (self); */
12373 }
12374 else
12375 puts (dlerror ());
12376
Steve Kondik79165c32015-11-09 19:43:00 -080012377 return status;
Steve Kondik2111ad72013-07-07 12:07:44 -070012378}
Steve Kondik79165c32015-11-09 19:43:00 -080012379_LT_EOF
12380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012381 (eval $ac_link) 2>&5
12382 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080012383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012385 (./conftest; exit; ) >&5 2>/dev/null
12386 lt_status=$?
12387 case x$lt_status in
12388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12390 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12391 esac
12392 else :
12393 # compilation failed
12394 lt_cv_dlopen_self_static=no
12395 fi
12396fi
12397rm -fr conftest*
12398
12399
12400fi
Steve Kondik79165c32015-11-09 19:43:00 -080012401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12402$as_echo "$lt_cv_dlopen_self_static" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012403 fi
12404
12405 CPPFLAGS="$save_CPPFLAGS"
12406 LDFLAGS="$save_LDFLAGS"
12407 LIBS="$save_LIBS"
12408 ;;
12409 esac
12410
12411 case $lt_cv_dlopen_self in
12412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12413 *) enable_dlopen_self=unknown ;;
12414 esac
12415
12416 case $lt_cv_dlopen_self_static in
12417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12418 *) enable_dlopen_self_static=unknown ;;
12419 esac
12420fi
12421
12422
Steve Kondik2111ad72013-07-07 12:07:44 -070012423
Steve Kondik2111ad72013-07-07 12:07:44 -070012424
Steve Kondik2111ad72013-07-07 12:07:44 -070012425
Steve Kondik79165c32015-11-09 19:43:00 -080012426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438striplib=
12439old_striplib=
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12441$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12442if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12444 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12446$as_echo "yes" >&6; }
12447else
12448# FIXME - insert some real tests, host_os isn't really good enough
12449 case $host_os in
12450 darwin*)
12451 if test -n "$STRIP" ; then
12452 striplib="$STRIP -x"
12453 old_striplib="$STRIP -S"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455$as_echo "yes" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458$as_echo "no" >&6; }
12459 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012460 ;;
Steve Kondik79165c32015-11-09 19:43:00 -080012461 *)
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012464 ;;
12465 esac
Steve Kondik79165c32015-11-09 19:43:00 -080012466fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012467
Steve Kondik2111ad72013-07-07 12:07:44 -070012468
Steve Kondik2111ad72013-07-07 12:07:44 -070012469
Steve Kondik2111ad72013-07-07 12:07:44 -070012470
Steve Kondik2111ad72013-07-07 12:07:44 -070012471
Steve Kondik2111ad72013-07-07 12:07:44 -070012472
Steve Kondik2111ad72013-07-07 12:07:44 -070012473
Steve Kondik2111ad72013-07-07 12:07:44 -070012474
Steve Kondik2111ad72013-07-07 12:07:44 -070012475
Steve Kondik2111ad72013-07-07 12:07:44 -070012476
Steve Kondik2111ad72013-07-07 12:07:44 -070012477
Steve Kondik2111ad72013-07-07 12:07:44 -070012478
Steve Kondik79165c32015-11-09 19:43:00 -080012479 # Report which library types will actually be built
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12481$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12483$as_echo "$can_build_shared" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012484
Steve Kondik79165c32015-11-09 19:43:00 -080012485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12486$as_echo_n "checking whether to build shared libraries... " >&6; }
12487 test "$can_build_shared" = "no" && enable_shared=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012488
Steve Kondik79165c32015-11-09 19:43:00 -080012489 # On AIX, shared libraries and static libraries use the same namespace, and
12490 # are all built from PIC.
Steve Kondik2111ad72013-07-07 12:07:44 -070012491 case $host_os in
12492 aix3*)
Steve Kondik2111ad72013-07-07 12:07:44 -070012493 test "$enable_shared" = yes && enable_static=no
Steve Kondik79165c32015-11-09 19:43:00 -080012494 if test -n "$RANLIB"; then
12495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12496 postinstall_cmds='$RANLIB $lib'
Steve Kondik2111ad72013-07-07 12:07:44 -070012497 fi
12498 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070012499
Steve Kondik79165c32015-11-09 19:43:00 -080012500 aix[4-9]*)
12501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12502 test "$enable_shared" = yes && enable_static=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012503 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012504 ;;
12505 esac
Steve Kondik79165c32015-11-09 19:43:00 -080012506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12507$as_echo "$enable_shared" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012508
Steve Kondik79165c32015-11-09 19:43:00 -080012509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12510$as_echo_n "checking whether to build static libraries... " >&6; }
12511 # Make sure either enable_shared or enable_static is yes.
12512 test "$enable_shared" = yes || enable_static=yes
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12514$as_echo "$enable_static" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012515
Steve Kondik2111ad72013-07-07 12:07:44 -070012516
Steve Kondik2111ad72013-07-07 12:07:44 -070012517
Steve Kondik2111ad72013-07-07 12:07:44 -070012518
Steve Kondik2111ad72013-07-07 12:07:44 -070012519fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012520ac_ext=c
12521ac_cpp='$CPP $CPPFLAGS'
12522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525
12526CC="$lt_save_CC"
12527
Steve Kondik2111ad72013-07-07 12:07:44 -070012528
Steve Kondik2111ad72013-07-07 12:07:44 -070012529
12530
Steve Kondik2111ad72013-07-07 12:07:44 -070012531
Steve Kondik2111ad72013-07-07 12:07:44 -070012532
Steve Kondik2111ad72013-07-07 12:07:44 -070012533
Steve Kondik2111ad72013-07-07 12:07:44 -070012534
Steve Kondik2111ad72013-07-07 12:07:44 -070012535
Steve Kondik2111ad72013-07-07 12:07:44 -070012536
Steve Kondik2111ad72013-07-07 12:07:44 -070012537
Steve Kondik2111ad72013-07-07 12:07:44 -070012538
12539
Steve Kondik2111ad72013-07-07 12:07:44 -070012540
Steve Kondik2111ad72013-07-07 12:07:44 -070012541
Steve Kondik79165c32015-11-09 19:43:00 -080012542 ac_config_commands="$ac_config_commands libtool"
Steve Kondik2111ad72013-07-07 12:07:44 -070012543
Steve Kondik2111ad72013-07-07 12:07:44 -070012544
12545
Steve Kondik2111ad72013-07-07 12:07:44 -070012546
Steve Kondik79165c32015-11-09 19:43:00 -080012547# Only expand once:
Steve Kondik2111ad72013-07-07 12:07:44 -070012548
12549
12550
Steve Kondik2111ad72013-07-07 12:07:44 -070012551
12552
Steve Kondik2111ad72013-07-07 12:07:44 -070012553
Steve Kondik2111ad72013-07-07 12:07:44 -070012554
Steve Kondik2111ad72013-07-07 12:07:44 -070012555
Steve Kondik2111ad72013-07-07 12:07:44 -070012556
12557
12558
12559if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12560 if test -n "$ac_tool_prefix"; then
12561 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12562set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564$as_echo_n "checking for $ac_word... " >&6; }
12565if ${ac_cv_path_PKG_CONFIG+:} false; then :
12566 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012567else
12568 case $PKG_CONFIG in
12569 [\\/]* | ?:[\\/]*)
12570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12571 ;;
12572 *)
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574for as_dir in $PATH
12575do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012582 break 2
12583 fi
12584done
Steve Kondik79165c32015-11-09 19:43:00 -080012585 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012586IFS=$as_save_IFS
12587
12588 ;;
12589esac
12590fi
12591PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12592if test -n "$PKG_CONFIG"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12594$as_echo "$PKG_CONFIG" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012595else
Steve Kondik79165c32015-11-09 19:43:00 -080012596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012598fi
12599
12600
12601fi
12602if test -z "$ac_cv_path_PKG_CONFIG"; then
12603 ac_pt_PKG_CONFIG=$PKG_CONFIG
12604 # Extract the first word of "pkg-config", so it can be a program name with args.
12605set dummy pkg-config; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
12608if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12609 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012610else
12611 case $ac_pt_PKG_CONFIG in
12612 [\\/]* | ?:[\\/]*)
12613 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12614 ;;
12615 *)
12616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617for as_dir in $PATH
12618do
12619 IFS=$as_save_IFS
12620 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012621 for ac_exec_ext in '' $ac_executable_extensions; do
12622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012623 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012625 break 2
12626 fi
12627done
Steve Kondik79165c32015-11-09 19:43:00 -080012628 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012629IFS=$as_save_IFS
12630
12631 ;;
12632esac
12633fi
12634ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12635if test -n "$ac_pt_PKG_CONFIG"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12637$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012638else
Steve Kondik79165c32015-11-09 19:43:00 -080012639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012641fi
12642
12643 if test "x$ac_pt_PKG_CONFIG" = x; then
12644 PKG_CONFIG=""
12645 else
12646 case $cross_compiling:$ac_tool_warned in
12647yes:)
Steve Kondik79165c32015-11-09 19:43:00 -080012648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070012650ac_tool_warned=yes ;;
12651esac
12652 PKG_CONFIG=$ac_pt_PKG_CONFIG
12653 fi
12654else
12655 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12656fi
12657
12658fi
12659if test -n "$PKG_CONFIG"; then
12660 _pkg_min_version=0.9.0
Steve Kondik79165c32015-11-09 19:43:00 -080012661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12662$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012663 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Steve Kondik79165c32015-11-09 19:43:00 -080012664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012666 else
Steve Kondik79165c32015-11-09 19:43:00 -080012667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012669 PKG_CONFIG=""
12670 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012671fi
12672
12673# Extract the first word of "mv", so it can be a program name with args.
12674set dummy mv; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676$as_echo_n "checking for $ac_word... " >&6; }
12677if ${ac_cv_path_MV+:} false; then :
12678 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012679else
12680 case $MV in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_MV="$MV" # Let the user override the test with a path.
12683 ;;
12684 *)
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012692 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012694 break 2
12695 fi
12696done
Steve Kondik79165c32015-11-09 19:43:00 -080012697 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012698IFS=$as_save_IFS
12699
12700 ;;
12701esac
12702fi
12703MV=$ac_cv_path_MV
12704if test -n "$MV"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
12706$as_echo "$MV" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012707else
Steve Kondik79165c32015-11-09 19:43:00 -080012708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012710fi
12711
12712
12713# Extract the first word of "rm", so it can be a program name with args.
12714set dummy rm; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
12717if ${ac_cv_path_RM+:} false; then :
12718 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012719else
12720 case $RM in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_RM="$RM" # Let the user override the test with a path.
12723 ;;
12724 *)
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $PATH
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012732 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012734 break 2
12735 fi
12736done
Steve Kondik79165c32015-11-09 19:43:00 -080012737 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012738IFS=$as_save_IFS
12739
12740 ;;
12741esac
12742fi
12743RM=$ac_cv_path_RM
12744if test -n "$RM"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12746$as_echo "$RM" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012747else
Steve Kondik79165c32015-11-09 19:43:00 -080012748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012750fi
12751
12752
12753# Extract the first word of "sed", so it can be a program name with args.
12754set dummy sed; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756$as_echo_n "checking for $ac_word... " >&6; }
12757if ${ac_cv_path_SED+:} false; then :
12758 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012759else
12760 case $SED in
12761 [\\/]* | ?:[\\/]*)
12762 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12763 ;;
12764 *)
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766for as_dir in $PATH
12767do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012772 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012774 break 2
12775 fi
12776done
Steve Kondik79165c32015-11-09 19:43:00 -080012777 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012778IFS=$as_save_IFS
12779
12780 ;;
12781esac
12782fi
12783SED=$ac_cv_path_SED
12784if test -n "$SED"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12786$as_echo "$SED" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012787else
Steve Kondik79165c32015-11-09 19:43:00 -080012788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012790fi
12791
12792
12793
12794# Extract the first word of "ldconfig", so it can be a program name with args.
12795set dummy ldconfig; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080012796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797$as_echo_n "checking for $ac_word... " >&6; }
12798if ${ac_cv_path_LDCONFIG+:} false; then :
12799 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012800else
12801 case $LDCONFIG in
12802 [\\/]* | ?:[\\/]*)
12803 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12804 ;;
12805 *)
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807for as_dir in /sbin /usr/sbin $PATH
12808do
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080012811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070012813 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080012814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070012815 break 2
12816 fi
12817done
Steve Kondik79165c32015-11-09 19:43:00 -080012818 done
Steve Kondik2111ad72013-07-07 12:07:44 -070012819IFS=$as_save_IFS
12820
12821 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
12822 ;;
12823esac
12824fi
12825LDCONFIG=$ac_cv_path_LDCONFIG
12826if test -n "$LDCONFIG"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12828$as_echo "$LDCONFIG" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012829else
Steve Kondik79165c32015-11-09 19:43:00 -080012830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012832fi
12833
12834
12835
12836# Environment
Steve Kondik79165c32015-11-09 19:43:00 -080012837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows OS" >&5
12838$as_echo_n "checking Windows OS... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012839case "${target}" in
12840*-mingw32*|*-winnt*|*-cygwin*)
Steve Kondik79165c32015-11-09 19:43:00 -080012841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12842$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012843 WINDOWS="yes"
12844
Steve Kondik79165c32015-11-09 19:43:00 -080012845$as_echo "#define WINDOWS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070012846
12847 ;;
12848*)
Steve Kondik79165c32015-11-09 19:43:00 -080012849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012851 WINDOWS="no"
12852 ;;
12853esac
12854
12855if test "x${enable_ntfs_3g}" = "xyes"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fuse compatibility" >&5
12857$as_echo_n "checking fuse compatibility... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012858 case "${target_os}" in
12859 linux*|solaris*)
12860
12861# Check whether --with-fuse was given.
Steve Kondik79165c32015-11-09 19:43:00 -080012862if test "${with_fuse+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012863 withval=$with_fuse;
12864else
12865 with_fuse="internal"
12866
12867fi
12868
12869 ;;
12870 darwin*|netbsd*|kfreebsd*-gnu)
12871 with_fuse="external"
12872 ;;
12873 freebsd*)
Steve Kondik79165c32015-11-09 19:43:00 -080012874 as_fn_error $? "Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070012875 ;;
12876 *)
Steve Kondik79165c32015-11-09 19:43:00 -080012877 as_fn_error $? "ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070012878 ;;
12879 esac
Steve Kondik79165c32015-11-09 19:43:00 -080012880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_fuse}" >&5
12881$as_echo "${with_fuse}" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012882else
12883 with_fuse="none"
12884fi
12885
12886case "${target_os}" in
12887solaris*)
12888 if test "x$GCC" != "xyes" ; then
Steve Kondik79165c32015-11-09 19:43:00 -080012889 as_fn_error $? "ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070012890 fi
12891 ;;
12892esac
12893
12894if test "${enable_ldscript}" = "yes"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Output format" >&5
12896$as_echo_n "checking Output format... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012897 OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')"
12898 if test -z "${OUTPUT_FORMAT}"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: None" >&5
12900$as_echo "None" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012901 else
Steve Kondik79165c32015-11-09 19:43:00 -080012902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OUTPUT_FORMAT}" >&5
12903$as_echo "${OUTPUT_FORMAT}" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012904 OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )"
12905 fi
12906fi
12907
12908# Libraries
12909if test "${with_fuse}" = "internal"; then
Steve Kondik79165c32015-11-09 19:43:00 -080012910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12911$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12912if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12913 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070012914else
12915 ac_check_lib_save_LIBS=$LIBS
12916LIBS="-lpthread $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080012917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012918/* end confdefs.h. */
12919
12920/* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923#ifdef __cplusplus
12924extern "C"
12925#endif
12926char pthread_create ();
12927int
12928main ()
12929{
12930return pthread_create ();
12931 ;
12932 return 0;
12933}
12934_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012935if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012936 ac_cv_lib_pthread_pthread_create=yes
12937else
Steve Kondik79165c32015-11-09 19:43:00 -080012938 ac_cv_lib_pthread_pthread_create=no
Steve Kondik2111ad72013-07-07 12:07:44 -070012939fi
Steve Kondik79165c32015-11-09 19:43:00 -080012940rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012942LIBS=$ac_check_lib_save_LIBS
12943fi
Steve Kondik79165c32015-11-09 19:43:00 -080012944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12945$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12946if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012947 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"
12948else
Steve Kondik79165c32015-11-09 19:43:00 -080012949 as_fn_error $? "Cannot find pthread library" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070012950
12951fi
12952
12953
Steve Kondik79165c32015-11-09 19:43:00 -080012954$as_echo "#define _REENTRANT 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070012955
12956 # required so that we re-compile anything
12957
Steve Kondik79165c32015-11-09 19:43:00 -080012958$as_echo "#define FUSE_INTERNAL 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070012959
12960
Steve Kondik79165c32015-11-09 19:43:00 -080012961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris OS" >&5
12962$as_echo_n "checking Solaris OS... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012963 ac_ext=c
12964ac_cpp='$CPP $CPPFLAGS'
12965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
Steve Kondik79165c32015-11-09 19:43:00 -080012969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070012970/* end confdefs.h. */
Steve Kondik79165c32015-11-09 19:43:00 -080012971
12972 #if !((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)))
Steve Kondik2111ad72013-07-07 12:07:44 -070012973 #error "Not a Solaris system."
12974 #endif
12975
12976
12977_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080012978if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070012979
Steve Kondik79165c32015-11-09 19:43:00 -080012980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012982 LIBFUSE_LITE_CFLAGS="${LIBFUSE_LITE_CFLAGS} -std=c99 -D__SOLARIS__ -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
12983 LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lxnet"
12984
12985else
Steve Kondik2111ad72013-07-07 12:07:44 -070012986
Steve Kondik79165c32015-11-09 19:43:00 -080012987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070012989
12990
12991fi
Steve Kondik2111ad72013-07-07 12:07:44 -070012992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 ac_ext=c
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
12999elif test "${with_fuse}" = "external"; then
13000 if test -z "$PKG_CONFIG"; then
13001 # Extract the first word of "pkg-config", so it can be a program name with args.
13002set dummy pkg-config; ac_word=$2
Steve Kondik79165c32015-11-09 19:43:00 -080013003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if ${ac_cv_path_PKG_CONFIG+:} false; then :
13006 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070013007else
13008 case $PKG_CONFIG in
13009 [\\/]* | ?:[\\/]*)
13010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13011 ;;
13012 *)
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014for as_dir in $PATH
13015do
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080013018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080013021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013022 break 2
13023 fi
13024done
Steve Kondik79165c32015-11-09 19:43:00 -080013025 done
Steve Kondik2111ad72013-07-07 12:07:44 -070013026IFS=$as_save_IFS
13027
13028 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13029 ;;
13030esac
13031fi
13032PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13033if test -n "$PKG_CONFIG"; then
Steve Kondik79165c32015-11-09 19:43:00 -080013034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13035$as_echo "$PKG_CONFIG" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013036else
Steve Kondik79165c32015-11-09 19:43:00 -080013037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013039fi
13040
13041
13042 fi
Steve Kondik79165c32015-11-09 19:43:00 -080013043 test "x${PKG_CONFIG}" = "xno" && as_fn_error $? "pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013044 # Libraries often install their metadata .pc files in directories
13045 # not searched by pkg-config. Let's workaround this.
13046 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig
13047
13048pkg_failed=no
Steve Kondik79165c32015-11-09 19:43:00 -080013049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE_MODULE" >&5
13050$as_echo_n "checking for FUSE_MODULE... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013051
13052if test -n "$FUSE_MODULE_CFLAGS"; then
13053 pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS"
13054 elif test -n "$PKG_CONFIG"; then
13055 if test -n "$PKG_CONFIG" && \
Steve Kondik79165c32015-11-09 19:43:00 -080013056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013057 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
13058 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080013059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13060 test $ac_status = 0; }; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013061 pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null`
Steve Kondik79165c32015-11-09 19:43:00 -080013062 test "x$?" != "x0" && pkg_failed=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070013063else
13064 pkg_failed=yes
13065fi
13066 else
13067 pkg_failed=untried
13068fi
13069if test -n "$FUSE_MODULE_LIBS"; then
13070 pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS"
13071 elif test -n "$PKG_CONFIG"; then
13072 if test -n "$PKG_CONFIG" && \
Steve Kondik79165c32015-11-09 19:43:00 -080013073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013074 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5
13075 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080013076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077 test $ac_status = 0; }; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013078 pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null`
Steve Kondik79165c32015-11-09 19:43:00 -080013079 test "x$?" != "x0" && pkg_failed=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070013080else
13081 pkg_failed=yes
13082fi
13083 else
13084 pkg_failed=untried
13085fi
13086
13087
13088
13089if test $pkg_failed = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080013090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013092
13093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13094 _pkg_short_errors_supported=yes
13095else
13096 _pkg_short_errors_supported=no
13097fi
13098 if test $_pkg_short_errors_supported = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080013099 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6.0" 2>&1`
Steve Kondik2111ad72013-07-07 12:07:44 -070013100 else
Steve Kondik79165c32015-11-09 19:43:00 -080013101 FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6.0" 2>&1`
Steve Kondik2111ad72013-07-07 12:07:44 -070013102 fi
13103 # Put the nasty error message in config.log where it belongs
13104 echo "$FUSE_MODULE_PKG_ERRORS" >&5
13105
Steve Kondik2111ad72013-07-07 12:07:44 -070013106
Steve Kondik79165c32015-11-09 19:43:00 -080013107 as_fn_error $? "FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013108
13109
13110elif test $pkg_failed = untried; then
Steve Kondik79165c32015-11-09 19:43:00 -080013111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013113
Steve Kondik79165c32015-11-09 19:43:00 -080013114 as_fn_error $? "FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013115
13116
13117else
13118 FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS
13119 FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS
Steve Kondik79165c32015-11-09 19:43:00 -080013120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121$as_echo "yes" >&6; }
13122
Steve Kondik2111ad72013-07-07 12:07:44 -070013123fi
13124 FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'`
13125fi
13126
13127# Autodetect whether we can build crypto stuff or not.
13128compile_crypto=false
13129if test "$enable_crypto" != "no"; then
13130 have_libgcrypt=false
13131
Steve Kondik79165c32015-11-09 19:43:00 -080013132
Steve Kondik2111ad72013-07-07 12:07:44 -070013133# Check whether --with-libgcrypt-prefix was given.
Steve Kondik79165c32015-11-09 19:43:00 -080013134if test "${with_libgcrypt_prefix+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013135 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
13136else
13137 libgcrypt_config_prefix=""
13138fi
13139
13140 if test x$libgcrypt_config_prefix != x ; then
13141 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
13142 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
13143 fi
13144 fi
13145
Steve Kondik79165c32015-11-09 19:43:00 -080013146 if test -n "$ac_tool_prefix"; then
13147 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
13148set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150$as_echo_n "checking for $ac_word... " >&6; }
13151if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
13152 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070013153else
13154 case $LIBGCRYPT_CONFIG in
13155 [\\/]* | ?:[\\/]*)
13156 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
13157 ;;
13158 *)
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160for as_dir in $PATH
13161do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080013164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013166 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Steve Kondik79165c32015-11-09 19:43:00 -080013167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013168 break 2
13169 fi
13170done
Steve Kondik79165c32015-11-09 19:43:00 -080013171 done
Steve Kondik2111ad72013-07-07 12:07:44 -070013172IFS=$as_save_IFS
13173
Steve Kondik2111ad72013-07-07 12:07:44 -070013174 ;;
13175esac
13176fi
13177LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
13178if test -n "$LIBGCRYPT_CONFIG"; then
Steve Kondik79165c32015-11-09 19:43:00 -080013179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
13180$as_echo "$LIBGCRYPT_CONFIG" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013181else
Steve Kondik79165c32015-11-09 19:43:00 -080013182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013184fi
13185
13186
Steve Kondik79165c32015-11-09 19:43:00 -080013187fi
13188if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
13189 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
13190 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
13191set dummy libgcrypt-config; ac_word=$2
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193$as_echo_n "checking for $ac_word... " >&6; }
13194if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
13195 $as_echo_n "(cached) " >&6
13196else
13197 case $ac_pt_LIBGCRYPT_CONFIG in
13198 [\\/]* | ?:[\\/]*)
13199 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
13200 ;;
13201 *)
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13212 fi
13213done
13214 done
13215IFS=$as_save_IFS
13216
13217 ;;
13218esac
13219fi
13220ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
13221if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
13223$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
13224else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
13227fi
13228
13229 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
13230 LIBGCRYPT_CONFIG="no"
13231 else
13232 case $cross_compiling:$ac_tool_warned in
13233yes:)
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13236ac_tool_warned=yes ;;
13237esac
13238 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
13239 fi
13240else
13241 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
13242fi
13243
Steve Kondik2111ad72013-07-07 12:07:44 -070013244 tmp=1.2.2
13245 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
13246 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
13247 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
13248 else
13249 req_libgcrypt_api=0
13250 min_libgcrypt_version="$tmp"
13251 fi
13252
Steve Kondik79165c32015-11-09 19:43:00 -080013253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
13254$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013255 ok=no
13256 if test "$LIBGCRYPT_CONFIG" != "no" ; then
13257 req_major=`echo $min_libgcrypt_version | \
13258 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
13259 req_minor=`echo $min_libgcrypt_version | \
13260 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
13261 req_micro=`echo $min_libgcrypt_version | \
13262 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
13263 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
13264 major=`echo $libgcrypt_config_version | \
13265 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
13266 minor=`echo $libgcrypt_config_version | \
13267 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
13268 micro=`echo $libgcrypt_config_version | \
13269 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
13270 if test "$major" -gt "$req_major"; then
13271 ok=yes
13272 else
13273 if test "$major" -eq "$req_major"; then
13274 if test "$minor" -gt "$req_minor"; then
13275 ok=yes
13276 else
13277 if test "$minor" -eq "$req_minor"; then
13278 if test "$micro" -ge "$req_micro"; then
13279 ok=yes
13280 fi
13281 fi
13282 fi
13283 fi
13284 fi
13285 fi
13286 if test $ok = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080013287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
13288$as_echo "yes ($libgcrypt_config_version)" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013289 else
Steve Kondik79165c32015-11-09 19:43:00 -080013290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013292 fi
13293 if test $ok = yes; then
13294 # If we have a recent libgcrypt, we should also check that the
13295 # API is compatible
13296 if test "$req_libgcrypt_api" -gt 0 ; then
13297 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
13298 if test "$tmp" -gt 0 ; then
Steve Kondik79165c32015-11-09 19:43:00 -080013299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
13300$as_echo_n "checking LIBGCRYPT API version... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013301 if test "$req_libgcrypt_api" -eq "$tmp" ; then
Steve Kondik79165c32015-11-09 19:43:00 -080013302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
13303$as_echo "okay" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013304 else
13305 ok=no
Steve Kondik79165c32015-11-09 19:43:00 -080013306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
13307$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013308 fi
13309 fi
13310 fi
13311 fi
13312 if test $ok = yes; then
13313 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
13314 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
13315 have_libgcrypt=true
Steve Kondik79165c32015-11-09 19:43:00 -080013316 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
13317 if test x"$libgcrypt_config_host" != xnone ; then
13318 if test x"$libgcrypt_config_host" != x"$host" ; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13320***
13321*** The config script $LIBGCRYPT_CONFIG was
13322*** built for $libgcrypt_config_host and thus may not match the
13323*** used host $host.
13324*** You may want to use the configure option --with-libgcrypt-prefix
13325*** to specify a matching config script.
13326***" >&5
13327$as_echo "$as_me: WARNING:
13328***
13329*** The config script $LIBGCRYPT_CONFIG was
13330*** built for $libgcrypt_config_host and thus may not match the
13331*** used host $host.
13332*** You may want to use the configure option --with-libgcrypt-prefix
13333*** to specify a matching config script.
13334***" >&2;}
13335 fi
13336 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070013337 else
13338 LIBGCRYPT_CFLAGS=""
13339 LIBGCRYPT_LIBS=""
13340
13341 if test "$enable_crypto" = "yes"; then
Steve Kondik79165c32015-11-09 19:43:00 -080013342 as_fn_error $? "ntfsprogs crypto code requires the gcrypt library." "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013343 else
Steve Kondik79165c32015-11-09 19:43:00 -080013344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gcrypt library." >&5
13345$as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gcrypt library." >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070013346 fi
13347
13348 fi
13349
13350
13351
13352 have_libgnutls=false
13353
13354pkg_failed=no
Steve Kondik79165c32015-11-09 19:43:00 -080013355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13356$as_echo_n "checking for GNUTLS... " >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013357
13358if test -n "$GNUTLS_CFLAGS"; then
13359 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
13360 elif test -n "$PKG_CONFIG"; then
13361 if test -n "$PKG_CONFIG" && \
Steve Kondik79165c32015-11-09 19:43:00 -080013362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013363 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
13364 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080013365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013367 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.4.4" 2>/dev/null`
Steve Kondik79165c32015-11-09 19:43:00 -080013368 test "x$?" != "x0" && pkg_failed=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070013369else
13370 pkg_failed=yes
13371fi
13372 else
13373 pkg_failed=untried
13374fi
13375if test -n "$GNUTLS_LIBS"; then
13376 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
13377 elif test -n "$PKG_CONFIG"; then
13378 if test -n "$PKG_CONFIG" && \
Steve Kondik79165c32015-11-09 19:43:00 -080013379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.4.4\""; } >&5
Steve Kondik2111ad72013-07-07 12:07:44 -070013380 ($PKG_CONFIG --exists --print-errors "gnutls >= 1.4.4") 2>&5
13381 ac_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080013382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13383 test $ac_status = 0; }; then
Steve Kondik2111ad72013-07-07 12:07:44 -070013384 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.4.4" 2>/dev/null`
Steve Kondik79165c32015-11-09 19:43:00 -080013385 test "x$?" != "x0" && pkg_failed=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070013386else
13387 pkg_failed=yes
13388fi
13389 else
13390 pkg_failed=untried
13391fi
13392
13393
13394
13395if test $pkg_failed = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080013396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13397$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013398
13399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13400 _pkg_short_errors_supported=yes
13401else
13402 _pkg_short_errors_supported=no
13403fi
13404 if test $_pkg_short_errors_supported = yes; then
Steve Kondik79165c32015-11-09 19:43:00 -080013405 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 1.4.4" 2>&1`
Steve Kondik2111ad72013-07-07 12:07:44 -070013406 else
Steve Kondik79165c32015-11-09 19:43:00 -080013407 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 1.4.4" 2>&1`
Steve Kondik2111ad72013-07-07 12:07:44 -070013408 fi
13409 # Put the nasty error message in config.log where it belongs
13410 echo "$GNUTLS_PKG_ERRORS" >&5
13411
Steve Kondik79165c32015-11-09 19:43:00 -080013412 if test "$enable_crypto" = "yes"; then
13413 as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013414 else
Steve Kondik79165c32015-11-09 19:43:00 -080013415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
13416$as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070013417 fi
13418
13419elif test $pkg_failed = untried; then
Steve Kondik79165c32015-11-09 19:43:00 -080013420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421$as_echo "no" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013422 if test "$enable_crypto" = "yes"; then
Steve Kondik79165c32015-11-09 19:43:00 -080013423 as_fn_error $? "ntfsprogs crypto code requires the gnutls library." "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070013424 else
Steve Kondik79165c32015-11-09 19:43:00 -080013425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs crypto code requires the gnutls library." >&5
13426$as_echo "$as_me: WARNING: ntfsprogs crypto code requires the gnutls library." >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070013427 fi
13428
13429else
13430 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
13431 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
Steve Kondik79165c32015-11-09 19:43:00 -080013432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433$as_echo "yes" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013434 have_libgnutls=true
13435fi
13436 if test "$have_libgcrypt" = "true"; then
13437 if test "$have_libgnutls" = "true"; then
13438 compile_crypto=true
13439
Steve Kondik79165c32015-11-09 19:43:00 -080013440$as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070013441
13442 fi
13443 fi
13444fi
13445 if $compile_crypto; then
13446 ENABLE_CRYPTO_TRUE=
13447 ENABLE_CRYPTO_FALSE='#'
13448else
13449 ENABLE_CRYPTO_TRUE='#'
13450 ENABLE_CRYPTO_FALSE=
13451fi
13452
13453
13454# add --with-extra-includes and --with-extra-libs switch to ./configure
13455all_libraries="$all_libraries $USER_LDFLAGS"
13456all_includes="$all_includes $USER_INCLUDES"
13457
13458
13459
13460# Specify support for generating DCE compliant UUIDs (aka GUIDs). We check if
13461# uuid/uuid.h header is present and the uuid library is present that goes with
13462# it and then check if uuid_generate() is present and usable.
13463#
13464# DCE UUIDs are enabled by default and can be disabled with the --disable-uuid
13465# option to the configure script.
13466
13467# Check whether --with-uuid was given.
Steve Kondik79165c32015-11-09 19:43:00 -080013468if test "${with_uuid+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013469 withval=$with_uuid; if test "$with_uuid" = "yes"; then
13470 extrapath=default
13471 elif test "$with_uuid" = "no"; then
13472 extrapath=
13473 else
13474 extrapath=$with_uuid
13475 fi
13476else
13477 extrapath=default
13478
13479fi
13480
13481if test "x$extrapath" != "x"; then
13482 if test "x$extrapath" != "xdefault"; then
13483 MKNTFS_CPPFLAGS="$MKNTFS_CPPFLAGS -I$extrapath/include"
13484 MKNTFS_LIBS="$MKNTFS_LIBS -L$extrapath/lib"
13485 fi
13486
13487 search_for_luuid="yes"
Steve Kondik79165c32015-11-09 19:43:00 -080013488 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13489if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013490
Steve Kondik2111ad72013-07-07 12:07:44 -070013491else
13492
Steve Kondik79165c32015-11-09 19:43:00 -080013493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
13494$as_echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070013495 search_for_luuid="no"
13496
13497fi
13498
13499
13500
13501 if test "x$search_for_luuid" != "xno"; then
13502 # Look for uuid_generate in the standard C library.
Steve Kondik79165c32015-11-09 19:43:00 -080013503 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13504if test "x$ac_cv_func_uuid_generate" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013505
13506
Steve Kondik79165c32015-11-09 19:43:00 -080013507$as_echo "#define ENABLE_UUID 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070013508
13509 search_for_luuid="no"
13510
13511fi
13512
13513 fi
13514
13515 if test "x$search_for_luuid" != "xno"; then
13516 # Look for uuid_generate in the 'uuid' library.
Steve Kondik79165c32015-11-09 19:43:00 -080013517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13518$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13519if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
13520 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070013521else
13522 ac_check_lib_save_LIBS=$LIBS
13523LIBS="-luuid $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080013524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013525/* end confdefs.h. */
13526
13527/* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13530#ifdef __cplusplus
13531extern "C"
13532#endif
13533char uuid_generate ();
13534int
13535main ()
13536{
13537return uuid_generate ();
13538 ;
13539 return 0;
13540}
13541_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013542if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013543 ac_cv_lib_uuid_uuid_generate=yes
13544else
Steve Kondik79165c32015-11-09 19:43:00 -080013545 ac_cv_lib_uuid_uuid_generate=no
Steve Kondik2111ad72013-07-07 12:07:44 -070013546fi
Steve Kondik79165c32015-11-09 19:43:00 -080013547rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013549LIBS=$ac_check_lib_save_LIBS
13550fi
Steve Kondik79165c32015-11-09 19:43:00 -080013551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13552$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13553if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013554
13555
Steve Kondik79165c32015-11-09 19:43:00 -080013556$as_echo "#define ENABLE_UUID 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070013557
13558 MKNTFS_LIBS="$MKNTFS_LIBS -luuid"
13559 search_for_luuid="no"
13560
13561fi
13562
13563 fi
13564
13565 if test "x$search_for_luuid" != "xno"; then
Steve Kondik79165c32015-11-09 19:43:00 -080013566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&5
13567$as_echo "$as_me: WARNING: ntfsprogs DCE compliant UUID generation code requires the uuid library." >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070013568 fi
13569fi
13570
Steve Kondik79165c32015-11-09 19:43:00 -080013571# Specify support for obtaining the correct BIOS legacy geometry needed for
13572# Windows to boot in CHS mode. We check if hd.h header is present and the hd
13573# library is present that goes with it and then check if the hd_list() function
13574# is present and usable.
13575#
13576# Using the hd library is enabled by default and can be disabled with the
13577# --disable-hd option to the configure script.
13578
13579# Check whether --with-hd was given.
13580if test "${with_hd+set}" = set; then :
13581 withval=$with_hd; if test "$with_hd" = "yes"; then
13582 extrapath2=default
13583 elif test "$with_hd" = "no"; then
13584 extrapath2=
13585 else
13586 extrapath2=$with_hd
13587 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070013588else
Steve Kondik79165c32015-11-09 19:43:00 -080013589 extrapath2=default
13590
13591fi
13592
13593if test "x$extrapath2" != "x"; then
13594 if test "x$extrapath2" != "xdefault"; then
13595 LIBNTFS_CPPFLAGS="$LIBNTFS_CPPFLAGS -I$extrapath2/include"
13596 LIBNTFS_LIBS="$LIBNTFS_LIBS -L$extrapath2/lib"
13597 fi
13598 ac_fn_c_check_header_mongrel "$LINENO" "hd.h" "ac_cv_header_hd_h" "$ac_includes_default"
13599if test "x$ac_cv_header_hd_h" = xyes; then :
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hd_list in -lhd" >&5
13601$as_echo_n "checking for hd_list in -lhd... " >&6; }
13602if ${ac_cv_lib_hd_hd_list+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604else
13605 ac_check_lib_save_LIBS=$LIBS
13606LIBS="-lhd $LIBS"
13607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h. */
13609
13610/* Override any GCC internal prototype to avoid an error.
13611 Use char because int might match the return type of a GCC
13612 builtin and then its argument prototype would still apply. */
13613#ifdef __cplusplus
13614extern "C"
13615#endif
13616char hd_list ();
13617int
13618main ()
13619{
13620return hd_list ();
13621 ;
13622 return 0;
13623}
Steve Kondik2111ad72013-07-07 12:07:44 -070013624_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013625if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_lib_hd_hd_list=yes
13627else
13628 ac_cv_lib_hd_hd_list=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632LIBS=$ac_check_lib_save_LIBS
13633fi
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hd_hd_list" >&5
13635$as_echo "$ac_cv_lib_hd_hd_list" >&6; }
13636if test "x$ac_cv_lib_hd_hd_list" = xyes; then :
13637
13638$as_echo "#define ENABLE_HD 1" >>confdefs.h
13639
13640 LIBNTFS_LIBS="$LIBNTFS_LIBS -lhd"
13641 NTFSPROGS_STATIC_LIBS="$NTFSPROGS_STATIC_LIBS -lhd"
13642else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5
13644$as_echo "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;}
13645fi
13646
13647else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&5
13649$as_echo "$as_me: WARNING: ntfsprogs Windows compliant geometry code requires the hd library." >&2;}
13650fi
13651
13652
13653fi
13654
13655# Checks for header files.
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13657$as_echo_n "checking for ANSI C header files... " >&6; }
13658if ${ac_cv_header_stdc+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660else
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013662/* end confdefs.h. */
13663#include <stdlib.h>
13664#include <stdarg.h>
13665#include <string.h>
13666#include <float.h>
13667
13668int
13669main ()
13670{
13671
13672 ;
13673 return 0;
13674}
13675_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013676if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013677 ac_cv_header_stdc=yes
13678else
Steve Kondik79165c32015-11-09 19:43:00 -080013679 ac_cv_header_stdc=no
Steve Kondik2111ad72013-07-07 12:07:44 -070013680fi
Steve Kondik2111ad72013-07-07 12:07:44 -070013681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682
13683if test $ac_cv_header_stdc = yes; then
13684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Steve Kondik79165c32015-11-09 19:43:00 -080013685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013686/* end confdefs.h. */
13687#include <string.h>
13688
13689_ACEOF
13690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Steve Kondik79165c32015-11-09 19:43:00 -080013691 $EGREP "memchr" >/dev/null 2>&1; then :
13692
Steve Kondik2111ad72013-07-07 12:07:44 -070013693else
13694 ac_cv_header_stdc=no
13695fi
13696rm -f conftest*
13697
13698fi
13699
13700if test $ac_cv_header_stdc = yes; then
13701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Steve Kondik79165c32015-11-09 19:43:00 -080013702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013703/* end confdefs.h. */
13704#include <stdlib.h>
13705
13706_ACEOF
13707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Steve Kondik79165c32015-11-09 19:43:00 -080013708 $EGREP "free" >/dev/null 2>&1; then :
13709
Steve Kondik2111ad72013-07-07 12:07:44 -070013710else
13711 ac_cv_header_stdc=no
13712fi
13713rm -f conftest*
13714
13715fi
13716
13717if test $ac_cv_header_stdc = yes; then
13718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Steve Kondik79165c32015-11-09 19:43:00 -080013719 if test "$cross_compiling" = yes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013720 :
13721else
Steve Kondik79165c32015-11-09 19:43:00 -080013722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013723/* end confdefs.h. */
13724#include <ctype.h>
13725#include <stdlib.h>
13726#if ((' ' & 0x0FF) == 0x020)
13727# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13728# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13729#else
13730# define ISLOWER(c) \
13731 (('a' <= (c) && (c) <= 'i') \
13732 || ('j' <= (c) && (c) <= 'r') \
13733 || ('s' <= (c) && (c) <= 'z'))
13734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13735#endif
13736
13737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13738int
13739main ()
13740{
13741 int i;
13742 for (i = 0; i < 256; i++)
13743 if (XOR (islower (i), ISLOWER (i))
13744 || toupper (i) != TOUPPER (i))
13745 return 2;
13746 return 0;
13747}
13748_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013749if ac_fn_c_try_run "$LINENO"; then :
13750
Steve Kondik2111ad72013-07-07 12:07:44 -070013751else
Steve Kondik79165c32015-11-09 19:43:00 -080013752 ac_cv_header_stdc=no
Steve Kondik2111ad72013-07-07 12:07:44 -070013753fi
Steve Kondik79165c32015-11-09 19:43:00 -080013754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13755 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013756fi
13757
Steve Kondik2111ad72013-07-07 12:07:44 -070013758fi
13759fi
Steve Kondik79165c32015-11-09 19:43:00 -080013760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13761$as_echo "$ac_cv_header_stdc" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070013762if test $ac_cv_header_stdc = yes; then
13763
Steve Kondik79165c32015-11-09 19:43:00 -080013764$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070013765
13766fi
13767
Steve Kondik2111ad72013-07-07 12:07:44 -070013768for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
13769 mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
13770 strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
Steve Kondik79165c32015-11-09 19:43:00 -080013771 regex.h endian.h byteswap.h sys/byteorder.h sys/disk.h sys/endian.h \
Steve Kondik2111ad72013-07-07 12:07:44 -070013772 sys/param.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h \
13773 sys/vfs.h sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h \
Steve Kondik79165c32015-11-09 19:43:00 -080013774 linux/fs.h inttypes.h linux/hdreg.h \
13775 machine/endian.h windows.h syslog.h pwd.h malloc.h
13776do :
13777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013780 cat >>confdefs.h <<_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Steve Kondik2111ad72013-07-07 12:07:44 -070013782_ACEOF
13783
13784fi
13785
13786done
13787
13788
13789# Checks for typedefs, structures, and compiler characteristics.
Steve Kondik79165c32015-11-09 19:43:00 -080013790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13791$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13792if ${ac_cv_header_stdbool_h+:} false; then :
13793 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070013794else
Steve Kondik79165c32015-11-09 19:43:00 -080013795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013796/* end confdefs.h. */
13797
Steve Kondik79165c32015-11-09 19:43:00 -080013798 #include <stdbool.h>
13799 #ifndef bool
13800 "error: bool is not defined"
13801 #endif
13802 #ifndef false
13803 "error: false is not defined"
13804 #endif
13805 #if false
13806 "error: false is not 0"
13807 #endif
13808 #ifndef true
13809 "error: true is not defined"
13810 #endif
13811 #if true != 1
13812 "error: true is not 1"
13813 #endif
13814 #ifndef __bool_true_false_are_defined
13815 "error: __bool_true_false_are_defined is not defined"
13816 #endif
Steve Kondik2111ad72013-07-07 12:07:44 -070013817
Steve Kondik79165c32015-11-09 19:43:00 -080013818 struct s { _Bool s: 1; _Bool t; } s;
Steve Kondik2111ad72013-07-07 12:07:44 -070013819
Steve Kondik79165c32015-11-09 19:43:00 -080013820 char a[true == 1 ? 1 : -1];
13821 char b[false == 0 ? 1 : -1];
13822 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13823 char d[(bool) 0.5 == true ? 1 : -1];
13824 /* See body of main program for 'e'. */
13825 char f[(_Bool) 0.0 == false ? 1 : -1];
13826 char g[true];
13827 char h[sizeof (_Bool)];
13828 char i[sizeof s.t];
13829 enum { j = false, k = true, l = false * true, m = true * 256 };
13830 /* The following fails for
13831 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13832 _Bool n[m];
13833 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13834 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13835 /* Catch a bug in an HP-UX C compiler. See
13836 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13837 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13838 */
13839 _Bool q = true;
13840 _Bool *pq = &q;
Steve Kondik2111ad72013-07-07 12:07:44 -070013841
13842int
13843main ()
13844{
13845
Steve Kondik79165c32015-11-09 19:43:00 -080013846 bool e = &s;
13847 *pq |= q;
13848 *pq |= ! q;
13849 /* Refer to every declared value, to avoid compiler optimizations. */
13850 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13851 + !m + !n + !o + !p + !q + !pq);
Steve Kondik2111ad72013-07-07 12:07:44 -070013852
13853 ;
13854 return 0;
13855}
13856_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013857if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013858 ac_cv_header_stdbool_h=yes
13859else
Steve Kondik79165c32015-11-09 19:43:00 -080013860 ac_cv_header_stdbool_h=no
Steve Kondik2111ad72013-07-07 12:07:44 -070013861fi
Steve Kondik2111ad72013-07-07 12:07:44 -070013862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863fi
Steve Kondik79165c32015-11-09 19:43:00 -080013864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13865$as_echo "$ac_cv_header_stdbool_h" >&6; }
13866 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13867if test "x$ac_cv_type__Bool" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013868
13869cat >>confdefs.h <<_ACEOF
13870#define HAVE__BOOL 1
13871_ACEOF
13872
13873
13874fi
13875
Steve Kondik79165c32015-11-09 19:43:00 -080013876
Steve Kondik2111ad72013-07-07 12:07:44 -070013877if test $ac_cv_header_stdbool_h = yes; then
13878
Steve Kondik79165c32015-11-09 19:43:00 -080013879$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070013880
13881fi
13882
Steve Kondik79165c32015-11-09 19:43:00 -080013883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13884$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13885if ${ac_cv_c_bigendian+:} false; then :
13886 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070013887else
Steve Kondik79165c32015-11-09 19:43:00 -080013888 ac_cv_c_bigendian=unknown
13889 # See if we're dealing with a universal compiler.
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h. */
13892#ifndef __APPLE_CC__
13893 not a universal capable compiler
13894 #endif
13895 typedef int dummy;
13896
Steve Kondik2111ad72013-07-07 12:07:44 -070013897_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013898if ac_fn_c_try_compile "$LINENO"; then :
13899
13900 # Check for potential -arch flags. It is not universal unless
13901 # there are at least two -arch flags with different values.
13902 ac_arch=
13903 ac_prev=
13904 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13905 if test -n "$ac_prev"; then
13906 case $ac_word in
13907 i?86 | x86_64 | ppc | ppc64)
13908 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13909 ac_arch=$ac_word
13910 else
13911 ac_cv_c_bigendian=universal
13912 break
13913 fi
13914 ;;
13915 esac
13916 ac_prev=
13917 elif test "x$ac_word" = "x-arch"; then
13918 ac_prev=arch
13919 fi
13920 done
13921fi
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 if test $ac_cv_c_bigendian = unknown; then
13924 # See if sys/param.h defines the BYTE_ORDER macro.
13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013926/* end confdefs.h. */
13927#include <sys/types.h>
Steve Kondik79165c32015-11-09 19:43:00 -080013928 #include <sys/param.h>
Steve Kondik2111ad72013-07-07 12:07:44 -070013929
13930int
13931main ()
13932{
Steve Kondik79165c32015-11-09 19:43:00 -080013933#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13934 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13935 && LITTLE_ENDIAN)
13936 bogus endian macros
13937 #endif
Steve Kondik2111ad72013-07-07 12:07:44 -070013938
13939 ;
13940 return 0;
13941}
13942_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013943if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013944 # It does; now see whether it defined to BIG_ENDIAN or not.
Steve Kondik79165c32015-11-09 19:43:00 -080013945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013946/* end confdefs.h. */
13947#include <sys/types.h>
Steve Kondik79165c32015-11-09 19:43:00 -080013948 #include <sys/param.h>
Steve Kondik2111ad72013-07-07 12:07:44 -070013949
13950int
13951main ()
13952{
13953#if BYTE_ORDER != BIG_ENDIAN
Steve Kondik79165c32015-11-09 19:43:00 -080013954 not big endian
13955 #endif
Steve Kondik2111ad72013-07-07 12:07:44 -070013956
13957 ;
13958 return 0;
13959}
13960_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013961if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070013962 ac_cv_c_bigendian=yes
13963else
Steve Kondik79165c32015-11-09 19:43:00 -080013964 ac_cv_c_bigendian=no
Steve Kondik2111ad72013-07-07 12:07:44 -070013965fi
Steve Kondik2111ad72013-07-07 12:07:44 -070013966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Steve Kondik79165c32015-11-09 19:43:00 -080013967fi
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 fi
13970 if test $ac_cv_c_bigendian = unknown; then
13971 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070013973/* end confdefs.h. */
Steve Kondik79165c32015-11-09 19:43:00 -080013974#include <limits.h>
13975
Steve Kondik2111ad72013-07-07 12:07:44 -070013976int
13977main ()
13978{
Steve Kondik79165c32015-11-09 19:43:00 -080013979#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13980 bogus endian macros
13981 #endif
13982
Steve Kondik2111ad72013-07-07 12:07:44 -070013983 ;
13984 return 0;
13985}
13986_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080013987if ac_fn_c_try_compile "$LINENO"; then :
13988 # It does; now see whether it defined to _BIG_ENDIAN or not.
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h. */
13991#include <limits.h>
13992
13993int
13994main ()
13995{
13996#ifndef _BIG_ENDIAN
13997 not big endian
13998 #endif
13999
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014005 ac_cv_c_bigendian=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070014006else
Steve Kondik79165c32015-11-09 19:43:00 -080014007 ac_cv_c_bigendian=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014008fi
Steve Kondik79165c32015-11-09 19:43:00 -080014009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010fi
14011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 if test $ac_cv_c_bigendian = unknown; then
14014 # Compile a test program.
14015 if test "$cross_compiling" = yes; then :
14016 # Try to guess by grepping values from an object file.
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018/* end confdefs.h. */
14019short int ascii_mm[] =
14020 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14021 short int ascii_ii[] =
14022 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14023 int use_ascii (int i) {
14024 return ascii_mm[i] + ascii_ii[i];
14025 }
14026 short int ebcdic_ii[] =
14027 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14028 short int ebcdic_mm[] =
14029 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14030 int use_ebcdic (int i) {
14031 return ebcdic_mm[i] + ebcdic_ii[i];
14032 }
14033 extern int foo;
Steve Kondik2111ad72013-07-07 12:07:44 -070014034
Steve Kondik79165c32015-11-09 19:43:00 -080014035int
14036main ()
14037{
14038return use_ascii (foo) == use_ebcdic (foo);
14039 ;
14040 return 0;
14041}
14042_ACEOF
14043if ac_fn_c_try_compile "$LINENO"; then :
14044 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14045 ac_cv_c_bigendian=yes
14046 fi
14047 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14048 if test "$ac_cv_c_bigendian" = unknown; then
14049 ac_cv_c_bigendian=no
14050 else
14051 # finding both strings is unlikely to happen, but who knows?
14052 ac_cv_c_bigendian=unknown
14053 fi
14054 fi
14055fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057else
Steve Kondik79165c32015-11-09 19:43:00 -080014058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014059/* end confdefs.h. */
14060$ac_includes_default
14061int
14062main ()
14063{
14064
Steve Kondik79165c32015-11-09 19:43:00 -080014065 /* Are we little or big endian? From Harbison&Steele. */
14066 union
14067 {
14068 long int l;
14069 char c[sizeof (long int)];
14070 } u;
14071 u.l = 1;
14072 return u.c[sizeof (long int) - 1] == 1;
Steve Kondik2111ad72013-07-07 12:07:44 -070014073
14074 ;
14075 return 0;
14076}
14077_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014078if ac_fn_c_try_run "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014079 ac_cv_c_bigendian=no
14080else
Steve Kondik79165c32015-11-09 19:43:00 -080014081 ac_cv_c_bigendian=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070014082fi
Steve Kondik79165c32015-11-09 19:43:00 -080014083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14084 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014085fi
14086
Steve Kondik79165c32015-11-09 19:43:00 -080014087 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014088fi
Steve Kondik79165c32015-11-09 19:43:00 -080014089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14090$as_echo "$ac_cv_c_bigendian" >&6; }
14091 case $ac_cv_c_bigendian in #(
14092 yes)
14093 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14094;; #(
14095 no)
Steve Kondik2111ad72013-07-07 12:07:44 -070014096
14097
Steve Kondik79165c32015-11-09 19:43:00 -080014098$as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014099
14100
Steve Kondik79165c32015-11-09 19:43:00 -080014101 ;; #(
14102 universal)
Steve Kondik2111ad72013-07-07 12:07:44 -070014103
Steve Kondik79165c32015-11-09 19:43:00 -080014104$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14105
14106 ;; #(
14107 *)
14108 as_fn_error $? "unknown endianness
14109 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14110 esac
14111
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14113$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14114if ${ac_cv_c_const+:} false; then :
14115 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014116else
Steve Kondik79165c32015-11-09 19:43:00 -080014117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014118/* end confdefs.h. */
14119
14120int
14121main ()
14122{
Steve Kondik79165c32015-11-09 19:43:00 -080014123
Steve Kondik2111ad72013-07-07 12:07:44 -070014124#ifndef __cplusplus
Steve Kondik79165c32015-11-09 19:43:00 -080014125 /* Ultrix mips cc rejects this sort of thing. */
Steve Kondik2111ad72013-07-07 12:07:44 -070014126 typedef int charset[2];
Steve Kondik79165c32015-11-09 19:43:00 -080014127 const charset cs = { 0, 0 };
Steve Kondik2111ad72013-07-07 12:07:44 -070014128 /* SunOS 4.1.1 cc rejects this. */
14129 char const *const *pcpcc;
14130 char **ppc;
14131 /* NEC SVR4.0.2 mips cc rejects this. */
14132 struct point {int x, y;};
14133 static struct point const zero = {0,0};
14134 /* AIX XL C 1.02.0.0 rejects this.
14135 It does not let you subtract one const X* pointer from another in
14136 an arm of an if-expression whose if-part is not a constant
14137 expression */
14138 const char *g = "string";
14139 pcpcc = &g + (g ? g-g : 0);
14140 /* HPUX 7.0 cc rejects these. */
14141 ++pcpcc;
14142 ppc = (char**) pcpcc;
14143 pcpcc = (char const *const *) ppc;
Steve Kondik79165c32015-11-09 19:43:00 -080014144 { /* SCO 3.2v4 cc rejects this sort of thing. */
14145 char tx;
14146 char *t = &tx;
Steve Kondik2111ad72013-07-07 12:07:44 -070014147 char const *s = 0 ? (char *) 0 : (char const *) 0;
14148
14149 *t++ = 0;
14150 if (s) return 0;
14151 }
14152 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14153 int x[] = {25, 17};
14154 const int *foo = &x[0];
14155 ++foo;
14156 }
14157 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14158 typedef const int *iptr;
14159 iptr p = 0;
14160 ++p;
14161 }
Steve Kondik79165c32015-11-09 19:43:00 -080014162 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Steve Kondik2111ad72013-07-07 12:07:44 -070014163 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Steve Kondik79165c32015-11-09 19:43:00 -080014164 struct s { int j; const int *ap[3]; } bx;
14165 struct s *b = &bx; b->j = 5;
Steve Kondik2111ad72013-07-07 12:07:44 -070014166 }
14167 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14168 const int foo = 10;
14169 if (!foo) return 0;
14170 }
14171 return !cs[0] && !zero.x;
14172#endif
14173
14174 ;
14175 return 0;
14176}
14177_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014178if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014179 ac_cv_c_const=yes
14180else
Steve Kondik79165c32015-11-09 19:43:00 -080014181 ac_cv_c_const=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014182fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184fi
Steve Kondik79165c32015-11-09 19:43:00 -080014185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14186$as_echo "$ac_cv_c_const" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014187if test $ac_cv_c_const = no; then
14188
Steve Kondik79165c32015-11-09 19:43:00 -080014189$as_echo "#define const /**/" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014190
14191fi
14192
Steve Kondik79165c32015-11-09 19:43:00 -080014193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14194$as_echo_n "checking for inline... " >&6; }
14195if ${ac_cv_c_inline+:} false; then :
14196 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014197else
14198 ac_cv_c_inline=no
14199for ac_kw in inline __inline__ __inline; do
Steve Kondik79165c32015-11-09 19:43:00 -080014200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014201/* end confdefs.h. */
14202#ifndef __cplusplus
14203typedef int foo_t;
14204static $ac_kw foo_t static_foo () {return 0; }
14205$ac_kw foo_t foo () {return 0; }
14206#endif
14207
14208_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014209if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014210 ac_cv_c_inline=$ac_kw
Steve Kondik2111ad72013-07-07 12:07:44 -070014211fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 test "$ac_cv_c_inline" != no && break
14214done
14215
14216fi
Steve Kondik79165c32015-11-09 19:43:00 -080014217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14218$as_echo "$ac_cv_c_inline" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014219
14220case $ac_cv_c_inline in
14221 inline | yes) ;;
14222 *)
14223 case $ac_cv_c_inline in
14224 no) ac_val=;;
14225 *) ac_val=$ac_cv_c_inline;;
14226 esac
14227 cat >>confdefs.h <<_ACEOF
14228#ifndef __cplusplus
14229#define inline $ac_val
14230#endif
14231_ACEOF
14232 ;;
14233esac
14234
Steve Kondik79165c32015-11-09 19:43:00 -080014235ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14236if test "x$ac_cv_type_off_t" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014237
Steve Kondik2111ad72013-07-07 12:07:44 -070014238else
14239
14240cat >>confdefs.h <<_ACEOF
14241#define off_t long int
14242_ACEOF
14243
14244fi
14245
Steve Kondik79165c32015-11-09 19:43:00 -080014246ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14247if test "x$ac_cv_type_size_t" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014248
Steve Kondik2111ad72013-07-07 12:07:44 -070014249else
14250
14251cat >>confdefs.h <<_ACEOF
14252#define size_t unsigned int
14253_ACEOF
14254
14255fi
14256
Steve Kondik79165c32015-11-09 19:43:00 -080014257ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14258if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014259
14260cat >>confdefs.h <<_ACEOF
14261#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14262_ACEOF
14263
14264
Steve Kondik79165c32015-11-09 19:43:00 -080014265$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014266
14267else
14268 case " $LIBOBJS " in
14269 *" fileblocks.$ac_objext "* ) ;;
14270 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
14271 ;;
14272esac
14273
14274fi
14275
14276
Steve Kondik79165c32015-11-09 19:43:00 -080014277ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
14278if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014279
14280cat >>confdefs.h <<_ACEOF
14281#define HAVE_STRUCT_STAT_ST_RDEV 1
14282_ACEOF
14283
14284
14285fi
14286
Steve Kondik79165c32015-11-09 19:43:00 -080014287ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14288if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014289
14290cat >>confdefs.h <<_ACEOF
14291#define HAVE_STRUCT_STAT_ST_ATIM 1
14292_ACEOF
14293
14294
14295fi
14296
Steve Kondik79165c32015-11-09 19:43:00 -080014297ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14298if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014299
14300cat >>confdefs.h <<_ACEOF
14301#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14302_ACEOF
14303
14304
14305fi
14306
Steve Kondik79165c32015-11-09 19:43:00 -080014307ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
14308if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014309
14310cat >>confdefs.h <<_ACEOF
14311#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14312_ACEOF
14313
14314
14315fi
14316
14317
14318# For the 'nfconv' patch (Mac OS X only):
14319case "${target_os}" in
14320darwin*)
14321 if test "${enable_nfconv}" = "yes"; then
Steve Kondik79165c32015-11-09 19:43:00 -080014322 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
14323if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014324
14325 LDFLAGS="${LDFLAGS} -framework CoreFoundation"
14326
Steve Kondik79165c32015-11-09 19:43:00 -080014327$as_echo "#define ENABLE_NFCONV 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014328
14329
14330else
Steve Kondik79165c32015-11-09 19:43:00 -080014331 as_fn_error $? "Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070014332
14333fi
14334
14335
14336 fi
14337 ;;
14338esac
14339
14340# Checks for library functions.
14341# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14342# -lseq on Dynix/PTX, -lgen on Unixware.
Steve Kondik79165c32015-11-09 19:43:00 -080014343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
14344$as_echo_n "checking for library containing getmntent... " >&6; }
14345if ${ac_cv_search_getmntent+:} false; then :
14346 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014347else
14348 ac_func_search_save_LIBS=$LIBS
Steve Kondik79165c32015-11-09 19:43:00 -080014349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014350/* end confdefs.h. */
14351
14352/* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355#ifdef __cplusplus
14356extern "C"
14357#endif
14358char getmntent ();
14359int
14360main ()
14361{
14362return getmntent ();
14363 ;
14364 return 0;
14365}
14366_ACEOF
14367for ac_lib in '' sun seq gen; do
14368 if test -z "$ac_lib"; then
14369 ac_res="none required"
14370 else
14371 ac_res=-l$ac_lib
14372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14373 fi
Steve Kondik79165c32015-11-09 19:43:00 -080014374 if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014375 ac_cv_search_getmntent=$ac_res
Steve Kondik2111ad72013-07-07 12:07:44 -070014376fi
Steve Kondik79165c32015-11-09 19:43:00 -080014377rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext
14379 if ${ac_cv_search_getmntent+:} false; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014380 break
14381fi
14382done
Steve Kondik79165c32015-11-09 19:43:00 -080014383if ${ac_cv_search_getmntent+:} false; then :
14384
Steve Kondik2111ad72013-07-07 12:07:44 -070014385else
14386 ac_cv_search_getmntent=no
14387fi
14388rm conftest.$ac_ext
14389LIBS=$ac_func_search_save_LIBS
14390fi
Steve Kondik79165c32015-11-09 19:43:00 -080014391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
14392$as_echo "$ac_cv_search_getmntent" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014393ac_res=$ac_cv_search_getmntent
Steve Kondik79165c32015-11-09 19:43:00 -080014394if test "$ac_res" != no; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14396 ac_cv_func_getmntent=yes
14397
Steve Kondik79165c32015-11-09 19:43:00 -080014398$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014399
14400else
14401 ac_cv_func_getmntent=no
14402fi
14403
14404
14405
Steve Kondik79165c32015-11-09 19:43:00 -080014406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14407$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14408if ${ac_cv_func_mbrtowc+:} false; then :
14409 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014410else
Steve Kondik79165c32015-11-09 19:43:00 -080014411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014412/* end confdefs.h. */
14413#include <wchar.h>
14414int
14415main ()
14416{
14417wchar_t wc;
14418 char const s[] = "";
14419 size_t n = 1;
14420 mbstate_t state;
14421 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14422 ;
14423 return 0;
14424}
14425_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014426if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014427 ac_cv_func_mbrtowc=yes
14428else
Steve Kondik79165c32015-11-09 19:43:00 -080014429 ac_cv_func_mbrtowc=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014430fi
Steve Kondik79165c32015-11-09 19:43:00 -080014431rm -f core conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014433fi
Steve Kondik79165c32015-11-09 19:43:00 -080014434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14435$as_echo "$ac_cv_func_mbrtowc" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014436 if test $ac_cv_func_mbrtowc = yes; then
14437
Steve Kondik79165c32015-11-09 19:43:00 -080014438$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014439
14440 fi
14441
Steve Kondik79165c32015-11-09 19:43:00 -080014442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14443$as_echo_n "checking for working memcmp... " >&6; }
14444if ${ac_cv_func_memcmp_working+:} false; then :
14445 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014446else
Steve Kondik79165c32015-11-09 19:43:00 -080014447 if test "$cross_compiling" = yes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014448 ac_cv_func_memcmp_working=no
14449else
Steve Kondik79165c32015-11-09 19:43:00 -080014450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014451/* end confdefs.h. */
14452$ac_includes_default
14453int
14454main ()
14455{
14456
14457 /* Some versions of memcmp are not 8-bit clean. */
14458 char c0 = '\100', c1 = '\200', c2 = '\201';
14459 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14460 return 1;
14461
14462 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14463 or more and with at least one buffer not starting on a 4-byte boundary.
14464 William Lewis provided this test program. */
14465 {
14466 char foo[21];
14467 char bar[21];
14468 int i;
14469 for (i = 0; i < 4; i++)
14470 {
14471 char *a = foo + i;
14472 char *b = bar + i;
14473 strcpy (a, "--------01111111");
14474 strcpy (b, "--------10000000");
14475 if (memcmp (a, b, 16) >= 0)
14476 return 1;
14477 }
14478 return 0;
14479 }
14480
14481 ;
14482 return 0;
14483}
14484_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014485if ac_fn_c_try_run "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014486 ac_cv_func_memcmp_working=yes
14487else
Steve Kondik79165c32015-11-09 19:43:00 -080014488 ac_cv_func_memcmp_working=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014489fi
Steve Kondik79165c32015-11-09 19:43:00 -080014490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14491 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014492fi
14493
Steve Kondik2111ad72013-07-07 12:07:44 -070014494fi
Steve Kondik79165c32015-11-09 19:43:00 -080014495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14496$as_echo "$ac_cv_func_memcmp_working" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014497test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14498 *" memcmp.$ac_objext "* ) ;;
14499 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14500 ;;
14501esac
14502
14503
Steve Kondik79165c32015-11-09 19:43:00 -080014504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14505$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14506if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14507 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014508else
14509 rm -f conftest.sym conftest.file
14510echo >conftest.file
14511if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
Steve Kondik79165c32015-11-09 19:43:00 -080014512 if test "$cross_compiling" = yes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014513 ac_cv_func_lstat_dereferences_slashed_symlink=no
14514else
Steve Kondik79165c32015-11-09 19:43:00 -080014515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014516/* end confdefs.h. */
14517$ac_includes_default
14518int
14519main ()
14520{
14521struct stat sbuf;
Steve Kondik79165c32015-11-09 19:43:00 -080014522 /* Linux will dereference the symlink and fail, as required by POSIX.
Steve Kondik2111ad72013-07-07 12:07:44 -070014523 That is better in the sense that it means we will not
14524 have to compile and use the lstat wrapper. */
14525 return lstat ("conftest.sym/", &sbuf) == 0;
14526 ;
14527 return 0;
14528}
14529_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014530if ac_fn_c_try_run "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014531 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14532else
Steve Kondik79165c32015-11-09 19:43:00 -080014533 ac_cv_func_lstat_dereferences_slashed_symlink=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014534fi
Steve Kondik79165c32015-11-09 19:43:00 -080014535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14536 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014537fi
14538
Steve Kondik2111ad72013-07-07 12:07:44 -070014539else
14540 # If the `ln -s' command failed, then we probably don't even
14541 # have an lstat function.
14542 ac_cv_func_lstat_dereferences_slashed_symlink=no
14543fi
14544rm -f conftest.sym conftest.file
14545
14546fi
Steve Kondik79165c32015-11-09 19:43:00 -080014547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14548$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014549
14550test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14551
14552cat >>confdefs.h <<_ACEOF
14553#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14554_ACEOF
14555
14556
Steve Kondik79165c32015-11-09 19:43:00 -080014557if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
Steve Kondik2111ad72013-07-07 12:07:44 -070014558 case " $LIBOBJS " in
14559 *" lstat.$ac_objext "* ) ;;
14560 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14561 ;;
14562esac
14563
14564fi
14565
Steve Kondik79165c32015-11-09 19:43:00 -080014566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14567$as_echo_n "checking whether stat accepts an empty string... " >&6; }
14568if ${ac_cv_func_stat_empty_string_bug+:} false; then :
14569 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014570else
Steve Kondik79165c32015-11-09 19:43:00 -080014571 if test "$cross_compiling" = yes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014572 ac_cv_func_stat_empty_string_bug=yes
14573else
Steve Kondik79165c32015-11-09 19:43:00 -080014574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014575/* end confdefs.h. */
14576$ac_includes_default
14577int
14578main ()
14579{
14580struct stat sbuf;
14581 return stat ("", &sbuf) == 0;
14582 ;
14583 return 0;
14584}
14585_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014586if ac_fn_c_try_run "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014587 ac_cv_func_stat_empty_string_bug=no
14588else
Steve Kondik79165c32015-11-09 19:43:00 -080014589 ac_cv_func_stat_empty_string_bug=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070014590fi
Steve Kondik79165c32015-11-09 19:43:00 -080014591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14592 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014593fi
14594
Steve Kondik2111ad72013-07-07 12:07:44 -070014595fi
Steve Kondik79165c32015-11-09 19:43:00 -080014596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14597$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014598if test $ac_cv_func_stat_empty_string_bug = yes; then
14599 case " $LIBOBJS " in
14600 *" stat.$ac_objext "* ) ;;
14601 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14602 ;;
14603esac
14604
14605
14606cat >>confdefs.h <<_ACEOF
14607#define HAVE_STAT_EMPTY_STRING_BUG 1
14608_ACEOF
14609
14610fi
14611
Steve Kondik2111ad72013-07-07 12:07:44 -070014612for ac_func in strftime
Steve Kondik79165c32015-11-09 19:43:00 -080014613do :
14614 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14615if test "x$ac_cv_func_strftime" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014616 cat >>confdefs.h <<_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014617#define HAVE_STRFTIME 1
Steve Kondik2111ad72013-07-07 12:07:44 -070014618_ACEOF
14619
14620else
14621 # strftime is in -lintl on SCO UNIX.
Steve Kondik79165c32015-11-09 19:43:00 -080014622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14623$as_echo_n "checking for strftime in -lintl... " >&6; }
14624if ${ac_cv_lib_intl_strftime+:} false; then :
14625 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014626else
14627 ac_check_lib_save_LIBS=$LIBS
14628LIBS="-lintl $LIBS"
Steve Kondik79165c32015-11-09 19:43:00 -080014629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014630/* end confdefs.h. */
14631
14632/* Override any GCC internal prototype to avoid an error.
14633 Use char because int might match the return type of a GCC
14634 builtin and then its argument prototype would still apply. */
14635#ifdef __cplusplus
14636extern "C"
14637#endif
14638char strftime ();
14639int
14640main ()
14641{
14642return strftime ();
14643 ;
14644 return 0;
14645}
14646_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014647if ac_fn_c_try_link "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014648 ac_cv_lib_intl_strftime=yes
14649else
Steve Kondik79165c32015-11-09 19:43:00 -080014650 ac_cv_lib_intl_strftime=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014651fi
Steve Kondik79165c32015-11-09 19:43:00 -080014652rm -f core conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014654LIBS=$ac_check_lib_save_LIBS
14655fi
Steve Kondik79165c32015-11-09 19:43:00 -080014656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14657$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14658if test "x$ac_cv_lib_intl_strftime" = xyes; then :
14659 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014660
14661LIBS="-lintl $LIBS"
14662fi
14663
14664fi
14665done
14666
14667
14668
14669
Steve Kondik79165c32015-11-09 19:43:00 -080014670 for ac_header in $ac_header_list
14671do :
14672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14673ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14674"
14675if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014676 cat >>confdefs.h <<_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014677#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Steve Kondik2111ad72013-07-07 12:07:44 -070014678_ACEOF
14679
14680fi
14681
14682done
14683
14684
14685
14686
Steve Kondik79165c32015-11-09 19:43:00 -080014687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
14688$as_echo_n "checking whether utime accepts a null argument... " >&6; }
14689if ${ac_cv_func_utime_null+:} false; then :
14690 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014691else
14692 rm -f conftest.data; >conftest.data
14693# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
Steve Kondik79165c32015-11-09 19:43:00 -080014694if test "$cross_compiling" = yes; then :
14695 ac_cv_func_utime_null='guessing yes'
Steve Kondik2111ad72013-07-07 12:07:44 -070014696else
Steve Kondik79165c32015-11-09 19:43:00 -080014697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014698/* end confdefs.h. */
14699$ac_includes_default
14700 #ifdef HAVE_UTIME_H
14701 # include <utime.h>
14702 #endif
14703int
14704main ()
14705{
14706struct stat s, t;
14707 return ! (stat ("conftest.data", &s) == 0
14708 && utime ("conftest.data", 0) == 0
14709 && stat ("conftest.data", &t) == 0
14710 && t.st_mtime >= s.st_mtime
14711 && t.st_mtime - s.st_mtime < 120);
14712 ;
14713 return 0;
14714}
14715_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014716if ac_fn_c_try_run "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014717 ac_cv_func_utime_null=yes
14718else
Steve Kondik79165c32015-11-09 19:43:00 -080014719 ac_cv_func_utime_null=no
Steve Kondik2111ad72013-07-07 12:07:44 -070014720fi
Steve Kondik79165c32015-11-09 19:43:00 -080014721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14722 conftest.$ac_objext conftest.beam conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014723fi
14724
Steve Kondik2111ad72013-07-07 12:07:44 -070014725fi
Steve Kondik79165c32015-11-09 19:43:00 -080014726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
14727$as_echo "$ac_cv_func_utime_null" >&6; }
14728if test "x$ac_cv_func_utime_null" != xno; then
14729 ac_cv_func_utime_null=yes
Steve Kondik2111ad72013-07-07 12:07:44 -070014730
Steve Kondik79165c32015-11-09 19:43:00 -080014731$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014732
14733fi
14734rm -f conftest.data
14735
Steve Kondik2111ad72013-07-07 12:07:44 -070014736for ac_func in vprintf
Steve Kondik79165c32015-11-09 19:43:00 -080014737do :
14738 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14739if test "x$ac_cv_func_vprintf" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014740 cat >>confdefs.h <<_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014741#define HAVE_VPRINTF 1
Steve Kondik2111ad72013-07-07 12:07:44 -070014742_ACEOF
14743
Steve Kondik79165c32015-11-09 19:43:00 -080014744ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14745if test "x$ac_cv_func__doprnt" = xyes; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014746
Steve Kondik79165c32015-11-09 19:43:00 -080014747$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014748
14749fi
14750
14751fi
14752done
14753
14754
Steve Kondik2111ad72013-07-07 12:07:44 -070014755for ac_func in \
14756 atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
14757 mbsinit memmove memset realpath regcomp setlocale setxattr \
14758 strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
14759 sysconf utime utimensat gettimeofday clock_gettime fork memcpy random snprintf \
14760
Steve Kondik79165c32015-11-09 19:43:00 -080014761do :
14762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14764if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014765 cat >>confdefs.h <<_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Steve Kondik2111ad72013-07-07 12:07:44 -070014767_ACEOF
14768
14769fi
14770done
14771
14772# Check whether --enable-largefile was given.
Steve Kondik79165c32015-11-09 19:43:00 -080014773if test "${enable_largefile+set}" = set; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014774 enableval=$enable_largefile;
14775fi
14776
14777if test "$enable_largefile" != no; then
14778
Steve Kondik79165c32015-11-09 19:43:00 -080014779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14780$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14781if ${ac_cv_sys_largefile_CC+:} false; then :
14782 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014783else
14784 ac_cv_sys_largefile_CC=no
14785 if test "$GCC" != yes; then
14786 ac_save_CC=$CC
14787 while :; do
14788 # IRIX 6.2 and later do not support large files by default,
14789 # so use the C compiler's -n32 option if that helps.
Steve Kondik79165c32015-11-09 19:43:00 -080014790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014791/* end confdefs.h. */
14792#include <sys/types.h>
14793 /* Check that off_t can represent 2**63 - 1 correctly.
14794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14795 since some C++ compilers masquerading as C compilers
14796 incorrectly reject 9223372036854775807. */
14797#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14799 && LARGE_OFF_T % 2147483647 == 1)
14800 ? 1 : -1];
14801int
14802main ()
14803{
14804
14805 ;
14806 return 0;
14807}
14808_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014809 if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014810 break
Steve Kondik2111ad72013-07-07 12:07:44 -070014811fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014812rm -f core conftest.err conftest.$ac_objext
14813 CC="$CC -n32"
Steve Kondik79165c32015-11-09 19:43:00 -080014814 if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014815 ac_cv_sys_largefile_CC=' -n32'; break
Steve Kondik2111ad72013-07-07 12:07:44 -070014816fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014817rm -f core conftest.err conftest.$ac_objext
14818 break
14819 done
14820 CC=$ac_save_CC
14821 rm -f conftest.$ac_ext
14822 fi
14823fi
Steve Kondik79165c32015-11-09 19:43:00 -080014824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14825$as_echo "$ac_cv_sys_largefile_CC" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014826 if test "$ac_cv_sys_largefile_CC" != no; then
14827 CC=$CC$ac_cv_sys_largefile_CC
14828 fi
14829
Steve Kondik79165c32015-11-09 19:43:00 -080014830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14831$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14832if ${ac_cv_sys_file_offset_bits+:} false; then :
14833 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014834else
14835 while :; do
Steve Kondik79165c32015-11-09 19:43:00 -080014836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014837/* end confdefs.h. */
14838#include <sys/types.h>
14839 /* Check that off_t can represent 2**63 - 1 correctly.
14840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14841 since some C++ compilers masquerading as C compilers
14842 incorrectly reject 9223372036854775807. */
14843#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14845 && LARGE_OFF_T % 2147483647 == 1)
14846 ? 1 : -1];
14847int
14848main ()
14849{
14850
14851 ;
14852 return 0;
14853}
14854_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014855if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014856 ac_cv_sys_file_offset_bits=no; break
Steve Kondik2111ad72013-07-07 12:07:44 -070014857fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Steve Kondik79165c32015-11-09 19:43:00 -080014859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014860/* end confdefs.h. */
14861#define _FILE_OFFSET_BITS 64
14862#include <sys/types.h>
14863 /* Check that off_t can represent 2**63 - 1 correctly.
14864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14865 since some C++ compilers masquerading as C compilers
14866 incorrectly reject 9223372036854775807. */
14867#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14869 && LARGE_OFF_T % 2147483647 == 1)
14870 ? 1 : -1];
14871int
14872main ()
14873{
14874
14875 ;
14876 return 0;
14877}
14878_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014879if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014880 ac_cv_sys_file_offset_bits=64; break
Steve Kondik2111ad72013-07-07 12:07:44 -070014881fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14883 ac_cv_sys_file_offset_bits=unknown
14884 break
14885done
14886fi
Steve Kondik79165c32015-11-09 19:43:00 -080014887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14888$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014889case $ac_cv_sys_file_offset_bits in #(
14890 no | unknown) ;;
14891 *)
14892cat >>confdefs.h <<_ACEOF
14893#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14894_ACEOF
14895;;
14896esac
Steve Kondik79165c32015-11-09 19:43:00 -080014897rm -rf conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -070014898 if test $ac_cv_sys_file_offset_bits = unknown; then
Steve Kondik79165c32015-11-09 19:43:00 -080014899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14900$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14901if ${ac_cv_sys_large_files+:} false; then :
14902 $as_echo_n "(cached) " >&6
Steve Kondik2111ad72013-07-07 12:07:44 -070014903else
14904 while :; do
Steve Kondik79165c32015-11-09 19:43:00 -080014905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014906/* end confdefs.h. */
14907#include <sys/types.h>
14908 /* Check that off_t can represent 2**63 - 1 correctly.
14909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14910 since some C++ compilers masquerading as C compilers
14911 incorrectly reject 9223372036854775807. */
14912#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14914 && LARGE_OFF_T % 2147483647 == 1)
14915 ? 1 : -1];
14916int
14917main ()
14918{
14919
14920 ;
14921 return 0;
14922}
14923_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014924if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014925 ac_cv_sys_large_files=no; break
Steve Kondik2111ad72013-07-07 12:07:44 -070014926fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Steve Kondik79165c32015-11-09 19:43:00 -080014928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Steve Kondik2111ad72013-07-07 12:07:44 -070014929/* end confdefs.h. */
14930#define _LARGE_FILES 1
14931#include <sys/types.h>
14932 /* Check that off_t can represent 2**63 - 1 correctly.
14933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14934 since some C++ compilers masquerading as C compilers
14935 incorrectly reject 9223372036854775807. */
14936#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14938 && LARGE_OFF_T % 2147483647 == 1)
14939 ? 1 : -1];
14940int
14941main ()
14942{
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080014948if ac_fn_c_try_compile "$LINENO"; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070014949 ac_cv_sys_large_files=1; break
Steve Kondik2111ad72013-07-07 12:07:44 -070014950fi
Steve Kondik2111ad72013-07-07 12:07:44 -070014951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 ac_cv_sys_large_files=unknown
14953 break
14954done
14955fi
Steve Kondik79165c32015-11-09 19:43:00 -080014956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14957$as_echo "$ac_cv_sys_large_files" >&6; }
Steve Kondik2111ad72013-07-07 12:07:44 -070014958case $ac_cv_sys_large_files in #(
14959 no | unknown) ;;
14960 *)
14961cat >>confdefs.h <<_ACEOF
14962#define _LARGE_FILES $ac_cv_sys_large_files
14963_ACEOF
14964;;
14965esac
Steve Kondik79165c32015-11-09 19:43:00 -080014966rm -rf conftest*
Steve Kondik2111ad72013-07-07 12:07:44 -070014967 fi
Steve Kondik79165c32015-11-09 19:43:00 -080014968
14969
Steve Kondik2111ad72013-07-07 12:07:44 -070014970fi
14971
14972
14973if test "$GCC" = "yes" ; then
14974 # We add -Wall to enable some compiler warnings.
14975 CFLAGS="${CFLAGS} -Wall"
14976fi
14977
14978if test "${enable_pedantic}" = "yes"; then
14979 enable_warnings="yes"
14980 CFLAGS="${CFLAGS} -pedantic"
14981fi
14982
14983if test "${enable_warnings}" = "yes"; then
14984 CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security -Wuninitialized"
14985fi
14986
14987if test "${enable_debug}" = "yes"; then
14988 CFLAGS="${CFLAGS} -ggdb3 -DDEBUG"
14989
Steve Kondik79165c32015-11-09 19:43:00 -080014990$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014991
14992fi
14993
14994test "${enable_device_default_io_ops}" = "no" &&
Steve Kondik79165c32015-11-09 19:43:00 -080014995$as_echo "#define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070014996
14997
14998test "${enable_mtab}" = "no" &&
Steve Kondik79165c32015-11-09 19:43:00 -080014999$as_echo "#define IGNORE_MTAB 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070015000
15001test "${enable_posix_acls}" != "no" &&
Steve Kondik79165c32015-11-09 19:43:00 -080015002$as_echo "#define POSIXACLS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070015003
15004test "${enable_xattr_mappings}" != "no" &&
Steve Kondik79165c32015-11-09 19:43:00 -080015005$as_echo "#define XATTR_MAPPINGS 1" >>confdefs.h
Steve Kondik2111ad72013-07-07 12:07:44 -070015006
15007
15008test "${enable_really_static}" = "yes" && enable_library="no"
15009test "${enable_library}" = "no" && enable_ldconfig="no"
15010
15011if test "x${DISTCHECK_HACK}" != "x"; then
15012 enable_mount_helper="no"
15013 enable_ldconfig="no"
15014fi
15015
15016# Settings
15017pkgconfigdir="\$(libdir)/pkgconfig"
15018ntfs3gincludedir="\$(includedir)/ntfs-3g"
15019# Executables should be installed to the root filesystem, otherwise
15020# automounting NTFS volumes can fail during boot if the driver binaries
15021# and their dependencies are on an unmounted partition. Use --exec-prefix
15022# to override this.
15023if test "x${exec_prefix}" = "xNONE"; then
15024 rootbindir="/bin"
15025 rootsbindir="/sbin"
15026 rootlibdir="/lib${libdir##*/lib}"
15027else
15028 rootbindir="\$(bindir)"
15029 rootsbindir="\$(sbindir)"
15030 rootlibdir="\$(libdir)"
15031fi
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
Steve Kondik79165c32015-11-09 19:43:00 -080015043
15044
15045
Steve Kondik2111ad72013-07-07 12:07:44 -070015046 if test "${with_fuse}" = "internal"; then
15047 FUSE_INTERNAL_TRUE=
15048 FUSE_INTERNAL_FALSE='#'
15049else
15050 FUSE_INTERNAL_TRUE='#'
15051 FUSE_INTERNAL_FALSE=
15052fi
15053
15054 if test "${enable_ldscript}" = "yes"; then
15055 GENERATE_LDSCRIPT_TRUE=
15056 GENERATE_LDSCRIPT_FALSE='#'
15057else
15058 GENERATE_LDSCRIPT_TRUE='#'
15059 GENERATE_LDSCRIPT_FALSE=
15060fi
15061
15062 if test "${WINDOWS}" = "yes"; then
15063 WINDOWS_TRUE=
15064 WINDOWS_FALSE='#'
15065else
15066 WINDOWS_TRUE='#'
15067 WINDOWS_FALSE=
15068fi
15069
15070 if test "${enable_device_default_io_ops}" = "yes"; then
15071 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE=
15072 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#'
15073else
15074 NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#'
15075 NTFS_DEVICE_DEFAULT_IO_OPS_FALSE=
15076fi
15077
15078 if test "${enable_ldconfig}" = "yes"; then
15079 RUN_LDCONFIG_TRUE=
15080 RUN_LDCONFIG_FALSE='#'
15081else
15082 RUN_LDCONFIG_TRUE='#'
15083 RUN_LDCONFIG_FALSE=
15084fi
15085
15086 if test "${enable_really_static}" = "yes"; then
15087 REALLYSTATIC_TRUE=
15088 REALLYSTATIC_FALSE='#'
15089else
15090 REALLYSTATIC_TRUE='#'
15091 REALLYSTATIC_FALSE=
15092fi
15093
15094 if test "${enable_library}" = "yes"; then
15095 INSTALL_LIBRARY_TRUE=
15096 INSTALL_LIBRARY_FALSE='#'
15097else
15098 INSTALL_LIBRARY_TRUE='#'
15099 INSTALL_LIBRARY_FALSE=
15100fi
15101
15102 if test "${enable_mount_helper}" = "yes"; then
15103 ENABLE_MOUNT_HELPER_TRUE=
15104 ENABLE_MOUNT_HELPER_FALSE='#'
15105else
15106 ENABLE_MOUNT_HELPER_TRUE='#'
15107 ENABLE_MOUNT_HELPER_FALSE=
15108fi
15109
15110 if test "${enable_ntfs_3g}" = "yes"; then
15111 ENABLE_NTFS_3G_TRUE=
15112 ENABLE_NTFS_3G_FALSE='#'
15113else
15114 ENABLE_NTFS_3G_TRUE='#'
15115 ENABLE_NTFS_3G_FALSE=
15116fi
15117
15118 if test "${enable_ntfsprogs}" = "yes"; then
15119 ENABLE_NTFSPROGS_TRUE=
15120 ENABLE_NTFSPROGS_FALSE='#'
15121else
15122 ENABLE_NTFSPROGS_TRUE='#'
15123 ENABLE_NTFSPROGS_FALSE=
15124fi
15125
15126 if test "${enable_extras}" = "yes"; then
15127 ENABLE_EXTRAS_TRUE=
15128 ENABLE_EXTRAS_FALSE='#'
15129else
15130 ENABLE_EXTRAS_TRUE='#'
15131 ENABLE_EXTRAS_FALSE=
15132fi
15133
Steve Kondik79165c32015-11-09 19:43:00 -080015134 if test "${enable_quarantined}" = "yes"; then
15135 ENABLE_QUARANTINED_TRUE=
15136 ENABLE_QUARANTINED_FALSE='#'
15137else
15138 ENABLE_QUARANTINED_TRUE='#'
15139 ENABLE_QUARANTINED_FALSE=
15140fi
15141
Steve Kondik2111ad72013-07-07 12:07:44 -070015142
15143# workaround for <autoconf-2.60
15144if test -z "${docdir}"; then
15145 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
15146
15147fi
15148# workaround for <automake-1.10
15149if test -z "${MKDIR_P}"; then
15150 MKDIR_P="\$(mkdir_p)"
15151
15152fi
15153
15154# generate files
Steve Kondike68cb602016-08-28 00:45:36 -070015155ac_config_files="$ac_config_files Makefile include/Makefile include/fuse-lite/Makefile include/ntfs-3g/Makefile libfuse-lite/Makefile libntfs-3g/Makefile libntfs-3g/libntfs-3g.pc libntfs-3g/libntfs-3g.script.so ntfsprogs/Makefile ntfsprogs/mkntfs.8 ntfsprogs/ntfscat.8 ntfsprogs/ntfsclone.8 ntfsprogs/ntfscluster.8 ntfsprogs/ntfscmp.8 ntfsprogs/ntfscp.8 ntfsprogs/ntfsfix.8 ntfsprogs/ntfsinfo.8 ntfsprogs/ntfslabel.8 ntfsprogs/ntfsls.8 ntfsprogs/ntfsprogs.8 ntfsprogs/ntfsresize.8 ntfsprogs/ntfsundelete.8 ntfsprogs/ntfsdecrypt.8 ntfsprogs/ntfswipe.8 ntfsprogs/ntfstruncate.8 ntfsprogs/ntfsfallocate.8 ntfsprogs/ntfsrecover.8 src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8 src/ntfs-3g.usermap.8 src/ntfs-3g.secaudit.8"
Steve Kondik2111ad72013-07-07 12:07:44 -070015156
15157cat >confcache <<\_ACEOF
15158# This file is a shell script that caches the results of configure
15159# tests run on this system so they can be shared between configure
15160# scripts and configure runs, see configure's option --config-cache.
15161# It is not useful on other systems. If it contains results you don't
15162# want to keep, you may remove or edit it.
15163#
15164# config.status only pays attention to the cache file if you give it
15165# the --recheck option to rerun configure.
15166#
15167# `ac_cv_env_foo' variables (set or unset) will be overridden when
15168# loading this file, other *unset* `ac_cv_foo' will be assigned the
15169# following values.
15170
15171_ACEOF
15172
15173# The following way of writing the cache mishandles newlines in values,
15174# but we know of no workaround that is simple, portable, and efficient.
15175# So, we kill variables containing newlines.
15176# Ultrix sh set writes to stderr and can't be redirected directly,
15177# and sets the high bit in the cache file unless we assign to the vars.
15178(
15179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15180 eval ac_val=\$$ac_var
15181 case $ac_val in #(
15182 *${as_nl}*)
15183 case $ac_var in #(
Steve Kondik79165c32015-11-09 19:43:00 -080015184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015186 esac
15187 case $ac_var in #(
15188 _ | IFS | as_nl) ;; #(
Steve Kondik79165c32015-11-09 19:43:00 -080015189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15190 *) { eval $ac_var=; unset $ac_var;} ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015191 esac ;;
15192 esac
15193 done
15194
15195 (set) 2>&1 |
15196 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15197 *${as_nl}ac_space=\ *)
Steve Kondik79165c32015-11-09 19:43:00 -080015198 # `set' does not quote correctly, so add quotes: double-quote
15199 # substitution turns \\\\ into \\, and sed turns \\ into \.
Steve Kondik2111ad72013-07-07 12:07:44 -070015200 sed -n \
15201 "s/'/'\\\\''/g;
15202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15203 ;; #(
15204 *)
15205 # `set' quotes correctly as required by POSIX, so do not add quotes.
15206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15207 ;;
15208 esac |
15209 sort
15210) |
15211 sed '
15212 /^ac_cv_env_/b end
15213 t clear
15214 :clear
15215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15216 t end
15217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15218 :end' >>confcache
15219if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15220 if test -w "$cache_file"; then
Steve Kondik79165c32015-11-09 19:43:00 -080015221 if test "x$cache_file" != "x/dev/null"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15223$as_echo "$as_me: updating cache $cache_file" >&6;}
15224 if test ! -f "$cache_file" || test -h "$cache_file"; then
15225 cat confcache >"$cache_file"
15226 else
15227 case $cache_file in #(
15228 */* | ?:*)
15229 mv -f confcache "$cache_file"$$ &&
15230 mv -f "$cache_file"$$ "$cache_file" ;; #(
15231 *)
15232 mv -f confcache "$cache_file" ;;
15233 esac
15234 fi
15235 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070015236 else
Steve Kondik79165c32015-11-09 19:43:00 -080015237 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15238$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -070015239 fi
15240fi
15241rm -f confcache
15242
15243test "x$prefix" = xNONE && prefix=$ac_default_prefix
15244# Let make expand exec_prefix.
15245test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15246
15247DEFS=-DHAVE_CONFIG_H
15248
15249ac_libobjs=
15250ac_ltlibobjs=
Steve Kondik79165c32015-11-09 19:43:00 -080015251U=
Steve Kondik2111ad72013-07-07 12:07:44 -070015252for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15253 # 1. Remove the extension, and $U if already installed.
15254 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Steve Kondik79165c32015-11-09 19:43:00 -080015255 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Steve Kondik2111ad72013-07-07 12:07:44 -070015256 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15257 # will be set to the directory where LIBOBJS objects are built.
Steve Kondik79165c32015-11-09 19:43:00 -080015258 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15259 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Steve Kondik2111ad72013-07-07 12:07:44 -070015260done
15261LIBOBJS=$ac_libobjs
15262
15263LTLIBOBJS=$ac_ltlibobjs
15264
15265
Steve Kondik79165c32015-11-09 19:43:00 -080015266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15267$as_echo_n "checking that generated files are newer than configure... " >&6; }
15268 if test -n "$am_sleep_pid"; then
15269 # Hide warnings about reused PIDs.
15270 wait $am_sleep_pid 2>/dev/null
15271 fi
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15273$as_echo "done" >&6; }
15274 if test -n "$EXEEXT"; then
15275 am__EXEEXT_TRUE=
15276 am__EXEEXT_FALSE='#'
15277else
15278 am__EXEEXT_TRUE='#'
15279 am__EXEEXT_FALSE=
Steve Kondik2111ad72013-07-07 12:07:44 -070015280fi
15281
Steve Kondik79165c32015-11-09 19:43:00 -080015282if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15283 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15284Usually this means the macro was only invoked conditionally." "$LINENO" 5
15285fi
15286if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15287 as_fn_error $? "conditional \"AMDEP\" was never defined.
15288Usually this means the macro was only invoked conditionally." "$LINENO" 5
15289fi
15290if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15291 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15292Usually this means the macro was only invoked conditionally." "$LINENO" 5
15293fi
15294if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15295 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15296Usually this means the macro was only invoked conditionally." "$LINENO" 5
15297fi
15298if test -z "${ENABLE_CRYPTO_TRUE}" && test -z "${ENABLE_CRYPTO_FALSE}"; then
15299 as_fn_error $? "conditional \"ENABLE_CRYPTO\" was never defined.
15300Usually this means the macro was only invoked conditionally." "$LINENO" 5
15301fi
15302
15303if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then
15304 as_fn_error $? "conditional \"FUSE_INTERNAL\" was never defined.
15305Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306fi
15307if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then
15308 as_fn_error $? "conditional \"GENERATE_LDSCRIPT\" was never defined.
15309Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310fi
15311if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
15312 as_fn_error $? "conditional \"WINDOWS\" was never defined.
15313Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314fi
15315if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then
15316 as_fn_error $? "conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined.
15317Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318fi
15319if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then
15320 as_fn_error $? "conditional \"RUN_LDCONFIG\" was never defined.
15321Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322fi
15323if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then
15324 as_fn_error $? "conditional \"REALLYSTATIC\" was never defined.
15325Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326fi
15327if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then
15328 as_fn_error $? "conditional \"INSTALL_LIBRARY\" was never defined.
15329Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330fi
15331if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then
15332 as_fn_error $? "conditional \"ENABLE_MOUNT_HELPER\" was never defined.
15333Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334fi
15335if test -z "${ENABLE_NTFS_3G_TRUE}" && test -z "${ENABLE_NTFS_3G_FALSE}"; then
15336 as_fn_error $? "conditional \"ENABLE_NTFS_3G\" was never defined.
15337Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338fi
15339if test -z "${ENABLE_NTFSPROGS_TRUE}" && test -z "${ENABLE_NTFSPROGS_FALSE}"; then
15340 as_fn_error $? "conditional \"ENABLE_NTFSPROGS\" was never defined.
15341Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342fi
15343if test -z "${ENABLE_EXTRAS_TRUE}" && test -z "${ENABLE_EXTRAS_FALSE}"; then
15344 as_fn_error $? "conditional \"ENABLE_EXTRAS\" was never defined.
15345Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346fi
15347if test -z "${ENABLE_QUARANTINED_TRUE}" && test -z "${ENABLE_QUARANTINED_FALSE}"; then
15348 as_fn_error $? "conditional \"ENABLE_QUARANTINED\" was never defined.
15349Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350fi
15351
15352: "${CONFIG_STATUS=./config.status}"
15353ac_write_fail=0
Steve Kondik2111ad72013-07-07 12:07:44 -070015354ac_clean_files_save=$ac_clean_files
15355ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Steve Kondik79165c32015-11-09 19:43:00 -080015356{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15357$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15358as_write_fail=0
15359cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015360#! $SHELL
15361# Generated by $as_me.
15362# Run this file to recreate the current configuration.
15363# Compiler output produced by configure, useful for debugging
15364# configure, is in config.log if it exists.
15365
15366debug=false
15367ac_cs_recheck=false
15368ac_cs_silent=false
Steve Kondik2111ad72013-07-07 12:07:44 -070015369
Steve Kondik79165c32015-11-09 19:43:00 -080015370SHELL=\${CONFIG_SHELL-$SHELL}
15371export SHELL
15372_ASEOF
15373cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15374## -------------------- ##
15375## M4sh Initialization. ##
15376## -------------------- ##
Steve Kondik2111ad72013-07-07 12:07:44 -070015377
15378# Be more Bourne compatible
15379DUALCASE=1; export DUALCASE # for MKS sh
Steve Kondik79165c32015-11-09 19:43:00 -080015380if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Steve Kondik2111ad72013-07-07 12:07:44 -070015381 emulate sh
15382 NULLCMD=:
Steve Kondik79165c32015-11-09 19:43:00 -080015383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Steve Kondik2111ad72013-07-07 12:07:44 -070015384 # is contrary to our usage. Disable this feature.
15385 alias -g '${1+"$@"}'='"$@"'
15386 setopt NO_GLOB_SUBST
15387else
Steve Kondik79165c32015-11-09 19:43:00 -080015388 case `(set -o) 2>/dev/null` in #(
15389 *posix*) :
15390 set -o posix ;; #(
15391 *) :
15392 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015393esac
Steve Kondik2111ad72013-07-07 12:07:44 -070015394fi
15395
15396
Steve Kondik79165c32015-11-09 19:43:00 -080015397as_nl='
15398'
15399export as_nl
15400# Printing a long string crashes Solaris 7 /usr/bin/printf.
15401as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15402as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15403as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15404# Prefer a ksh shell builtin over an external printf program on Solaris,
15405# but without wasting forks for bash or zsh.
15406if test -z "$BASH_VERSION$ZSH_VERSION" \
15407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15408 as_echo='print -r --'
15409 as_echo_n='print -rn --'
15410elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15411 as_echo='printf %s\n'
15412 as_echo_n='printf %s'
15413else
15414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15416 as_echo_n='/usr/ucb/echo -n'
15417 else
15418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15419 as_echo_n_body='eval
15420 arg=$1;
15421 case $arg in #(
15422 *"$as_nl"*)
15423 expr "X$arg" : "X\\(.*\\)$as_nl";
15424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15425 esac;
15426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15427 '
15428 export as_echo_n_body
15429 as_echo_n='sh -c $as_echo_n_body as_echo'
15430 fi
15431 export as_echo_body
15432 as_echo='sh -c $as_echo_body as_echo'
15433fi
Steve Kondik2111ad72013-07-07 12:07:44 -070015434
15435# The user is always right.
15436if test "${PATH_SEPARATOR+set}" != set; then
Steve Kondik79165c32015-11-09 19:43:00 -080015437 PATH_SEPARATOR=:
15438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15440 PATH_SEPARATOR=';'
15441 }
Steve Kondik2111ad72013-07-07 12:07:44 -070015442fi
15443
15444
15445# IFS
15446# We need space, tab and new line, in precisely that order. Quoting is
15447# there to prevent editors from complaining about space-tab.
15448# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15449# splitting by setting IFS to empty value.)
Steve Kondik2111ad72013-07-07 12:07:44 -070015450IFS=" "" $as_nl"
15451
15452# Find who we are. Look in the path if we contain no directory separator.
Steve Kondik79165c32015-11-09 19:43:00 -080015453as_myself=
15454case $0 in #((
Steve Kondik2111ad72013-07-07 12:07:44 -070015455 *[\\/]* ) as_myself=$0 ;;
15456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457for as_dir in $PATH
15458do
15459 IFS=$as_save_IFS
15460 test -z "$as_dir" && as_dir=.
Steve Kondik79165c32015-11-09 19:43:00 -080015461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15462 done
Steve Kondik2111ad72013-07-07 12:07:44 -070015463IFS=$as_save_IFS
15464
15465 ;;
15466esac
15467# We did not find ourselves, most probably we were run as `sh COMMAND'
15468# in which case we are not to be found in the path.
15469if test "x$as_myself" = x; then
15470 as_myself=$0
15471fi
15472if test ! -f "$as_myself"; then
Steve Kondik79165c32015-11-09 19:43:00 -080015473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15474 exit 1
Steve Kondik2111ad72013-07-07 12:07:44 -070015475fi
15476
Steve Kondik79165c32015-11-09 19:43:00 -080015477# Unset variables that we do not need and which cause bugs (e.g. in
15478# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15479# suppresses any "Segmentation fault" message there. '((' could
15480# trigger a bug in pdksh 5.2.14.
15481for as_var in BASH_ENV ENV MAIL MAILPATH
15482do eval test x\${$as_var+set} = xset \
15483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Steve Kondik2111ad72013-07-07 12:07:44 -070015484done
15485PS1='$ '
15486PS2='> '
15487PS4='+ '
15488
15489# NLS nuisances.
Steve Kondik79165c32015-11-09 19:43:00 -080015490LC_ALL=C
15491export LC_ALL
15492LANGUAGE=C
15493export LANGUAGE
Steve Kondik2111ad72013-07-07 12:07:44 -070015494
Steve Kondik79165c32015-11-09 19:43:00 -080015495# CDPATH.
15496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15497
15498
15499# as_fn_error STATUS ERROR [LINENO LOG_FD]
15500# ----------------------------------------
15501# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15502# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15503# script with STATUS, using 1 if that was 0.
15504as_fn_error ()
15505{
15506 as_status=$1; test $as_status -eq 0 && as_status=1
15507 if test "$4"; then
15508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15510 fi
15511 $as_echo "$as_me: error: $2" >&2
15512 as_fn_exit $as_status
15513} # as_fn_error
15514
15515
15516# as_fn_set_status STATUS
15517# -----------------------
15518# Set $? to STATUS, without forking.
15519as_fn_set_status ()
15520{
15521 return $1
15522} # as_fn_set_status
15523
15524# as_fn_exit STATUS
15525# -----------------
15526# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15527as_fn_exit ()
15528{
15529 set +e
15530 as_fn_set_status $1
15531 exit $1
15532} # as_fn_exit
15533
15534# as_fn_unset VAR
15535# ---------------
15536# Portably unset VAR.
15537as_fn_unset ()
15538{
15539 { eval $1=; unset $1;}
15540}
15541as_unset=as_fn_unset
15542# as_fn_append VAR VALUE
15543# ----------------------
15544# Append the text in VALUE to the end of the definition contained in VAR. Take
15545# advantage of any shell optimizations that allow amortized linear growth over
15546# repeated appends, instead of the typical quadratic growth present in naive
15547# implementations.
15548if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15549 eval 'as_fn_append ()
15550 {
15551 eval $1+=\$2
15552 }'
15553else
15554 as_fn_append ()
15555 {
15556 eval $1=\$$1\$2
15557 }
15558fi # as_fn_append
15559
15560# as_fn_arith ARG...
15561# ------------------
15562# Perform arithmetic evaluation on the ARGs, and store the result in the
15563# global $as_val. Take advantage of shells that can avoid forks. The arguments
15564# must be portable across $(()) and expr.
15565if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15566 eval 'as_fn_arith ()
15567 {
15568 as_val=$(( $* ))
15569 }'
15570else
15571 as_fn_arith ()
15572 {
15573 as_val=`expr "$@" || test $? -eq 1`
15574 }
15575fi # as_fn_arith
15576
15577
Steve Kondik2111ad72013-07-07 12:07:44 -070015578if expr a : '\(a\)' >/dev/null 2>&1 &&
15579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15580 as_expr=expr
15581else
15582 as_expr=false
15583fi
15584
15585if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15586 as_basename=basename
15587else
15588 as_basename=false
15589fi
15590
Steve Kondik79165c32015-11-09 19:43:00 -080015591if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15592 as_dirname=dirname
15593else
15594 as_dirname=false
15595fi
Steve Kondik2111ad72013-07-07 12:07:44 -070015596
Steve Kondik2111ad72013-07-07 12:07:44 -070015597as_me=`$as_basename -- "$0" ||
15598$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15599 X"$0" : 'X\(//\)$' \| \
15600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -080015601$as_echo X/"$0" |
Steve Kondik2111ad72013-07-07 12:07:44 -070015602 sed '/^.*\/\([^/][^/]*\)\/*$/{
15603 s//\1/
15604 q
15605 }
15606 /^X\/\(\/\/\)$/{
15607 s//\1/
15608 q
15609 }
15610 /^X\/\(\/\).*/{
15611 s//\1/
15612 q
15613 }
15614 s/.*/./; q'`
15615
Steve Kondik79165c32015-11-09 19:43:00 -080015616# Avoid depending upon Character Ranges.
15617as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15619as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15620as_cr_digits='0123456789'
15621as_cr_alnum=$as_cr_Letters$as_cr_digits
Steve Kondik2111ad72013-07-07 12:07:44 -070015622
15623ECHO_C= ECHO_N= ECHO_T=
Steve Kondik79165c32015-11-09 19:43:00 -080015624case `echo -n x` in #(((((
Steve Kondik2111ad72013-07-07 12:07:44 -070015625-n*)
Steve Kondik79165c32015-11-09 19:43:00 -080015626 case `echo 'xy\c'` in
Steve Kondik2111ad72013-07-07 12:07:44 -070015627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Steve Kondik79165c32015-11-09 19:43:00 -080015628 xy) ECHO_C='\c';;
15629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15630 ECHO_T=' ';;
Steve Kondik2111ad72013-07-07 12:07:44 -070015631 esac;;
15632*)
15633 ECHO_N='-n';;
15634esac
15635
Steve Kondik2111ad72013-07-07 12:07:44 -070015636rm -f conf$$ conf$$.exe conf$$.file
15637if test -d conf$$.dir; then
15638 rm -f conf$$.dir/conf$$.file
15639else
15640 rm -f conf$$.dir
Steve Kondik79165c32015-11-09 19:43:00 -080015641 mkdir conf$$.dir 2>/dev/null
Steve Kondik2111ad72013-07-07 12:07:44 -070015642fi
Steve Kondik79165c32015-11-09 19:43:00 -080015643if (echo >conf$$.file) 2>/dev/null; then
15644 if ln -s conf$$.file conf$$ 2>/dev/null; then
15645 as_ln_s='ln -s'
15646 # ... but there are two gotchas:
15647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15649 # In both cases, we have to default to `cp -pR'.
15650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15651 as_ln_s='cp -pR'
15652 elif ln conf$$.file conf$$ 2>/dev/null; then
15653 as_ln_s=ln
15654 else
15655 as_ln_s='cp -pR'
15656 fi
Steve Kondik2111ad72013-07-07 12:07:44 -070015657else
Steve Kondik79165c32015-11-09 19:43:00 -080015658 as_ln_s='cp -pR'
Steve Kondik2111ad72013-07-07 12:07:44 -070015659fi
15660rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15661rmdir conf$$.dir 2>/dev/null
15662
Steve Kondik79165c32015-11-09 19:43:00 -080015663
15664# as_fn_mkdir_p
15665# -------------
15666# Create "$as_dir" as a directory, including parents if necessary.
15667as_fn_mkdir_p ()
15668{
15669
15670 case $as_dir in #(
15671 -*) as_dir=./$as_dir;;
15672 esac
15673 test -d "$as_dir" || eval $as_mkdir_p || {
15674 as_dirs=
15675 while :; do
15676 case $as_dir in #(
15677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15678 *) as_qdir=$as_dir;;
15679 esac
15680 as_dirs="'$as_qdir' $as_dirs"
15681 as_dir=`$as_dirname -- "$as_dir" ||
15682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683 X"$as_dir" : 'X\(//\)[^/]' \| \
15684 X"$as_dir" : 'X\(//\)$' \| \
15685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15686$as_echo X"$as_dir" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15688 s//\1/
15689 q
15690 }
15691 /^X\(\/\/\)[^/].*/{
15692 s//\1/
15693 q
15694 }
15695 /^X\(\/\/\)$/{
15696 s//\1/
15697 q
15698 }
15699 /^X\(\/\).*/{
15700 s//\1/
15701 q
15702 }
15703 s/.*/./; q'`
15704 test -d "$as_dir" && break
15705 done
15706 test -z "$as_dirs" || eval "mkdir $as_dirs"
15707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15708
15709
15710} # as_fn_mkdir_p
Steve Kondik2111ad72013-07-07 12:07:44 -070015711if mkdir -p . 2>/dev/null; then
Steve Kondik79165c32015-11-09 19:43:00 -080015712 as_mkdir_p='mkdir -p "$as_dir"'
Steve Kondik2111ad72013-07-07 12:07:44 -070015713else
15714 test -d ./-p && rmdir ./-p
15715 as_mkdir_p=false
15716fi
15717
Steve Kondik79165c32015-11-09 19:43:00 -080015718
15719# as_fn_executable_p FILE
15720# -----------------------
15721# Test if FILE is an executable regular file.
15722as_fn_executable_p ()
15723{
15724 test -f "$1" && test -x "$1"
15725} # as_fn_executable_p
15726as_test_x='test -x'
15727as_executable_p=as_fn_executable_p
Steve Kondik2111ad72013-07-07 12:07:44 -070015728
15729# Sed expression to map a string onto a valid CPP name.
15730as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15731
15732# Sed expression to map a string onto a valid variable name.
15733as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15734
15735
15736exec 6>&1
Steve Kondik79165c32015-11-09 19:43:00 -080015737## ----------------------------------- ##
15738## Main body of $CONFIG_STATUS script. ##
15739## ----------------------------------- ##
15740_ASEOF
15741test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015742
Steve Kondik79165c32015-11-09 19:43:00 -080015743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744# Save the log message, to keep $0 and so on meaningful, and to
Steve Kondik2111ad72013-07-07 12:07:44 -070015745# report actual input values of CONFIG_FILES etc. instead of their
15746# values after options handling.
15747ac_log="
Steve Kondike68cb602016-08-28 00:45:36 -070015748This file was extended by ntfs-3g $as_me 2016.2.22, which was
Steve Kondik79165c32015-11-09 19:43:00 -080015749generated by GNU Autoconf 2.69. Invocation command line was
Steve Kondik2111ad72013-07-07 12:07:44 -070015750
15751 CONFIG_FILES = $CONFIG_FILES
15752 CONFIG_HEADERS = $CONFIG_HEADERS
15753 CONFIG_LINKS = $CONFIG_LINKS
15754 CONFIG_COMMANDS = $CONFIG_COMMANDS
15755 $ $0 $@
15756
15757on `(hostname || uname -n) 2>/dev/null | sed 1q`
15758"
15759
15760_ACEOF
15761
Steve Kondik79165c32015-11-09 19:43:00 -080015762case $ac_config_files in *"
15763"*) set x $ac_config_files; shift; ac_config_files=$*;;
15764esac
15765
15766case $ac_config_headers in *"
15767"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15768esac
15769
15770
15771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015772# Files that config.status was made for.
15773config_files="$ac_config_files"
15774config_headers="$ac_config_headers"
15775config_commands="$ac_config_commands"
15776
15777_ACEOF
15778
Steve Kondik79165c32015-11-09 19:43:00 -080015779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015780ac_cs_usage="\
Steve Kondik79165c32015-11-09 19:43:00 -080015781\`$as_me' instantiates files and other configuration actions
15782from templates according to the current configuration. Unless the files
15783and actions are specified as TAGs, all are instantiated by default.
Steve Kondik2111ad72013-07-07 12:07:44 -070015784
Steve Kondik79165c32015-11-09 19:43:00 -080015785Usage: $0 [OPTION]... [TAG]...
Steve Kondik2111ad72013-07-07 12:07:44 -070015786
15787 -h, --help print this help, then exit
15788 -V, --version print version number and configuration settings, then exit
Steve Kondik79165c32015-11-09 19:43:00 -080015789 --config print configuration, then exit
15790 -q, --quiet, --silent
15791 do not print progress messages
Steve Kondik2111ad72013-07-07 12:07:44 -070015792 -d, --debug don't remove temporary files
15793 --recheck update $as_me by reconfiguring in the same conditions
Steve Kondik79165c32015-11-09 19:43:00 -080015794 --file=FILE[:TEMPLATE]
15795 instantiate the configuration file FILE
15796 --header=FILE[:TEMPLATE]
15797 instantiate the configuration header FILE
Steve Kondik2111ad72013-07-07 12:07:44 -070015798
15799Configuration files:
15800$config_files
15801
15802Configuration headers:
15803$config_headers
15804
15805Configuration commands:
15806$config_commands
15807
Steve Kondik79165c32015-11-09 19:43:00 -080015808Report bugs to <ntfs-3g-devel@lists.sf.net>."
Steve Kondik2111ad72013-07-07 12:07:44 -070015809
15810_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080015811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15812ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Steve Kondik2111ad72013-07-07 12:07:44 -070015813ac_cs_version="\\
Steve Kondike68cb602016-08-28 00:45:36 -070015814ntfs-3g config.status 2016.2.22
Steve Kondik79165c32015-11-09 19:43:00 -080015815configured by $0, generated by GNU Autoconf 2.69,
15816 with options \\"\$ac_cs_config\\"
Steve Kondik2111ad72013-07-07 12:07:44 -070015817
Steve Kondik79165c32015-11-09 19:43:00 -080015818Copyright (C) 2012 Free Software Foundation, Inc.
Steve Kondik2111ad72013-07-07 12:07:44 -070015819This config.status script is free software; the Free Software Foundation
15820gives unlimited permission to copy, distribute and modify it."
15821
15822ac_pwd='$ac_pwd'
15823srcdir='$srcdir'
15824INSTALL='$INSTALL'
15825MKDIR_P='$MKDIR_P'
Steve Kondik79165c32015-11-09 19:43:00 -080015826AWK='$AWK'
15827test -n "\$AWK" || AWK=awk
Steve Kondik2111ad72013-07-07 12:07:44 -070015828_ACEOF
15829
Steve Kondik79165c32015-11-09 19:43:00 -080015830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15831# The default lists apply if the user does not specify any file.
Steve Kondik2111ad72013-07-07 12:07:44 -070015832ac_need_defaults=:
15833while test $# != 0
15834do
15835 case $1 in
Steve Kondik79165c32015-11-09 19:43:00 -080015836 --*=?*)
Steve Kondik2111ad72013-07-07 12:07:44 -070015837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15839 ac_shift=:
15840 ;;
Steve Kondik79165c32015-11-09 19:43:00 -080015841 --*=)
15842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843 ac_optarg=
15844 ac_shift=:
15845 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015846 *)
15847 ac_option=$1
15848 ac_optarg=$2
15849 ac_shift=shift
15850 ;;
15851 esac
15852
15853 case $ac_option in
15854 # Handling of the options.
15855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15856 ac_cs_recheck=: ;;
15857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Steve Kondik79165c32015-11-09 19:43:00 -080015858 $as_echo "$ac_cs_version"; exit ;;
15859 --config | --confi | --conf | --con | --co | --c )
15860 $as_echo "$ac_cs_config"; exit ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015861 --debug | --debu | --deb | --de | --d | -d )
15862 debug=: ;;
15863 --file | --fil | --fi | --f )
15864 $ac_shift
Steve Kondik79165c32015-11-09 19:43:00 -080015865 case $ac_optarg in
15866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15867 '') as_fn_error $? "missing file argument" ;;
15868 esac
15869 as_fn_append CONFIG_FILES " '$ac_optarg'"
Steve Kondik2111ad72013-07-07 12:07:44 -070015870 ac_need_defaults=false;;
15871 --header | --heade | --head | --hea )
15872 $ac_shift
Steve Kondik79165c32015-11-09 19:43:00 -080015873 case $ac_optarg in
15874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15875 esac
15876 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Steve Kondik2111ad72013-07-07 12:07:44 -070015877 ac_need_defaults=false;;
15878 --he | --h)
15879 # Conflict between --help and --header
Steve Kondik79165c32015-11-09 19:43:00 -080015880 as_fn_error $? "ambiguous option: \`$1'
15881Try \`$0 --help' for more information.";;
Steve Kondik2111ad72013-07-07 12:07:44 -070015882 --help | --hel | -h )
Steve Kondik79165c32015-11-09 19:43:00 -080015883 $as_echo "$ac_cs_usage"; exit ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15886 ac_cs_silent=: ;;
15887
15888 # This is an error.
Steve Kondik79165c32015-11-09 19:43:00 -080015889 -*) as_fn_error $? "unrecognized option: \`$1'
15890Try \`$0 --help' for more information." ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070015891
Steve Kondik79165c32015-11-09 19:43:00 -080015892 *) as_fn_append ac_config_targets " $1"
Steve Kondik2111ad72013-07-07 12:07:44 -070015893 ac_need_defaults=false ;;
15894
15895 esac
15896 shift
15897done
15898
15899ac_configure_extra_args=
15900
15901if $ac_cs_silent; then
15902 exec 6>/dev/null
15903 ac_configure_extra_args="$ac_configure_extra_args --silent"
15904fi
15905
15906_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080015907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015908if \$ac_cs_recheck; then
Steve Kondik79165c32015-11-09 19:43:00 -080015909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15910 shift
15911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15912 CONFIG_SHELL='$SHELL'
Steve Kondik2111ad72013-07-07 12:07:44 -070015913 export CONFIG_SHELL
Steve Kondik79165c32015-11-09 19:43:00 -080015914 exec "\$@"
Steve Kondik2111ad72013-07-07 12:07:44 -070015915fi
15916
15917_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080015918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015919exec 5>>config.log
15920{
15921 echo
15922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15923## Running $as_me. ##
15924_ASBOX
Steve Kondik79165c32015-11-09 19:43:00 -080015925 $as_echo "$ac_log"
Steve Kondik2111ad72013-07-07 12:07:44 -070015926} >&5
15927
15928_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080015929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070015930#
15931# INIT-COMMANDS
15932#
15933AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15934
Steve Kondik79165c32015-11-09 19:43:00 -080015935
15936# The HP-UX ksh and POSIX shell print the target directory to stdout
15937# if CDPATH is set.
15938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15939
15940sed_quote_subst='$sed_quote_subst'
15941double_quote_subst='$double_quote_subst'
15942delay_variable_subst='$delay_variable_subst'
15943macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15944macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15945enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15946enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15947pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15948enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15949SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15950ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15951PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15952host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15953host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15954host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15955build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15956build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15957build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15958SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15959Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15960GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15961EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15962FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15963LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15964NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15965LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15966max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15967ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15968exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15969lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15970lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15971lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15972lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15973lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15974reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15975reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15976OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15977deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15978file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15979file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15980want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15981DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15982sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15983AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15984AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15985archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15986STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15987RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15988old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15989old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15990old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15991lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15992CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15993CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15994compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15995GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15996lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15997lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15998lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15999lt_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"`'
16000nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16001lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16002objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16003MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16004lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16005lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16006lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16007lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16008lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16009need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16010MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16011DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16012NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16013LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16014OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16015OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16016libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16017shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16018extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16019archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16020enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16021export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16022whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16023compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16024old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16025old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16026archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16027archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16028module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16029module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16030with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16031allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16032no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16033hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16034hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16035hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16036hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16037hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16038hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16039hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16040inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16041link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16042always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16043export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16044exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16045include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16046prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16047postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16048file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16049variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16050need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16051need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16052version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16053runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16054shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16055shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16056libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16057library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16058soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16059install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16060postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16061postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16062finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16063finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16064hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16065sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16066sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16067hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16068enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16069enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16070enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16071old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16072striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16073
16074LTCC='$LTCC'
16075LTCFLAGS='$LTCFLAGS'
16076compiler='$compiler_DEFAULT'
16077
16078# A function that is used when there is no print builtin or printf.
16079func_fallback_echo ()
16080{
16081 eval 'cat <<_LTECHO_EOF
16082\$1
16083_LTECHO_EOF'
16084}
16085
16086# Quote evaled strings.
16087for var in SHELL \
16088ECHO \
16089PATH_SEPARATOR \
16090SED \
16091GREP \
16092EGREP \
16093FGREP \
16094LD \
16095NM \
16096LN_S \
16097lt_SP2NL \
16098lt_NL2SP \
16099reload_flag \
16100OBJDUMP \
16101deplibs_check_method \
16102file_magic_cmd \
16103file_magic_glob \
16104want_nocaseglob \
16105DLLTOOL \
16106sharedlib_from_linklib_cmd \
16107AR \
16108AR_FLAGS \
16109archiver_list_spec \
16110STRIP \
16111RANLIB \
16112CC \
16113CFLAGS \
16114compiler \
16115lt_cv_sys_global_symbol_pipe \
16116lt_cv_sys_global_symbol_to_cdecl \
16117lt_cv_sys_global_symbol_to_c_name_address \
16118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16119nm_file_list_spec \
16120lt_prog_compiler_no_builtin_flag \
16121lt_prog_compiler_pic \
16122lt_prog_compiler_wl \
16123lt_prog_compiler_static \
16124lt_cv_prog_compiler_c_o \
16125need_locks \
16126MANIFEST_TOOL \
16127DSYMUTIL \
16128NMEDIT \
16129LIPO \
16130OTOOL \
16131OTOOL64 \
16132shrext_cmds \
16133export_dynamic_flag_spec \
16134whole_archive_flag_spec \
16135compiler_needs_object \
16136with_gnu_ld \
16137allow_undefined_flag \
16138no_undefined_flag \
16139hardcode_libdir_flag_spec \
16140hardcode_libdir_separator \
16141exclude_expsyms \
16142include_expsyms \
16143file_list_spec \
16144variables_saved_for_relink \
16145libname_spec \
16146library_names_spec \
16147soname_spec \
16148install_override_mode \
16149finish_eval \
16150old_striplib \
16151striplib; do
16152 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16153 *[\\\\\\\`\\"\\\$]*)
16154 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16155 ;;
16156 *)
16157 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16158 ;;
16159 esac
16160done
16161
16162# Double-quote double-evaled strings.
16163for var in reload_cmds \
16164old_postinstall_cmds \
16165old_postuninstall_cmds \
16166old_archive_cmds \
16167extract_expsyms_cmds \
16168old_archive_from_new_cmds \
16169old_archive_from_expsyms_cmds \
16170archive_cmds \
16171archive_expsym_cmds \
16172module_cmds \
16173module_expsym_cmds \
16174export_symbols_cmds \
16175prelink_cmds \
16176postlink_cmds \
16177postinstall_cmds \
16178postuninstall_cmds \
16179finish_cmds \
16180sys_lib_search_path_spec \
16181sys_lib_dlsearch_path_spec; do
16182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16183 *[\\\\\\\`\\"\\\$]*)
16184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16185 ;;
16186 *)
16187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16188 ;;
16189 esac
16190done
16191
16192ac_aux_dir='$ac_aux_dir'
16193xsi_shell='$xsi_shell'
16194lt_shell_append='$lt_shell_append'
16195
16196# See if we are running on zsh, and set the options which allow our
16197# commands through without removal of \ escapes INIT.
16198if test -n "\${ZSH_VERSION+set}" ; then
16199 setopt NO_GLOB_SUBST
16200fi
16201
16202
16203 PACKAGE='$PACKAGE'
16204 VERSION='$VERSION'
16205 TIMESTAMP='$TIMESTAMP'
16206 RM='$RM'
16207 ofile='$ofile'
16208
16209
16210
16211
Steve Kondik2111ad72013-07-07 12:07:44 -070016212_ACEOF
16213
Steve Kondik79165c32015-11-09 19:43:00 -080016214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070016215
16216# Handling of arguments.
16217for ac_config_target in $ac_config_targets
16218do
16219 case $ac_config_target in
16220 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Steve Kondik79165c32015-11-09 19:43:00 -080016222 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16224 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16225 "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;;
16226 "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;;
16227 "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;;
16228 "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;;
16229 "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;;
16230 "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;;
16231 "ntfsprogs/Makefile") CONFIG_FILES="$CONFIG_FILES ntfsprogs/Makefile" ;;
16232 "ntfsprogs/mkntfs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/mkntfs.8" ;;
16233 "ntfsprogs/ntfscat.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscat.8" ;;
16234 "ntfsprogs/ntfsclone.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsclone.8" ;;
16235 "ntfsprogs/ntfscluster.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscluster.8" ;;
16236 "ntfsprogs/ntfscmp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscmp.8" ;;
16237 "ntfsprogs/ntfscp.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfscp.8" ;;
16238 "ntfsprogs/ntfsfix.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfix.8" ;;
16239 "ntfsprogs/ntfsinfo.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsinfo.8" ;;
16240 "ntfsprogs/ntfslabel.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfslabel.8" ;;
16241 "ntfsprogs/ntfsls.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsls.8" ;;
16242 "ntfsprogs/ntfsprogs.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsprogs.8" ;;
16243 "ntfsprogs/ntfsresize.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsresize.8" ;;
16244 "ntfsprogs/ntfsundelete.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsundelete.8" ;;
Steve Kondik79165c32015-11-09 19:43:00 -080016245 "ntfsprogs/ntfsdecrypt.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsdecrypt.8" ;;
16246 "ntfsprogs/ntfswipe.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfswipe.8" ;;
16247 "ntfsprogs/ntfstruncate.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfstruncate.8" ;;
16248 "ntfsprogs/ntfsfallocate.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsfallocate.8" ;;
Steve Kondike68cb602016-08-28 00:45:36 -070016249 "ntfsprogs/ntfsrecover.8") CONFIG_FILES="$CONFIG_FILES ntfsprogs/ntfsrecover.8" ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016250 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16251 "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;;
16252 "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;;
16253 "src/ntfs-3g.usermap.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.usermap.8" ;;
16254 "src/ntfs-3g.secaudit.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.secaudit.8" ;;
16255
Steve Kondik79165c32015-11-09 19:43:00 -080016256 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016257 esac
16258done
16259
16260
16261# If the user did not use the arguments to specify the items to instantiate,
16262# then the envvar interface is used. Set only those that are not.
16263# We use the long form for the default assignment because of an extremely
16264# bizarre bug on SunOS 4.1.3.
16265if $ac_need_defaults; then
16266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16269fi
16270
16271# Have a temporary directory for convenience. Make it in the build tree
16272# simply because there is no reason against having it here, and in addition,
16273# creating and moving files from /tmp can sometimes cause problems.
16274# Hook for its removal unless debugging.
16275# Note that there is a small window in which the directory will not be cleaned:
16276# after its creation but before its name has been assigned to `$tmp'.
16277$debug ||
16278{
Steve Kondik79165c32015-11-09 19:43:00 -080016279 tmp= ac_tmp=
Steve Kondik2111ad72013-07-07 12:07:44 -070016280 trap 'exit_status=$?
Steve Kondik79165c32015-11-09 19:43:00 -080016281 : "${ac_tmp:=$tmp}"
16282 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Steve Kondik2111ad72013-07-07 12:07:44 -070016283' 0
Steve Kondik79165c32015-11-09 19:43:00 -080016284 trap 'as_fn_exit 1' 1 2 13 15
Steve Kondik2111ad72013-07-07 12:07:44 -070016285}
16286# Create a (secure) tmp directory for tmp files.
16287
16288{
16289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Steve Kondik79165c32015-11-09 19:43:00 -080016290 test -d "$tmp"
Steve Kondik2111ad72013-07-07 12:07:44 -070016291} ||
16292{
16293 tmp=./conf$$-$RANDOM
16294 (umask 077 && mkdir "$tmp")
Steve Kondik79165c32015-11-09 19:43:00 -080016295} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16296ac_tmp=$tmp
Steve Kondik2111ad72013-07-07 12:07:44 -070016297
Steve Kondik79165c32015-11-09 19:43:00 -080016298# Set up the scripts for CONFIG_FILES section.
16299# No need to generate them if there are no CONFIG_FILES.
16300# This happens for instance with `./config.status config.h'.
Steve Kondik2111ad72013-07-07 12:07:44 -070016301if test -n "$CONFIG_FILES"; then
16302
Steve Kondik79165c32015-11-09 19:43:00 -080016303
16304ac_cr=`echo X | tr X '\015'`
16305# On cygwin, bash can eat \r inside `` if the user requested igncr.
16306# But we know of no other shell where ac_cr would be empty at this
16307# point, so we can use a bashism as a fallback.
16308if test "x$ac_cr" = x; then
16309 eval ac_cr=\$\'\\r\'
16310fi
16311ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16312if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16313 ac_cs_awk_cr='\\r'
16314else
16315 ac_cs_awk_cr=$ac_cr
16316fi
16317
16318echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Steve Kondik2111ad72013-07-07 12:07:44 -070016319_ACEOF
16320
16321
Steve Kondik79165c32015-11-09 19:43:00 -080016322{
16323 echo "cat >conf$$subs.awk <<_ACEOF" &&
16324 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16325 echo "_ACEOF"
16326} >conf$$subs.sh ||
16327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16328ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Steve Kondik2111ad72013-07-07 12:07:44 -070016329ac_delim='%!_!# '
16330for ac_last_try in false false false false false :; do
Steve Kondik79165c32015-11-09 19:43:00 -080016331 . ./conf$$subs.sh ||
16332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016333
Steve Kondik79165c32015-11-09 19:43:00 -080016334 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16335 if test $ac_delim_n = $ac_delim_num; then
Steve Kondik2111ad72013-07-07 12:07:44 -070016336 break
16337 elif $ac_last_try; then
Steve Kondik79165c32015-11-09 19:43:00 -080016338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016339 else
16340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16341 fi
16342done
Steve Kondik79165c32015-11-09 19:43:00 -080016343rm -f conf$$subs.sh
Steve Kondik2111ad72013-07-07 12:07:44 -070016344
Steve Kondik79165c32015-11-09 19:43:00 -080016345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16346cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Steve Kondik2111ad72013-07-07 12:07:44 -070016347_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080016348sed -n '
16349h
16350s/^/S["/; s/!.*/"]=/
16351p
16352g
16353s/^[^!]*!//
16354:repl
16355t repl
16356s/'"$ac_delim"'$//
16357t delim
16358:nl
16359h
16360s/\(.\{148\}\)..*/\1/
16361t more1
16362s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16363p
16364n
16365b repl
16366:more1
16367s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16368p
16369g
16370s/.\{148\}//
16371t nl
16372:delim
16373h
16374s/\(.\{148\}\)..*/\1/
16375t more2
16376s/["\\]/\\&/g; s/^/"/; s/$/"/
16377p
16378b
16379:more2
16380s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16381p
16382g
16383s/.\{148\}//
16384t delim
16385' <conf$$subs.awk | sed '
16386/^[^""]/{
16387 N
16388 s/\n//
16389}
16390' >>$CONFIG_STATUS || ac_write_fail=1
16391rm -f conf$$subs.awk
16392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16393_ACAWK
16394cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16395 for (key in S) S_is_set[key] = 1
16396 FS = ""
16397
16398}
16399{
16400 line = $ 0
16401 nfields = split(line, field, "@")
16402 substed = 0
16403 len = length(field[1])
16404 for (i = 2; i < nfields; i++) {
16405 key = field[i]
16406 keylen = length(key)
16407 if (S_is_set[key]) {
16408 value = S[key]
16409 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16410 len += length(value) + length(field[++i])
16411 substed = 1
16412 } else
16413 len += 1 + keylen
16414 }
16415
16416 print line
16417}
16418
16419_ACAWK
16420_ACEOF
16421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16423 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16424else
16425 cat
16426fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16427 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016428_ACEOF
16429
Steve Kondik79165c32015-11-09 19:43:00 -080016430# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16431# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Steve Kondik2111ad72013-07-07 12:07:44 -070016432# trailing colons and then remove the whole line if VPATH becomes empty
16433# (actually we leave an empty line to preserve line numbers).
16434if test "x$srcdir" = x.; then
Steve Kondik79165c32015-11-09 19:43:00 -080016435 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16436h
16437s///
16438s/^/:/
16439s/[ ]*$/:/
16440s/:\$(srcdir):/:/g
16441s/:\${srcdir}:/:/g
16442s/:@srcdir@:/:/g
16443s/^:*//
Steve Kondik2111ad72013-07-07 12:07:44 -070016444s/:*$//
Steve Kondik79165c32015-11-09 19:43:00 -080016445x
16446s/\(=[ ]*\).*/\1/
16447G
16448s/\n//
Steve Kondik2111ad72013-07-07 12:07:44 -070016449s/^[^=]*=[ ]*$//
16450}'
16451fi
16452
Steve Kondik79165c32015-11-09 19:43:00 -080016453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070016454fi # test -n "$CONFIG_FILES"
16455
Steve Kondik79165c32015-11-09 19:43:00 -080016456# Set up the scripts for CONFIG_HEADERS section.
16457# No need to generate them if there are no CONFIG_HEADERS.
16458# This happens for instance with `./config.status Makefile'.
16459if test -n "$CONFIG_HEADERS"; then
16460cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16461BEGIN {
16462_ACEOF
Steve Kondik2111ad72013-07-07 12:07:44 -070016463
Steve Kondik79165c32015-11-09 19:43:00 -080016464# Transform confdefs.h into an awk script `defines.awk', embedded as
16465# here-document in config.status, that substitutes the proper values into
16466# config.h.in to produce config.h.
16467
16468# Create a delimiter string that does not exist in confdefs.h, to ease
16469# handling of long lines.
16470ac_delim='%!_!# '
16471for ac_last_try in false false :; do
16472 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16473 if test -z "$ac_tt"; then
16474 break
16475 elif $ac_last_try; then
16476 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16477 else
16478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16479 fi
16480done
16481
16482# For the awk script, D is an array of macro values keyed by name,
16483# likewise P contains macro parameters if any. Preserve backslash
16484# newline sequences.
16485
16486ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16487sed -n '
16488s/.\{148\}/&'"$ac_delim"'/g
16489t rset
16490:rset
16491s/^[ ]*#[ ]*define[ ][ ]*/ /
16492t def
16493d
16494:def
16495s/\\$//
16496t bsnl
16497s/["\\]/\\&/g
16498s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16499D["\1"]=" \3"/p
16500s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16501d
16502:bsnl
16503s/["\\]/\\&/g
16504s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16505D["\1"]=" \3\\\\\\n"\\/p
16506t cont
16507s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16508t cont
16509d
16510:cont
16511n
16512s/.\{148\}/&'"$ac_delim"'/g
16513t clear
16514:clear
16515s/\\$//
16516t bsnlc
16517s/["\\]/\\&/g; s/^/"/; s/$/"/p
16518d
16519:bsnlc
16520s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16521b cont
16522' <confdefs.h | sed '
16523s/'"$ac_delim"'/"\\\
16524"/g' >>$CONFIG_STATUS || ac_write_fail=1
16525
16526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 for (key in D) D_is_set[key] = 1
16528 FS = ""
16529}
16530/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16531 line = \$ 0
16532 split(line, arg, " ")
16533 if (arg[1] == "#") {
16534 defundef = arg[2]
16535 mac1 = arg[3]
16536 } else {
16537 defundef = substr(arg[1], 2)
16538 mac1 = arg[2]
16539 }
16540 split(mac1, mac2, "(") #)
16541 macro = mac2[1]
16542 prefix = substr(line, 1, index(line, defundef) - 1)
16543 if (D_is_set[macro]) {
16544 # Preserve the white space surrounding the "#".
16545 print prefix "define", macro P[macro] D[macro]
16546 next
16547 } else {
16548 # Replace #undef with comments. This is necessary, for example,
16549 # in the case of _POSIX_SOURCE, which is predefined and required
16550 # on some systems where configure will not decide to define it.
16551 if (defundef == "undef") {
16552 print "/*", prefix defundef, macro, "*/"
16553 next
16554 }
16555 }
16556}
16557{ print }
16558_ACAWK
16559_ACEOF
16560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16562fi # test -n "$CONFIG_HEADERS"
16563
16564
16565eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16566shift
16567for ac_tag
Steve Kondik2111ad72013-07-07 12:07:44 -070016568do
16569 case $ac_tag in
16570 :[FHLC]) ac_mode=$ac_tag; continue;;
16571 esac
16572 case $ac_mode$ac_tag in
16573 :[FHL]*:*);;
Steve Kondik79165c32015-11-09 19:43:00 -080016574 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016575 :[FH]-) ac_tag=-:-;;
16576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16577 esac
16578 ac_save_IFS=$IFS
16579 IFS=:
16580 set x $ac_tag
16581 IFS=$ac_save_IFS
16582 shift
16583 ac_file=$1
16584 shift
16585
16586 case $ac_mode in
16587 :L) ac_source=$1;;
16588 :[FH])
16589 ac_file_inputs=
16590 for ac_f
16591 do
16592 case $ac_f in
Steve Kondik79165c32015-11-09 19:43:00 -080016593 -) ac_f="$ac_tmp/stdin";;
Steve Kondik2111ad72013-07-07 12:07:44 -070016594 *) # Look for the file first in the build tree, then in the source tree
16595 # (if the path is not absolute). The absolute path cannot be DOS-style,
16596 # because $ac_f cannot contain `:'.
16597 test -f "$ac_f" ||
16598 case $ac_f in
16599 [\\/$]*) false;;
16600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16601 esac ||
Steve Kondik79165c32015-11-09 19:43:00 -080016602 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016603 esac
Steve Kondik79165c32015-11-09 19:43:00 -080016604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16605 as_fn_append ac_file_inputs " '$ac_f'"
Steve Kondik2111ad72013-07-07 12:07:44 -070016606 done
16607
16608 # Let's still pretend it is `configure' which instantiates (i.e., don't
16609 # use $as_me), people would be surprised to read:
16610 # /* config.h. Generated by config.status. */
Steve Kondik79165c32015-11-09 19:43:00 -080016611 configure_input='Generated from '`
16612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16613 `' by configure.'
Steve Kondik2111ad72013-07-07 12:07:44 -070016614 if test x"$ac_file" != x-; then
16615 configure_input="$ac_file. $configure_input"
Steve Kondik79165c32015-11-09 19:43:00 -080016616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16617$as_echo "$as_me: creating $ac_file" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -070016618 fi
Steve Kondik79165c32015-11-09 19:43:00 -080016619 # Neutralize special characters interpreted by sed in replacement strings.
16620 case $configure_input in #(
16621 *\&* | *\|* | *\\* )
16622 ac_sed_conf_input=`$as_echo "$configure_input" |
16623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16624 *) ac_sed_conf_input=$configure_input;;
16625 esac
Steve Kondik2111ad72013-07-07 12:07:44 -070016626
16627 case $ac_tag in
Steve Kondik79165c32015-11-09 19:43:00 -080016628 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016630 esac
16631 ;;
16632 esac
16633
16634 ac_dir=`$as_dirname -- "$ac_file" ||
16635$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16636 X"$ac_file" : 'X\(//\)[^/]' \| \
16637 X"$ac_file" : 'X\(//\)$' \| \
16638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -080016639$as_echo X"$ac_file" |
Steve Kondik2111ad72013-07-07 12:07:44 -070016640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16641 s//\1/
16642 q
16643 }
16644 /^X\(\/\/\)[^/].*/{
16645 s//\1/
16646 q
16647 }
16648 /^X\(\/\/\)$/{
16649 s//\1/
16650 q
16651 }
16652 /^X\(\/\).*/{
16653 s//\1/
16654 q
16655 }
16656 s/.*/./; q'`
Steve Kondik79165c32015-11-09 19:43:00 -080016657 as_dir="$ac_dir"; as_fn_mkdir_p
Steve Kondik2111ad72013-07-07 12:07:44 -070016658 ac_builddir=.
16659
16660case "$ac_dir" in
16661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16662*)
Steve Kondik79165c32015-11-09 19:43:00 -080016663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Steve Kondik2111ad72013-07-07 12:07:44 -070016664 # A ".." for each directory in $ac_dir_suffix.
Steve Kondik79165c32015-11-09 19:43:00 -080016665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Steve Kondik2111ad72013-07-07 12:07:44 -070016666 case $ac_top_builddir_sub in
16667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16669 esac ;;
16670esac
16671ac_abs_top_builddir=$ac_pwd
16672ac_abs_builddir=$ac_pwd$ac_dir_suffix
16673# for backward compatibility:
16674ac_top_builddir=$ac_top_build_prefix
16675
16676case $srcdir in
16677 .) # We are building in place.
16678 ac_srcdir=.
16679 ac_top_srcdir=$ac_top_builddir_sub
16680 ac_abs_top_srcdir=$ac_pwd ;;
16681 [\\/]* | ?:[\\/]* ) # Absolute name.
16682 ac_srcdir=$srcdir$ac_dir_suffix;
16683 ac_top_srcdir=$srcdir
16684 ac_abs_top_srcdir=$srcdir ;;
16685 *) # Relative name.
16686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16687 ac_top_srcdir=$ac_top_build_prefix$srcdir
16688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16689esac
16690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16691
16692
16693 case $ac_mode in
16694 :F)
16695 #
16696 # CONFIG_FILE
16697 #
16698
16699 case $INSTALL in
16700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16701 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16702 esac
16703 ac_MKDIR_P=$MKDIR_P
16704 case $MKDIR_P in
16705 [\\/$]* | ?:[\\/]* ) ;;
16706 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16707 esac
16708_ACEOF
16709
Steve Kondik79165c32015-11-09 19:43:00 -080016710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070016711# If the template does not know about datarootdir, expand it.
16712# FIXME: This hack should be removed a few years after 2.60.
16713ac_datarootdir_hack=; ac_datarootdir_seen=
Steve Kondik79165c32015-11-09 19:43:00 -080016714ac_sed_dataroot='
16715/datarootdir/ {
Steve Kondik2111ad72013-07-07 12:07:44 -070016716 p
16717 q
16718}
16719/@datadir@/p
16720/@docdir@/p
16721/@infodir@/p
16722/@localedir@/p
Steve Kondik79165c32015-11-09 19:43:00 -080016723/@mandir@/p'
16724case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Steve Kondik2111ad72013-07-07 12:07:44 -070016725*datarootdir*) ac_datarootdir_seen=yes;;
16726*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Steve Kondik79165c32015-11-09 19:43:00 -080016727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16728$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070016729_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080016730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070016731 ac_datarootdir_hack='
16732 s&@datadir@&$datadir&g
16733 s&@docdir@&$docdir&g
16734 s&@infodir@&$infodir&g
16735 s&@localedir@&$localedir&g
16736 s&@mandir@&$mandir&g
Steve Kondik79165c32015-11-09 19:43:00 -080016737 s&\\\${datarootdir}&$datarootdir&g' ;;
Steve Kondik2111ad72013-07-07 12:07:44 -070016738esac
16739_ACEOF
16740
16741# Neutralize VPATH when `$srcdir' = `.'.
16742# Shell code in configure.ac might set extrasub.
16743# FIXME: do we really want to maintain this feature?
Steve Kondik79165c32015-11-09 19:43:00 -080016744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745ac_sed_extra="$ac_vpsub
Steve Kondik2111ad72013-07-07 12:07:44 -070016746$extrasub
16747_ACEOF
Steve Kondik79165c32015-11-09 19:43:00 -080016748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Steve Kondik2111ad72013-07-07 12:07:44 -070016749:t
16750/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Steve Kondik79165c32015-11-09 19:43:00 -080016751s|@configure_input@|$ac_sed_conf_input|;t t
Steve Kondik2111ad72013-07-07 12:07:44 -070016752s&@top_builddir@&$ac_top_builddir_sub&;t t
Steve Kondik79165c32015-11-09 19:43:00 -080016753s&@top_build_prefix@&$ac_top_build_prefix&;t t
Steve Kondik2111ad72013-07-07 12:07:44 -070016754s&@srcdir@&$ac_srcdir&;t t
16755s&@abs_srcdir@&$ac_abs_srcdir&;t t
16756s&@top_srcdir@&$ac_top_srcdir&;t t
16757s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16758s&@builddir@&$ac_builddir&;t t
16759s&@abs_builddir@&$ac_abs_builddir&;t t
16760s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16761s&@INSTALL@&$ac_INSTALL&;t t
16762s&@MKDIR_P@&$ac_MKDIR_P&;t t
16763$ac_datarootdir_hack
Steve Kondik79165c32015-11-09 19:43:00 -080016764"
16765eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016767
16768test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Steve Kondik79165c32015-11-09 19:43:00 -080016769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16773which seems to be undefined. Please make sure it is defined" >&5
16774$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16775which seems to be undefined. Please make sure it is defined" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070016776
Steve Kondik79165c32015-11-09 19:43:00 -080016777 rm -f "$ac_tmp/stdin"
Steve Kondik2111ad72013-07-07 12:07:44 -070016778 case $ac_file in
Steve Kondik79165c32015-11-09 19:43:00 -080016779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16781 esac \
16782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016783 ;;
16784 :H)
16785 #
16786 # CONFIG_HEADER
16787 #
Steve Kondik2111ad72013-07-07 12:07:44 -070016788 if test x"$ac_file" != x-; then
Steve Kondik79165c32015-11-09 19:43:00 -080016789 {
16790 $as_echo "/* $configure_input */" \
16791 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16792 } >"$ac_tmp/config.h" \
16793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16794 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16796$as_echo "$as_me: $ac_file is unchanged" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -070016797 else
Steve Kondik79165c32015-11-09 19:43:00 -080016798 rm -f "$ac_file"
16799 mv "$ac_tmp/config.h" "$ac_file" \
16800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016801 fi
16802 else
Steve Kondik79165c32015-11-09 19:43:00 -080016803 $as_echo "/* $configure_input */" \
16804 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16805 || as_fn_error $? "could not create -" "$LINENO" 5
Steve Kondik2111ad72013-07-07 12:07:44 -070016806 fi
Steve Kondik79165c32015-11-09 19:43:00 -080016807# Compute "$ac_file"'s index in $config_headers.
16808_am_arg="$ac_file"
Steve Kondik2111ad72013-07-07 12:07:44 -070016809_am_stamp_count=1
16810for _am_header in $config_headers :; do
16811 case $_am_header in
16812 $_am_arg | $_am_arg:* )
16813 break ;;
16814 * )
16815 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16816 esac
16817done
16818echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16819$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16820 X"$_am_arg" : 'X\(//\)[^/]' \| \
16821 X"$_am_arg" : 'X\(//\)$' \| \
16822 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -080016823$as_echo X"$_am_arg" |
Steve Kondik2111ad72013-07-07 12:07:44 -070016824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16825 s//\1/
16826 q
16827 }
16828 /^X\(\/\/\)[^/].*/{
16829 s//\1/
16830 q
16831 }
16832 /^X\(\/\/\)$/{
16833 s//\1/
16834 q
16835 }
16836 /^X\(\/\).*/{
16837 s//\1/
16838 q
16839 }
16840 s/.*/./; q'`/stamp-h$_am_stamp_count
16841 ;;
16842
Steve Kondik79165c32015-11-09 19:43:00 -080016843 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16844$as_echo "$as_me: executing $ac_file commands" >&6;}
Steve Kondik2111ad72013-07-07 12:07:44 -070016845 ;;
16846 esac
16847
16848
16849 case $ac_file$ac_mode in
Steve Kondik79165c32015-11-09 19:43:00 -080016850 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16851 # Older Autoconf quotes --file arguments for eval, but not when files
16852 # are listed without --file. Let's play safe and only enable the eval
16853 # if we detect the quoting.
16854 case $CONFIG_FILES in
16855 *\'*) eval set x "$CONFIG_FILES" ;;
16856 *) set x $CONFIG_FILES ;;
16857 esac
16858 shift
16859 for mf
16860 do
16861 # Strip MF so we end up with the name of the file.
16862 mf=`echo "$mf" | sed -e 's/:.*$//'`
16863 # Check whether this is an Automake generated Makefile or not.
16864 # We used to match only the files named 'Makefile.in', but
16865 # some people rename them; so instead we look at the file content.
16866 # Grep'ing the first line is not enough: some people post-process
16867 # each Makefile.in and add a new line on top of each file to say so.
16868 # Grep'ing the whole file is not good either: AIX grep has a line
16869 # limit of 2048, but all sed's we know have understand at least 4000.
16870 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16871 dirpart=`$as_dirname -- "$mf" ||
Steve Kondik2111ad72013-07-07 12:07:44 -070016872$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16873 X"$mf" : 'X\(//\)[^/]' \| \
16874 X"$mf" : 'X\(//\)$' \| \
16875 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -080016876$as_echo X"$mf" |
Steve Kondik2111ad72013-07-07 12:07:44 -070016877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16878 s//\1/
16879 q
16880 }
16881 /^X\(\/\/\)[^/].*/{
16882 s//\1/
16883 q
16884 }
16885 /^X\(\/\/\)$/{
16886 s//\1/
16887 q
16888 }
16889 /^X\(\/\).*/{
16890 s//\1/
16891 q
16892 }
16893 s/.*/./; q'`
Steve Kondik79165c32015-11-09 19:43:00 -080016894 else
16895 continue
16896 fi
16897 # Extract the definition of DEPDIR, am__include, and am__quote
16898 # from the Makefile without running 'make'.
16899 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16900 test -z "$DEPDIR" && continue
16901 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16902 test -z "$am__include" && continue
16903 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16904 # Find all dependency output files, they are included files with
16905 # $(DEPDIR) in their names. We invoke sed twice because it is the
16906 # simplest approach to changing $(DEPDIR) to its actual value in the
16907 # expansion.
16908 for file in `sed -n "
16909 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16910 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16911 # Make sure the directory exists.
16912 test -f "$dirpart/$file" && continue
16913 fdir=`$as_dirname -- "$file" ||
Steve Kondik2111ad72013-07-07 12:07:44 -070016914$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16915 X"$file" : 'X\(//\)[^/]' \| \
16916 X"$file" : 'X\(//\)$' \| \
16917 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Steve Kondik79165c32015-11-09 19:43:00 -080016918$as_echo X"$file" |
Steve Kondik2111ad72013-07-07 12:07:44 -070016919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16920 s//\1/
16921 q
16922 }
16923 /^X\(\/\/\)[^/].*/{
16924 s//\1/
16925 q
16926 }
16927 /^X\(\/\/\)$/{
16928 s//\1/
16929 q
16930 }
16931 /^X\(\/\).*/{
16932 s//\1/
16933 q
16934 }
16935 s/.*/./; q'`
Steve Kondik79165c32015-11-09 19:43:00 -080016936 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16937 # echo "creating $dirpart/$file"
16938 echo '# dummy' > "$dirpart/$file"
Steve Kondik2111ad72013-07-07 12:07:44 -070016939 done
Steve Kondik2111ad72013-07-07 12:07:44 -070016940 done
Steve Kondik79165c32015-11-09 19:43:00 -080016941}
16942 ;;
16943 "libtool":C)
16944
16945 # See if we are running on zsh, and set the options which allow our
16946 # commands through without removal of \ escapes.
16947 if test -n "${ZSH_VERSION+set}" ; then
16948 setopt NO_GLOB_SUBST
16949 fi
16950
16951 cfgfile="${ofile}T"
16952 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16953 $RM "$cfgfile"
16954
16955 cat <<_LT_EOF >> "$cfgfile"
16956#! $SHELL
16957
16958# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16959# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16960# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16961# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16962#
16963# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16964# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16965# Foundation, Inc.
16966# Written by Gordon Matzigkeit, 1996
16967#
16968# This file is part of GNU Libtool.
16969#
16970# GNU Libtool is free software; you can redistribute it and/or
16971# modify it under the terms of the GNU General Public License as
16972# published by the Free Software Foundation; either version 2 of
16973# the License, or (at your option) any later version.
16974#
16975# As a special exception to the GNU General Public License,
16976# if you distribute this file as part of a program or library that
16977# is built using GNU Libtool, you may include this file under the
16978# same distribution terms that you use for the rest of that program.
16979#
16980# GNU Libtool is distributed in the hope that it will be useful,
16981# but WITHOUT ANY WARRANTY; without even the implied warranty of
16982# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16983# GNU General Public License for more details.
16984#
16985# You should have received a copy of the GNU General Public License
16986# along with GNU Libtool; see the file COPYING. If not, a copy
16987# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16988# obtained by writing to the Free Software Foundation, Inc.,
16989# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16990
16991
16992# The names of the tagged configurations supported by this script.
16993available_tags=""
16994
16995# ### BEGIN LIBTOOL CONFIG
16996
16997# Which release of libtool.m4 was used?
16998macro_version=$macro_version
16999macro_revision=$macro_revision
17000
17001# Whether or not to build shared libraries.
17002build_libtool_libs=$enable_shared
17003
17004# Whether or not to build static libraries.
17005build_old_libs=$enable_static
17006
17007# What type of objects to build.
17008pic_mode=$pic_mode
17009
17010# Whether or not to optimize for fast installation.
17011fast_install=$enable_fast_install
17012
17013# Shell to use when invoking shell scripts.
17014SHELL=$lt_SHELL
17015
17016# An echo program that protects backslashes.
17017ECHO=$lt_ECHO
17018
17019# The PATH separator for the build system.
17020PATH_SEPARATOR=$lt_PATH_SEPARATOR
17021
17022# The host system.
17023host_alias=$host_alias
17024host=$host
17025host_os=$host_os
17026
17027# The build system.
17028build_alias=$build_alias
17029build=$build
17030build_os=$build_os
17031
17032# A sed program that does not truncate output.
17033SED=$lt_SED
17034
17035# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17036Xsed="\$SED -e 1s/^X//"
17037
17038# A grep program that handles long lines.
17039GREP=$lt_GREP
17040
17041# An ERE matcher.
17042EGREP=$lt_EGREP
17043
17044# A literal string matcher.
17045FGREP=$lt_FGREP
17046
17047# A BSD- or MS-compatible name lister.
17048NM=$lt_NM
17049
17050# Whether we need soft or hard links.
17051LN_S=$lt_LN_S
17052
17053# What is the maximum length of a command?
17054max_cmd_len=$max_cmd_len
17055
17056# Object file suffix (normally "o").
17057objext=$ac_objext
17058
17059# Executable file suffix (normally "").
17060exeext=$exeext
17061
17062# whether the shell understands "unset".
17063lt_unset=$lt_unset
17064
17065# turn spaces into newlines.
17066SP2NL=$lt_lt_SP2NL
17067
17068# turn newlines into spaces.
17069NL2SP=$lt_lt_NL2SP
17070
17071# convert \$build file names to \$host format.
17072to_host_file_cmd=$lt_cv_to_host_file_cmd
17073
17074# convert \$build files to toolchain format.
17075to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17076
17077# An object symbol dumper.
17078OBJDUMP=$lt_OBJDUMP
17079
17080# Method to check whether dependent libraries are shared objects.
17081deplibs_check_method=$lt_deplibs_check_method
17082
17083# Command to use when deplibs_check_method = "file_magic".
17084file_magic_cmd=$lt_file_magic_cmd
17085
17086# How to find potential files when deplibs_check_method = "file_magic".
17087file_magic_glob=$lt_file_magic_glob
17088
17089# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17090want_nocaseglob=$lt_want_nocaseglob
17091
17092# DLL creation program.
17093DLLTOOL=$lt_DLLTOOL
17094
17095# Command to associate shared and link libraries.
17096sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17097
17098# The archiver.
17099AR=$lt_AR
17100
17101# Flags to create an archive.
17102AR_FLAGS=$lt_AR_FLAGS
17103
17104# How to feed a file listing to the archiver.
17105archiver_list_spec=$lt_archiver_list_spec
17106
17107# A symbol stripping program.
17108STRIP=$lt_STRIP
17109
17110# Commands used to install an old-style archive.
17111RANLIB=$lt_RANLIB
17112old_postinstall_cmds=$lt_old_postinstall_cmds
17113old_postuninstall_cmds=$lt_old_postuninstall_cmds
17114
17115# Whether to use a lock for old archive extraction.
17116lock_old_archive_extraction=$lock_old_archive_extraction
17117
17118# A C compiler.
17119LTCC=$lt_CC
17120
17121# LTCC compiler flags.
17122LTCFLAGS=$lt_CFLAGS
17123
17124# Take the output of nm and produce a listing of raw symbols and C names.
17125global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17126
17127# Transform the output of nm in a proper C declaration.
17128global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17129
17130# Transform the output of nm in a C name address pair.
17131global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17132
17133# Transform the output of nm in a C name address pair when lib prefix is needed.
17134global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17135
17136# Specify filename containing input files for \$NM.
17137nm_file_list_spec=$lt_nm_file_list_spec
17138
17139# The root where to search for dependent libraries,and in which our libraries should be installed.
17140lt_sysroot=$lt_sysroot
17141
17142# The name of the directory that contains temporary libtool files.
17143objdir=$objdir
17144
17145# Used to examine libraries when file_magic_cmd begins with "file".
17146MAGIC_CMD=$MAGIC_CMD
17147
17148# Must we lock files when doing compilation?
17149need_locks=$lt_need_locks
17150
17151# Manifest tool.
17152MANIFEST_TOOL=$lt_MANIFEST_TOOL
17153
17154# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17155DSYMUTIL=$lt_DSYMUTIL
17156
17157# Tool to change global to local symbols on Mac OS X.
17158NMEDIT=$lt_NMEDIT
17159
17160# Tool to manipulate fat objects and archives on Mac OS X.
17161LIPO=$lt_LIPO
17162
17163# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17164OTOOL=$lt_OTOOL
17165
17166# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17167OTOOL64=$lt_OTOOL64
17168
17169# Old archive suffix (normally "a").
17170libext=$libext
17171
17172# Shared library suffix (normally ".so").
17173shrext_cmds=$lt_shrext_cmds
17174
17175# The commands to extract the exported symbol list from a shared archive.
17176extract_expsyms_cmds=$lt_extract_expsyms_cmds
17177
17178# Variables whose values should be saved in libtool wrapper scripts and
17179# restored at link time.
17180variables_saved_for_relink=$lt_variables_saved_for_relink
17181
17182# Do we need the "lib" prefix for modules?
17183need_lib_prefix=$need_lib_prefix
17184
17185# Do we need a version for libraries?
17186need_version=$need_version
17187
17188# Library versioning type.
17189version_type=$version_type
17190
17191# Shared library runtime path variable.
17192runpath_var=$runpath_var
17193
17194# Shared library path variable.
17195shlibpath_var=$shlibpath_var
17196
17197# Is shlibpath searched before the hard-coded library search path?
17198shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17199
17200# Format of library name prefix.
17201libname_spec=$lt_libname_spec
17202
17203# List of archive names. First name is the real one, the rest are links.
17204# The last name is the one that the linker finds with -lNAME
17205library_names_spec=$lt_library_names_spec
17206
17207# The coded name of the library, if different from the real name.
17208soname_spec=$lt_soname_spec
17209
17210# Permission mode override for installation of shared libraries.
17211install_override_mode=$lt_install_override_mode
17212
17213# Command to use after installation of a shared archive.
17214postinstall_cmds=$lt_postinstall_cmds
17215
17216# Command to use after uninstallation of a shared archive.
17217postuninstall_cmds=$lt_postuninstall_cmds
17218
17219# Commands used to finish a libtool library installation in a directory.
17220finish_cmds=$lt_finish_cmds
17221
17222# As "finish_cmds", except a single script fragment to be evaled but
17223# not shown.
17224finish_eval=$lt_finish_eval
17225
17226# Whether we should hardcode library paths into libraries.
17227hardcode_into_libs=$hardcode_into_libs
17228
17229# Compile-time system search path for libraries.
17230sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17231
17232# Run-time system search path for libraries.
17233sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17234
17235# Whether dlopen is supported.
17236dlopen_support=$enable_dlopen
17237
17238# Whether dlopen of programs is supported.
17239dlopen_self=$enable_dlopen_self
17240
17241# Whether dlopen of statically linked programs is supported.
17242dlopen_self_static=$enable_dlopen_self_static
17243
17244# Commands to strip libraries.
17245old_striplib=$lt_old_striplib
17246striplib=$lt_striplib
17247
17248
17249# The linker used to build libraries.
17250LD=$lt_LD
17251
17252# How to create reloadable object files.
17253reload_flag=$lt_reload_flag
17254reload_cmds=$lt_reload_cmds
17255
17256# Commands used to build an old-style archive.
17257old_archive_cmds=$lt_old_archive_cmds
17258
17259# A language specific compiler.
17260CC=$lt_compiler
17261
17262# Is the compiler the GNU compiler?
17263with_gcc=$GCC
17264
17265# Compiler flag to turn off builtin functions.
17266no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17267
17268# Additional compiler flags for building library objects.
17269pic_flag=$lt_lt_prog_compiler_pic
17270
17271# How to pass a linker flag through the compiler.
17272wl=$lt_lt_prog_compiler_wl
17273
17274# Compiler flag to prevent dynamic linking.
17275link_static_flag=$lt_lt_prog_compiler_static
17276
17277# Does compiler simultaneously support -c and -o options?
17278compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17279
17280# Whether or not to add -lc for building shared libraries.
17281build_libtool_need_lc=$archive_cmds_need_lc
17282
17283# Whether or not to disallow shared libs when runtime libs are static.
17284allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17285
17286# Compiler flag to allow reflexive dlopens.
17287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17288
17289# Compiler flag to generate shared objects directly from archives.
17290whole_archive_flag_spec=$lt_whole_archive_flag_spec
17291
17292# Whether the compiler copes with passing no objects directly.
17293compiler_needs_object=$lt_compiler_needs_object
17294
17295# Create an old-style archive from a shared archive.
17296old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17297
17298# Create a temporary old-style archive to link instead of a shared archive.
17299old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17300
17301# Commands used to build a shared archive.
17302archive_cmds=$lt_archive_cmds
17303archive_expsym_cmds=$lt_archive_expsym_cmds
17304
17305# Commands used to build a loadable module if different from building
17306# a shared archive.
17307module_cmds=$lt_module_cmds
17308module_expsym_cmds=$lt_module_expsym_cmds
17309
17310# Whether we are building with GNU ld or not.
17311with_gnu_ld=$lt_with_gnu_ld
17312
17313# Flag that allows shared libraries with undefined symbols to be built.
17314allow_undefined_flag=$lt_allow_undefined_flag
17315
17316# Flag that enforces no undefined symbols.
17317no_undefined_flag=$lt_no_undefined_flag
17318
17319# Flag to hardcode \$libdir into a binary during linking.
17320# This must work even if \$libdir does not exist
17321hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17322
17323# Whether we need a single "-rpath" flag with a separated argument.
17324hardcode_libdir_separator=$lt_hardcode_libdir_separator
17325
17326# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17327# DIR into the resulting binary.
17328hardcode_direct=$hardcode_direct
17329
17330# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17331# DIR into the resulting binary and the resulting library dependency is
17332# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17333# library is relocated.
17334hardcode_direct_absolute=$hardcode_direct_absolute
17335
17336# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17337# into the resulting binary.
17338hardcode_minus_L=$hardcode_minus_L
17339
17340# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17341# into the resulting binary.
17342hardcode_shlibpath_var=$hardcode_shlibpath_var
17343
17344# Set to "yes" if building a shared library automatically hardcodes DIR
17345# into the library and all subsequent libraries and executables linked
17346# against it.
17347hardcode_automatic=$hardcode_automatic
17348
17349# Set to yes if linker adds runtime paths of dependent libraries
17350# to runtime path list.
17351inherit_rpath=$inherit_rpath
17352
17353# Whether libtool must link a program against all its dependency libraries.
17354link_all_deplibs=$link_all_deplibs
17355
17356# Set to "yes" if exported symbols are required.
17357always_export_symbols=$always_export_symbols
17358
17359# The commands to list exported symbols.
17360export_symbols_cmds=$lt_export_symbols_cmds
17361
17362# Symbols that should not be listed in the preloaded symbols.
17363exclude_expsyms=$lt_exclude_expsyms
17364
17365# Symbols that must always be exported.
17366include_expsyms=$lt_include_expsyms
17367
17368# Commands necessary for linking programs (against libraries) with templates.
17369prelink_cmds=$lt_prelink_cmds
17370
17371# Commands necessary for finishing linking programs.
17372postlink_cmds=$lt_postlink_cmds
17373
17374# Specify filename containing input files.
17375file_list_spec=$lt_file_list_spec
17376
17377# How to hardcode a shared library path into an executable.
17378hardcode_action=$hardcode_action
17379
17380# ### END LIBTOOL CONFIG
17381
17382_LT_EOF
17383
17384 case $host_os in
17385 aix3*)
17386 cat <<\_LT_EOF >> "$cfgfile"
17387# AIX sometimes has problems with the GCC collect2 program. For some
17388# reason, if we set the COLLECT_NAMES environment variable, the problems
17389# vanish in a puff of smoke.
17390if test "X${COLLECT_NAMES+set}" != Xset; then
17391 COLLECT_NAMES=
17392 export COLLECT_NAMES
17393fi
17394_LT_EOF
17395 ;;
17396 esac
17397
17398
17399ltmain="$ac_aux_dir/ltmain.sh"
17400
17401
17402 # We use sed instead of cat because bash on DJGPP gets confused if
17403 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17404 # text mode, it properly converts lines to CR/LF. This bash problem
17405 # is reportedly fixed, but why not run on old versions too?
17406 sed '$q' "$ltmain" >> "$cfgfile" \
17407 || (rm -f "$cfgfile"; exit 1)
17408
17409 if test x"$xsi_shell" = xyes; then
17410 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17411func_dirname ()\
17412{\
17413\ case ${1} in\
17414\ */*) func_dirname_result="${1%/*}${2}" ;;\
17415\ * ) func_dirname_result="${3}" ;;\
17416\ esac\
17417} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17418 && mv -f "$cfgfile.tmp" "$cfgfile" \
17419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17420test 0 -eq $? || _lt_function_replace_fail=:
17421
17422
17423 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17424func_basename ()\
17425{\
17426\ func_basename_result="${1##*/}"\
17427} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17428 && mv -f "$cfgfile.tmp" "$cfgfile" \
17429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17430test 0 -eq $? || _lt_function_replace_fail=:
17431
17432
17433 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17434func_dirname_and_basename ()\
17435{\
17436\ case ${1} in\
17437\ */*) func_dirname_result="${1%/*}${2}" ;;\
17438\ * ) func_dirname_result="${3}" ;;\
17439\ esac\
17440\ func_basename_result="${1##*/}"\
17441} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17442 && mv -f "$cfgfile.tmp" "$cfgfile" \
17443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17444test 0 -eq $? || _lt_function_replace_fail=:
17445
17446
17447 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17448func_stripname ()\
17449{\
17450\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17451\ # positional parameters, so assign one to ordinary parameter first.\
17452\ func_stripname_result=${3}\
17453\ func_stripname_result=${func_stripname_result#"${1}"}\
17454\ func_stripname_result=${func_stripname_result%"${2}"}\
17455} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17456 && mv -f "$cfgfile.tmp" "$cfgfile" \
17457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17458test 0 -eq $? || _lt_function_replace_fail=:
17459
17460
17461 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17462func_split_long_opt ()\
17463{\
17464\ func_split_long_opt_name=${1%%=*}\
17465\ func_split_long_opt_arg=${1#*=}\
17466} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17467 && mv -f "$cfgfile.tmp" "$cfgfile" \
17468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17469test 0 -eq $? || _lt_function_replace_fail=:
17470
17471
17472 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17473func_split_short_opt ()\
17474{\
17475\ func_split_short_opt_arg=${1#??}\
17476\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17477} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17478 && mv -f "$cfgfile.tmp" "$cfgfile" \
17479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17480test 0 -eq $? || _lt_function_replace_fail=:
17481
17482
17483 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17484func_lo2o ()\
17485{\
17486\ case ${1} in\
17487\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17488\ *) func_lo2o_result=${1} ;;\
17489\ esac\
17490} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17491 && mv -f "$cfgfile.tmp" "$cfgfile" \
17492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17493test 0 -eq $? || _lt_function_replace_fail=:
17494
17495
17496 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17497func_xform ()\
17498{\
17499 func_xform_result=${1%.*}.lo\
17500} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17501 && mv -f "$cfgfile.tmp" "$cfgfile" \
17502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17503test 0 -eq $? || _lt_function_replace_fail=:
17504
17505
17506 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17507func_arith ()\
17508{\
17509 func_arith_result=$(( $* ))\
17510} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17511 && mv -f "$cfgfile.tmp" "$cfgfile" \
17512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17513test 0 -eq $? || _lt_function_replace_fail=:
17514
17515
17516 sed -e '/^func_len ()$/,/^} # func_len /c\
17517func_len ()\
17518{\
17519 func_len_result=${#1}\
17520} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17521 && mv -f "$cfgfile.tmp" "$cfgfile" \
17522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17523test 0 -eq $? || _lt_function_replace_fail=:
17524
17525fi
17526
17527if test x"$lt_shell_append" = xyes; then
17528 sed -e '/^func_append ()$/,/^} # func_append /c\
17529func_append ()\
17530{\
17531 eval "${1}+=\\${2}"\
17532} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17533 && mv -f "$cfgfile.tmp" "$cfgfile" \
17534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17535test 0 -eq $? || _lt_function_replace_fail=:
17536
17537
17538 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17539func_append_quoted ()\
17540{\
17541\ func_quote_for_eval "${2}"\
17542\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17543} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17544 && mv -f "$cfgfile.tmp" "$cfgfile" \
17545 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17546test 0 -eq $? || _lt_function_replace_fail=:
17547
17548
17549 # Save a `func_append' function call where possible by direct use of '+='
17550 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17551 && mv -f "$cfgfile.tmp" "$cfgfile" \
17552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17553 test 0 -eq $? || _lt_function_replace_fail=:
17554else
17555 # Save a `func_append' function call even when '+=' is not available
17556 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17557 && mv -f "$cfgfile.tmp" "$cfgfile" \
17558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17559 test 0 -eq $? || _lt_function_replace_fail=:
17560fi
17561
17562if test x"$_lt_function_replace_fail" = x":"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17564$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17565fi
17566
17567
17568 mv -f "$cfgfile" "$ofile" ||
17569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17570 chmod +x "$ofile"
17571
Steve Kondik2111ad72013-07-07 12:07:44 -070017572 ;;
17573
17574 esac
17575done # for ac_tag
17576
17577
Steve Kondik79165c32015-11-09 19:43:00 -080017578as_fn_exit 0
Steve Kondik2111ad72013-07-07 12:07:44 -070017579_ACEOF
Steve Kondik2111ad72013-07-07 12:07:44 -070017580ac_clean_files=$ac_clean_files_save
17581
Steve Kondik79165c32015-11-09 19:43:00 -080017582test $ac_write_fail = 0 ||
17583 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17584
Steve Kondik2111ad72013-07-07 12:07:44 -070017585
17586# configure is writing to config.log, and then calls config.status.
17587# config.status does its own redirection, appending to config.log.
17588# Unfortunately, on DOS this fails, as config.log is still kept open
17589# by configure, so config.status won't be able to write to it; its
17590# output is simply discarded. So we exec the FD to /dev/null,
17591# effectively closing config.log, so it can be properly (re)opened and
17592# appended to by config.status. When coming back to configure, we
17593# need to make the FD available again.
17594if test "$no_create" != yes; then
17595 ac_cs_success=:
17596 ac_config_status_args=
17597 test "$silent" = yes &&
17598 ac_config_status_args="$ac_config_status_args --quiet"
17599 exec 5>/dev/null
17600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17601 exec 5>>config.log
17602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17603 # would make configure fail if this is the last instruction.
Steve Kondik79165c32015-11-09 19:43:00 -080017604 $ac_cs_success || as_fn_exit 1
17605fi
17606if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17608$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Steve Kondik2111ad72013-07-07 12:07:44 -070017609fi
17610
17611
17612if test "${with_fuse}" = "external"; then
17613 if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then
17614 cat <<EOF
17615****************************************************************************
17616* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
17617* The FUSE user space binaries were NOT installed with root directory *
17618* executable prefix. This means that automounting NTFS volumes during boot *
17619* could fail. This can be fixed the below way by reinstalling FUSE using *
17620* the right 'configure' option during FUSE compilation: *
17621* ./configure --exec-prefix=/ *
17622* make && sudo make install *
17623* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *
17624****************************************************************************
17625EOF
17626 fi
17627fi
17628
17629echo "You can type now 'make' to build ntfs-3g."
17630