1#! /bin/sh
2# From configure.ac Revision: 1.224 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65 for gutenprint 5.2.7.
5#
6# Report bugs to <gimp-print-devel@lists.sourceforge.net>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11# Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16#
17#
18# Parts of this configure script come from the 'configure.ac' file, and
19# are not based on freely-redistributable m4 macros; you can redistribute
20# them and/or modify them under the terms of the GNU General Public
21# as published by the Free Software Foundation; either version 2, or (at
22# your option) any later version.
23#
24# This program is distributed in the hope that it will be useful,
25# but WITHOUT ANY WARRANTY; without even the implied warranty of
26# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27# GNU General Public License for more details.
28#
29# You should have received a copy of the GNU General Public License
30# along with this program; if not, write to the Free Software
31# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32#
33## -------------------- ##
34## M4sh Initialization. ##
35## -------------------- ##
36
37# Be more Bourne compatible
38DUALCASE=1; export DUALCASE # for MKS sh
39if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40  emulate sh
41  NULLCMD=:
42  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43  # is contrary to our usage.  Disable this feature.
44  alias -g '${1+"$@"}'='"$@"'
45  setopt NO_GLOB_SUBST
46else
47  case `(set -o) 2>/dev/null` in #(
48  *posix*) :
49    set -o posix ;; #(
50  *) :
51     ;;
52esac
53fi
54
55
56as_nl='
57'
58export as_nl
59# Printing a long string crashes Solaris 7 /usr/bin/printf.
60as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63# Prefer a ksh shell builtin over an external printf program on Solaris,
64# but without wasting forks for bash or zsh.
65if test -z "$BASH_VERSION$ZSH_VERSION" \
66    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
67  as_echo='print -r --'
68  as_echo_n='print -rn --'
69elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70  as_echo='printf %s\n'
71  as_echo_n='printf %s'
72else
73  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75    as_echo_n='/usr/ucb/echo -n'
76  else
77    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78    as_echo_n_body='eval
79      arg=$1;
80      case $arg in #(
81      *"$as_nl"*)
82	expr "X$arg" : "X\\(.*\\)$as_nl";
83	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84      esac;
85      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86    '
87    export as_echo_n_body
88    as_echo_n='sh -c $as_echo_n_body as_echo'
89  fi
90  export as_echo_body
91  as_echo='sh -c $as_echo_body as_echo'
92fi
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  PATH_SEPARATOR=:
97  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99      PATH_SEPARATOR=';'
100  }
101fi
102
103
104# IFS
105# We need space, tab and new line, in precisely that order.  Quoting is
106# there to prevent editors from complaining about space-tab.
107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
108# splitting by setting IFS to empty value.)
109IFS=" ""	$as_nl"
110
111# Find who we are.  Look in the path if we contain no directory separator.
112case $0 in #((
113  *[\\/]* ) as_myself=$0 ;;
114  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115for as_dir in $PATH
116do
117  IFS=$as_save_IFS
118  test -z "$as_dir" && as_dir=.
119    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120  done
121IFS=$as_save_IFS
122
123     ;;
124esac
125# We did not find ourselves, most probably we were run as `sh COMMAND'
126# in which case we are not to be found in the path.
127if test "x$as_myself" = x; then
128  as_myself=$0
129fi
130if test ! -f "$as_myself"; then
131  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
132  exit 1
133fi
134
135# Unset variables that we do not need and which cause bugs (e.g. in
136# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
137# suppresses any "Segmentation fault" message there.  '((' could
138# trigger a bug in pdksh 5.2.14.
139for as_var in BASH_ENV ENV MAIL MAILPATH
140do eval test x\${$as_var+set} = xset \
141  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
142done
143PS1='$ '
144PS2='> '
145PS4='+ '
146
147# NLS nuisances.
148LC_ALL=C
149export LC_ALL
150LANGUAGE=C
151export LANGUAGE
152
153# CDPATH.
154(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
155
156if test "x$CONFIG_SHELL" = x; then
157  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
158  emulate sh
159  NULLCMD=:
160  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
161  # is contrary to our usage.  Disable this feature.
162  alias -g '\${1+\"\$@\"}'='\"\$@\"'
163  setopt NO_GLOB_SUBST
164else
165  case \`(set -o) 2>/dev/null\` in #(
166  *posix*) :
167    set -o posix ;; #(
168  *) :
169     ;;
170esac
171fi
172"
173  as_required="as_fn_return () { (exit \$1); }
174as_fn_success () { as_fn_return 0; }
175as_fn_failure () { as_fn_return 1; }
176as_fn_ret_success () { return 0; }
177as_fn_ret_failure () { return 1; }
178
179exitcode=0
180as_fn_success || { exitcode=1; echo as_fn_success failed.; }
181as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
182as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
183as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
184if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
185
186else
187  exitcode=1; echo positional parameters were not saved.
188fi
189test x\$exitcode = x0 || exit 1"
190  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
191  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
192  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
193  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null; then :
196  as_have_required=yes
197else
198  as_have_required=no
199fi
200  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
201
202else
203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204as_found=false
205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206do
207  IFS=$as_save_IFS
208  test -z "$as_dir" && as_dir=.
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir/$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
217  CONFIG_SHELL=$as_shell as_have_required=yes
218		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
227	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
228  CONFIG_SHELL=$SHELL as_have_required=yes
229fi; }
230IFS=$as_save_IFS
231
232
233      if test "x$CONFIG_SHELL" != x; then :
234  # We cannot yet assume a decent shell, so we have to provide a
235	# neutralization value for shells without unset; and this also
236	# works around shells that cannot unset nonexistent variables.
237	BASH_ENV=/dev/null
238	ENV=/dev/null
239	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
240	export CONFIG_SHELL
241	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
242fi
243
244    if test x$as_have_required = xno; then :
245  $as_echo "$0: This script requires a shell more modern than all"
246  $as_echo "$0: the shells that I found on your system."
247  if test x${ZSH_VERSION+set} = xset ; then
248    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250  else
251    $as_echo "$0: Please tell bug-autoconf@gnu.org and
252$0: gimp-print-devel@lists.sourceforge.net about your
253$0: system, including any error possibly output before this
254$0: message. Then install a modern shell, or manually run
255$0: the script under such a shell if you do have one."
256  fi
257  exit 1
258fi
259fi
260fi
261SHELL=${CONFIG_SHELL-/bin/sh}
262export SHELL
263# Unset more variables known to interfere with behavior of common tools.
264CLICOLOR_FORCE= GREP_OPTIONS=
265unset CLICOLOR_FORCE GREP_OPTIONS
266
267## --------------------- ##
268## M4sh Shell Functions. ##
269## --------------------- ##
270# as_fn_unset VAR
271# ---------------
272# Portably unset VAR.
273as_fn_unset ()
274{
275  { eval $1=; unset $1;}
276}
277as_unset=as_fn_unset
278
279# as_fn_set_status STATUS
280# -----------------------
281# Set $? to STATUS, without forking.
282as_fn_set_status ()
283{
284  return $1
285} # as_fn_set_status
286
287# as_fn_exit STATUS
288# -----------------
289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290as_fn_exit ()
291{
292  set +e
293  as_fn_set_status $1
294  exit $1
295} # as_fn_exit
296
297# as_fn_mkdir_p
298# -------------
299# Create "$as_dir" as a directory, including parents if necessary.
300as_fn_mkdir_p ()
301{
302
303  case $as_dir in #(
304  -*) as_dir=./$as_dir;;
305  esac
306  test -d "$as_dir" || eval $as_mkdir_p || {
307    as_dirs=
308    while :; do
309      case $as_dir in #(
310      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311      *) as_qdir=$as_dir;;
312      esac
313      as_dirs="'$as_qdir' $as_dirs"
314      as_dir=`$as_dirname -- "$as_dir" ||
315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
316	 X"$as_dir" : 'X\(//\)[^/]' \| \
317	 X"$as_dir" : 'X\(//\)$' \| \
318	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319$as_echo X"$as_dir" |
320    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321	    s//\1/
322	    q
323	  }
324	  /^X\(\/\/\)[^/].*/{
325	    s//\1/
326	    q
327	  }
328	  /^X\(\/\/\)$/{
329	    s//\1/
330	    q
331	  }
332	  /^X\(\/\).*/{
333	    s//\1/
334	    q
335	  }
336	  s/.*/./; q'`
337      test -d "$as_dir" && break
338    done
339    test -z "$as_dirs" || eval "mkdir $as_dirs"
340  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
341
342
343} # as_fn_mkdir_p
344# as_fn_append VAR VALUE
345# ----------------------
346# Append the text in VALUE to the end of the definition contained in VAR. Take
347# advantage of any shell optimizations that allow amortized linear growth over
348# repeated appends, instead of the typical quadratic growth present in naive
349# implementations.
350if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
351  eval 'as_fn_append ()
352  {
353    eval $1+=\$2
354  }'
355else
356  as_fn_append ()
357  {
358    eval $1=\$$1\$2
359  }
360fi # as_fn_append
361
362# as_fn_arith ARG...
363# ------------------
364# Perform arithmetic evaluation on the ARGs, and store the result in the
365# global $as_val. Take advantage of shells that can avoid forks. The arguments
366# must be portable across $(()) and expr.
367if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368  eval 'as_fn_arith ()
369  {
370    as_val=$(( $* ))
371  }'
372else
373  as_fn_arith ()
374  {
375    as_val=`expr "$@" || test $? -eq 1`
376  }
377fi # as_fn_arith
378
379
380# as_fn_error ERROR [LINENO LOG_FD]
381# ---------------------------------
382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
384# script with status $?, using 1 if that was 0.
385as_fn_error ()
386{
387  as_status=$?; test $as_status -eq 0 && as_status=1
388  if test "$3"; then
389    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
390    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
391  fi
392  $as_echo "$as_me: error: $1" >&2
393  as_fn_exit $as_status
394} # as_fn_error
395
396if expr a : '\(a\)' >/dev/null 2>&1 &&
397   test "X`expr 00001 : '.*\(...\)'`" = X001; then
398  as_expr=expr
399else
400  as_expr=false
401fi
402
403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404  as_basename=basename
405else
406  as_basename=false
407fi
408
409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410  as_dirname=dirname
411else
412  as_dirname=false
413fi
414
415as_me=`$as_basename -- "$0" ||
416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417	 X"$0" : 'X\(//\)$' \| \
418	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419$as_echo X/"$0" |
420    sed '/^.*\/\([^/][^/]*\)\/*$/{
421	    s//\1/
422	    q
423	  }
424	  /^X\/\(\/\/\)$/{
425	    s//\1/
426	    q
427	  }
428	  /^X\/\(\/\).*/{
429	    s//\1/
430	    q
431	  }
432	  s/.*/./; q'`
433
434# Avoid depending upon Character Ranges.
435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
438as_cr_digits='0123456789'
439as_cr_alnum=$as_cr_Letters$as_cr_digits
440
441
442  as_lineno_1=$LINENO as_lineno_1a=$LINENO
443  as_lineno_2=$LINENO as_lineno_2a=$LINENO
444  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
445  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
446  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
447  sed -n '
448    p
449    /[$]LINENO/=
450  ' <$as_myself |
451    sed '
452      s/[$]LINENO.*/&-/
453      t lineno
454      b
455      :lineno
456      N
457      :loop
458      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459      t loop
460      s/-\n.*//
461    ' >$as_me.lineno &&
462  chmod +x "$as_me.lineno" ||
463    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464
465  # Don't try to exec as it changes $[0], causing all sort of problems
466  # (the dirname of $[0] is not the place where we might find the
467  # original and so on.  Autoconf is especially sensitive to this).
468  . "./$as_me.lineno"
469  # Exit status is that of the last command.
470  exit
471}
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in #(((((
475-n*)
476  case `echo 'xy\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  xy)  ECHO_C='\c';;
479  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
480       ECHO_T='	';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir 2>/dev/null
492fi
493if (echo >conf$$.file) 2>/dev/null; then
494  if ln -s conf$$.file conf$$ 2>/dev/null; then
495    as_ln_s='ln -s'
496    # ... but there are two gotchas:
497    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499    # In both cases, we have to default to `cp -p'.
500    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501      as_ln_s='cp -p'
502  elif ln conf$$.file conf$$ 2>/dev/null; then
503    as_ln_s=ln
504  else
505    as_ln_s='cp -p'
506  fi
507else
508  as_ln_s='cp -p'
509fi
510rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511rmdir conf$$.dir 2>/dev/null
512
513if mkdir -p . 2>/dev/null; then
514  as_mkdir_p='mkdir -p "$as_dir"'
515else
516  test -d ./-p && rmdir ./-p
517  as_mkdir_p=false
518fi
519
520if test -x / >/dev/null 2>&1; then
521  as_test_x='test -x'
522else
523  if ls -dL / >/dev/null 2>&1; then
524    as_ls_L_option=L
525  else
526    as_ls_L_option=
527  fi
528  as_test_x='
529    eval sh -c '\''
530      if test -d "$1"; then
531	test -d "$1/.";
532      else
533	case $1 in #(
534	-*)set "./$1";;
535	esac;
536	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
537	???[sx]*):;;*)false;;esac;fi
538    '\'' sh
539  '
540fi
541as_executable_p=$as_test_x
542
543# Sed expression to map a string onto a valid CPP name.
544as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546# Sed expression to map a string onto a valid variable name.
547as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
550
551# Check that we are running under the correct shell.
552SHELL=${CONFIG_SHELL-/bin/sh}
553
554case X$lt_ECHO in
555X*--fallback-echo)
556  # Remove one level of quotation (which was required for Make).
557  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
558  ;;
559esac
560
561ECHO=${lt_ECHO-echo}
562if test "X$1" = X--no-reexec; then
563  # Discard the --no-reexec flag, and continue.
564  shift
565elif test "X$1" = X--fallback-echo; then
566  # Avoid inline document here, it may be left over
567  :
568elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
569  # Yippee, $ECHO works!
570  :
571else
572  # Restart under the correct shell.
573  exec $SHELL "$0" --no-reexec ${1+"$@"}
574fi
575
576if test "X$1" = X--fallback-echo; then
577  # used as fallback echo
578  shift
579  cat <<_LT_EOF
580$*
581_LT_EOF
582  exit 0
583fi
584
585# The HP-UX ksh and POSIX shell print the target directory to stdout
586# if CDPATH is set.
587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
588
589if test -z "$lt_ECHO"; then
590  if test "X${echo_test_string+set}" != Xset; then
591    # find a string as large as possible, as long as the shell can cope with it
592    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
593      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
594      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
595	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
596      then
597        break
598      fi
599    done
600  fi
601
602  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
603     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
604     test "X$echo_testing_string" = "X$echo_test_string"; then
605    :
606  else
607    # The Solaris, AIX, and Digital Unix default echo programs unquote
608    # backslashes.  This makes it impossible to quote backslashes using
609    #   echo "$something" | sed 's/\\/\\\\/g'
610    #
611    # So, first we look for a working echo in the user's PATH.
612
613    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
614    for dir in $PATH /usr/ucb; do
615      IFS="$lt_save_ifs"
616      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
617         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
618         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
619         test "X$echo_testing_string" = "X$echo_test_string"; then
620        ECHO="$dir/echo"
621        break
622      fi
623    done
624    IFS="$lt_save_ifs"
625
626    if test "X$ECHO" = Xecho; then
627      # We didn't find a better echo, so look for alternatives.
628      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
629         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
630         test "X$echo_testing_string" = "X$echo_test_string"; then
631        # This shell has a builtin print -r that does the trick.
632        ECHO='print -r'
633      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
634	   test "X$CONFIG_SHELL" != X/bin/ksh; then
635        # If we have ksh, try running configure again with it.
636        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
637        export ORIGINAL_CONFIG_SHELL
638        CONFIG_SHELL=/bin/ksh
639        export CONFIG_SHELL
640        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
641      else
642        # Try using printf.
643        ECHO='printf %s\n'
644        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
645	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
646	   test "X$echo_testing_string" = "X$echo_test_string"; then
647	  # Cool, printf works
648	  :
649        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650	     test "X$echo_testing_string" = 'X\t' &&
651	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652	     test "X$echo_testing_string" = "X$echo_test_string"; then
653	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
654	  export CONFIG_SHELL
655	  SHELL="$CONFIG_SHELL"
656	  export SHELL
657	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
658        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659	     test "X$echo_testing_string" = 'X\t' &&
660	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661	     test "X$echo_testing_string" = "X$echo_test_string"; then
662	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
663        else
664	  # maybe with a smaller string...
665	  prev=:
666
667	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
668	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
669	    then
670	      break
671	    fi
672	    prev="$cmd"
673	  done
674
675	  if test "$prev" != 'sed 50q "$0"'; then
676	    echo_test_string=`eval $prev`
677	    export echo_test_string
678	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
679	  else
680	    # Oops.  We lost completely, so just stick with echo.
681	    ECHO=echo
682	  fi
683        fi
684      fi
685    fi
686  fi
687fi
688
689# Copy echo and quote the copy suitably for passing to libtool from
690# the Makefile, instead of quoting the original, which is used later.
691lt_ECHO=$ECHO
692if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
693   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
694fi
695
696
697
698
699test -n "$DJDIR" || exec 7<&0 </dev/null
700exec 6>&1
701
702# Name of the host.
703# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704# so uname gets run too.
705ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
707#
708# Initializations.
709#
710ac_default_prefix=/usr/local
711ac_clean_files=
712ac_config_libobj_dir=.
713LIBOBJS=
714cross_compiling=no
715subdirs=
716MFLAGS=
717MAKEFLAGS=
718
719# Identity of this package.
720PACKAGE_NAME='gutenprint'
721PACKAGE_TARNAME='gutenprint'
722PACKAGE_VERSION='5.2.7'
723PACKAGE_STRING='gutenprint 5.2.7'
724PACKAGE_BUGREPORT='gimp-print-devel@lists.sourceforge.net'
725PACKAGE_URL=''
726
727ac_unique_file="src/main/print-vars.c"
728# Factoring default headers for most tests.
729ac_includes_default="\
730#include <stdio.h>
731#ifdef HAVE_SYS_TYPES_H
732# include <sys/types.h>
733#endif
734#ifdef HAVE_SYS_STAT_H
735# include <sys/stat.h>
736#endif
737#ifdef STDC_HEADERS
738# include <stdlib.h>
739# include <stddef.h>
740#else
741# ifdef HAVE_STDLIB_H
742#  include <stdlib.h>
743# endif
744#endif
745#ifdef HAVE_STRING_H
746# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747#  include <memory.h>
748# endif
749# include <string.h>
750#endif
751#ifdef HAVE_STRINGS_H
752# include <strings.h>
753#endif
754#ifdef HAVE_INTTYPES_H
755# include <inttypes.h>
756#endif
757#ifdef HAVE_STDINT_H
758# include <stdint.h>
759#endif
760#ifdef HAVE_UNISTD_H
761# include <unistd.h>
762#endif"
763
764gt_needs=
765ac_subst_vars='LTALLOCA
766am__EXEEXT_FALSE
767am__EXEEXT_TRUE
768LTLIBOBJS
769LIBOBJS
770BUILD_CUPS_PPDS
771WHICH_PPDS
772PLUG_IN_PATH
773MAINTAINER_CFLAGS
774LIBREADLINE_DEPS
775gutenprintui2_libdeps
776gutenprintui2_libs
777gutenprintui2_cflags
778gutenprint_libdeps
779gutenprint_libs
780gutenprint_cflags
781GUTENPRINTUI2_VERSION
782GUTENPRINTUI2_LIBDEPS
783GUTENPRINTUI2_LIBS
784GUTENPRINTUI2_CFLAGS
785GUTENPRINT_LIBDEPS
786GUTENPRINT_LIBS
787GUTENPRINT_CFLAGS
788gimp2_plug_indir
789RM
790IJS_LIBS
791IJS_CFLAGS
792GENPPD_LIBS
793CUPS_PPD_PS_LEVEL
794CUPS_LIBS
795CUPS_CFLAGS
796cups_conf_serverroot
797cups_conf_serverbin
798cups_conf_datadir
799cups_sbindir
800cups_bindir
801cups_exec_prefix
802cups_prefix
803RELEASE_DATE
804BUILD_GENPPD_STATIC_FALSE
805BUILD_GENPPD_STATIC_TRUE
806BUILD_MODULES_FALSE
807BUILD_MODULES_TRUE
808INSTALL_USER_GUIDE_FALSE
809INSTALL_USER_GUIDE_TRUE
810INSTALL_SAMPLES_FALSE
811INSTALL_SAMPLES_TRUE
812BUILD_GIMP2_AS_GUTENPRINT_FALSE
813BUILD_GIMP2_AS_GUTENPRINT_TRUE
814BUILD_GIMP2_FALSE
815BUILD_GIMP2_TRUE
816BUILD_LIBGUTENPRINTUI2_FALSE
817BUILD_LIBGUTENPRINTUI2_TRUE
818BUILD_TESTPATTERN_FALSE
819BUILD_TESTPATTERN_TRUE
820BUILD_TEST_FALSE
821BUILD_TEST_TRUE
822BUILD_ESCPUTIL_FALSE
823BUILD_ESCPUTIL_TRUE
824USE_LEVEL3_PS_FALSE
825USE_LEVEL3_PS_TRUE
826BUILD_SIMPLIFIED_CUPS_PPDS_FALSE
827BUILD_SIMPLIFIED_CUPS_PPDS_TRUE
828BUILD_GLOBALIZED_CUPS_PPDS_FALSE
829BUILD_GLOBALIZED_CUPS_PPDS_TRUE
830BUILD_TRANSLATED_CUPS_PPDS_FALSE
831BUILD_TRANSLATED_CUPS_PPDS_TRUE
832CUPS_PPDS_AT_TOP_LEVEL_FALSE
833CUPS_PPDS_AT_TOP_LEVEL_TRUE
834BUILD_CUPS_PPDS_FALSE
835BUILD_CUPS_PPDS_TRUE
836BUILD_CUPS_1_2_FALSE
837BUILD_CUPS_1_2_TRUE
838BUILD_CUPS_FALSE
839BUILD_CUPS_TRUE
840BUILD_GHOSTSCRIPT_FALSE
841BUILD_GHOSTSCRIPT_TRUE
842BUILD_FOOMATIC_3_FALSE
843BUILD_FOOMATIC_3_TRUE
844BUILD_FOOMATIC_FALSE
845BUILD_FOOMATIC_TRUE
846GNUCFLAGS
847FOOMATIC_KITLOAD
848DIALOG
849DOXYGEN
850DB2HTML
851DB2PS
852DVIPDF
853DB2PDF
854DVIPS
855TEXI2HTML
856CONVERT
857GLIB_MKENUMS
858PERL
859FIND
860TRUE
861TEST
862YFLAGS
863YACC
864LEXLIB
865LEX_OUTPUT_ROOT
866LEX
867GIMP2_LIBS
868GIMP2_CFLAGS
869GTK2_LIBS
870GTK2_CFLAGS
871PKG_CONFIG
872GIMPTOOL2_CHECK
873IJS_CONFIG
874FOOMATIC_PPDFILE
875FOOMATIC_CONFIGURE
876USE_NLS_FALSE
877USE_NLS_TRUE
878POSUB
879LTLIBINTL
880LIBINTL
881INTLLIBS
882LTLIBICONV
883LIBICONV
884INTL_MACOSX_LIBS
885MSGMERGE
886XGETTEXT_015
887XGETTEXT
888GMSGFMT_015
889MSGFMT_015
890GMSGFMT
891MSGFMT
892USE_NLS
893CUPS_CONFIG
894MAINT
895MAINTAINER_MODE_FALSE
896MAINTAINER_MODE_TRUE
897LIBTOOL_DEPS
898CPP
899OTOOL64
900OTOOL
901LIPO
902NMEDIT
903DSYMUTIL
904lt_ECHO
905RANLIB
906AR
907OBJDUMP
908LN_S
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LD
913FGREP
914EGREP
915GREP
916SED
917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
920AMDEPBACKSLASH
921AMDEP_FALSE
922AMDEP_TRUE
923am__quote
924am__include
925DEPDIR
926OBJEXT
927EXEEXT
928ac_ct_CC
929CPPFLAGS
930LDFLAGS
931CFLAGS
932CC
933host_os
934host_vendor
935host_cpu
936host
937build_os
938build_vendor
939build_cpu
940build
941LIBTOOL
942ALL_LINGUAS
943am__untar
944am__tar
945AMTAR
946am__leading_dot
947SET_MAKE
948AWK
949mkdir_p
950MKDIR_P
951INSTALL_STRIP_PROGRAM
952STRIP
953install_sh
954MAKEINFO
955AUTOHEADER
956AUTOMAKE
957AUTOCONF
958ACLOCAL
959VERSION
960PACKAGE
961CYGPATH_W
962am__isrc
963INSTALL_DATA
964INSTALL_SCRIPT
965INSTALL_PROGRAM
966GUTENPRINTUI2_BINARY_AGE
967GUTENPRINTUI2_INTERFACE_AGE
968GUTENPRINTUI2_CURRENT_INTERFACE
969GUTENPRINT_VERSION
970GUTENPRINT_BINARY_AGE
971GUTENPRINT_INTERFACE_AGE
972GUTENPRINT_CURRENT_INTERFACE
973GUTENPRINT_MICRO_VERSION
974GUTENPRINT_MINOR_VERSION
975GUTENPRINT_MAJOR_VERSION
976target_alias
977host_alias
978build_alias
979LIBS
980ECHO_T
981ECHO_N
982ECHO_C
983DEFS
984mandir
985localedir
986libdir
987psdir
988pdfdir
989dvidir
990htmldir
991infodir
992docdir
993oldincludedir
994includedir
995localstatedir
996sharedstatedir
997sysconfdir
998datadir
999datarootdir
1000libexecdir
1001sbindir
1002bindir
1003program_transform_name
1004prefix
1005exec_prefix
1006PACKAGE_URL
1007PACKAGE_BUGREPORT
1008PACKAGE_STRING
1009PACKAGE_VERSION
1010PACKAGE_TARNAME
1011PACKAGE_NAME
1012PATH_SEPARATOR
1013SHELL'
1014ac_subst_files=''
1015ac_user_opts='
1016enable_option_checking
1017enable_static
1018enable_shared
1019with_pic
1020enable_fast_install
1021enable_dependency_tracking
1022with_gnu_ld
1023enable_libtool_lock
1024enable_maintainer_mode
1025with_cups
1026enable_nls
1027enable_rpath
1028with_libiconv_prefix
1029with_libintl_prefix
1030enable_nls_macosx
1031enable_cups_ppds
1032enable_cups_1_2_enhancements
1033enable_translated_cups_ppds
1034enable_globalized_cups_ppds
1035enable_simplified_cups_ppds
1036enable_cups_ppds_at_top_level
1037enable_cups_level3_ppds
1038enable_static_genppd
1039with_foomatic
1040with_foomatic3
1041with_ghostscript
1042with_modules
1043enable_debug
1044enable_profile
1045with_readline
1046with_gimp2
1047with_gimp2_as_gutenprint
1048enable_libgutenprintui2
1049enable_samples
1050enable_escputil
1051enable_test
1052enable_testpattern
1053enable_user_install
1054with_cups_nickname
1055with_archflags
1056'
1057      ac_precious_vars='build_alias
1058host_alias
1059target_alias
1060CC
1061CFLAGS
1062LDFLAGS
1063LIBS
1064CPPFLAGS
1065CPP
1066PKG_CONFIG
1067GTK2_CFLAGS
1068GTK2_LIBS
1069GIMP2_CFLAGS
1070GIMP2_LIBS
1071YACC
1072YFLAGS'
1073
1074
1075# Initialize some variables set by options.
1076ac_init_help=
1077ac_init_version=false
1078ac_unrecognized_opts=
1079ac_unrecognized_sep=
1080# The variables have the same names as the options, with
1081# dashes changed to underlines.
1082cache_file=/dev/null
1083exec_prefix=NONE
1084no_create=
1085no_recursion=
1086prefix=NONE
1087program_prefix=NONE
1088program_suffix=NONE
1089program_transform_name=s,x,x,
1090silent=
1091site=
1092srcdir=
1093verbose=
1094x_includes=NONE
1095x_libraries=NONE
1096
1097# Installation directory options.
1098# These are left unexpanded so users can "make install exec_prefix=/foo"
1099# and all the variables that are supposed to be based on exec_prefix
1100# by default will actually change.
1101# Use braces instead of parens because sh, perl, etc. also accept them.
1102# (The list follows the same order as the GNU Coding Standards.)
1103bindir='${exec_prefix}/bin'
1104sbindir='${exec_prefix}/sbin'
1105libexecdir='${exec_prefix}/libexec'
1106datarootdir='${prefix}/share'
1107datadir='${datarootdir}'
1108sysconfdir='${prefix}/etc'
1109sharedstatedir='${prefix}/com'
1110localstatedir='${prefix}/var'
1111includedir='${prefix}/include'
1112oldincludedir='/usr/include'
1113docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1114infodir='${datarootdir}/info'
1115htmldir='${docdir}'
1116dvidir='${docdir}'
1117pdfdir='${docdir}'
1118psdir='${docdir}'
1119libdir='${exec_prefix}/lib'
1120localedir='${datarootdir}/locale'
1121mandir='${datarootdir}/man'
1122
1123ac_prev=
1124ac_dashdash=
1125for ac_option
1126do
1127  # If the previous option needs an argument, assign it.
1128  if test -n "$ac_prev"; then
1129    eval $ac_prev=\$ac_option
1130    ac_prev=
1131    continue
1132  fi
1133
1134  case $ac_option in
1135  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136  *)	ac_optarg=yes ;;
1137  esac
1138
1139  # Accept the important Cygnus configure options, so we can diagnose typos.
1140
1141  case $ac_dashdash$ac_option in
1142  --)
1143    ac_dashdash=yes ;;
1144
1145  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1146    ac_prev=bindir ;;
1147  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1148    bindir=$ac_optarg ;;
1149
1150  -build | --build | --buil | --bui | --bu)
1151    ac_prev=build_alias ;;
1152  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1153    build_alias=$ac_optarg ;;
1154
1155  -cache-file | --cache-file | --cache-fil | --cache-fi \
1156  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1157    ac_prev=cache_file ;;
1158  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1159  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1160    cache_file=$ac_optarg ;;
1161
1162  --config-cache | -C)
1163    cache_file=config.cache ;;
1164
1165  -datadir | --datadir | --datadi | --datad)
1166    ac_prev=datadir ;;
1167  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1168    datadir=$ac_optarg ;;
1169
1170  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1171  | --dataroo | --dataro | --datar)
1172    ac_prev=datarootdir ;;
1173  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1174  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1175    datarootdir=$ac_optarg ;;
1176
1177  -disable-* | --disable-*)
1178    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1179    # Reject names that are not valid shell variable names.
1180    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181      as_fn_error "invalid feature name: $ac_useropt"
1182    ac_useropt_orig=$ac_useropt
1183    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184    case $ac_user_opts in
1185      *"
1186"enable_$ac_useropt"
1187"*) ;;
1188      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1189	 ac_unrecognized_sep=', ';;
1190    esac
1191    eval enable_$ac_useropt=no ;;
1192
1193  -docdir | --docdir | --docdi | --doc | --do)
1194    ac_prev=docdir ;;
1195  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196    docdir=$ac_optarg ;;
1197
1198  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1199    ac_prev=dvidir ;;
1200  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201    dvidir=$ac_optarg ;;
1202
1203  -enable-* | --enable-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error "invalid feature 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"enable_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval enable_$ac_useropt=\$ac_optarg ;;
1218
1219  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221  | --exec | --exe | --ex)
1222    ac_prev=exec_prefix ;;
1223  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1224  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1225  | --exec=* | --exe=* | --ex=*)
1226    exec_prefix=$ac_optarg ;;
1227
1228  -gas | --gas | --ga | --g)
1229    # Obsolete; use --with-gas.
1230    with_gas=yes ;;
1231
1232  -help | --help | --hel | --he | -h)
1233    ac_init_help=long ;;
1234  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1235    ac_init_help=recursive ;;
1236  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1237    ac_init_help=short ;;
1238
1239  -host | --host | --hos | --ho)
1240    ac_prev=host_alias ;;
1241  -host=* | --host=* | --hos=* | --ho=*)
1242    host_alias=$ac_optarg ;;
1243
1244  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1245    ac_prev=htmldir ;;
1246  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1247  | --ht=*)
1248    htmldir=$ac_optarg ;;
1249
1250  -includedir | --includedir | --includedi | --included | --include \
1251  | --includ | --inclu | --incl | --inc)
1252    ac_prev=includedir ;;
1253  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1254  | --includ=* | --inclu=* | --incl=* | --inc=*)
1255    includedir=$ac_optarg ;;
1256
1257  -infodir | --infodir | --infodi | --infod | --info | --inf)
1258    ac_prev=infodir ;;
1259  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1260    infodir=$ac_optarg ;;
1261
1262  -libdir | --libdir | --libdi | --libd)
1263    ac_prev=libdir ;;
1264  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1265    libdir=$ac_optarg ;;
1266
1267  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1268  | --libexe | --libex | --libe)
1269    ac_prev=libexecdir ;;
1270  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1271  | --libexe=* | --libex=* | --libe=*)
1272    libexecdir=$ac_optarg ;;
1273
1274  -localedir | --localedir | --localedi | --localed | --locale)
1275    ac_prev=localedir ;;
1276  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1277    localedir=$ac_optarg ;;
1278
1279  -localstatedir | --localstatedir | --localstatedi | --localstated \
1280  | --localstate | --localstat | --localsta | --localst | --locals)
1281    ac_prev=localstatedir ;;
1282  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1283  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1284    localstatedir=$ac_optarg ;;
1285
1286  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1287    ac_prev=mandir ;;
1288  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1289    mandir=$ac_optarg ;;
1290
1291  -nfp | --nfp | --nf)
1292    # Obsolete; use --without-fp.
1293    with_fp=no ;;
1294
1295  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296  | --no-cr | --no-c | -n)
1297    no_create=yes ;;
1298
1299  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1300  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1301    no_recursion=yes ;;
1302
1303  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1304  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1305  | --oldin | --oldi | --old | --ol | --o)
1306    ac_prev=oldincludedir ;;
1307  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1308  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1309  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1310    oldincludedir=$ac_optarg ;;
1311
1312  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1313    ac_prev=prefix ;;
1314  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1315    prefix=$ac_optarg ;;
1316
1317  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1318  | --program-pre | --program-pr | --program-p)
1319    ac_prev=program_prefix ;;
1320  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1321  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1322    program_prefix=$ac_optarg ;;
1323
1324  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1325  | --program-suf | --program-su | --program-s)
1326    ac_prev=program_suffix ;;
1327  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1328  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1329    program_suffix=$ac_optarg ;;
1330
1331  -program-transform-name | --program-transform-name \
1332  | --program-transform-nam | --program-transform-na \
1333  | --program-transform-n | --program-transform- \
1334  | --program-transform | --program-transfor \
1335  | --program-transfo | --program-transf \
1336  | --program-trans | --program-tran \
1337  | --progr-tra | --program-tr | --program-t)
1338    ac_prev=program_transform_name ;;
1339  -program-transform-name=* | --program-transform-name=* \
1340  | --program-transform-nam=* | --program-transform-na=* \
1341  | --program-transform-n=* | --program-transform-=* \
1342  | --program-transform=* | --program-transfor=* \
1343  | --program-transfo=* | --program-transf=* \
1344  | --program-trans=* | --program-tran=* \
1345  | --progr-tra=* | --program-tr=* | --program-t=*)
1346    program_transform_name=$ac_optarg ;;
1347
1348  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1349    ac_prev=pdfdir ;;
1350  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1351    pdfdir=$ac_optarg ;;
1352
1353  -psdir | --psdir | --psdi | --psd | --ps)
1354    ac_prev=psdir ;;
1355  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1356    psdir=$ac_optarg ;;
1357
1358  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359  | -silent | --silent | --silen | --sile | --sil)
1360    silent=yes ;;
1361
1362  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1363    ac_prev=sbindir ;;
1364  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1365  | --sbi=* | --sb=*)
1366    sbindir=$ac_optarg ;;
1367
1368  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1369  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1370  | --sharedst | --shareds | --shared | --share | --shar \
1371  | --sha | --sh)
1372    ac_prev=sharedstatedir ;;
1373  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1374  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1375  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1376  | --sha=* | --sh=*)
1377    sharedstatedir=$ac_optarg ;;
1378
1379  -site | --site | --sit)
1380    ac_prev=site ;;
1381  -site=* | --site=* | --sit=*)
1382    site=$ac_optarg ;;
1383
1384  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1385    ac_prev=srcdir ;;
1386  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1387    srcdir=$ac_optarg ;;
1388
1389  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1390  | --syscon | --sysco | --sysc | --sys | --sy)
1391    ac_prev=sysconfdir ;;
1392  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1393  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1394    sysconfdir=$ac_optarg ;;
1395
1396  -target | --target | --targe | --targ | --tar | --ta | --t)
1397    ac_prev=target_alias ;;
1398  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1399    target_alias=$ac_optarg ;;
1400
1401  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1402    verbose=yes ;;
1403
1404  -version | --version | --versio | --versi | --vers | -V)
1405    ac_init_version=: ;;
1406
1407  -with-* | --with-*)
1408    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1409    # Reject names that are not valid shell variable names.
1410    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411      as_fn_error "invalid package name: $ac_useropt"
1412    ac_useropt_orig=$ac_useropt
1413    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414    case $ac_user_opts in
1415      *"
1416"with_$ac_useropt"
1417"*) ;;
1418      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1419	 ac_unrecognized_sep=', ';;
1420    esac
1421    eval with_$ac_useropt=\$ac_optarg ;;
1422
1423  -without-* | --without-*)
1424    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1425    # Reject names that are not valid shell variable names.
1426    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427      as_fn_error "invalid package name: $ac_useropt"
1428    ac_useropt_orig=$ac_useropt
1429    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430    case $ac_user_opts in
1431      *"
1432"with_$ac_useropt"
1433"*) ;;
1434      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435	 ac_unrecognized_sep=', ';;
1436    esac
1437    eval with_$ac_useropt=no ;;
1438
1439  --x)
1440    # Obsolete; use --with-x.
1441    with_x=yes ;;
1442
1443  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1444  | --x-incl | --x-inc | --x-in | --x-i)
1445    ac_prev=x_includes ;;
1446  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1447  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1448    x_includes=$ac_optarg ;;
1449
1450  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1451  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1452    ac_prev=x_libraries ;;
1453  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1454  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1455    x_libraries=$ac_optarg ;;
1456
1457  -*) as_fn_error "unrecognized option: \`$ac_option'
1458Try \`$0 --help' for more information."
1459    ;;
1460
1461  *=*)
1462    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1463    # Reject names that are not valid shell variable names.
1464    case $ac_envvar in #(
1465      '' | [0-9]* | *[!_$as_cr_alnum]* )
1466      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1467    esac
1468    eval $ac_envvar=\$ac_optarg
1469    export $ac_envvar ;;
1470
1471  *)
1472    # FIXME: should be removed in autoconf 3.0.
1473    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1475      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1476    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1477    ;;
1478
1479  esac
1480done
1481
1482if test -n "$ac_prev"; then
1483  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1484  as_fn_error "missing argument to $ac_option"
1485fi
1486
1487if test -n "$ac_unrecognized_opts"; then
1488  case $enable_option_checking in
1489    no) ;;
1490    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1491    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1492  esac
1493fi
1494
1495# Check all directory arguments for consistency.
1496for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1497		datadir sysconfdir sharedstatedir localstatedir includedir \
1498		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1499		libdir localedir mandir
1500do
1501  eval ac_val=\$$ac_var
1502  # Remove trailing slashes.
1503  case $ac_val in
1504    */ )
1505      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1506      eval $ac_var=\$ac_val;;
1507  esac
1508  # Be sure to have absolute directory names.
1509  case $ac_val in
1510    [\\/$]* | ?:[\\/]* )  continue;;
1511    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1512  esac
1513  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1514done
1515
1516# There might be people who depend on the old broken behavior: `$host'
1517# used to hold the argument of --host etc.
1518# FIXME: To remove some day.
1519build=$build_alias
1520host=$host_alias
1521target=$target_alias
1522
1523# FIXME: To remove some day.
1524if test "x$host_alias" != x; then
1525  if test "x$build_alias" = x; then
1526    cross_compiling=maybe
1527    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1528    If a cross compiler is detected then cross compile mode will be used." >&2
1529  elif test "x$build_alias" != "x$host_alias"; then
1530    cross_compiling=yes
1531  fi
1532fi
1533
1534ac_tool_prefix=
1535test -n "$host_alias" && ac_tool_prefix=$host_alias-
1536
1537test "$silent" = yes && exec 6>/dev/null
1538
1539
1540ac_pwd=`pwd` && test -n "$ac_pwd" &&
1541ac_ls_di=`ls -di .` &&
1542ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1543  as_fn_error "working directory cannot be determined"
1544test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1545  as_fn_error "pwd does not report name of working directory"
1546
1547
1548# Find the source files, if location was not specified.
1549if test -z "$srcdir"; then
1550  ac_srcdir_defaulted=yes
1551  # Try the directory containing this script, then the parent directory.
1552  ac_confdir=`$as_dirname -- "$as_myself" ||
1553$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1554	 X"$as_myself" : 'X\(//\)[^/]' \| \
1555	 X"$as_myself" : 'X\(//\)$' \| \
1556	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1557$as_echo X"$as_myself" |
1558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1559	    s//\1/
1560	    q
1561	  }
1562	  /^X\(\/\/\)[^/].*/{
1563	    s//\1/
1564	    q
1565	  }
1566	  /^X\(\/\/\)$/{
1567	    s//\1/
1568	    q
1569	  }
1570	  /^X\(\/\).*/{
1571	    s//\1/
1572	    q
1573	  }
1574	  s/.*/./; q'`
1575  srcdir=$ac_confdir
1576  if test ! -r "$srcdir/$ac_unique_file"; then
1577    srcdir=..
1578  fi
1579else
1580  ac_srcdir_defaulted=no
1581fi
1582if test ! -r "$srcdir/$ac_unique_file"; then
1583  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1584  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1585fi
1586ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1587ac_abs_confdir=`(
1588	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1589	pwd)`
1590# When building in place, set srcdir=.
1591if test "$ac_abs_confdir" = "$ac_pwd"; then
1592  srcdir=.
1593fi
1594# Remove unnecessary trailing slashes from srcdir.
1595# Double slashes in file names in object file debugging info
1596# mess up M-x gdb in Emacs.
1597case $srcdir in
1598*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1599esac
1600for ac_var in $ac_precious_vars; do
1601  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1602  eval ac_env_${ac_var}_value=\$${ac_var}
1603  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1604  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1605done
1606
1607#
1608# Report the --help message.
1609#
1610if test "$ac_init_help" = "long"; then
1611  # Omit some internal or obsolete options to make the list less imposing.
1612  # This message is too long to be a string in the A/UX 3.1 sh.
1613  cat <<_ACEOF
1614\`configure' configures gutenprint 5.2.7 to adapt to many kinds of systems.
1615
1616Usage: $0 [OPTION]... [VAR=VALUE]...
1617
1618To assign environment variables (e.g., CC, CFLAGS...), specify them as
1619VAR=VALUE.  See below for descriptions of some of the useful variables.
1620
1621Defaults for the options are specified in brackets.
1622
1623Configuration:
1624  -h, --help              display this help and exit
1625      --help=short        display options specific to this package
1626      --help=recursive    display the short help of all the included packages
1627  -V, --version           display version information and exit
1628  -q, --quiet, --silent   do not print \`checking...' messages
1629      --cache-file=FILE   cache test results in FILE [disabled]
1630  -C, --config-cache      alias for \`--cache-file=config.cache'
1631  -n, --no-create         do not create output files
1632      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1633
1634Installation directories:
1635  --prefix=PREFIX         install architecture-independent files in PREFIX
1636                          [$ac_default_prefix]
1637  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1638                          [PREFIX]
1639
1640By default, \`make install' will install all the files in
1641\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1642an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1643for instance \`--prefix=\$HOME'.
1644
1645For better control, use the options below.
1646
1647Fine tuning of the installation directories:
1648  --bindir=DIR            user executables [EPREFIX/bin]
1649  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1650  --libexecdir=DIR        program executables [EPREFIX/libexec]
1651  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1652  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1653  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1654  --libdir=DIR            object code libraries [EPREFIX/lib]
1655  --includedir=DIR        C header files [PREFIX/include]
1656  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1657  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1658  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1659  --infodir=DIR           info documentation [DATAROOTDIR/info]
1660  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1661  --mandir=DIR            man documentation [DATAROOTDIR/man]
1662  --docdir=DIR            documentation root [DATAROOTDIR/doc/gutenprint]
1663  --htmldir=DIR           html documentation [DOCDIR]
1664  --dvidir=DIR            dvi documentation [DOCDIR]
1665  --pdfdir=DIR            pdf documentation [DOCDIR]
1666  --psdir=DIR             ps documentation [DOCDIR]
1667_ACEOF
1668
1669  cat <<\_ACEOF
1670
1671Program names:
1672  --program-prefix=PREFIX            prepend PREFIX to installed program names
1673  --program-suffix=SUFFIX            append SUFFIX to installed program names
1674  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1675
1676System types:
1677  --build=BUILD     configure for building on BUILD [guessed]
1678  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1679_ACEOF
1680fi
1681
1682if test -n "$ac_init_help"; then
1683  case $ac_init_help in
1684     short | recursive ) echo "Configuration of gutenprint 5.2.7:";;
1685   esac
1686  cat <<\_ACEOF
1687
1688Optional Features:
1689  --disable-option-checking  ignore unrecognized --enable/--with options
1690  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1691  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1692  --enable-static[=PKGS]  build static libraries [default=yes]
1693  --enable-shared[=PKGS]  build shared libraries [default=yes]
1694  --enable-fast-install[=PKGS]
1695                          optimize for fast installation [default=yes]
1696  --disable-dependency-tracking  speeds up one-time build
1697  --enable-dependency-tracking   do not reject slow dependency extractors
1698  --disable-libtool-lock  avoid locking (might break parallel builds)
1699  --enable-maintainer-mode  enable make rules and dependencies not useful
1700			  (and sometimes confusing) to the casual installer
1701  --disable-nls           do not use Native Language Support
1702  --disable-rpath         do not hardcode runtime library paths
1703  --enable-nls-macosx     build CUPS PPD files [(automatic)]
1704  --enable-cups-ppds      build CUPS PPD files [(automatic)]
1705  --enable-cups-1_2-enhancements
1706                          build CUPS 1.2 enhancements [(automatic)]
1707  --enable-translated-cups-ppds
1708                          build translated CUPS PPD files [(automatic)]
1709  --enable-globalized-cups-ppds
1710                          build globalized CUPS PPD files [(automatic)]
1711  --enable-simplified-cups-ppds
1712                          build simplified CUPS PPD files (options: yes, no,
1713                          only) [no]
1714  --enable-cups-ppds-at-top-level
1715                          place CUPS PPD files at top level [no]
1716  --enable-cups-level3-ppds
1717                          generate PostScript level 3 PPD files [(automatic)]
1718  --enable-static-genppd  build a statically-linked cups-genppd and
1719                          rastertogutenprint. WARNING: Please read the README
1720                          and NEWS (release notes) CAREFULLY before using
1721                          --disable-static-genppd! [(automatic)]
1722  --enable-debug          turn on debugging in build [no]
1723  --enable-profile        turn on profiling in build [no]
1724  --enable-libgutenprintui2
1725                          build Gutenprint GTK+-2.0 user interface library
1726                          [(automatic)]
1727  --enable-samples        install sample images [yes]
1728  --enable-escputil       build escputil [yes]
1729  --enable-test           build test programs [yes]
1730  --enable-testpattern    build testpattern generator [(automatic)]
1731  --enable-user-install   install GIMP plugin in home directory [no]
1732
1733Optional Packages:
1734  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1735  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1736  --with-pic              try to use only PIC/non-PIC objects [default=use
1737                          both]
1738  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1739  --with-cups=PREFIX      whether to build CUPS driver (default PREFIX=/usr)
1740                          [(automatic)]
1741  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1742  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1743  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1744  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1745  --without-libintl-prefix     don't search for libintl in includedir and libdir
1746  --with-foomatic         build foomatic data files [(automatic)]
1747  --with-foomatic3        make use of foomatic 3 extra features [(automatic)]
1748  --with-ghostscript      build Ghostscript driver [(automatic)]
1749  --with-modules          enable loadable modules (options: ltdl, dlopen,
1750                          static) [(automatic)]
1751  --with-readline         use readline (default tries -lncurses, -lcurses,
1752                          -ltermcap) [yes]
1753  --with-gimp2            build GIMP 2.x Print plugin [(automatic)]
1754  --with-gimp2-as-gutenprint
1755                          name GIMP 2.x Print plugin gutenprint (requires GIMP
1756                          2.2; normally used with GIMP 2.4 or above)
1757                          [(automatic)]
1758  --with-cups-nickname="nickname suffix"
1759                          Suffix to add to PPD NickName, default=" - CUPS+Gutenprint v"
1760  --with-archflags="..."  additional options for CFLAGS and LDFLAGS
1761
1762Some influential environment variables:
1763  CC          C compiler command
1764  CFLAGS      C compiler flags
1765  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1766              nonstandard directory <lib dir>
1767  LIBS        libraries to pass to the linker, e.g. -l<library>
1768  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1769              you have headers in a nonstandard directory <include dir>
1770  CPP         C preprocessor
1771  PKG_CONFIG  path to pkg-config utility
1772  GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1773  GTK2_LIBS   linker flags for GTK2, overriding pkg-config
1774  GIMP2_CFLAGS
1775              C compiler flags for GIMP2, overriding pkg-config
1776  GIMP2_LIBS  linker flags for GIMP2, overriding pkg-config
1777  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1778              the first program found out of: `bison -y', `byacc', `yacc'.
1779  YFLAGS      The list of arguments that will be passed by default to $YACC.
1780              This script will default YFLAGS to the empty string to avoid a
1781              default value of `-d' given by some make applications.
1782
1783Use these variables to override the choices made by `configure' or to help
1784it to find libraries and programs with nonstandard names/locations.
1785
1786Report bugs to <gimp-print-devel@lists.sourceforge.net>.
1787_ACEOF
1788ac_status=$?
1789fi
1790
1791if test "$ac_init_help" = "recursive"; then
1792  # If there are subdirs, report their specific --help.
1793  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794    test -d "$ac_dir" ||
1795      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1796      continue
1797    ac_builddir=.
1798
1799case "$ac_dir" in
1800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1801*)
1802  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803  # A ".." for each directory in $ac_dir_suffix.
1804  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805  case $ac_top_builddir_sub in
1806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808  esac ;;
1809esac
1810ac_abs_top_builddir=$ac_pwd
1811ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812# for backward compatibility:
1813ac_top_builddir=$ac_top_build_prefix
1814
1815case $srcdir in
1816  .)  # We are building in place.
1817    ac_srcdir=.
1818    ac_top_srcdir=$ac_top_builddir_sub
1819    ac_abs_top_srcdir=$ac_pwd ;;
1820  [\\/]* | ?:[\\/]* )  # Absolute name.
1821    ac_srcdir=$srcdir$ac_dir_suffix;
1822    ac_top_srcdir=$srcdir
1823    ac_abs_top_srcdir=$srcdir ;;
1824  *) # Relative name.
1825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826    ac_top_srcdir=$ac_top_build_prefix$srcdir
1827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1828esac
1829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1830
1831    cd "$ac_dir" || { ac_status=$?; continue; }
1832    # Check for guested configure.
1833    if test -f "$ac_srcdir/configure.gnu"; then
1834      echo &&
1835      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836    elif test -f "$ac_srcdir/configure"; then
1837      echo &&
1838      $SHELL "$ac_srcdir/configure" --help=recursive
1839    else
1840      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1841    fi || ac_status=$?
1842    cd "$ac_pwd" || { ac_status=$?; break; }
1843  done
1844fi
1845
1846test -n "$ac_init_help" && exit $ac_status
1847if $ac_init_version; then
1848  cat <<\_ACEOF
1849gutenprint configure 5.2.7
1850generated by GNU Autoconf 2.65
1851
1852Copyright (C) 2009 Free Software Foundation, Inc.
1853This configure script is free software; the Free Software Foundation
1854gives unlimited permission to copy, distribute and modify it.
1855
1856
1857Parts of this configure script come from the 'configure.ac' file, and
1858are not based on freely-redistributable m4 macros; you can redistribute
1859them and/or modify them under the terms of the GNU General Public
1860as published by the Free Software Foundation; either version 2, or (at
1861your option) any later version.
1862
1863This program is distributed in the hope that it will be useful,
1864but WITHOUT ANY WARRANTY; without even the implied warranty of
1865MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1866GNU General Public License for more details.
1867
1868You should have received a copy of the GNU General Public License
1869along with this program; if not, write to the Free Software
1870Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1871
1872_ACEOF
1873  exit
1874fi
1875
1876## ------------------------ ##
1877## Autoconf initialization. ##
1878## ------------------------ ##
1879
1880# ac_fn_c_try_compile LINENO
1881# --------------------------
1882# Try to compile conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_c_try_compile ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  rm -f conftest.$ac_objext
1887  if { { ac_try="$ac_compile"
1888case "(($ac_try" in
1889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890  *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894  (eval "$ac_compile") 2>conftest.err
1895  ac_status=$?
1896  if test -s conftest.err; then
1897    grep -v '^ *+' conftest.err >conftest.er1
1898    cat conftest.er1 >&5
1899    mv -f conftest.er1 conftest.err
1900  fi
1901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902  test $ac_status = 0; } && {
1903	 test -z "$ac_c_werror_flag" ||
1904	 test ! -s conftest.err
1905       } && test -s conftest.$ac_objext; then :
1906  ac_retval=0
1907else
1908  $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911	ac_retval=1
1912fi
1913  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914  as_fn_set_status $ac_retval
1915
1916} # ac_fn_c_try_compile
1917
1918# ac_fn_c_try_link LINENO
1919# -----------------------
1920# Try to link conftest.$ac_ext, and return whether this succeeded.
1921ac_fn_c_try_link ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  rm -f conftest.$ac_objext conftest$ac_exeext
1925  if { { ac_try="$ac_link"
1926case "(($ac_try" in
1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928  *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932  (eval "$ac_link") 2>conftest.err
1933  ac_status=$?
1934  if test -s conftest.err; then
1935    grep -v '^ *+' conftest.err >conftest.er1
1936    cat conftest.er1 >&5
1937    mv -f conftest.er1 conftest.err
1938  fi
1939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940  test $ac_status = 0; } && {
1941	 test -z "$ac_c_werror_flag" ||
1942	 test ! -s conftest.err
1943       } && test -s conftest$ac_exeext && {
1944	 test "$cross_compiling" = yes ||
1945	 $as_test_x conftest$ac_exeext
1946       }; then :
1947  ac_retval=0
1948else
1949  $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952	ac_retval=1
1953fi
1954  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956  # interfere with the next link command; also delete a directory that is
1957  # left behind by Apple's compiler.  We do this before executing the actions.
1958  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960  as_fn_set_status $ac_retval
1961
1962} # ac_fn_c_try_link
1963
1964# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1965# -------------------------------------------------------
1966# Tests whether HEADER exists and can be compiled using the include files in
1967# INCLUDES, setting the cache variable VAR accordingly.
1968ac_fn_c_check_header_compile ()
1969{
1970  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972$as_echo_n "checking for $2... " >&6; }
1973if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974  $as_echo_n "(cached) " >&6
1975else
1976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$4
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982  eval "$3=yes"
1983else
1984  eval "$3=no"
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
1993} # ac_fn_c_check_header_compile
1994
1995# ac_fn_c_try_cpp LINENO
1996# ----------------------
1997# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1998ac_fn_c_try_cpp ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  if { { ac_try="$ac_cpp conftest.$ac_ext"
2002case "(($ac_try" in
2003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004  *) ac_try_echo=$ac_try;;
2005esac
2006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007$as_echo "$ac_try_echo"; } >&5
2008  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2009  ac_status=$?
2010  if test -s conftest.err; then
2011    grep -v '^ *+' conftest.err >conftest.er1
2012    cat conftest.er1 >&5
2013    mv -f conftest.er1 conftest.err
2014  fi
2015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016  test $ac_status = 0; } >/dev/null && {
2017	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2018	 test ! -s conftest.err
2019       }; then :
2020  ac_retval=0
2021else
2022  $as_echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025    ac_retval=1
2026fi
2027  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028  as_fn_set_status $ac_retval
2029
2030} # ac_fn_c_try_cpp
2031
2032# ac_fn_c_try_run LINENO
2033# ----------------------
2034# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035# that executables *can* be run.
2036ac_fn_c_try_run ()
2037{
2038  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039  if { { ac_try="$ac_link"
2040case "(($ac_try" in
2041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042  *) ac_try_echo=$ac_try;;
2043esac
2044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045$as_echo "$ac_try_echo"; } >&5
2046  (eval "$ac_link") 2>&5
2047  ac_status=$?
2048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050  { { case "(($ac_try" in
2051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052  *) ac_try_echo=$ac_try;;
2053esac
2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055$as_echo "$ac_try_echo"; } >&5
2056  (eval "$ac_try") 2>&5
2057  ac_status=$?
2058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059  test $ac_status = 0; }; }; then :
2060  ac_retval=0
2061else
2062  $as_echo "$as_me: program exited with status $ac_status" >&5
2063       $as_echo "$as_me: failed program was:" >&5
2064sed 's/^/| /' conftest.$ac_ext >&5
2065
2066       ac_retval=$ac_status
2067fi
2068  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070  as_fn_set_status $ac_retval
2071
2072} # ac_fn_c_try_run
2073
2074# ac_fn_c_check_func LINENO FUNC VAR
2075# ----------------------------------
2076# Tests whether FUNC exists, setting the cache variable VAR accordingly
2077ac_fn_c_check_func ()
2078{
2079  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081$as_echo_n "checking for $2... " >&6; }
2082if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2083  $as_echo_n "(cached) " >&6
2084else
2085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h.  */
2087/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2088   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2089#define $2 innocuous_$2
2090
2091/* System header to define __stub macros and hopefully few prototypes,
2092    which can conflict with char $2 (); below.
2093    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2094    <limits.h> exists even on freestanding compilers.  */
2095
2096#ifdef __STDC__
2097# include <limits.h>
2098#else
2099# include <assert.h>
2100#endif
2101
2102#undef $2
2103
2104/* Override any GCC internal prototype to avoid an error.
2105   Use char because int might match the return type of a GCC
2106   builtin and then its argument prototype would still apply.  */
2107#ifdef __cplusplus
2108extern "C"
2109#endif
2110char $2 ();
2111/* The GNU C library defines this for functions which it implements
2112    to always fail with ENOSYS.  Some functions are actually named
2113    something starting with __ and the normal name is an alias.  */
2114#if defined __stub_$2 || defined __stub___$2
2115choke me
2116#endif
2117
2118int
2119main ()
2120{
2121return $2 ();
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_link "$LINENO"; then :
2127  eval "$3=yes"
2128else
2129  eval "$3=no"
2130fi
2131rm -f core conftest.err conftest.$ac_objext \
2132    conftest$ac_exeext conftest.$ac_ext
2133fi
2134eval ac_res=\$$3
2135	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136$as_echo "$ac_res" >&6; }
2137  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138
2139} # ac_fn_c_check_func
2140
2141# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2142# -------------------------------------------------------
2143# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2144# the include files in INCLUDES and setting the cache variable VAR
2145# accordingly.
2146ac_fn_c_check_header_mongrel ()
2147{
2148  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151$as_echo_n "checking for $2... " >&6; }
2152if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2153  $as_echo_n "(cached) " >&6
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158else
2159  # Is the header compilable?
2160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2161$as_echo_n "checking $2 usability... " >&6; }
2162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h.  */
2164$4
2165#include <$2>
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168  ac_header_compiler=yes
2169else
2170  ac_header_compiler=no
2171fi
2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2174$as_echo "$ac_header_compiler" >&6; }
2175
2176# Is the header present?
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2178$as_echo_n "checking $2 presence... " >&6; }
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h.  */
2181#include <$2>
2182_ACEOF
2183if ac_fn_c_try_cpp "$LINENO"; then :
2184  ac_header_preproc=yes
2185else
2186  ac_header_preproc=no
2187fi
2188rm -f conftest.err conftest.$ac_ext
2189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2190$as_echo "$ac_header_preproc" >&6; }
2191
2192# So?  What about this header?
2193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2194  yes:no: )
2195    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2196$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199    ;;
2200  no:yes:* )
2201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2202$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2203    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2204$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2206$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2207    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2208$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2210$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211( cat <<\_ASBOX
2212## ----------------------------------------------------- ##
2213## Report this to gimp-print-devel@lists.sourceforge.net ##
2214## ----------------------------------------------------- ##
2215_ASBOX
2216     ) | sed "s/^/$as_me: WARNING:     /" >&2
2217    ;;
2218esac
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220$as_echo_n "checking for $2... " >&6; }
2221if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222  $as_echo_n "(cached) " >&6
2223else
2224  eval "$3=\$ac_header_compiler"
2225fi
2226eval ac_res=\$$3
2227	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2228$as_echo "$ac_res" >&6; }
2229fi
2230  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2231
2232} # ac_fn_c_check_header_mongrel
2233
2234# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235# -------------------------------------------
2236# Tests whether TYPE exists after having included INCLUDES, setting cache
2237# variable VAR accordingly.
2238ac_fn_c_check_type ()
2239{
2240  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
2243if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2244  $as_echo_n "(cached) " >&6
2245else
2246  eval "$3=no"
2247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h.  */
2249$4
2250int
2251main ()
2252{
2253if (sizeof ($2))
2254	 return 0;
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259if ac_fn_c_try_compile "$LINENO"; then :
2260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h.  */
2262$4
2263int
2264main ()
2265{
2266if (sizeof (($2)))
2267	    return 0;
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273
2274else
2275  eval "$3=yes"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280fi
2281eval ac_res=\$$3
2282	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283$as_echo "$ac_res" >&6; }
2284  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285
2286} # ac_fn_c_check_type
2287cat >config.log <<_ACEOF
2288This file contains any messages produced by compilers while
2289running configure, to aid debugging if configure makes a mistake.
2290
2291It was created by gutenprint $as_me 5.2.7, which was
2292generated by GNU Autoconf 2.65.  Invocation command line was
2293
2294  $ $0 $@
2295
2296_ACEOF
2297exec 5>>config.log
2298{
2299cat <<_ASUNAME
2300## --------- ##
2301## Platform. ##
2302## --------- ##
2303
2304hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308uname -v = `(uname -v) 2>/dev/null || echo unknown`
2309
2310/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2312
2313/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2314/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2315/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2317/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2318/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2319/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2320
2321_ASUNAME
2322
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328    $as_echo "PATH: $as_dir"
2329  done
2330IFS=$as_save_IFS
2331
2332} >&5
2333
2334cat >&5 <<_ACEOF
2335
2336
2337## ----------- ##
2338## Core tests. ##
2339## ----------- ##
2340
2341_ACEOF
2342
2343
2344# Keep a trace of the command line.
2345# Strip out --no-create and --no-recursion so they do not pile up.
2346# Strip out --silent because we don't want to record it for future runs.
2347# Also quote any args containing shell meta-characters.
2348# Make two passes to allow for proper duplicate-argument suppression.
2349ac_configure_args=
2350ac_configure_args0=
2351ac_configure_args1=
2352ac_must_keep_next=false
2353for ac_pass in 1 2
2354do
2355  for ac_arg
2356  do
2357    case $ac_arg in
2358    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360    | -silent | --silent | --silen | --sile | --sil)
2361      continue ;;
2362    *\'*)
2363      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364    esac
2365    case $ac_pass in
2366    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367    2)
2368      as_fn_append ac_configure_args1 " '$ac_arg'"
2369      if test $ac_must_keep_next = true; then
2370	ac_must_keep_next=false # Got value, back to normal.
2371      else
2372	case $ac_arg in
2373	  *=* | --config-cache | -C | -disable-* | --disable-* \
2374	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376	  | -with-* | --with-* | -without-* | --without-* | --x)
2377	    case "$ac_configure_args0 " in
2378	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379	    esac
2380	    ;;
2381	  -* ) ac_must_keep_next=true ;;
2382	esac
2383      fi
2384      as_fn_append ac_configure_args " '$ac_arg'"
2385      ;;
2386    esac
2387  done
2388done
2389{ ac_configure_args0=; unset ac_configure_args0;}
2390{ ac_configure_args1=; unset ac_configure_args1;}
2391
2392# When interrupted or exit'd, cleanup temporary files, and complete
2393# config.log.  We remove comments because anyway the quotes in there
2394# would cause problems or look ugly.
2395# WARNING: Use '\'' to represent an apostrophe within the trap.
2396# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397trap 'exit_status=$?
2398  # Save into config.log some information that might help in debugging.
2399  {
2400    echo
2401
2402    cat <<\_ASBOX
2403## ---------------- ##
2404## Cache variables. ##
2405## ---------------- ##
2406_ASBOX
2407    echo
2408    # The following way of writing the cache mishandles newlines in values,
2409(
2410  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2411    eval ac_val=\$$ac_var
2412    case $ac_val in #(
2413    *${as_nl}*)
2414      case $ac_var in #(
2415      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2417      esac
2418      case $ac_var in #(
2419      _ | IFS | as_nl) ;; #(
2420      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2421      *) { eval $ac_var=; unset $ac_var;} ;;
2422      esac ;;
2423    esac
2424  done
2425  (set) 2>&1 |
2426    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2427    *${as_nl}ac_space=\ *)
2428      sed -n \
2429	"s/'\''/'\''\\\\'\'''\''/g;
2430	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2431      ;; #(
2432    *)
2433      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434      ;;
2435    esac |
2436    sort
2437)
2438    echo
2439
2440    cat <<\_ASBOX
2441## ----------------- ##
2442## Output variables. ##
2443## ----------------- ##
2444_ASBOX
2445    echo
2446    for ac_var in $ac_subst_vars
2447    do
2448      eval ac_val=\$$ac_var
2449      case $ac_val in
2450      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451      esac
2452      $as_echo "$ac_var='\''$ac_val'\''"
2453    done | sort
2454    echo
2455
2456    if test -n "$ac_subst_files"; then
2457      cat <<\_ASBOX
2458## ------------------- ##
2459## File substitutions. ##
2460## ------------------- ##
2461_ASBOX
2462      echo
2463      for ac_var in $ac_subst_files
2464      do
2465	eval ac_val=\$$ac_var
2466	case $ac_val in
2467	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468	esac
2469	$as_echo "$ac_var='\''$ac_val'\''"
2470      done | sort
2471      echo
2472    fi
2473
2474    if test -s confdefs.h; then
2475      cat <<\_ASBOX
2476## ----------- ##
2477## confdefs.h. ##
2478## ----------- ##
2479_ASBOX
2480      echo
2481      cat confdefs.h
2482      echo
2483    fi
2484    test "$ac_signal" != 0 &&
2485      $as_echo "$as_me: caught signal $ac_signal"
2486    $as_echo "$as_me: exit $exit_status"
2487  } >&5
2488  rm -f core *.core core.conftest.* &&
2489    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2490    exit $exit_status
2491' 0
2492for ac_signal in 1 2 13 15; do
2493  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2494done
2495ac_signal=0
2496
2497# confdefs.h avoids OS command line length limits that DEFS can exceed.
2498rm -f -r conftest* confdefs.h
2499
2500$as_echo "/* confdefs.h */" > confdefs.h
2501
2502# Predefined preprocessor variables.
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_NAME "$PACKAGE_NAME"
2506_ACEOF
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2510_ACEOF
2511
2512cat >>confdefs.h <<_ACEOF
2513#define PACKAGE_VERSION "$PACKAGE_VERSION"
2514_ACEOF
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_STRING "$PACKAGE_STRING"
2518_ACEOF
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_URL "$PACKAGE_URL"
2526_ACEOF
2527
2528
2529# Let the site file select an alternate cache file if it wants to.
2530# Prefer an explicitly selected file to automatically selected ones.
2531ac_site_file1=NONE
2532ac_site_file2=NONE
2533if test -n "$CONFIG_SITE"; then
2534  ac_site_file1=$CONFIG_SITE
2535elif test "x$prefix" != xNONE; then
2536  ac_site_file1=$prefix/share/config.site
2537  ac_site_file2=$prefix/etc/config.site
2538else
2539  ac_site_file1=$ac_default_prefix/share/config.site
2540  ac_site_file2=$ac_default_prefix/etc/config.site
2541fi
2542for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543do
2544  test "x$ac_site_file" = xNONE && continue
2545  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548    sed 's/^/| /' "$ac_site_file" >&5
2549    . "$ac_site_file"
2550  fi
2551done
2552
2553if test -r "$cache_file"; then
2554  # Some versions of bash will fail to source /dev/null (special files
2555  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2556  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2557    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2558$as_echo "$as_me: loading cache $cache_file" >&6;}
2559    case $cache_file in
2560      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2561      *)                      . "./$cache_file";;
2562    esac
2563  fi
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2566$as_echo "$as_me: creating cache $cache_file" >&6;}
2567  >$cache_file
2568fi
2569
2570gt_needs="$gt_needs "
2571# Check that the precious variables saved in the cache have kept the same
2572# value.
2573ac_cache_corrupted=false
2574for ac_var in $ac_precious_vars; do
2575  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576  eval ac_new_set=\$ac_env_${ac_var}_set
2577  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578  eval ac_new_val=\$ac_env_${ac_var}_value
2579  case $ac_old_set,$ac_new_set in
2580    set,)
2581      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583      ac_cache_corrupted=: ;;
2584    ,set)
2585      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587      ac_cache_corrupted=: ;;
2588    ,);;
2589    *)
2590      if test "x$ac_old_val" != "x$ac_new_val"; then
2591	# differences in whitespace do not lead to failure.
2592	ac_old_val_w=`echo x $ac_old_val`
2593	ac_new_val_w=`echo x $ac_new_val`
2594	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597	  ac_cache_corrupted=:
2598	else
2599	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601	  eval $ac_var=\$ac_old_val
2602	fi
2603	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2604$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2605	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2606$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2607      fi;;
2608  esac
2609  # Pass precious variables to config.status.
2610  if test "$ac_new_set" = set; then
2611    case $ac_new_val in
2612    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613    *) ac_arg=$ac_var=$ac_new_val ;;
2614    esac
2615    case " $ac_configure_args " in
2616      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2617      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2618    esac
2619  fi
2620done
2621if $ac_cache_corrupted; then
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2627fi
2628## -------------------- ##
2629## Main body of script. ##
2630## -------------------- ##
2631
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639
2640
2641
2642ac_aux_dir=
2643for ac_dir in scripts "$srcdir"/scripts; do
2644  for ac_t in install-sh install.sh shtool; do
2645    if test -f "$ac_dir/$ac_t"; then
2646      ac_aux_dir=$ac_dir
2647      ac_install_sh="$ac_aux_dir/$ac_t -c"
2648      break 2
2649    fi
2650  done
2651done
2652if test -z "$ac_aux_dir"; then
2653  as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2654fi
2655
2656# These three variables are undocumented and unsupported,
2657# and are intended to be withdrawn in a future Autoconf release.
2658# They can cause serious problems if a builder's source tree is in a directory
2659# whose full name contains unusual characters.
2660ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2661ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2662ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2663
2664
2665
2666
2667
2668GUTENPRINT_MAJOR_VERSION=5
2669GUTENPRINT_MINOR_VERSION=2
2670GUTENPRINT_MICRO_VERSION=7
2671GUTENPRINT_EXTRA_VERSION=
2672GUTENPRINT_CURRENT_INTERFACE=2
2673GUTENPRINT_INTERFACE_AGE=8
2674GUTENPRINT_BINARY_AGE=0
2675GUTENPRINT_VERSION=5.2.7
2676GUTENPRINTUI2_CURRENT_INTERFACE=1
2677GUTENPRINTUI2_INTERFACE_AGE=0
2678GUTENPRINTUI2_BINARY_AGE=0
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701CFLAGS="${CFLAGS:=}"
2702CPPFLAGS="${CPPFLAGS:=}"
2703CXXFLAGS="${CXXFLAGS:=}"
2704LDFLAGS="${LDFLAGS:=}"
2705LIBS="${LIBS:=}"
2706
2707am__api_version='1.11'
2708
2709# Find a good install program.  We prefer a C program (faster),
2710# so one script is as good as another.  But avoid the broken or
2711# incompatible versions:
2712# SysV /etc/install, /usr/sbin/install
2713# SunOS /usr/etc/install
2714# IRIX /sbin/install
2715# AIX /bin/install
2716# AmigaOS /C/install, which installs bootblocks on floppy discs
2717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720# OS/2's system install, which has a completely different semantic
2721# ./install, which can be erroneously created by make from ./install.sh.
2722# Reject install programs that cannot install multiple files.
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2724$as_echo_n "checking for a BSD-compatible install... " >&6; }
2725if test -z "$INSTALL"; then
2726if test "${ac_cv_path_install+set}" = set; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734    # Account for people who put trailing slashes in PATH elements.
2735case $as_dir/ in #((
2736  ./ | .// | /[cC]/* | \
2737  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2738  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2739  /usr/ucb/* ) ;;
2740  *)
2741    # OSF1 and SCO ODT 3.0 have their own names for install.
2742    # Don't use installbsd from OSF since it installs stuff as root
2743    # by default.
2744    for ac_prog in ginstall scoinst install; do
2745      for ac_exec_ext in '' $ac_executable_extensions; do
2746	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2747	  if test $ac_prog = install &&
2748	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2749	    # AIX install.  It has an incompatible calling convention.
2750	    :
2751	  elif test $ac_prog = install &&
2752	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753	    # program-specific install script used by HP pwplus--don't use.
2754	    :
2755	  else
2756	    rm -rf conftest.one conftest.two conftest.dir
2757	    echo one > conftest.one
2758	    echo two > conftest.two
2759	    mkdir conftest.dir
2760	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2761	      test -s conftest.one && test -s conftest.two &&
2762	      test -s conftest.dir/conftest.one &&
2763	      test -s conftest.dir/conftest.two
2764	    then
2765	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2766	      break 3
2767	    fi
2768	  fi
2769	fi
2770      done
2771    done
2772    ;;
2773esac
2774
2775  done
2776IFS=$as_save_IFS
2777
2778rm -rf conftest.one conftest.two conftest.dir
2779
2780fi
2781  if test "${ac_cv_path_install+set}" = set; then
2782    INSTALL=$ac_cv_path_install
2783  else
2784    # As a last resort, use the slow shell script.  Don't cache a
2785    # value for INSTALL within a source directory, because that will
2786    # break other packages using the cache if that directory is
2787    # removed, or if the value is a relative name.
2788    INSTALL=$ac_install_sh
2789  fi
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2792$as_echo "$INSTALL" >&6; }
2793
2794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2795# It thinks the first close brace ends the variable substitution.
2796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2797
2798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2799
2800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2801
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2803$as_echo_n "checking whether build environment is sane... " >&6; }
2804# Just in case
2805sleep 1
2806echo timestamp > conftest.file
2807# Reject unsafe characters in $srcdir or the absolute working directory
2808# name.  Accept space and tab only in the latter.
2809am_lf='
2810'
2811case `pwd` in
2812  *[\\\"\#\$\&\'\`$am_lf]*)
2813    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2814esac
2815case $srcdir in
2816  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2817    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2818esac
2819
2820# Do `set' in a subshell so we don't clobber the current shell's
2821# arguments.  Must try -L first in case configure is actually a
2822# symlink; some systems play weird games with the mod time of symlinks
2823# (eg FreeBSD returns the mod time of the symlink's containing
2824# directory).
2825if (
2826   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2827   if test "$*" = "X"; then
2828      # -L didn't work.
2829      set X `ls -t "$srcdir/configure" conftest.file`
2830   fi
2831   rm -f conftest.file
2832   if test "$*" != "X $srcdir/configure conftest.file" \
2833      && test "$*" != "X conftest.file $srcdir/configure"; then
2834
2835      # If neither matched, then we have a broken ls.  This can happen
2836      # if, for instance, CONFIG_SHELL is bash and it inherits a
2837      # broken ls alias from the environment.  This has actually
2838      # happened.  Such a system could not be considered "sane".
2839      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2840alias in your environment" "$LINENO" 5
2841   fi
2842
2843   test "$2" = conftest.file
2844   )
2845then
2846   # Ok.
2847   :
2848else
2849   as_fn_error "newly created file is older than distributed files!
2850Check your system clock" "$LINENO" 5
2851fi
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853$as_echo "yes" >&6; }
2854test "$program_prefix" != NONE &&
2855  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2856# Use a double $ so make ignores it.
2857test "$program_suffix" != NONE &&
2858  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2859# Double any \ or $.
2860# By default was `s,x,x', remove it if useless.
2861ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2862program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2863
2864# expand $ac_aux_dir to an absolute path
2865am_aux_dir=`cd $ac_aux_dir && pwd`
2866
2867if test x"${MISSING+set}" != xset; then
2868  case $am_aux_dir in
2869  *\ * | *\	*)
2870    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2871  *)
2872    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2873  esac
2874fi
2875# Use eval to expand $SHELL
2876if eval "$MISSING --run true"; then
2877  am_missing_run="$MISSING --run "
2878else
2879  am_missing_run=
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2881$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2882fi
2883
2884if test x"${install_sh}" != xset; then
2885  case $am_aux_dir in
2886  *\ * | *\	*)
2887    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888  *)
2889    install_sh="\${SHELL} $am_aux_dir/install-sh"
2890  esac
2891fi
2892
2893# Installed binaries are usually stripped using `strip' when the user
2894# run `make install-strip'.  However `strip' might not be the right
2895# tool to use in cross-compilation environments, therefore Automake
2896# will honor the `STRIP' environment variable to overrule this program.
2897if test "$cross_compiling" != no; then
2898  if test -n "$ac_tool_prefix"; then
2899  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2900set dummy ${ac_tool_prefix}strip; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
2903if test "${ac_cv_prog_STRIP+set}" = set; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  if test -n "$STRIP"; then
2907  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  test -z "$as_dir" && as_dir=.
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926STRIP=$ac_cv_prog_STRIP
2927if test -n "$STRIP"; then
2928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2929$as_echo "$STRIP" >&6; }
2930else
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935
2936fi
2937if test -z "$ac_cv_prog_STRIP"; then
2938  ac_ct_STRIP=$STRIP
2939  # Extract the first word of "strip", so it can be a program name with args.
2940set dummy strip; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$ac_ct_STRIP"; then
2947  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    ac_cv_prog_ac_ct_STRIP="strip"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2967if test -n "$ac_ct_STRIP"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2969$as_echo "$ac_ct_STRIP" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975  if test "x$ac_ct_STRIP" = x; then
2976    STRIP=":"
2977  else
2978    case $cross_compiling:$ac_tool_warned in
2979yes:)
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982ac_tool_warned=yes ;;
2983esac
2984    STRIP=$ac_ct_STRIP
2985  fi
2986else
2987  STRIP="$ac_cv_prog_STRIP"
2988fi
2989
2990fi
2991INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2992
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2994$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2995if test -z "$MKDIR_P"; then
2996  if test "${ac_cv_path_mkdir+set}" = set; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004    for ac_prog in mkdir gmkdir; do
3005	 for ac_exec_ext in '' $ac_executable_extensions; do
3006	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3007	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3008	     'mkdir (GNU coreutils) '* | \
3009	     'mkdir (coreutils) '* | \
3010	     'mkdir (fileutils) '4.1*)
3011	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3012	       break 3;;
3013	   esac
3014	 done
3015       done
3016  done
3017IFS=$as_save_IFS
3018
3019fi
3020
3021  test -d ./--version && rmdir ./--version
3022  if test "${ac_cv_path_mkdir+set}" = set; then
3023    MKDIR_P="$ac_cv_path_mkdir -p"
3024  else
3025    # As a last resort, use the slow shell script.  Don't cache a
3026    # value for MKDIR_P within a source directory, because that will
3027    # break other packages using the cache if that directory is
3028    # removed, or if the value is a relative name.
3029    MKDIR_P="$ac_install_sh -d"
3030  fi
3031fi
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3033$as_echo "$MKDIR_P" >&6; }
3034
3035mkdir_p="$MKDIR_P"
3036case $mkdir_p in
3037  [\\/$]* | ?:[\\/]*) ;;
3038  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3039esac
3040
3041for ac_prog in gawk mawk nawk awk
3042do
3043  # Extract the first word of "$ac_prog", so it can be a program name with args.
3044set dummy $ac_prog; ac_word=$2
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if test "${ac_cv_prog_AWK+set}" = set; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  if test -n "$AWK"; then
3051  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056  IFS=$as_save_IFS
3057  test -z "$as_dir" && as_dir=.
3058    for ac_exec_ext in '' $ac_executable_extensions; do
3059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060    ac_cv_prog_AWK="$ac_prog"
3061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062    break 2
3063  fi
3064done
3065  done
3066IFS=$as_save_IFS
3067
3068fi
3069fi
3070AWK=$ac_cv_prog_AWK
3071if test -n "$AWK"; then
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3073$as_echo "$AWK" >&6; }
3074else
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
3077fi
3078
3079
3080  test -n "$AWK" && break
3081done
3082
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3084$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3085set x ${MAKE-make}
3086ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3087if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3088  $as_echo_n "(cached) " >&6
3089else
3090  cat >conftest.make <<\_ACEOF
3091SHELL = /bin/sh
3092all:
3093	@echo '@@@%%%=$(MAKE)=@@@%%%'
3094_ACEOF
3095# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3096case `${MAKE-make} -f conftest.make 2>/dev/null` in
3097  *@@@%%%=?*=@@@%%%*)
3098    eval ac_cv_prog_make_${ac_make}_set=yes;;
3099  *)
3100    eval ac_cv_prog_make_${ac_make}_set=no;;
3101esac
3102rm -f conftest.make
3103fi
3104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106$as_echo "yes" >&6; }
3107  SET_MAKE=
3108else
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
3111  SET_MAKE="MAKE=${MAKE-make}"
3112fi
3113
3114rm -rf .tst 2>/dev/null
3115mkdir .tst 2>/dev/null
3116if test -d .tst; then
3117  am__leading_dot=.
3118else
3119  am__leading_dot=_
3120fi
3121rmdir .tst 2>/dev/null
3122
3123if test "`cd $srcdir && pwd`" != "`pwd`"; then
3124  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3125  # is not polluted with repeated "-I."
3126  am__isrc=' -I$(srcdir)'
3127  # test to see if srcdir already configured
3128  if test -f $srcdir/config.status; then
3129    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3130  fi
3131fi
3132
3133# test whether we have cygpath
3134if test -z "$CYGPATH_W"; then
3135  if (cygpath --version) >/dev/null 2>/dev/null; then
3136    CYGPATH_W='cygpath -w'
3137  else
3138    CYGPATH_W=echo
3139  fi
3140fi
3141
3142
3143# Define the identity of the package.
3144 PACKAGE='gutenprint'
3145 VERSION='5.2.7'
3146
3147
3148cat >>confdefs.h <<_ACEOF
3149#define PACKAGE "$PACKAGE"
3150_ACEOF
3151
3152
3153cat >>confdefs.h <<_ACEOF
3154#define VERSION "$VERSION"
3155_ACEOF
3156
3157# Some tools Automake needs.
3158
3159ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3160
3161
3162AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3163
3164
3165AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3166
3167
3168AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3169
3170
3171MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3172
3173# We need awk for the "check" target.  The system "awk" is bad on
3174# some platforms.
3175# Always define AMTAR for backward compatibility.
3176
3177AMTAR=${AMTAR-"${am_missing_run}tar"}
3178
3179
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3181$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3182# Loop over all known methods to create a tar archive until one works.
3183_am_tools='gnutar plaintar pax cpio none'
3184_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3185# Do not fold the above two line into one, because Tru64 sh and
3186# Solaris sh will not grok spaces in the rhs of `-'.
3187for _am_tool in $_am_tools
3188do
3189  case $_am_tool in
3190  gnutar)
3191    for _am_tar in tar gnutar gtar;
3192    do
3193      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3194   ($_am_tar --version) >&5 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } && break
3198    done
3199    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3200    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3201    am__untar="$_am_tar -xf -"
3202    ;;
3203  plaintar)
3204    # Must skip GNU tar: if it does not support --format= it doesn't create
3205    # ustar tarball either.
3206    (tar --version) >/dev/null 2>&1 && continue
3207    am__tar='tar chf - "$$tardir"'
3208    am__tar_='tar chf - "$tardir"'
3209    am__untar='tar xf -'
3210    ;;
3211  pax)
3212    am__tar='pax -L -x ustar -w "$$tardir"'
3213    am__tar_='pax -L -x ustar -w "$tardir"'
3214    am__untar='pax -r'
3215    ;;
3216  cpio)
3217    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3218    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3219    am__untar='cpio -i -H ustar -d'
3220    ;;
3221  none)
3222    am__tar=false
3223    am__tar_=false
3224    am__untar=false
3225    ;;
3226  esac
3227
3228  # If the value was cached, stop now.  We just wanted to have am__tar
3229  # and am__untar set.
3230  test -n "${am_cv_prog_tar_ustar}" && break
3231
3232  # tar/untar a dummy directory, and stop if the command works
3233  rm -rf conftest.dir
3234  mkdir conftest.dir
3235  echo GrepMe > conftest.dir/file
3236  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3237   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }
3241  rm -rf conftest.dir
3242  if test -s conftest.tar; then
3243    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3244   ($am__untar <conftest.tar) >&5 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }
3248    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3249  fi
3250done
3251rm -rf conftest.dir
3252
3253if test "${am_cv_prog_tar_ustar+set}" = set; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  am_cv_prog_tar_ustar=$_am_tool
3257fi
3258
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3260$as_echo "$am_cv_prog_tar_ustar" >&6; }
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271GUTENPRINT_LIBS="-lgutenprint"
3272GUTENPRINTUI2_LIBS="-lgutenprintui2"
3273gutenprint_version=${GUTENPRINT_VERSION}
3274gutenprintui2_version=${GUTENPRINT_VERSION}
3275
3276GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} \$(GUTENPRINT_LIBS)"
3277
3278ac_config_headers="$ac_config_headers config.h"
3279
3280
3281ALL_LINGUAS="cs da de el en_GB es fi fr hu it ja nb nl pl pt ru sk sl sv zh_TW"
3282
3283
3284enable_dlopen=yes
3285
3286
3287
3288# We need static libraries for CUPS genppd program for now, for bug 865265
3289# --rlk 20031223
3290# Check whether --enable-static was given.
3291if test "${enable_static+set}" = set; then :
3292  enableval=$enable_static; p=${PACKAGE-default}
3293    case $enableval in
3294    yes) enable_static=yes ;;
3295    no) enable_static=no ;;
3296    *)
3297     enable_static=no
3298      # Look at the argument we got.  We use all the common list separators.
3299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3300      for pkg in $enableval; do
3301	IFS="$lt_save_ifs"
3302	if test "X$pkg" = "X$p"; then
3303	  enable_static=yes
3304	fi
3305      done
3306      IFS="$lt_save_ifs"
3307      ;;
3308    esac
3309else
3310  enable_static=yes
3311fi
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321#AC_DISABLE_SHARED
3322case `pwd` in
3323  *\ * | *\	*)
3324    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3325$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3326esac
3327
3328
3329
3330macro_version='2.2.6b'
3331macro_revision='1.3017'
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345ltmain="$ac_aux_dir/ltmain.sh"
3346
3347# Make sure we can run config.sub.
3348$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3349  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3350
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3352$as_echo_n "checking build system type... " >&6; }
3353if test "${ac_cv_build+set}" = set; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  ac_build_alias=$build_alias
3357test "x$ac_build_alias" = x &&
3358  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3359test "x$ac_build_alias" = x &&
3360  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3361ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3362  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3363
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3366$as_echo "$ac_cv_build" >&6; }
3367case $ac_cv_build in
3368*-*-*) ;;
3369*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3370esac
3371build=$ac_cv_build
3372ac_save_IFS=$IFS; IFS='-'
3373set x $ac_cv_build
3374shift
3375build_cpu=$1
3376build_vendor=$2
3377shift; shift
3378# Remember, the first character of IFS is used to create $*,
3379# except with old shells:
3380build_os=$*
3381IFS=$ac_save_IFS
3382case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3383
3384
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3386$as_echo_n "checking host system type... " >&6; }
3387if test "${ac_cv_host+set}" = set; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  if test "x$host_alias" = x; then
3391  ac_cv_host=$ac_cv_build
3392else
3393  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3394    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3395fi
3396
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3399$as_echo "$ac_cv_host" >&6; }
3400case $ac_cv_host in
3401*-*-*) ;;
3402*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3403esac
3404host=$ac_cv_host
3405ac_save_IFS=$IFS; IFS='-'
3406set x $ac_cv_host
3407shift
3408host_cpu=$1
3409host_vendor=$2
3410shift; shift
3411# Remember, the first character of IFS is used to create $*,
3412# except with old shells:
3413host_os=$*
3414IFS=$ac_save_IFS
3415case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3416
3417
3418DEPDIR="${am__leading_dot}deps"
3419
3420ac_config_commands="$ac_config_commands depfiles"
3421
3422
3423am_make=${MAKE-make}
3424cat > confinc << 'END'
3425am__doit:
3426	@echo this is the am__doit target
3427.PHONY: am__doit
3428END
3429# If we don't find an include directive, just comment out the code.
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3431$as_echo_n "checking for style of include used by $am_make... " >&6; }
3432am__include="#"
3433am__quote=
3434_am_result=none
3435# First try GNU make style include.
3436echo "include confinc" > confmf
3437# Ignore all kinds of additional output from `make'.
3438case `$am_make -s -f confmf 2> /dev/null` in #(
3439*the\ am__doit\ target*)
3440  am__include=include
3441  am__quote=
3442  _am_result=GNU
3443  ;;
3444esac
3445# Now try BSD make style include.
3446if test "$am__include" = "#"; then
3447   echo '.include "confinc"' > confmf
3448   case `$am_make -s -f confmf 2> /dev/null` in #(
3449   *the\ am__doit\ target*)
3450     am__include=.include
3451     am__quote="\""
3452     _am_result=BSD
3453     ;;
3454   esac
3455fi
3456
3457
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3459$as_echo "$_am_result" >&6; }
3460rm -f confinc confmf
3461
3462# Check whether --enable-dependency-tracking was given.
3463if test "${enable_dependency_tracking+set}" = set; then :
3464  enableval=$enable_dependency_tracking;
3465fi
3466
3467if test "x$enable_dependency_tracking" != xno; then
3468  am_depcomp="$ac_aux_dir/depcomp"
3469  AMDEPBACKSLASH='\'
3470fi
3471 if test "x$enable_dependency_tracking" != xno; then
3472  AMDEP_TRUE=
3473  AMDEP_FALSE='#'
3474else
3475  AMDEP_TRUE='#'
3476  AMDEP_FALSE=
3477fi
3478
3479
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485if test -n "$ac_tool_prefix"; then
3486  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3487set dummy ${ac_tool_prefix}gcc; ac_word=$2
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489$as_echo_n "checking for $ac_word... " >&6; }
3490if test "${ac_cv_prog_CC+set}" = set; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  if test -n "$CC"; then
3494  ac_cv_prog_CC="$CC" # Let the user override the test.
3495else
3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499  IFS=$as_save_IFS
3500  test -z "$as_dir" && as_dir=.
3501    for ac_exec_ext in '' $ac_executable_extensions; do
3502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505    break 2
3506  fi
3507done
3508  done
3509IFS=$as_save_IFS
3510
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516$as_echo "$CC" >&6; }
3517else
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519$as_echo "no" >&6; }
3520fi
3521
3522
3523fi
3524if test -z "$ac_cv_prog_CC"; then
3525  ac_ct_CC=$CC
3526  # Extract the first word of "gcc", so it can be a program name with args.
3527set dummy gcc; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  if test -n "$ac_ct_CC"; then
3534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  test -z "$as_dir" && as_dir=.
3541    for ac_exec_ext in '' $ac_executable_extensions; do
3542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543    ac_cv_prog_ac_ct_CC="gcc"
3544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548  done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554if test -n "$ac_ct_CC"; then
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556$as_echo "$ac_ct_CC" >&6; }
3557else
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560fi
3561
3562  if test "x$ac_ct_CC" = x; then
3563    CC=""
3564  else
3565    case $cross_compiling:$ac_tool_warned in
3566yes:)
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569ac_tool_warned=yes ;;
3570esac
3571    CC=$ac_ct_CC
3572  fi
3573else
3574  CC="$ac_cv_prog_CC"
3575fi
3576
3577if test -z "$CC"; then
3578          if test -n "$ac_tool_prefix"; then
3579    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3580set dummy ${ac_tool_prefix}cc; ac_word=$2
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582$as_echo_n "checking for $ac_word... " >&6; }
3583if test "${ac_cv_prog_CC+set}" = set; then :
3584  $as_echo_n "(cached) " >&6
3585else
3586  if test -n "$CC"; then
3587  ac_cv_prog_CC="$CC" # Let the user override the test.
3588else
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594    for ac_exec_ext in '' $ac_executable_extensions; do
3595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596    ac_cv_prog_CC="${ac_tool_prefix}cc"
3597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601  done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606CC=$ac_cv_prog_CC
3607if test -n "$CC"; then
3608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609$as_echo "$CC" >&6; }
3610else
3611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613fi
3614
3615
3616  fi
3617fi
3618if test -z "$CC"; then
3619  # Extract the first word of "cc", so it can be a program name with args.
3620set dummy cc; ac_word=$2
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622$as_echo_n "checking for $ac_word... " >&6; }
3623if test "${ac_cv_prog_CC+set}" = set; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  if test -n "$CC"; then
3627  ac_cv_prog_CC="$CC" # Let the user override the test.
3628else
3629  ac_prog_rejected=no
3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH
3632do
3633  IFS=$as_save_IFS
3634  test -z "$as_dir" && as_dir=.
3635    for ac_exec_ext in '' $ac_executable_extensions; do
3636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3638       ac_prog_rejected=yes
3639       continue
3640     fi
3641    ac_cv_prog_CC="cc"
3642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643    break 2
3644  fi
3645done
3646  done
3647IFS=$as_save_IFS
3648
3649if test $ac_prog_rejected = yes; then
3650  # We found a bogon in the path, so make sure we never use it.
3651  set dummy $ac_cv_prog_CC
3652  shift
3653  if test $# != 0; then
3654    # We chose a different compiler from the bogus one.
3655    # However, it has the same basename, so the bogon will be chosen
3656    # first if we set CC to just the basename; use the full file name.
3657    shift
3658    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3659  fi
3660fi
3661fi
3662fi
3663CC=$ac_cv_prog_CC
3664if test -n "$CC"; then
3665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666$as_echo "$CC" >&6; }
3667else
3668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670fi
3671
3672
3673fi
3674if test -z "$CC"; then
3675  if test -n "$ac_tool_prefix"; then
3676  for ac_prog in cl.exe
3677  do
3678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if test "${ac_cv_prog_CC+set}" = set; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -n "$CC"; then
3686  ac_cv_prog_CC="$CC" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_exec_ext in '' $ac_executable_extensions; do
3694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700  done
3701IFS=$as_save_IFS
3702
3703fi
3704fi
3705CC=$ac_cv_prog_CC
3706if test -n "$CC"; then
3707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708$as_echo "$CC" >&6; }
3709else
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712fi
3713
3714
3715    test -n "$CC" && break
3716  done
3717fi
3718if test -z "$CC"; then
3719  ac_ct_CC=$CC
3720  for ac_prog in cl.exe
3721do
3722  # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -n "$ac_ct_CC"; then
3730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739    ac_cv_prog_ac_ct_CC="$ac_prog"
3740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_CC=$ac_cv_prog_ac_ct_CC
3750if test -n "$ac_ct_CC"; then
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3752$as_echo "$ac_ct_CC" >&6; }
3753else
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759  test -n "$ac_ct_CC" && break
3760done
3761
3762  if test "x$ac_ct_CC" = x; then
3763    CC=""
3764  else
3765    case $cross_compiling:$ac_tool_warned in
3766yes:)
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769ac_tool_warned=yes ;;
3770esac
3771    CC=$ac_ct_CC
3772  fi
3773fi
3774
3775fi
3776
3777
3778test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780as_fn_error "no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." "$LINENO" 5; }
3782
3783# Provide some information about the compiler.
3784$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3785set X $ac_compile
3786ac_compiler=$2
3787for ac_option in --version -v -V -qversion; do
3788  { { ac_try="$ac_compiler $ac_option >&5"
3789case "(($ac_try" in
3790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791  *) ac_try_echo=$ac_try;;
3792esac
3793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794$as_echo "$ac_try_echo"; } >&5
3795  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3796  ac_status=$?
3797  if test -s conftest.err; then
3798    sed '10a\
3799... rest of stderr output deleted ...
3800         10q' conftest.err >conftest.er1
3801    cat conftest.er1 >&5
3802  fi
3803  rm -f conftest.er1 conftest.err
3804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805  test $ac_status = 0; }
3806done
3807
3808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819ac_clean_files_save=$ac_clean_files
3820ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3821# Try to create an executable without -o first, disregard a.out.
3822# It will help us diagnose broken compilers, and finding out an intuition
3823# of exeext.
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3825$as_echo_n "checking whether the C compiler works... " >&6; }
3826ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3827
3828# The possible output files:
3829ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3830
3831ac_rmfiles=
3832for ac_file in $ac_files
3833do
3834  case $ac_file in
3835    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3837  esac
3838done
3839rm -f $ac_rmfiles
3840
3841if { { ac_try="$ac_link_default"
3842case "(($ac_try" in
3843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844  *) ac_try_echo=$ac_try;;
3845esac
3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847$as_echo "$ac_try_echo"; } >&5
3848  (eval "$ac_link_default") 2>&5
3849  ac_status=$?
3850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851  test $ac_status = 0; }; then :
3852  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3854# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3855# so that the user can short-circuit this test for compilers unknown to
3856# Autoconf.
3857for ac_file in $ac_files ''
3858do
3859  test -f "$ac_file" || continue
3860  case $ac_file in
3861    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3862	;;
3863    [ab].out )
3864	# We found the default executable, but exeext='' is most
3865	# certainly right.
3866	break;;
3867    *.* )
3868	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3869	then :; else
3870	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871	fi
3872	# We set ac_cv_exeext here because the later test for it is not
3873	# safe: cross compilers may not add the suffix if given an `-o'
3874	# argument, so we may need to know it at that point already.
3875	# Even if this section looks crufty: it has the advantage of
3876	# actually working.
3877	break;;
3878    * )
3879	break;;
3880  esac
3881done
3882test "$ac_cv_exeext" = no && ac_cv_exeext=
3883
3884else
3885  ac_file=''
3886fi
3887if test -z "$ac_file"; then :
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889$as_echo "no" >&6; }
3890$as_echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895{ as_fn_set_status 77
3896as_fn_error "C compiler cannot create executables
3897See \`config.log' for more details." "$LINENO" 5; }; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900$as_echo "yes" >&6; }
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3903$as_echo_n "checking for C compiler default output file name... " >&6; }
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905$as_echo "$ac_file" >&6; }
3906ac_exeext=$ac_cv_exeext
3907
3908rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3909ac_clean_files=$ac_clean_files_save
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3911$as_echo_n "checking for suffix of executables... " >&6; }
3912if { { ac_try="$ac_link"
3913case "(($ac_try" in
3914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915  *) ac_try_echo=$ac_try;;
3916esac
3917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918$as_echo "$ac_try_echo"; } >&5
3919  (eval "$ac_link") 2>&5
3920  ac_status=$?
3921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922  test $ac_status = 0; }; then :
3923  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3924# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3925# work properly (i.e., refer to `conftest.exe'), while it won't with
3926# `rm'.
3927for ac_file in conftest.exe conftest conftest.*; do
3928  test -f "$ac_file" || continue
3929  case $ac_file in
3930    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932	  break;;
3933    * ) break;;
3934  esac
3935done
3936else
3937  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error "cannot compute suffix of executables: cannot compile and link
3940See \`config.log' for more details." "$LINENO" 5; }
3941fi
3942rm -f conftest conftest$ac_cv_exeext
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3944$as_echo "$ac_cv_exeext" >&6; }
3945
3946rm -f conftest.$ac_ext
3947EXEEXT=$ac_cv_exeext
3948ac_exeext=$EXEEXT
3949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951#include <stdio.h>
3952int
3953main ()
3954{
3955FILE *f = fopen ("conftest.out", "w");
3956 return ferror (f) || fclose (f) != 0;
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962ac_clean_files="$ac_clean_files conftest.out"
3963# Check that the compiler produces executables we can run.  If not, either
3964# the compiler is broken, or we cross compile.
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3966$as_echo_n "checking whether we are cross compiling... " >&6; }
3967if test "$cross_compiling" != yes; then
3968  { { ac_try="$ac_link"
3969case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974$as_echo "$ac_try_echo"; } >&5
3975  (eval "$ac_link") 2>&5
3976  ac_status=$?
3977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978  test $ac_status = 0; }
3979  if { ac_try='./conftest$ac_cv_exeext'
3980  { { case "(($ac_try" in
3981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982  *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985$as_echo "$ac_try_echo"; } >&5
3986  (eval "$ac_try") 2>&5
3987  ac_status=$?
3988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989  test $ac_status = 0; }; }; then
3990    cross_compiling=no
3991  else
3992    if test "$cross_compiling" = maybe; then
3993	cross_compiling=yes
3994    else
3995	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997as_fn_error "cannot run C compiled programs.
3998If you meant to cross compile, use \`--host'.
3999See \`config.log' for more details." "$LINENO" 5; }
4000    fi
4001  fi
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4004$as_echo "$cross_compiling" >&6; }
4005
4006rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4007ac_clean_files=$ac_clean_files_save
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4009$as_echo_n "checking for suffix of object files... " >&6; }
4010if test "${ac_cv_objext+set}" = set; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015
4016int
4017main ()
4018{
4019
4020  ;
4021  return 0;
4022}
4023_ACEOF
4024rm -f conftest.o conftest.obj
4025if { { ac_try="$ac_compile"
4026case "(($ac_try" in
4027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028  *) ac_try_echo=$ac_try;;
4029esac
4030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031$as_echo "$ac_try_echo"; } >&5
4032  (eval "$ac_compile") 2>&5
4033  ac_status=$?
4034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035  test $ac_status = 0; }; then :
4036  for ac_file in conftest.o conftest.obj conftest.*; do
4037  test -f "$ac_file" || continue;
4038  case $ac_file in
4039    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4040    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4041       break;;
4042  esac
4043done
4044else
4045  $as_echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050as_fn_error "cannot compute suffix of object files: cannot compile
4051See \`config.log' for more details." "$LINENO" 5; }
4052fi
4053rm -f conftest.$ac_cv_objext conftest.$ac_ext
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4056$as_echo "$ac_cv_objext" >&6; }
4057OBJEXT=$ac_cv_objext
4058ac_objext=$OBJEXT
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4060$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4061if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066
4067int
4068main ()
4069{
4070#ifndef __GNUC__
4071       choke me
4072#endif
4073
4074  ;
4075  return 0;
4076}
4077_ACEOF
4078if ac_fn_c_try_compile "$LINENO"; then :
4079  ac_compiler_gnu=yes
4080else
4081  ac_compiler_gnu=no
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4088$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4089if test $ac_compiler_gnu = yes; then
4090  GCC=yes
4091else
4092  GCC=
4093fi
4094ac_test_CFLAGS=${CFLAGS+set}
4095ac_save_CFLAGS=$CFLAGS
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4097$as_echo_n "checking whether $CC accepts -g... " >&6; }
4098if test "${ac_cv_prog_cc_g+set}" = set; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  ac_save_c_werror_flag=$ac_c_werror_flag
4102   ac_c_werror_flag=yes
4103   ac_cv_prog_cc_g=no
4104   CFLAGS="-g"
4105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107
4108int
4109main ()
4110{
4111
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116if ac_fn_c_try_compile "$LINENO"; then :
4117  ac_cv_prog_cc_g=yes
4118else
4119  CFLAGS=""
4120      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122
4123int
4124main ()
4125{
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"; then :
4132
4133else
4134  ac_c_werror_flag=$ac_save_c_werror_flag
4135	 CFLAGS="-g"
4136	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138
4139int
4140main ()
4141{
4142
4143  ;
4144  return 0;
4145}
4146_ACEOF
4147if ac_fn_c_try_compile "$LINENO"; then :
4148  ac_cv_prog_cc_g=yes
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155   ac_c_werror_flag=$ac_save_c_werror_flag
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4158$as_echo "$ac_cv_prog_cc_g" >&6; }
4159if test "$ac_test_CFLAGS" = set; then
4160  CFLAGS=$ac_save_CFLAGS
4161elif test $ac_cv_prog_cc_g = yes; then
4162  if test "$GCC" = yes; then
4163    CFLAGS="-g -O2"
4164  else
4165    CFLAGS="-g"
4166  fi
4167else
4168  if test "$GCC" = yes; then
4169    CFLAGS="-O2"
4170  else
4171    CFLAGS=
4172  fi
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4175$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4176if test "${ac_cv_prog_cc_c89+set}" = set; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  ac_cv_prog_cc_c89=no
4180ac_save_CC=$CC
4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h.  */
4183#include <stdarg.h>
4184#include <stdio.h>
4185#include <sys/types.h>
4186#include <sys/stat.h>
4187/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4188struct buf { int x; };
4189FILE * (*rcsopen) (struct buf *, struct stat *, int);
4190static char *e (p, i)
4191     char **p;
4192     int i;
4193{
4194  return p[i];
4195}
4196static char *f (char * (*g) (char **, int), char **p, ...)
4197{
4198  char *s;
4199  va_list v;
4200  va_start (v,p);
4201  s = g (p, va_arg (v,int));
4202  va_end (v);
4203  return s;
4204}
4205
4206/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4207   function prototypes and stuff, but not '\xHH' hex character constants.
4208   These don't provoke an error unfortunately, instead are silently treated
4209   as 'x'.  The following induces an error, until -std is added to get
4210   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4211   array size at least.  It's necessary to write '\x00'==0 to get something
4212   that's true only with -std.  */
4213int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4214
4215/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4216   inside strings and character constants.  */
4217#define FOO(x) 'x'
4218int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4219
4220int test (int i, double x);
4221struct s1 {int (*f) (int a);};
4222struct s2 {int (*f) (double a);};
4223int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4224int argc;
4225char **argv;
4226int
4227main ()
4228{
4229return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4235	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4236do
4237  CC="$ac_save_CC $ac_arg"
4238  if ac_fn_c_try_compile "$LINENO"; then :
4239  ac_cv_prog_cc_c89=$ac_arg
4240fi
4241rm -f core conftest.err conftest.$ac_objext
4242  test "x$ac_cv_prog_cc_c89" != "xno" && break
4243done
4244rm -f conftest.$ac_ext
4245CC=$ac_save_CC
4246
4247fi
4248# AC_CACHE_VAL
4249case "x$ac_cv_prog_cc_c89" in
4250  x)
4251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4252$as_echo "none needed" >&6; } ;;
4253  xno)
4254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255$as_echo "unsupported" >&6; } ;;
4256  *)
4257    CC="$CC $ac_cv_prog_cc_c89"
4258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4259$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4260esac
4261if test "x$ac_cv_prog_cc_c89" != xno; then :
4262
4263fi
4264
4265ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271depcc="$CC"   am_compiler_list=
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4274$as_echo_n "checking dependency style of $depcc... " >&6; }
4275if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4279  # We make a subdir and do the tests there.  Otherwise we can end up
4280  # making bogus files that we don't know about and never remove.  For
4281  # instance it was reported that on HP-UX the gcc test will end up
4282  # making a dummy file named `D' -- because `-MD' means `put the output
4283  # in D'.
4284  mkdir conftest.dir
4285  # Copy depcomp to subdir because otherwise we won't find it if we're
4286  # using a relative directory.
4287  cp "$am_depcomp" conftest.dir
4288  cd conftest.dir
4289  # We will build objects and dependencies in a subdirectory because
4290  # it helps to detect inapplicable dependency modes.  For instance
4291  # both Tru64's cc and ICC support -MD to output dependencies as a
4292  # side effect of compilation, but ICC will put the dependencies in
4293  # the current directory while Tru64 will put them in the object
4294  # directory.
4295  mkdir sub
4296
4297  am_cv_CC_dependencies_compiler_type=none
4298  if test "$am_compiler_list" = ""; then
4299     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4300  fi
4301  am__universal=false
4302  case " $depcc " in #(
4303     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4304     esac
4305
4306  for depmode in $am_compiler_list; do
4307    # Setup a source with many dependencies, because some compilers
4308    # like to wrap large dependency lists on column 80 (with \), and
4309    # we should not choose a depcomp mode which is confused by this.
4310    #
4311    # We need to recreate these files for each test, as the compiler may
4312    # overwrite some of them when testing with obscure command lines.
4313    # This happens at least with the AIX C compiler.
4314    : > sub/conftest.c
4315    for i in 1 2 3 4 5 6; do
4316      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4317      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4318      # Solaris 8's {/usr,}/bin/sh.
4319      touch sub/conftst$i.h
4320    done
4321    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4322
4323    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4324    # mode.  It turns out that the SunPro C++ compiler does not properly
4325    # handle `-M -o', and we need to detect this.  Also, some Intel
4326    # versions had trouble with output in subdirs
4327    am__obj=sub/conftest.${OBJEXT-o}
4328    am__minus_obj="-o $am__obj"
4329    case $depmode in
4330    gcc)
4331      # This depmode causes a compiler race in universal mode.
4332      test "$am__universal" = false || continue
4333      ;;
4334    nosideeffect)
4335      # after this tag, mechanisms are not by side-effect, so they'll
4336      # only be used when explicitly requested
4337      if test "x$enable_dependency_tracking" = xyes; then
4338	continue
4339      else
4340	break
4341      fi
4342      ;;
4343    msvisualcpp | msvcmsys)
4344      # This compiler won't grok `-c -o', but also, the minuso test has
4345      # not run yet.  These depmodes are late enough in the game, and
4346      # so weak that their functioning should not be impacted.
4347      am__obj=conftest.${OBJEXT-o}
4348      am__minus_obj=
4349      ;;
4350    none) break ;;
4351    esac
4352    if depmode=$depmode \
4353       source=sub/conftest.c object=$am__obj \
4354       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4355       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4356         >/dev/null 2>conftest.err &&
4357       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4358       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4359       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4360       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4361      # icc doesn't choke on unknown options, it will just issue warnings
4362      # or remarks (even with -Werror).  So we grep stderr for any message
4363      # that says an option was ignored or not supported.
4364      # When given -MP, icc 7.0 and 7.1 complain thusly:
4365      #   icc: Command line warning: ignoring option '-M'; no argument required
4366      # The diagnosis changed in icc 8.0:
4367      #   icc: Command line remark: option '-MP' not supported
4368      if (grep 'ignoring option' conftest.err ||
4369          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4370        am_cv_CC_dependencies_compiler_type=$depmode
4371        break
4372      fi
4373    fi
4374  done
4375
4376  cd ..
4377  rm -rf conftest.dir
4378else
4379  am_cv_CC_dependencies_compiler_type=none
4380fi
4381
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4384$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4385CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4386
4387 if
4388  test "x$enable_dependency_tracking" != xno \
4389  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4390  am__fastdepCC_TRUE=
4391  am__fastdepCC_FALSE='#'
4392else
4393  am__fastdepCC_TRUE='#'
4394  am__fastdepCC_FALSE=
4395fi
4396
4397
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4399$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4400if test "${ac_cv_path_SED+set}" = set; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4404     for ac_i in 1 2 3 4 5 6 7; do
4405       ac_script="$ac_script$as_nl$ac_script"
4406     done
4407     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4408     { ac_script=; unset ac_script;}
4409     if test -z "$SED"; then
4410  ac_path_SED_found=false
4411  # Loop through the user's path and test for each of PROGNAME-LIST
4412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417    for ac_prog in sed gsed; do
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4420      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4421# Check for GNU ac_path_SED and select it if it is found.
4422  # Check for GNU $ac_path_SED
4423case `"$ac_path_SED" --version 2>&1` in
4424*GNU*)
4425  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4426*)
4427  ac_count=0
4428  $as_echo_n 0123456789 >"conftest.in"
4429  while :
4430  do
4431    cat "conftest.in" "conftest.in" >"conftest.tmp"
4432    mv "conftest.tmp" "conftest.in"
4433    cp "conftest.in" "conftest.nl"
4434    $as_echo '' >> "conftest.nl"
4435    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437    as_fn_arith $ac_count + 1 && ac_count=$as_val
4438    if test $ac_count -gt ${ac_path_SED_max-0}; then
4439      # Best one so far, save it but keep looking for a better one
4440      ac_cv_path_SED="$ac_path_SED"
4441      ac_path_SED_max=$ac_count
4442    fi
4443    # 10*(2^10) chars as input seems more than enough
4444    test $ac_count -gt 10 && break
4445  done
4446  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447esac
4448
4449      $ac_path_SED_found && break 3
4450    done
4451  done
4452  done
4453IFS=$as_save_IFS
4454  if test -z "$ac_cv_path_SED"; then
4455    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4456  fi
4457else
4458  ac_cv_path_SED=$SED
4459fi
4460
4461fi
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4463$as_echo "$ac_cv_path_SED" >&6; }
4464 SED="$ac_cv_path_SED"
4465  rm -f conftest.sed
4466
4467test -z "$SED" && SED=sed
4468Xsed="$SED -e 1s/^X//"
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4481$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4482if test "${ac_cv_path_GREP+set}" = set; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  if test -z "$GREP"; then
4486  ac_path_GREP_found=false
4487  # Loop through the user's path and test for each of PROGNAME-LIST
4488  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490do
4491  IFS=$as_save_IFS
4492  test -z "$as_dir" && as_dir=.
4493    for ac_prog in grep ggrep; do
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4497# Check for GNU ac_path_GREP and select it if it is found.
4498  # Check for GNU $ac_path_GREP
4499case `"$ac_path_GREP" --version 2>&1` in
4500*GNU*)
4501  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502*)
4503  ac_count=0
4504  $as_echo_n 0123456789 >"conftest.in"
4505  while :
4506  do
4507    cat "conftest.in" "conftest.in" >"conftest.tmp"
4508    mv "conftest.tmp" "conftest.in"
4509    cp "conftest.in" "conftest.nl"
4510    $as_echo 'GREP' >> "conftest.nl"
4511    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513    as_fn_arith $ac_count + 1 && ac_count=$as_val
4514    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515      # Best one so far, save it but keep looking for a better one
4516      ac_cv_path_GREP="$ac_path_GREP"
4517      ac_path_GREP_max=$ac_count
4518    fi
4519    # 10*(2^10) chars as input seems more than enough
4520    test $ac_count -gt 10 && break
4521  done
4522  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523esac
4524
4525      $ac_path_GREP_found && break 3
4526    done
4527  done
4528  done
4529IFS=$as_save_IFS
4530  if test -z "$ac_cv_path_GREP"; then
4531    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532  fi
4533else
4534  ac_cv_path_GREP=$GREP
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4539$as_echo "$ac_cv_path_GREP" >&6; }
4540 GREP="$ac_cv_path_GREP"
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4544$as_echo_n "checking for egrep... " >&6; }
4545if test "${ac_cv_path_EGREP+set}" = set; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4549   then ac_cv_path_EGREP="$GREP -E"
4550   else
4551     if test -z "$EGREP"; then
4552  ac_path_EGREP_found=false
4553  # Loop through the user's path and test for each of PROGNAME-LIST
4554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_prog in egrep; do
4560    for ac_exec_ext in '' $ac_executable_extensions; do
4561      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4562      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4563# Check for GNU ac_path_EGREP and select it if it is found.
4564  # Check for GNU $ac_path_EGREP
4565case `"$ac_path_EGREP" --version 2>&1` in
4566*GNU*)
4567  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4568*)
4569  ac_count=0
4570  $as_echo_n 0123456789 >"conftest.in"
4571  while :
4572  do
4573    cat "conftest.in" "conftest.in" >"conftest.tmp"
4574    mv "conftest.tmp" "conftest.in"
4575    cp "conftest.in" "conftest.nl"
4576    $as_echo 'EGREP' >> "conftest.nl"
4577    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579    as_fn_arith $ac_count + 1 && ac_count=$as_val
4580    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4581      # Best one so far, save it but keep looking for a better one
4582      ac_cv_path_EGREP="$ac_path_EGREP"
4583      ac_path_EGREP_max=$ac_count
4584    fi
4585    # 10*(2^10) chars as input seems more than enough
4586    test $ac_count -gt 10 && break
4587  done
4588  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589esac
4590
4591      $ac_path_EGREP_found && break 3
4592    done
4593  done
4594  done
4595IFS=$as_save_IFS
4596  if test -z "$ac_cv_path_EGREP"; then
4597    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4598  fi
4599else
4600  ac_cv_path_EGREP=$EGREP
4601fi
4602
4603   fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4606$as_echo "$ac_cv_path_EGREP" >&6; }
4607 EGREP="$ac_cv_path_EGREP"
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4611$as_echo_n "checking for fgrep... " >&6; }
4612if test "${ac_cv_path_FGREP+set}" = set; then :
4613  $as_echo_n "(cached) " >&6
4614else
4615  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4616   then ac_cv_path_FGREP="$GREP -F"
4617   else
4618     if test -z "$FGREP"; then
4619  ac_path_FGREP_found=false
4620  # Loop through the user's path and test for each of PROGNAME-LIST
4621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_prog in fgrep; do
4627    for ac_exec_ext in '' $ac_executable_extensions; do
4628      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4629      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4630# Check for GNU ac_path_FGREP and select it if it is found.
4631  # Check for GNU $ac_path_FGREP
4632case `"$ac_path_FGREP" --version 2>&1` in
4633*GNU*)
4634  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4635*)
4636  ac_count=0
4637  $as_echo_n 0123456789 >"conftest.in"
4638  while :
4639  do
4640    cat "conftest.in" "conftest.in" >"conftest.tmp"
4641    mv "conftest.tmp" "conftest.in"
4642    cp "conftest.in" "conftest.nl"
4643    $as_echo 'FGREP' >> "conftest.nl"
4644    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646    as_fn_arith $ac_count + 1 && ac_count=$as_val
4647    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4648      # Best one so far, save it but keep looking for a better one
4649      ac_cv_path_FGREP="$ac_path_FGREP"
4650      ac_path_FGREP_max=$ac_count
4651    fi
4652    # 10*(2^10) chars as input seems more than enough
4653    test $ac_count -gt 10 && break
4654  done
4655  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656esac
4657
4658      $ac_path_FGREP_found && break 3
4659    done
4660  done
4661  done
4662IFS=$as_save_IFS
4663  if test -z "$ac_cv_path_FGREP"; then
4664    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665  fi
4666else
4667  ac_cv_path_FGREP=$FGREP
4668fi
4669
4670   fi
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4673$as_echo "$ac_cv_path_FGREP" >&6; }
4674 FGREP="$ac_cv_path_FGREP"
4675
4676
4677test -z "$GREP" && GREP=grep
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697# Check whether --with-gnu-ld was given.
4698if test "${with_gnu_ld+set}" = set; then :
4699  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4700else
4701  with_gnu_ld=no
4702fi
4703
4704ac_prog=ld
4705if test "$GCC" = yes; then
4706  # Check if gcc -print-prog-name=ld gives a path.
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4708$as_echo_n "checking for ld used by $CC... " >&6; }
4709  case $host in
4710  *-*-mingw*)
4711    # gcc leaves a trailing carriage return which upsets mingw
4712    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4713  *)
4714    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4715  esac
4716  case $ac_prog in
4717    # Accept absolute paths.
4718    [\\/]* | ?:[\\/]*)
4719      re_direlt='/[^/][^/]*/\.\./'
4720      # Canonicalize the pathname of ld
4721      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4722      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4723	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4724      done
4725      test -z "$LD" && LD="$ac_prog"
4726      ;;
4727  "")
4728    # If it fails, then pretend we aren't using GCC.
4729    ac_prog=ld
4730    ;;
4731  *)
4732    # If it is relative, then search for the first ld in PATH.
4733    with_gnu_ld=unknown
4734    ;;
4735  esac
4736elif test "$with_gnu_ld" = yes; then
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4738$as_echo_n "checking for GNU ld... " >&6; }
4739else
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4741$as_echo_n "checking for non-GNU ld... " >&6; }
4742fi
4743if test "${lt_cv_path_LD+set}" = set; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -z "$LD"; then
4747  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4748  for ac_dir in $PATH; do
4749    IFS="$lt_save_ifs"
4750    test -z "$ac_dir" && ac_dir=.
4751    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4752      lt_cv_path_LD="$ac_dir/$ac_prog"
4753      # Check to see if the program is GNU ld.  I'd rather use --version,
4754      # but apparently some variants of GNU ld only accept -v.
4755      # Break only if it was the GNU/non-GNU ld that we prefer.
4756      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4757      *GNU* | *'with BFD'*)
4758	test "$with_gnu_ld" != no && break
4759	;;
4760      *)
4761	test "$with_gnu_ld" != yes && break
4762	;;
4763      esac
4764    fi
4765  done
4766  IFS="$lt_save_ifs"
4767else
4768  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4769fi
4770fi
4771
4772LD="$lt_cv_path_LD"
4773if test -n "$LD"; then
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4775$as_echo "$LD" >&6; }
4776else
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778$as_echo "no" >&6; }
4779fi
4780test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4783if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4787case `$LD -v 2>&1 </dev/null` in
4788*GNU* | *'with BFD'*)
4789  lt_cv_prog_gnu_ld=yes
4790  ;;
4791*)
4792  lt_cv_prog_gnu_ld=no
4793  ;;
4794esac
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4797$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4798with_gnu_ld=$lt_cv_prog_gnu_ld
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4809$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4810if test "${lt_cv_path_NM+set}" = set; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  if test -n "$NM"; then
4814  # Let the user override the test.
4815  lt_cv_path_NM="$NM"
4816else
4817  lt_nm_to_check="${ac_tool_prefix}nm"
4818  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4819    lt_nm_to_check="$lt_nm_to_check nm"
4820  fi
4821  for lt_tmp_nm in $lt_nm_to_check; do
4822    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4823    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4824      IFS="$lt_save_ifs"
4825      test -z "$ac_dir" && ac_dir=.
4826      tmp_nm="$ac_dir/$lt_tmp_nm"
4827      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4828	# Check to see if the nm accepts a BSD-compat flag.
4829	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4830	#   nm: unknown option "B" ignored
4831	# Tru64's nm complains that /dev/null is an invalid object file
4832	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4833	*/dev/null* | *'Invalid file or object type'*)
4834	  lt_cv_path_NM="$tmp_nm -B"
4835	  break
4836	  ;;
4837	*)
4838	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4839	  */dev/null*)
4840	    lt_cv_path_NM="$tmp_nm -p"
4841	    break
4842	    ;;
4843	  *)
4844	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4845	    continue # so that we can try to find one that supports BSD flags
4846	    ;;
4847	  esac
4848	  ;;
4849	esac
4850      fi
4851    done
4852    IFS="$lt_save_ifs"
4853  done
4854  : ${lt_cv_path_NM=no}
4855fi
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4858$as_echo "$lt_cv_path_NM" >&6; }
4859if test "$lt_cv_path_NM" != "no"; then
4860  NM="$lt_cv_path_NM"
4861else
4862  # Didn't find any BSD compatible name lister, look for dumpbin.
4863  if test -n "$ac_tool_prefix"; then
4864  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4865  do
4866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869$as_echo_n "checking for $ac_word... " >&6; }
4870if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  if test -n "$DUMPBIN"; then
4874  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891fi
4892fi
4893DUMPBIN=$ac_cv_prog_DUMPBIN
4894if test -n "$DUMPBIN"; then
4895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4896$as_echo "$DUMPBIN" >&6; }
4897else
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900fi
4901
4902
4903    test -n "$DUMPBIN" && break
4904  done
4905fi
4906if test -z "$DUMPBIN"; then
4907  ac_ct_DUMPBIN=$DUMPBIN
4908  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4909do
4910  # Extract the first word of "$ac_prog", so it can be a program name with args.
4911set dummy $ac_prog; ac_word=$2
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  if test -n "$ac_ct_DUMPBIN"; then
4918  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923  IFS=$as_save_IFS
4924  test -z "$as_dir" && as_dir=.
4925    for ac_exec_ext in '' $ac_executable_extensions; do
4926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929    break 2
4930  fi
4931done
4932  done
4933IFS=$as_save_IFS
4934
4935fi
4936fi
4937ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4938if test -n "$ac_ct_DUMPBIN"; then
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4940$as_echo "$ac_ct_DUMPBIN" >&6; }
4941else
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
4944fi
4945
4946
4947  test -n "$ac_ct_DUMPBIN" && break
4948done
4949
4950  if test "x$ac_ct_DUMPBIN" = x; then
4951    DUMPBIN=":"
4952  else
4953    case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959    DUMPBIN=$ac_ct_DUMPBIN
4960  fi
4961fi
4962
4963
4964  if test "$DUMPBIN" != ":"; then
4965    NM="$DUMPBIN"
4966  fi
4967fi
4968test -z "$NM" && NM=nm
4969
4970
4971
4972
4973
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4976$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4977if test "${lt_cv_nm_interface+set}" = set; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980  lt_cv_nm_interface="BSD nm"
4981  echo "int some_variable = 0;" > conftest.$ac_ext
4982  (eval echo "\"\$as_me:4982: $ac_compile\"" >&5)
4983  (eval "$ac_compile" 2>conftest.err)
4984  cat conftest.err >&5
4985  (eval echo "\"\$as_me:4985: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4986  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4987  cat conftest.err >&5
4988  (eval echo "\"\$as_me:4988: output\"" >&5)
4989  cat conftest.out >&5
4990  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4991    lt_cv_nm_interface="MS dumpbin"
4992  fi
4993  rm -f conftest*
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4996$as_echo "$lt_cv_nm_interface" >&6; }
4997
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4999$as_echo_n "checking whether ln -s works... " >&6; }
5000LN_S=$as_ln_s
5001if test "$LN_S" = "ln -s"; then
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003$as_echo "yes" >&6; }
5004else
5005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5006$as_echo "no, using $LN_S" >&6; }
5007fi
5008
5009# find the maximum length of command line arguments
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5011$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5012if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015    i=0
5016  teststring="ABCD"
5017
5018  case $build_os in
5019  msdosdjgpp*)
5020    # On DJGPP, this test can blow up pretty badly due to problems in libc
5021    # (any single argument exceeding 2000 bytes causes a buffer overrun
5022    # during glob expansion).  Even if it were fixed, the result of this
5023    # check would be larger than it should be.
5024    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5025    ;;
5026
5027  gnu*)
5028    # Under GNU Hurd, this test is not required because there is
5029    # no limit to the length of command line arguments.
5030    # Libtool will interpret -1 as no limit whatsoever
5031    lt_cv_sys_max_cmd_len=-1;
5032    ;;
5033
5034  cygwin* | mingw* | cegcc*)
5035    # On Win9x/ME, this test blows up -- it succeeds, but takes
5036    # about 5 minutes as the teststring grows exponentially.
5037    # Worse, since 9x/ME are not pre-emptively multitasking,
5038    # you end up with a "frozen" computer, even though with patience
5039    # the test eventually succeeds (with a max line length of 256k).
5040    # Instead, let's just punt: use the minimum linelength reported by
5041    # all of the supported platforms: 8192 (on NT/2K/XP).
5042    lt_cv_sys_max_cmd_len=8192;
5043    ;;
5044
5045  amigaos*)
5046    # On AmigaOS with pdksh, this test takes hours, literally.
5047    # So we just punt and use a minimum line length of 8192.
5048    lt_cv_sys_max_cmd_len=8192;
5049    ;;
5050
5051  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5052    # This has been around since 386BSD, at least.  Likely further.
5053    if test -x /sbin/sysctl; then
5054      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5055    elif test -x /usr/sbin/sysctl; then
5056      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5057    else
5058      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5059    fi
5060    # And add a safety zone
5061    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5062    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5063    ;;
5064
5065  interix*)
5066    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5067    lt_cv_sys_max_cmd_len=196608
5068    ;;
5069
5070  osf*)
5071    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5072    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5073    # nice to cause kernel panics so lets avoid the loop below.
5074    # First set a reasonable default.
5075    lt_cv_sys_max_cmd_len=16384
5076    #
5077    if test -x /sbin/sysconfig; then
5078      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5079        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5080      esac
5081    fi
5082    ;;
5083  sco3.2v5*)
5084    lt_cv_sys_max_cmd_len=102400
5085    ;;
5086  sysv5* | sco5v6* | sysv4.2uw2*)
5087    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5088    if test -n "$kargmax"; then
5089      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5090    else
5091      lt_cv_sys_max_cmd_len=32768
5092    fi
5093    ;;
5094  *)
5095    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5096    if test -n "$lt_cv_sys_max_cmd_len"; then
5097      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099    else
5100      # Make teststring a little bigger before we do anything with it.
5101      # a 1K string should be a reasonable start.
5102      for i in 1 2 3 4 5 6 7 8 ; do
5103        teststring=$teststring$teststring
5104      done
5105      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5106      # If test is not a shell built-in, we'll probably end up computing a
5107      # maximum length that is only half of the actual maximum length, but
5108      # we can't tell.
5109      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5110	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5111	      test $i != 17 # 1/2 MB should be enough
5112      do
5113        i=`expr $i + 1`
5114        teststring=$teststring$teststring
5115      done
5116      # Only check the string length outside the loop.
5117      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5118      teststring=
5119      # Add a significant safety factor because C++ compilers can tack on
5120      # massive amounts of additional arguments before passing them to the
5121      # linker.  It appears as though 1/2 is a usable value.
5122      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5123    fi
5124    ;;
5125  esac
5126
5127fi
5128
5129if test -n $lt_cv_sys_max_cmd_len ; then
5130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5131$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5132else
5133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5134$as_echo "none" >&6; }
5135fi
5136max_cmd_len=$lt_cv_sys_max_cmd_len
5137
5138
5139
5140
5141
5142
5143: ${CP="cp -f"}
5144: ${MV="mv -f"}
5145: ${RM="rm -f"}
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5148$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5149# Try some XSI features
5150xsi_shell=no
5151( _lt_dummy="a/b/c"
5152  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5153      = c,a/b,, \
5154    && eval 'test $(( 1 + 1 )) -eq 2 \
5155    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5156  && xsi_shell=yes
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5158$as_echo "$xsi_shell" >&6; }
5159
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5162$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5163lt_shell_append=no
5164( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5165    >/dev/null 2>&1 \
5166  && lt_shell_append=yes
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5168$as_echo "$lt_shell_append" >&6; }
5169
5170
5171if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5172  lt_unset=unset
5173else
5174  lt_unset=false
5175fi
5176
5177
5178
5179
5180
5181# test EBCDIC or ASCII
5182case `echo X|tr X '\101'` in
5183 A) # ASCII based system
5184    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5185  lt_SP2NL='tr \040 \012'
5186  lt_NL2SP='tr \015\012 \040\040'
5187  ;;
5188 *) # EBCDIC based system
5189  lt_SP2NL='tr \100 \n'
5190  lt_NL2SP='tr \r\n \100\100'
5191  ;;
5192esac
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5203$as_echo_n "checking for $LD option to reload object files... " >&6; }
5204if test "${lt_cv_ld_reload_flag+set}" = set; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  lt_cv_ld_reload_flag='-r'
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5210$as_echo "$lt_cv_ld_reload_flag" >&6; }
5211reload_flag=$lt_cv_ld_reload_flag
5212case $reload_flag in
5213"" | " "*) ;;
5214*) reload_flag=" $reload_flag" ;;
5215esac
5216reload_cmds='$LD$reload_flag -o $output$reload_objs'
5217case $host_os in
5218  darwin*)
5219    if test "$GCC" = yes; then
5220      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5221    else
5222      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223    fi
5224    ;;
5225esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235if test -n "$ac_tool_prefix"; then
5236  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5237set dummy ${ac_tool_prefix}objdump; ac_word=$2
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
5240if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  if test -n "$OBJDUMP"; then
5244  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5245else
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249  IFS=$as_save_IFS
5250  test -z "$as_dir" && as_dir=.
5251    for ac_exec_ext in '' $ac_executable_extensions; do
5252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255    break 2
5256  fi
5257done
5258  done
5259IFS=$as_save_IFS
5260
5261fi
5262fi
5263OBJDUMP=$ac_cv_prog_OBJDUMP
5264if test -n "$OBJDUMP"; then
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5266$as_echo "$OBJDUMP" >&6; }
5267else
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272
5273fi
5274if test -z "$ac_cv_prog_OBJDUMP"; then
5275  ac_ct_OBJDUMP=$OBJDUMP
5276  # Extract the first word of "objdump", so it can be a program name with args.
5277set dummy objdump; ac_word=$2
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
5280if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  if test -n "$ac_ct_OBJDUMP"; then
5284  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5285else
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289  IFS=$as_save_IFS
5290  test -z "$as_dir" && as_dir=.
5291    for ac_exec_ext in '' $ac_executable_extensions; do
5292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295    break 2
5296  fi
5297done
5298  done
5299IFS=$as_save_IFS
5300
5301fi
5302fi
5303ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5304if test -n "$ac_ct_OBJDUMP"; then
5305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5306$as_echo "$ac_ct_OBJDUMP" >&6; }
5307else
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
5310fi
5311
5312  if test "x$ac_ct_OBJDUMP" = x; then
5313    OBJDUMP="false"
5314  else
5315    case $cross_compiling:$ac_tool_warned in
5316yes:)
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321    OBJDUMP=$ac_ct_OBJDUMP
5322  fi
5323else
5324  OBJDUMP="$ac_cv_prog_OBJDUMP"
5325fi
5326
5327test -z "$OBJDUMP" && OBJDUMP=objdump
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5338$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5339if test "${lt_cv_deplibs_check_method+set}" = set; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  lt_cv_file_magic_cmd='$MAGIC_CMD'
5343lt_cv_file_magic_test_file=
5344lt_cv_deplibs_check_method='unknown'
5345# Need to set the preceding variable on all platforms that support
5346# interlibrary dependencies.
5347# 'none' -- dependencies not supported.
5348# `unknown' -- same as none, but documents that we really don't know.
5349# 'pass_all' -- all dependencies passed with no checks.
5350# 'test_compile' -- check by making test program.
5351# 'file_magic [[regex]]' -- check by looking for files in library path
5352# which responds to the $file_magic_cmd with a given extended regex.
5353# If you have `file' or equivalent on your system and you're not sure
5354# whether `pass_all' will *always* work, you probably want this one.
5355
5356case $host_os in
5357aix[4-9]*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361beos*)
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365bsdi[45]*)
5366  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367  lt_cv_file_magic_cmd='/usr/bin/file -L'
5368  lt_cv_file_magic_test_file=/shlib/libc.so
5369  ;;
5370
5371cygwin*)
5372  # func_win32_libid is a shell function defined in ltmain.sh
5373  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374  lt_cv_file_magic_cmd='func_win32_libid'
5375  ;;
5376
5377mingw* | pw32*)
5378  # Base MSYS/MinGW do not provide the 'file' command needed by
5379  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5380  # unless we find 'file', for example because we are cross-compiling.
5381  if ( file / ) >/dev/null 2>&1; then
5382    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5383    lt_cv_file_magic_cmd='func_win32_libid'
5384  else
5385    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5386    lt_cv_file_magic_cmd='$OBJDUMP -f'
5387  fi
5388  ;;
5389
5390cegcc)
5391  # use the weaker test based on 'objdump'. See mingw*.
5392  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5393  lt_cv_file_magic_cmd='$OBJDUMP -f'
5394  ;;
5395
5396darwin* | rhapsody*)
5397  lt_cv_deplibs_check_method=pass_all
5398  ;;
5399
5400freebsd* | dragonfly*)
5401  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402    case $host_cpu in
5403    i*86 )
5404      # Not sure whether the presence of OpenBSD here was a mistake.
5405      # Let's accept both of them until this is cleared up.
5406      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5407      lt_cv_file_magic_cmd=/usr/bin/file
5408      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5409      ;;
5410    esac
5411  else
5412    lt_cv_deplibs_check_method=pass_all
5413  fi
5414  ;;
5415
5416gnu*)
5417  lt_cv_deplibs_check_method=pass_all
5418  ;;
5419
5420hpux10.20* | hpux11*)
5421  lt_cv_file_magic_cmd=/usr/bin/file
5422  case $host_cpu in
5423  ia64*)
5424    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5425    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5426    ;;
5427  hppa*64*)
5428    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5429    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5430    ;;
5431  *)
5432    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5433    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5434    ;;
5435  esac
5436  ;;
5437
5438interix[3-9]*)
5439  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5440  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5441  ;;
5442
5443irix5* | irix6* | nonstopux*)
5444  case $LD in
5445  *-32|*"-32 ") libmagic=32-bit;;
5446  *-n32|*"-n32 ") libmagic=N32;;
5447  *-64|*"-64 ") libmagic=64-bit;;
5448  *) libmagic=never-match;;
5449  esac
5450  lt_cv_deplibs_check_method=pass_all
5451  ;;
5452
5453# This must be Linux ELF.
5454linux* | k*bsd*-gnu)
5455  lt_cv_deplibs_check_method=pass_all
5456  ;;
5457
5458netbsd*)
5459  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5460    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461  else
5462    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5463  fi
5464  ;;
5465
5466newos6*)
5467  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5468  lt_cv_file_magic_cmd=/usr/bin/file
5469  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5470  ;;
5471
5472*nto* | *qnx*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475
5476openbsd*)
5477  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5478    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5479  else
5480    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5481  fi
5482  ;;
5483
5484osf3* | osf4* | osf5*)
5485  lt_cv_deplibs_check_method=pass_all
5486  ;;
5487
5488rdos*)
5489  lt_cv_deplibs_check_method=pass_all
5490  ;;
5491
5492solaris*)
5493  lt_cv_deplibs_check_method=pass_all
5494  ;;
5495
5496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500sysv4 | sysv4.3*)
5501  case $host_vendor in
5502  motorola)
5503    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]'
5504    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5505    ;;
5506  ncr)
5507    lt_cv_deplibs_check_method=pass_all
5508    ;;
5509  sequent)
5510    lt_cv_file_magic_cmd='/bin/file'
5511    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5512    ;;
5513  sni)
5514    lt_cv_file_magic_cmd='/bin/file'
5515    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5516    lt_cv_file_magic_test_file=/lib/libc.so
5517    ;;
5518  siemens)
5519    lt_cv_deplibs_check_method=pass_all
5520    ;;
5521  pc)
5522    lt_cv_deplibs_check_method=pass_all
5523    ;;
5524  esac
5525  ;;
5526
5527tpf*)
5528  lt_cv_deplibs_check_method=pass_all
5529  ;;
5530esac
5531
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5534$as_echo "$lt_cv_deplibs_check_method" >&6; }
5535file_magic_cmd=$lt_cv_file_magic_cmd
5536deplibs_check_method=$lt_cv_deplibs_check_method
5537test -z "$deplibs_check_method" && deplibs_check_method=unknown
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550if test -n "$ac_tool_prefix"; then
5551  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5552set dummy ${ac_tool_prefix}ar; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if test "${ac_cv_prog_AR+set}" = set; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  if test -n "$AR"; then
5559  ac_cv_prog_AR="$AR" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566    for ac_exec_ext in '' $ac_executable_extensions; do
5567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568    ac_cv_prog_AR="${ac_tool_prefix}ar"
5569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570    break 2
5571  fi
5572done
5573  done
5574IFS=$as_save_IFS
5575
5576fi
5577fi
5578AR=$ac_cv_prog_AR
5579if test -n "$AR"; then
5580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5581$as_echo "$AR" >&6; }
5582else
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584$as_echo "no" >&6; }
5585fi
5586
5587
5588fi
5589if test -z "$ac_cv_prog_AR"; then
5590  ac_ct_AR=$AR
5591  # Extract the first word of "ar", so it can be a program name with args.
5592set dummy ar; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
5595if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  if test -n "$ac_ct_AR"; then
5599  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606    for ac_exec_ext in '' $ac_executable_extensions; do
5607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608    ac_cv_prog_ac_ct_AR="ar"
5609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610    break 2
5611  fi
5612done
5613  done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618ac_ct_AR=$ac_cv_prog_ac_ct_AR
5619if test -n "$ac_ct_AR"; then
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5621$as_echo "$ac_ct_AR" >&6; }
5622else
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627  if test "x$ac_ct_AR" = x; then
5628    AR="false"
5629  else
5630    case $cross_compiling:$ac_tool_warned in
5631yes:)
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634ac_tool_warned=yes ;;
5635esac
5636    AR=$ac_ct_AR
5637  fi
5638else
5639  AR="$ac_cv_prog_AR"
5640fi
5641
5642test -z "$AR" && AR=ar
5643test -z "$AR_FLAGS" && AR_FLAGS=cru
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655if test -n "$ac_tool_prefix"; then
5656  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5657set dummy ${ac_tool_prefix}strip; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if test "${ac_cv_prog_STRIP+set}" = set; then :
5661  $as_echo_n "(cached) " >&6
5662else
5663  if test -n "$STRIP"; then
5664  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678  done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683STRIP=$ac_cv_prog_STRIP
5684if test -n "$STRIP"; then
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5686$as_echo "$STRIP" >&6; }
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692
5693fi
5694if test -z "$ac_cv_prog_STRIP"; then
5695  ac_ct_STRIP=$STRIP
5696  # Extract the first word of "strip", so it can be a program name with args.
5697set dummy strip; ac_word=$2
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699$as_echo_n "checking for $ac_word... " >&6; }
5700if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  if test -n "$ac_ct_STRIP"; then
5704  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711    for ac_exec_ext in '' $ac_executable_extensions; do
5712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713    ac_cv_prog_ac_ct_STRIP="strip"
5714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715    break 2
5716  fi
5717done
5718  done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5724if test -n "$ac_ct_STRIP"; then
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5726$as_echo "$ac_ct_STRIP" >&6; }
5727else
5728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732  if test "x$ac_ct_STRIP" = x; then
5733    STRIP=":"
5734  else
5735    case $cross_compiling:$ac_tool_warned in
5736yes:)
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5739ac_tool_warned=yes ;;
5740esac
5741    STRIP=$ac_ct_STRIP
5742  fi
5743else
5744  STRIP="$ac_cv_prog_STRIP"
5745fi
5746
5747test -z "$STRIP" && STRIP=:
5748
5749
5750
5751
5752
5753
5754if test -n "$ac_tool_prefix"; then
5755  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5756set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if test "${ac_cv_prog_RANLIB+set}" = set; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  if test -n "$RANLIB"; then
5763  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770    for ac_exec_ext in '' $ac_executable_extensions; do
5771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777  done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782RANLIB=$ac_cv_prog_RANLIB
5783if test -n "$RANLIB"; then
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5785$as_echo "$RANLIB" >&6; }
5786else
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791
5792fi
5793if test -z "$ac_cv_prog_RANLIB"; then
5794  ac_ct_RANLIB=$RANLIB
5795  # Extract the first word of "ranlib", so it can be a program name with args.
5796set dummy ranlib; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
5799if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5800  $as_echo_n "(cached) " >&6
5801else
5802  if test -n "$ac_ct_RANLIB"; then
5803  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810    for ac_exec_ext in '' $ac_executable_extensions; do
5811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812    ac_cv_prog_ac_ct_RANLIB="ranlib"
5813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814    break 2
5815  fi
5816done
5817  done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5823if test -n "$ac_ct_RANLIB"; then
5824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5825$as_echo "$ac_ct_RANLIB" >&6; }
5826else
5827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831  if test "x$ac_ct_RANLIB" = x; then
5832    RANLIB=":"
5833  else
5834    case $cross_compiling:$ac_tool_warned in
5835yes:)
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838ac_tool_warned=yes ;;
5839esac
5840    RANLIB=$ac_ct_RANLIB
5841  fi
5842else
5843  RANLIB="$ac_cv_prog_RANLIB"
5844fi
5845
5846test -z "$RANLIB" && RANLIB=:
5847
5848
5849
5850
5851
5852
5853# Determine commands to create old-style static archives.
5854old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5855old_postinstall_cmds='chmod 644 $oldlib'
5856old_postuninstall_cmds=
5857
5858if test -n "$RANLIB"; then
5859  case $host_os in
5860  openbsd*)
5861    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5862    ;;
5863  *)
5864    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5865    ;;
5866  esac
5867  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5868fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903# If no C compiler was specified, use CC.
5904LTCC=${LTCC-"$CC"}
5905
5906# If no C compiler flags were specified, use CFLAGS.
5907LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5908
5909# Allow CC to be a program name with arguments.
5910compiler=$CC
5911
5912
5913# Check for command to grab the raw symbol name followed by C symbol from nm.
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5915$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5916if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919
5920# These are sane defaults that work on at least a few old systems.
5921# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5922
5923# Character class describing NM global symbol codes.
5924symcode='[BCDEGRST]'
5925
5926# Regexp to match symbols that can be accessed directly from C.
5927sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5928
5929# Define system-specific variables.
5930case $host_os in
5931aix*)
5932  symcode='[BCDT]'
5933  ;;
5934cygwin* | mingw* | pw32* | cegcc*)
5935  symcode='[ABCDGISTW]'
5936  ;;
5937hpux*)
5938  if test "$host_cpu" = ia64; then
5939    symcode='[ABCDEGRST]'
5940  fi
5941  ;;
5942irix* | nonstopux*)
5943  symcode='[BCDEGRST]'
5944  ;;
5945osf*)
5946  symcode='[BCDEGQRST]'
5947  ;;
5948solaris*)
5949  symcode='[BDRT]'
5950  ;;
5951sco3.2v5*)
5952  symcode='[DT]'
5953  ;;
5954sysv4.2uw2*)
5955  symcode='[DT]'
5956  ;;
5957sysv5* | sco5v6* | unixware* | OpenUNIX*)
5958  symcode='[ABDT]'
5959  ;;
5960sysv4)
5961  symcode='[DFNSTU]'
5962  ;;
5963esac
5964
5965# If we're using GNU nm, then use its standard symbol codes.
5966case `$NM -V 2>&1` in
5967*GNU* | *'with BFD'*)
5968  symcode='[ABCDGIRSTW]' ;;
5969esac
5970
5971# Transform an extracted symbol line into a proper C declaration.
5972# Some systems (esp. on ia64) link data and code symbols differently,
5973# so use this general approach.
5974lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5975
5976# Transform an extracted symbol line into symbol name and symbol address
5977lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5978lt_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'"
5979
5980# Handle CRLF in mingw tool chain
5981opt_cr=
5982case $build_os in
5983mingw*)
5984  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5985  ;;
5986esac
5987
5988# Try without a prefix underscore, then with it.
5989for ac_symprfx in "" "_"; do
5990
5991  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5992  symxfrm="\\1 $ac_symprfx\\2 \\2"
5993
5994  # Write the raw and C identifiers.
5995  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5996    # Fake it for dumpbin and say T for any non-static function
5997    # and D for any global variable.
5998    # Also find C++ and __fastcall symbols from MSVC++,
5999    # which start with @ or ?.
6000    lt_cv_sys_global_symbol_pipe="$AWK '"\
6001"     {last_section=section; section=\$ 3};"\
6002"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6003"     \$ 0!~/External *\|/{next};"\
6004"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6005"     {if(hide[section]) next};"\
6006"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6007"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6008"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6009"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6010"     ' prfx=^$ac_symprfx"
6011  else
6012    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6013  fi
6014
6015  # Check to see that the pipe works correctly.
6016  pipe_works=no
6017
6018  rm -f conftest*
6019  cat > conftest.$ac_ext <<_LT_EOF
6020#ifdef __cplusplus
6021extern "C" {
6022#endif
6023char nm_test_var;
6024void nm_test_func(void);
6025void nm_test_func(void){}
6026#ifdef __cplusplus
6027}
6028#endif
6029int main(){nm_test_var='a';nm_test_func();return(0);}
6030_LT_EOF
6031
6032  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033  (eval $ac_compile) 2>&5
6034  ac_status=$?
6035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036  test $ac_status = 0; }; then
6037    # Now try to grab the symbols.
6038    nlist=conftest.nm
6039    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6040  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6041  ac_status=$?
6042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043  test $ac_status = 0; } && test -s "$nlist"; then
6044      # Try sorting and uniquifying the output.
6045      if sort "$nlist" | uniq > "$nlist"T; then
6046	mv -f "$nlist"T "$nlist"
6047      else
6048	rm -f "$nlist"T
6049      fi
6050
6051      # Make sure that we snagged all the symbols we need.
6052      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6053	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6054	  cat <<_LT_EOF > conftest.$ac_ext
6055#ifdef __cplusplus
6056extern "C" {
6057#endif
6058
6059_LT_EOF
6060	  # Now generate the symbol file.
6061	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6062
6063	  cat <<_LT_EOF >> conftest.$ac_ext
6064
6065/* The mapping between symbol names and symbols.  */
6066const struct {
6067  const char *name;
6068  void       *address;
6069}
6070lt__PROGRAM__LTX_preloaded_symbols[] =
6071{
6072  { "@PROGRAM@", (void *) 0 },
6073_LT_EOF
6074	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6075	  cat <<\_LT_EOF >> conftest.$ac_ext
6076  {0, (void *) 0}
6077};
6078
6079/* This works around a problem in FreeBSD linker */
6080#ifdef FREEBSD_WORKAROUND
6081static const void *lt_preloaded_setup() {
6082  return lt__PROGRAM__LTX_preloaded_symbols;
6083}
6084#endif
6085
6086#ifdef __cplusplus
6087}
6088#endif
6089_LT_EOF
6090	  # Now try linking the two files.
6091	  mv conftest.$ac_objext conftstm.$ac_objext
6092	  lt_save_LIBS="$LIBS"
6093	  lt_save_CFLAGS="$CFLAGS"
6094	  LIBS="conftstm.$ac_objext"
6095	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6096	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6097  (eval $ac_link) 2>&5
6098  ac_status=$?
6099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6101	    pipe_works=yes
6102	  fi
6103	  LIBS="$lt_save_LIBS"
6104	  CFLAGS="$lt_save_CFLAGS"
6105	else
6106	  echo "cannot find nm_test_func in $nlist" >&5
6107	fi
6108      else
6109	echo "cannot find nm_test_var in $nlist" >&5
6110      fi
6111    else
6112      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6113    fi
6114  else
6115    echo "$progname: failed program was:" >&5
6116    cat conftest.$ac_ext >&5
6117  fi
6118  rm -rf conftest* conftst*
6119
6120  # Do not use the global_symbol_pipe unless it works.
6121  if test "$pipe_works" = yes; then
6122    break
6123  else
6124    lt_cv_sys_global_symbol_pipe=
6125  fi
6126done
6127
6128fi
6129
6130if test -z "$lt_cv_sys_global_symbol_pipe"; then
6131  lt_cv_sys_global_symbol_to_cdecl=
6132fi
6133if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6135$as_echo "failed" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6138$as_echo "ok" >&6; }
6139fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163# Check whether --enable-libtool-lock was given.
6164if test "${enable_libtool_lock+set}" = set; then :
6165  enableval=$enable_libtool_lock;
6166fi
6167
6168test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6169
6170# Some flags need to be propagated to the compiler or linker for good
6171# libtool support.
6172case $host in
6173ia64-*-hpux*)
6174  # Find out which ABI we are using.
6175  echo 'int i;' > conftest.$ac_ext
6176  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177  (eval $ac_compile) 2>&5
6178  ac_status=$?
6179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180  test $ac_status = 0; }; then
6181    case `/usr/bin/file conftest.$ac_objext` in
6182      *ELF-32*)
6183	HPUX_IA64_MODE="32"
6184	;;
6185      *ELF-64*)
6186	HPUX_IA64_MODE="64"
6187	;;
6188    esac
6189  fi
6190  rm -rf conftest*
6191  ;;
6192*-*-irix6*)
6193  # Find out which ABI we are using.
6194  echo '#line 6194 "configure"' > conftest.$ac_ext
6195  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6196  (eval $ac_compile) 2>&5
6197  ac_status=$?
6198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199  test $ac_status = 0; }; then
6200    if test "$lt_cv_prog_gnu_ld" = yes; then
6201      case `/usr/bin/file conftest.$ac_objext` in
6202	*32-bit*)
6203	  LD="${LD-ld} -melf32bsmip"
6204	  ;;
6205	*N32*)
6206	  LD="${LD-ld} -melf32bmipn32"
6207	  ;;
6208	*64-bit*)
6209	  LD="${LD-ld} -melf64bmip"
6210	;;
6211      esac
6212    else
6213      case `/usr/bin/file conftest.$ac_objext` in
6214	*32-bit*)
6215	  LD="${LD-ld} -32"
6216	  ;;
6217	*N32*)
6218	  LD="${LD-ld} -n32"
6219	  ;;
6220	*64-bit*)
6221	  LD="${LD-ld} -64"
6222	  ;;
6223      esac
6224    fi
6225  fi
6226  rm -rf conftest*
6227  ;;
6228
6229x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6230s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6231  # Find out which ABI we are using.
6232  echo 'int i;' > conftest.$ac_ext
6233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6234  (eval $ac_compile) 2>&5
6235  ac_status=$?
6236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237  test $ac_status = 0; }; then
6238    case `/usr/bin/file conftest.o` in
6239      *32-bit*)
6240	case $host in
6241	  x86_64-*kfreebsd*-gnu)
6242	    LD="${LD-ld} -m elf_i386_fbsd"
6243	    ;;
6244	  x86_64-*linux*)
6245	    LD="${LD-ld} -m elf_i386"
6246	    ;;
6247	  ppc64-*linux*|powerpc64-*linux*)
6248	    LD="${LD-ld} -m elf32ppclinux"
6249	    ;;
6250	  s390x-*linux*)
6251	    LD="${LD-ld} -m elf_s390"
6252	    ;;
6253	  sparc64-*linux*)
6254	    LD="${LD-ld} -m elf32_sparc"
6255	    ;;
6256	esac
6257	;;
6258      *64-bit*)
6259	case $host in
6260	  x86_64-*kfreebsd*-gnu)
6261	    LD="${LD-ld} -m elf_x86_64_fbsd"
6262	    ;;
6263	  x86_64-*linux*)
6264	    LD="${LD-ld} -m elf_x86_64"
6265	    ;;
6266	  ppc*-*linux*|powerpc*-*linux*)
6267	    LD="${LD-ld} -m elf64ppc"
6268	    ;;
6269	  s390*-*linux*|s390*-*tpf*)
6270	    LD="${LD-ld} -m elf64_s390"
6271	    ;;
6272	  sparc*-*linux*)
6273	    LD="${LD-ld} -m elf64_sparc"
6274	    ;;
6275	esac
6276	;;
6277    esac
6278  fi
6279  rm -rf conftest*
6280  ;;
6281
6282*-*-sco3.2v5*)
6283  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6284  SAVE_CFLAGS="$CFLAGS"
6285  CFLAGS="$CFLAGS -belf"
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6287$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6288if test "${lt_cv_cc_needs_belf+set}" = set; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  ac_ext=c
6292ac_cpp='$CPP $CPPFLAGS'
6293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295ac_compiler_gnu=$ac_cv_c_compiler_gnu
6296
6297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299
6300int
6301main ()
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309  lt_cv_cc_needs_belf=yes
6310else
6311  lt_cv_cc_needs_belf=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314    conftest$ac_exeext conftest.$ac_ext
6315     ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6323$as_echo "$lt_cv_cc_needs_belf" >&6; }
6324  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6325    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6326    CFLAGS="$SAVE_CFLAGS"
6327  fi
6328  ;;
6329sparc*-*solaris*)
6330  # Find out which ABI we are using.
6331  echo 'int i;' > conftest.$ac_ext
6332  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6333  (eval $ac_compile) 2>&5
6334  ac_status=$?
6335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336  test $ac_status = 0; }; then
6337    case `/usr/bin/file conftest.o` in
6338    *64-bit*)
6339      case $lt_cv_prog_gnu_ld in
6340      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6341      *)
6342	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6343	  LD="${LD-ld} -64"
6344	fi
6345	;;
6346      esac
6347      ;;
6348    esac
6349  fi
6350  rm -rf conftest*
6351  ;;
6352esac
6353
6354need_locks="$enable_libtool_lock"
6355
6356
6357  case $host_os in
6358    rhapsody* | darwin*)
6359    if test -n "$ac_tool_prefix"; then
6360  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6361set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  if test -n "$DSYMUTIL"; then
6368  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375    for ac_exec_ext in '' $ac_executable_extensions; do
6376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379    break 2
6380  fi
6381done
6382  done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387DSYMUTIL=$ac_cv_prog_DSYMUTIL
6388if test -n "$DSYMUTIL"; then
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6390$as_echo "$DSYMUTIL" >&6; }
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396
6397fi
6398if test -z "$ac_cv_prog_DSYMUTIL"; then
6399  ac_ct_DSYMUTIL=$DSYMUTIL
6400  # Extract the first word of "dsymutil", so it can be a program name with args.
6401set dummy dsymutil; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  if test -n "$ac_ct_DSYMUTIL"; then
6408  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415    for ac_exec_ext in '' $ac_executable_extensions; do
6416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422  done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6428if test -n "$ac_ct_DSYMUTIL"; then
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6430$as_echo "$ac_ct_DSYMUTIL" >&6; }
6431else
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436  if test "x$ac_ct_DSYMUTIL" = x; then
6437    DSYMUTIL=":"
6438  else
6439    case $cross_compiling:$ac_tool_warned in
6440yes:)
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443ac_tool_warned=yes ;;
6444esac
6445    DSYMUTIL=$ac_ct_DSYMUTIL
6446  fi
6447else
6448  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6449fi
6450
6451    if test -n "$ac_tool_prefix"; then
6452  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6453set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
6456if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  if test -n "$NMEDIT"; then
6460  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465  IFS=$as_save_IFS
6466  test -z "$as_dir" && as_dir=.
6467    for ac_exec_ext in '' $ac_executable_extensions; do
6468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471    break 2
6472  fi
6473done
6474  done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479NMEDIT=$ac_cv_prog_NMEDIT
6480if test -n "$NMEDIT"; then
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6482$as_echo "$NMEDIT" >&6; }
6483else
6484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488
6489fi
6490if test -z "$ac_cv_prog_NMEDIT"; then
6491  ac_ct_NMEDIT=$NMEDIT
6492  # Extract the first word of "nmedit", so it can be a program name with args.
6493set dummy nmedit; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  if test -n "$ac_ct_NMEDIT"; then
6500  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505  IFS=$as_save_IFS
6506  test -z "$as_dir" && as_dir=.
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6520if test -n "$ac_ct_NMEDIT"; then
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6522$as_echo "$ac_ct_NMEDIT" >&6; }
6523else
6524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528  if test "x$ac_ct_NMEDIT" = x; then
6529    NMEDIT=":"
6530  else
6531    case $cross_compiling:$ac_tool_warned in
6532yes:)
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535ac_tool_warned=yes ;;
6536esac
6537    NMEDIT=$ac_ct_NMEDIT
6538  fi
6539else
6540  NMEDIT="$ac_cv_prog_NMEDIT"
6541fi
6542
6543    if test -n "$ac_tool_prefix"; then
6544  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6545set dummy ${ac_tool_prefix}lipo; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if test "${ac_cv_prog_LIPO+set}" = set; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  if test -n "$LIPO"; then
6552  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557  IFS=$as_save_IFS
6558  test -z "$as_dir" && as_dir=.
6559    for ac_exec_ext in '' $ac_executable_extensions; do
6560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563    break 2
6564  fi
6565done
6566  done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571LIPO=$ac_cv_prog_LIPO
6572if test -n "$LIPO"; then
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6574$as_echo "$LIPO" >&6; }
6575else
6576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580
6581fi
6582if test -z "$ac_cv_prog_LIPO"; then
6583  ac_ct_LIPO=$LIPO
6584  # Extract the first word of "lipo", so it can be a program name with args.
6585set dummy lipo; ac_word=$2
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587$as_echo_n "checking for $ac_word... " >&6; }
6588if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  if test -n "$ac_ct_LIPO"; then
6592  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597  IFS=$as_save_IFS
6598  test -z "$as_dir" && as_dir=.
6599    for ac_exec_ext in '' $ac_executable_extensions; do
6600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601    ac_cv_prog_ac_ct_LIPO="lipo"
6602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603    break 2
6604  fi
6605done
6606  done
6607IFS=$as_save_IFS
6608
6609fi
6610fi
6611ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6612if test -n "$ac_ct_LIPO"; then
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6614$as_echo "$ac_ct_LIPO" >&6; }
6615else
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
6618fi
6619
6620  if test "x$ac_ct_LIPO" = x; then
6621    LIPO=":"
6622  else
6623    case $cross_compiling:$ac_tool_warned in
6624yes:)
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627ac_tool_warned=yes ;;
6628esac
6629    LIPO=$ac_ct_LIPO
6630  fi
6631else
6632  LIPO="$ac_cv_prog_LIPO"
6633fi
6634
6635    if test -n "$ac_tool_prefix"; then
6636  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6637set dummy ${ac_tool_prefix}otool; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if test "${ac_cv_prog_OTOOL+set}" = set; then :
6641  $as_echo_n "(cached) " >&6
6642else
6643  if test -n "$OTOOL"; then
6644  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649  IFS=$as_save_IFS
6650  test -z "$as_dir" && as_dir=.
6651    for ac_exec_ext in '' $ac_executable_extensions; do
6652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655    break 2
6656  fi
6657done
6658  done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663OTOOL=$ac_cv_prog_OTOOL
6664if test -n "$OTOOL"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6666$as_echo "$OTOOL" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672
6673fi
6674if test -z "$ac_cv_prog_OTOOL"; then
6675  ac_ct_OTOOL=$OTOOL
6676  # Extract the first word of "otool", so it can be a program name with args.
6677set dummy otool; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -n "$ac_ct_OTOOL"; then
6684  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693    ac_cv_prog_ac_ct_OTOOL="otool"
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
6703ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6704if test -n "$ac_ct_OTOOL"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6706$as_echo "$ac_ct_OTOOL" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712  if test "x$ac_ct_OTOOL" = x; then
6713    OTOOL=":"
6714  else
6715    case $cross_compiling:$ac_tool_warned in
6716yes:)
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719ac_tool_warned=yes ;;
6720esac
6721    OTOOL=$ac_ct_OTOOL
6722  fi
6723else
6724  OTOOL="$ac_cv_prog_OTOOL"
6725fi
6726
6727    if test -n "$ac_tool_prefix"; then
6728  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6729set dummy ${ac_tool_prefix}otool64; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  if test -n "$OTOOL64"; then
6736  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741  IFS=$as_save_IFS
6742  test -z "$as_dir" && as_dir=.
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755OTOOL64=$ac_cv_prog_OTOOL64
6756if test -n "$OTOOL64"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6758$as_echo "$OTOOL64" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765fi
6766if test -z "$ac_cv_prog_OTOOL64"; then
6767  ac_ct_OTOOL64=$OTOOL64
6768  # Extract the first word of "otool64", so it can be a program name with args.
6769set dummy otool64; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$ac_ct_OTOOL64"; then
6776  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785    ac_cv_prog_ac_ct_OTOOL64="otool64"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6796if test -n "$ac_ct_OTOOL64"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6798$as_echo "$ac_ct_OTOOL64" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804  if test "x$ac_ct_OTOOL64" = x; then
6805    OTOOL64=":"
6806  else
6807    case $cross_compiling:$ac_tool_warned in
6808yes:)
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811ac_tool_warned=yes ;;
6812esac
6813    OTOOL64=$ac_ct_OTOOL64
6814  fi
6815else
6816  OTOOL64="$ac_cv_prog_OTOOL64"
6817fi
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6846$as_echo_n "checking for -single_module linker flag... " >&6; }
6847if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  lt_cv_apple_cc_single_mod=no
6851      if test -z "${LT_MULTI_MODULE}"; then
6852	# By default we will add the -single_module flag. You can override
6853	# by either setting the environment variable LT_MULTI_MODULE
6854	# non-empty at configure time, or by adding -multi_module to the
6855	# link flags.
6856	rm -rf libconftest.dylib*
6857	echo "int foo(void){return 1;}" > conftest.c
6858	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6859-dynamiclib -Wl,-single_module conftest.c" >&5
6860	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6861	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6862        _lt_result=$?
6863	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6864	  lt_cv_apple_cc_single_mod=yes
6865	else
6866	  cat conftest.err >&5
6867	fi
6868	rm -rf libconftest.dylib*
6869	rm -f conftest.*
6870      fi
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6873$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6875$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6876if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  lt_cv_ld_exported_symbols_list=no
6880      save_LDFLAGS=$LDFLAGS
6881      echo "_main" > conftest.sym
6882      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6883      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885
6886int
6887main ()
6888{
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_link "$LINENO"; then :
6895  lt_cv_ld_exported_symbols_list=yes
6896else
6897  lt_cv_ld_exported_symbols_list=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext \
6900    conftest$ac_exeext conftest.$ac_ext
6901	LDFLAGS="$save_LDFLAGS"
6902
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6905$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6906    case $host_os in
6907    rhapsody* | darwin1.[012])
6908      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6909    darwin1.*)
6910      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6911    darwin*) # darwin 5.x on
6912      # if running on 10.5 or later, the deployment target defaults
6913      # to the OS version, if on x86, and 10.4, the deployment
6914      # target defaults to 10.4. Don't you love it?
6915      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6916	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6917	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6918	10.[012]*)
6919	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6920	10.*)
6921	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6922      esac
6923    ;;
6924  esac
6925    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6926      _lt_dar_single_mod='$single_module'
6927    fi
6928    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6929      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6930    else
6931      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6932    fi
6933    if test "$DSYMUTIL" != ":"; then
6934      _lt_dsymutil='~$DSYMUTIL $lib || :'
6935    else
6936      _lt_dsymutil=
6937    fi
6938    ;;
6939  esac
6940
6941ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6947$as_echo_n "checking how to run the C preprocessor... " >&6; }
6948# On Suns, sometimes $CPP names a directory.
6949if test -n "$CPP" && test -d "$CPP"; then
6950  CPP=
6951fi
6952if test -z "$CPP"; then
6953  if test "${ac_cv_prog_CPP+set}" = set; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956      # Double quotes because CPP needs to be expanded
6957    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6958    do
6959      ac_preproc_ok=false
6960for ac_c_preproc_warn_flag in '' yes
6961do
6962  # Use a header file that comes with gcc, so configuring glibc
6963  # with a fresh cross-compiler works.
6964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6965  # <limits.h> exists even on freestanding compilers.
6966  # On the NeXT, cc -E runs the code through the compiler's parser,
6967  # not just through cpp. "Syntax error" is here to catch this case.
6968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h.  */
6970#ifdef __STDC__
6971# include <limits.h>
6972#else
6973# include <assert.h>
6974#endif
6975		     Syntax error
6976_ACEOF
6977if ac_fn_c_try_cpp "$LINENO"; then :
6978
6979else
6980  # Broken: fails on valid input.
6981continue
6982fi
6983rm -f conftest.err conftest.$ac_ext
6984
6985  # OK, works on sane cases.  Now check whether nonexistent headers
6986  # can be detected and how.
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989#include <ac_nonexistent.h>
6990_ACEOF
6991if ac_fn_c_try_cpp "$LINENO"; then :
6992  # Broken: success on invalid input.
6993continue
6994else
6995  # Passes both tests.
6996ac_preproc_ok=:
6997break
6998fi
6999rm -f conftest.err conftest.$ac_ext
7000
7001done
7002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003rm -f conftest.err conftest.$ac_ext
7004if $ac_preproc_ok; then :
7005  break
7006fi
7007
7008    done
7009    ac_cv_prog_CPP=$CPP
7010
7011fi
7012  CPP=$ac_cv_prog_CPP
7013else
7014  ac_cv_prog_CPP=$CPP
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7017$as_echo "$CPP" >&6; }
7018ac_preproc_ok=false
7019for ac_c_preproc_warn_flag in '' yes
7020do
7021  # Use a header file that comes with gcc, so configuring glibc
7022  # with a fresh cross-compiler works.
7023  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7024  # <limits.h> exists even on freestanding compilers.
7025  # On the NeXT, cc -E runs the code through the compiler's parser,
7026  # not just through cpp. "Syntax error" is here to catch this case.
7027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h.  */
7029#ifdef __STDC__
7030# include <limits.h>
7031#else
7032# include <assert.h>
7033#endif
7034		     Syntax error
7035_ACEOF
7036if ac_fn_c_try_cpp "$LINENO"; then :
7037
7038else
7039  # Broken: fails on valid input.
7040continue
7041fi
7042rm -f conftest.err conftest.$ac_ext
7043
7044  # OK, works on sane cases.  Now check whether nonexistent headers
7045  # can be detected and how.
7046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047/* end confdefs.h.  */
7048#include <ac_nonexistent.h>
7049_ACEOF
7050if ac_fn_c_try_cpp "$LINENO"; then :
7051  # Broken: success on invalid input.
7052continue
7053else
7054  # Passes both tests.
7055ac_preproc_ok=:
7056break
7057fi
7058rm -f conftest.err conftest.$ac_ext
7059
7060done
7061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7062rm -f conftest.err conftest.$ac_ext
7063if $ac_preproc_ok; then :
7064
7065else
7066  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7068as_fn_error "C preprocessor \"$CPP\" fails sanity check
7069See \`config.log' for more details." "$LINENO" 5; }
7070fi
7071
7072ac_ext=c
7073ac_cpp='$CPP $CPPFLAGS'
7074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077
7078
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7080$as_echo_n "checking for ANSI C header files... " >&6; }
7081if test "${ac_cv_header_stdc+set}" = set; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086#include <stdlib.h>
7087#include <stdarg.h>
7088#include <string.h>
7089#include <float.h>
7090
7091int
7092main ()
7093{
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099if ac_fn_c_try_compile "$LINENO"; then :
7100  ac_cv_header_stdc=yes
7101else
7102  ac_cv_header_stdc=no
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105
7106if test $ac_cv_header_stdc = yes; then
7107  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110#include <string.h>
7111
7112_ACEOF
7113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114  $EGREP "memchr" >/dev/null 2>&1; then :
7115
7116else
7117  ac_cv_header_stdc=no
7118fi
7119rm -f conftest*
7120
7121fi
7122
7123if test $ac_cv_header_stdc = yes; then
7124  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127#include <stdlib.h>
7128
7129_ACEOF
7130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7131  $EGREP "free" >/dev/null 2>&1; then :
7132
7133else
7134  ac_cv_header_stdc=no
7135fi
7136rm -f conftest*
7137
7138fi
7139
7140if test $ac_cv_header_stdc = yes; then
7141  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7142  if test "$cross_compiling" = yes; then :
7143  :
7144else
7145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146/* end confdefs.h.  */
7147#include <ctype.h>
7148#include <stdlib.h>
7149#if ((' ' & 0x0FF) == 0x020)
7150# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7151# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7152#else
7153# define ISLOWER(c) \
7154		   (('a' <= (c) && (c) <= 'i') \
7155		     || ('j' <= (c) && (c) <= 'r') \
7156		     || ('s' <= (c) && (c) <= 'z'))
7157# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158#endif
7159
7160#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7161int
7162main ()
7163{
7164  int i;
7165  for (i = 0; i < 256; i++)
7166    if (XOR (islower (i), ISLOWER (i))
7167	|| toupper (i) != TOUPPER (i))
7168      return 2;
7169  return 0;
7170}
7171_ACEOF
7172if ac_fn_c_try_run "$LINENO"; then :
7173
7174else
7175  ac_cv_header_stdc=no
7176fi
7177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7178  conftest.$ac_objext conftest.beam conftest.$ac_ext
7179fi
7180
7181fi
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7184$as_echo "$ac_cv_header_stdc" >&6; }
7185if test $ac_cv_header_stdc = yes; then
7186
7187$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7188
7189fi
7190
7191# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7192for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7193		  inttypes.h stdint.h unistd.h
7194do :
7195  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7196ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7197"
7198eval as_val=\$$as_ac_Header
7199   if test "x$as_val" = x""yes; then :
7200  cat >>confdefs.h <<_ACEOF
7201#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7202_ACEOF
7203
7204fi
7205
7206done
7207
7208
7209for ac_header in dlfcn.h
7210do :
7211  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7212"
7213if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7214  cat >>confdefs.h <<_ACEOF
7215#define HAVE_DLFCN_H 1
7216_ACEOF
7217
7218fi
7219
7220done
7221
7222
7223
7224# Set options
7225
7226
7227
7228
7229  enable_win32_dll=no
7230
7231
7232            # Check whether --enable-shared was given.
7233if test "${enable_shared+set}" = set; then :
7234  enableval=$enable_shared; p=${PACKAGE-default}
7235    case $enableval in
7236    yes) enable_shared=yes ;;
7237    no) enable_shared=no ;;
7238    *)
7239      enable_shared=no
7240      # Look at the argument we got.  We use all the common list separators.
7241      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7242      for pkg in $enableval; do
7243	IFS="$lt_save_ifs"
7244	if test "X$pkg" = "X$p"; then
7245	  enable_shared=yes
7246	fi
7247      done
7248      IFS="$lt_save_ifs"
7249      ;;
7250    esac
7251else
7252  enable_shared=yes
7253fi
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265# Check whether --with-pic was given.
7266if test "${with_pic+set}" = set; then :
7267  withval=$with_pic; pic_mode="$withval"
7268else
7269  pic_mode=default
7270fi
7271
7272
7273test -z "$pic_mode" && pic_mode=default
7274
7275
7276
7277
7278
7279
7280
7281  # Check whether --enable-fast-install was given.
7282if test "${enable_fast_install+set}" = set; then :
7283  enableval=$enable_fast_install; p=${PACKAGE-default}
7284    case $enableval in
7285    yes) enable_fast_install=yes ;;
7286    no) enable_fast_install=no ;;
7287    *)
7288      enable_fast_install=no
7289      # Look at the argument we got.  We use all the common list separators.
7290      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7291      for pkg in $enableval; do
7292	IFS="$lt_save_ifs"
7293	if test "X$pkg" = "X$p"; then
7294	  enable_fast_install=yes
7295	fi
7296      done
7297      IFS="$lt_save_ifs"
7298      ;;
7299    esac
7300else
7301  enable_fast_install=yes
7302fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314# This can be used to rebuild libtool when needed
7315LIBTOOL_DEPS="$ltmain"
7316
7317# Always use our own libtool.
7318LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344test -z "$LN_S" && LN_S="ln -s"
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359if test -n "${ZSH_VERSION+set}" ; then
7360   setopt NO_GLOB_SUBST
7361fi
7362
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7364$as_echo_n "checking for objdir... " >&6; }
7365if test "${lt_cv_objdir+set}" = set; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  rm -f .libs 2>/dev/null
7369mkdir .libs 2>/dev/null
7370if test -d .libs; then
7371  lt_cv_objdir=.libs
7372else
7373  # MS-DOS does not allow filenames that begin with a dot.
7374  lt_cv_objdir=_libs
7375fi
7376rmdir .libs 2>/dev/null
7377fi
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7379$as_echo "$lt_cv_objdir" >&6; }
7380objdir=$lt_cv_objdir
7381
7382
7383
7384
7385
7386cat >>confdefs.h <<_ACEOF
7387#define LT_OBJDIR "$lt_cv_objdir/"
7388_ACEOF
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406case $host_os in
7407aix3*)
7408  # AIX sometimes has problems with the GCC collect2 program.  For some
7409  # reason, if we set the COLLECT_NAMES environment variable, the problems
7410  # vanish in a puff of smoke.
7411  if test "X${COLLECT_NAMES+set}" != Xset; then
7412    COLLECT_NAMES=
7413    export COLLECT_NAMES
7414  fi
7415  ;;
7416esac
7417
7418# Sed substitution that helps us do robust quoting.  It backslashifies
7419# metacharacters that are still active within double-quoted strings.
7420sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7421
7422# Same as above, but do not quote variable references.
7423double_quote_subst='s/\(["`\\]\)/\\\1/g'
7424
7425# Sed substitution to delay expansion of an escaped shell variable in a
7426# double_quote_subst'ed string.
7427delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7428
7429# Sed substitution to delay expansion of an escaped single quote.
7430delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7431
7432# Sed substitution to avoid accidental globbing in evaled expressions
7433no_glob_subst='s/\*/\\\*/g'
7434
7435# Global variables:
7436ofile=libtool
7437can_build_shared=yes
7438
7439# All known linkers require a `.a' archive for static linking (except MSVC,
7440# which needs '.lib').
7441libext=a
7442
7443with_gnu_ld="$lt_cv_prog_gnu_ld"
7444
7445old_CC="$CC"
7446old_CFLAGS="$CFLAGS"
7447
7448# Set sane defaults for various variables
7449test -z "$CC" && CC=cc
7450test -z "$LTCC" && LTCC=$CC
7451test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7452test -z "$LD" && LD=ld
7453test -z "$ac_objext" && ac_objext=o
7454
7455for cc_temp in $compiler""; do
7456  case $cc_temp in
7457    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7458    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7459    \-*) ;;
7460    *) break;;
7461  esac
7462done
7463cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7464
7465
7466# Only perform the check for file, if the check method requires it
7467test -z "$MAGIC_CMD" && MAGIC_CMD=file
7468case $deplibs_check_method in
7469file_magic*)
7470  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7472$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7473if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  case $MAGIC_CMD in
7477[\\/*] |  ?:[\\/]*)
7478  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7479  ;;
7480*)
7481  lt_save_MAGIC_CMD="$MAGIC_CMD"
7482  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7483  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7484  for ac_dir in $ac_dummy; do
7485    IFS="$lt_save_ifs"
7486    test -z "$ac_dir" && ac_dir=.
7487    if test -f $ac_dir/${ac_tool_prefix}file; then
7488      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7489      if test -n "$file_magic_test_file"; then
7490	case $deplibs_check_method in
7491	"file_magic "*)
7492	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7493	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7495	    $EGREP "$file_magic_regex" > /dev/null; then
7496	    :
7497	  else
7498	    cat <<_LT_EOF 1>&2
7499
7500*** Warning: the command libtool uses to detect shared libraries,
7501*** $file_magic_cmd, produces output that libtool cannot recognize.
7502*** The result is that libtool may fail to recognize shared libraries
7503*** as such.  This will affect the creation of libtool libraries that
7504*** depend on shared libraries, but programs linked with such libtool
7505*** libraries will work regardless of this problem.  Nevertheless, you
7506*** may want to report the problem to your system manager and/or to
7507*** bug-libtool@gnu.org
7508
7509_LT_EOF
7510	  fi ;;
7511	esac
7512      fi
7513      break
7514    fi
7515  done
7516  IFS="$lt_save_ifs"
7517  MAGIC_CMD="$lt_save_MAGIC_CMD"
7518  ;;
7519esac
7520fi
7521
7522MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523if test -n "$MAGIC_CMD"; then
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7525$as_echo "$MAGIC_CMD" >&6; }
7526else
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528$as_echo "no" >&6; }
7529fi
7530
7531
7532
7533
7534
7535if test -z "$lt_cv_path_MAGIC_CMD"; then
7536  if test -n "$ac_tool_prefix"; then
7537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7538$as_echo_n "checking for file... " >&6; }
7539if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  case $MAGIC_CMD in
7543[\\/*] |  ?:[\\/]*)
7544  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7545  ;;
7546*)
7547  lt_save_MAGIC_CMD="$MAGIC_CMD"
7548  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7549  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7550  for ac_dir in $ac_dummy; do
7551    IFS="$lt_save_ifs"
7552    test -z "$ac_dir" && ac_dir=.
7553    if test -f $ac_dir/file; then
7554      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7555      if test -n "$file_magic_test_file"; then
7556	case $deplibs_check_method in
7557	"file_magic "*)
7558	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7559	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7561	    $EGREP "$file_magic_regex" > /dev/null; then
7562	    :
7563	  else
7564	    cat <<_LT_EOF 1>&2
7565
7566*** Warning: the command libtool uses to detect shared libraries,
7567*** $file_magic_cmd, produces output that libtool cannot recognize.
7568*** The result is that libtool may fail to recognize shared libraries
7569*** as such.  This will affect the creation of libtool libraries that
7570*** depend on shared libraries, but programs linked with such libtool
7571*** libraries will work regardless of this problem.  Nevertheless, you
7572*** may want to report the problem to your system manager and/or to
7573*** bug-libtool@gnu.org
7574
7575_LT_EOF
7576	  fi ;;
7577	esac
7578      fi
7579      break
7580    fi
7581  done
7582  IFS="$lt_save_ifs"
7583  MAGIC_CMD="$lt_save_MAGIC_CMD"
7584  ;;
7585esac
7586fi
7587
7588MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589if test -n "$MAGIC_CMD"; then
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7591$as_echo "$MAGIC_CMD" >&6; }
7592else
7593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594$as_echo "no" >&6; }
7595fi
7596
7597
7598  else
7599    MAGIC_CMD=:
7600  fi
7601fi
7602
7603  fi
7604  ;;
7605esac
7606
7607# Use C for the default configuration in the libtool script
7608
7609lt_save_CC="$CC"
7610ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616
7617# Source file extension for C test sources.
7618ac_ext=c
7619
7620# Object file extension for compiled C test sources.
7621objext=o
7622objext=$objext
7623
7624# Code to be used in simple compile tests
7625lt_simple_compile_test_code="int some_variable = 0;"
7626
7627# Code to be used in simple link tests
7628lt_simple_link_test_code='int main(){return(0);}'
7629
7630
7631
7632
7633
7634
7635
7636# If no C compiler was specified, use CC.
7637LTCC=${LTCC-"$CC"}
7638
7639# If no C compiler flags were specified, use CFLAGS.
7640LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7641
7642# Allow CC to be a program name with arguments.
7643compiler=$CC
7644
7645# Save the default compiler, since it gets overwritten when the other
7646# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7647compiler_DEFAULT=$CC
7648
7649# save warnings/boilerplate of simple test code
7650ac_outfile=conftest.$ac_objext
7651echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7653_lt_compiler_boilerplate=`cat conftest.err`
7654$RM conftest*
7655
7656ac_outfile=conftest.$ac_objext
7657echo "$lt_simple_link_test_code" >conftest.$ac_ext
7658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7659_lt_linker_boilerplate=`cat conftest.err`
7660$RM -r conftest*
7661
7662
7663## CAVEAT EMPTOR:
7664## There is no encapsulation within the following macros, do not change
7665## the running order or otherwise move them around unless you know exactly
7666## what you are doing...
7667if test -n "$compiler"; then
7668
7669lt_prog_compiler_no_builtin_flag=
7670
7671if test "$GCC" = yes; then
7672  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7673
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7675$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7676if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  lt_cv_prog_compiler_rtti_exceptions=no
7680   ac_outfile=conftest.$ac_objext
7681   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7682   lt_compiler_flag="-fno-rtti -fno-exceptions"
7683   # Insert the option either (1) after the last *FLAGS variable, or
7684   # (2) before a word containing "conftest.", or (3) at the end.
7685   # Note that $ac_compile itself does not contain backslashes and begins
7686   # with a dollar sign (not a hyphen), so the echo should work correctly.
7687   # The option is referenced via a variable to avoid confusing sed.
7688   lt_compile=`echo "$ac_compile" | $SED \
7689   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7690   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7691   -e 's:$: $lt_compiler_flag:'`
7692   (eval echo "\"\$as_me:7692: $lt_compile\"" >&5)
7693   (eval "$lt_compile" 2>conftest.err)
7694   ac_status=$?
7695   cat conftest.err >&5
7696   echo "$as_me:7696: \$? = $ac_status" >&5
7697   if (exit $ac_status) && test -s "$ac_outfile"; then
7698     # The compiler can only warn and ignore the option if not recognized
7699     # So say no if there are warnings other than the usual output.
7700     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7701     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7702     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7703       lt_cv_prog_compiler_rtti_exceptions=yes
7704     fi
7705   fi
7706   $RM conftest*
7707
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7710$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7711
7712if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7713    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7714else
7715    :
7716fi
7717
7718fi
7719
7720
7721
7722
7723
7724
7725  lt_prog_compiler_wl=
7726lt_prog_compiler_pic=
7727lt_prog_compiler_static=
7728
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7730$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7731
7732  if test "$GCC" = yes; then
7733    lt_prog_compiler_wl='-Wl,'
7734    lt_prog_compiler_static='-static'
7735
7736    case $host_os in
7737      aix*)
7738      # All AIX code is PIC.
7739      if test "$host_cpu" = ia64; then
7740	# AIX 5 now supports IA64 processor
7741	lt_prog_compiler_static='-Bstatic'
7742      fi
7743      ;;
7744
7745    amigaos*)
7746      case $host_cpu in
7747      powerpc)
7748            # see comment about AmigaOS4 .so support
7749            lt_prog_compiler_pic='-fPIC'
7750        ;;
7751      m68k)
7752            # FIXME: we need at least 68020 code to build shared libraries, but
7753            # adding the `-m68020' flag to GCC prevents building anything better,
7754            # like `-m68040'.
7755            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7756        ;;
7757      esac
7758      ;;
7759
7760    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7761      # PIC is the default for these OSes.
7762      ;;
7763
7764    mingw* | cygwin* | pw32* | os2* | cegcc*)
7765      # This hack is so that the source file can tell whether it is being
7766      # built for inclusion in a dll (and should export symbols for example).
7767      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7768      # (--disable-auto-import) libraries
7769      lt_prog_compiler_pic='-DDLL_EXPORT'
7770      ;;
7771
7772    darwin* | rhapsody*)
7773      # PIC is the default on this platform
7774      # Common symbols not allowed in MH_DYLIB files
7775      lt_prog_compiler_pic='-fno-common'
7776      ;;
7777
7778    hpux*)
7779      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7780      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7781      # sets the default TLS model and affects inlining.
7782      case $host_cpu in
7783      hppa*64*)
7784	# +Z the default
7785	;;
7786      *)
7787	lt_prog_compiler_pic='-fPIC'
7788	;;
7789      esac
7790      ;;
7791
7792    interix[3-9]*)
7793      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7794      # Instead, we relocate shared libraries at runtime.
7795      ;;
7796
7797    msdosdjgpp*)
7798      # Just because we use GCC doesn't mean we suddenly get shared libraries
7799      # on systems that don't support them.
7800      lt_prog_compiler_can_build_shared=no
7801      enable_shared=no
7802      ;;
7803
7804    *nto* | *qnx*)
7805      # QNX uses GNU C++, but need to define -shared option too, otherwise
7806      # it will coredump.
7807      lt_prog_compiler_pic='-fPIC -shared'
7808      ;;
7809
7810    sysv4*MP*)
7811      if test -d /usr/nec; then
7812	lt_prog_compiler_pic=-Kconform_pic
7813      fi
7814      ;;
7815
7816    *)
7817      lt_prog_compiler_pic='-fPIC'
7818      ;;
7819    esac
7820  else
7821    # PORTME Check for flag to pass linker flags through the system compiler.
7822    case $host_os in
7823    aix*)
7824      lt_prog_compiler_wl='-Wl,'
7825      if test "$host_cpu" = ia64; then
7826	# AIX 5 now supports IA64 processor
7827	lt_prog_compiler_static='-Bstatic'
7828      else
7829	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7830      fi
7831      ;;
7832
7833    mingw* | cygwin* | pw32* | os2* | cegcc*)
7834      # This hack is so that the source file can tell whether it is being
7835      # built for inclusion in a dll (and should export symbols for example).
7836      lt_prog_compiler_pic='-DDLL_EXPORT'
7837      ;;
7838
7839    hpux9* | hpux10* | hpux11*)
7840      lt_prog_compiler_wl='-Wl,'
7841      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7842      # not for PA HP-UX.
7843      case $host_cpu in
7844      hppa*64*|ia64*)
7845	# +Z the default
7846	;;
7847      *)
7848	lt_prog_compiler_pic='+Z'
7849	;;
7850      esac
7851      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7852      lt_prog_compiler_static='${wl}-a ${wl}archive'
7853      ;;
7854
7855    irix5* | irix6* | nonstopux*)
7856      lt_prog_compiler_wl='-Wl,'
7857      # PIC (with -KPIC) is the default.
7858      lt_prog_compiler_static='-non_shared'
7859      ;;
7860
7861    linux* | k*bsd*-gnu)
7862      case $cc_basename in
7863      # old Intel for x86_64 which still supported -KPIC.
7864      ecc*)
7865	lt_prog_compiler_wl='-Wl,'
7866	lt_prog_compiler_pic='-KPIC'
7867	lt_prog_compiler_static='-static'
7868        ;;
7869      # icc used to be incompatible with GCC.
7870      # ICC 10 doesn't accept -KPIC any more.
7871      icc* | ifort*)
7872	lt_prog_compiler_wl='-Wl,'
7873	lt_prog_compiler_pic='-fPIC'
7874	lt_prog_compiler_static='-static'
7875        ;;
7876      # Lahey Fortran 8.1.
7877      lf95*)
7878	lt_prog_compiler_wl='-Wl,'
7879	lt_prog_compiler_pic='--shared'
7880	lt_prog_compiler_static='--static'
7881	;;
7882      pgcc* | pgf77* | pgf90* | pgf95*)
7883        # Portland Group compilers (*not* the Pentium gcc compiler,
7884	# which looks to be a dead project)
7885	lt_prog_compiler_wl='-Wl,'
7886	lt_prog_compiler_pic='-fpic'
7887	lt_prog_compiler_static='-Bstatic'
7888        ;;
7889      ccc*)
7890        lt_prog_compiler_wl='-Wl,'
7891        # All Alpha code is PIC.
7892        lt_prog_compiler_static='-non_shared'
7893        ;;
7894      xl*)
7895	# IBM XL C 8.0/Fortran 10.1 on PPC
7896	lt_prog_compiler_wl='-Wl,'
7897	lt_prog_compiler_pic='-qpic'
7898	lt_prog_compiler_static='-qstaticlink'
7899	;;
7900      *)
7901	case `$CC -V 2>&1 | sed 5q` in
7902	*Sun\ C*)
7903	  # Sun C 5.9
7904	  lt_prog_compiler_pic='-KPIC'
7905	  lt_prog_compiler_static='-Bstatic'
7906	  lt_prog_compiler_wl='-Wl,'
7907	  ;;
7908	*Sun\ F*)
7909	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7910	  lt_prog_compiler_pic='-KPIC'
7911	  lt_prog_compiler_static='-Bstatic'
7912	  lt_prog_compiler_wl=''
7913	  ;;
7914	esac
7915	;;
7916      esac
7917      ;;
7918
7919    newsos6)
7920      lt_prog_compiler_pic='-KPIC'
7921      lt_prog_compiler_static='-Bstatic'
7922      ;;
7923
7924    *nto* | *qnx*)
7925      # QNX uses GNU C++, but need to define -shared option too, otherwise
7926      # it will coredump.
7927      lt_prog_compiler_pic='-fPIC -shared'
7928      ;;
7929
7930    osf3* | osf4* | osf5*)
7931      lt_prog_compiler_wl='-Wl,'
7932      # All OSF/1 code is PIC.
7933      lt_prog_compiler_static='-non_shared'
7934      ;;
7935
7936    rdos*)
7937      lt_prog_compiler_static='-non_shared'
7938      ;;
7939
7940    solaris*)
7941      lt_prog_compiler_pic='-KPIC'
7942      lt_prog_compiler_static='-Bstatic'
7943      case $cc_basename in
7944      f77* | f90* | f95*)
7945	lt_prog_compiler_wl='-Qoption ld ';;
7946      *)
7947	lt_prog_compiler_wl='-Wl,';;
7948      esac
7949      ;;
7950
7951    sunos4*)
7952      lt_prog_compiler_wl='-Qoption ld '
7953      lt_prog_compiler_pic='-PIC'
7954      lt_prog_compiler_static='-Bstatic'
7955      ;;
7956
7957    sysv4 | sysv4.2uw2* | sysv4.3*)
7958      lt_prog_compiler_wl='-Wl,'
7959      lt_prog_compiler_pic='-KPIC'
7960      lt_prog_compiler_static='-Bstatic'
7961      ;;
7962
7963    sysv4*MP*)
7964      if test -d /usr/nec ;then
7965	lt_prog_compiler_pic='-Kconform_pic'
7966	lt_prog_compiler_static='-Bstatic'
7967      fi
7968      ;;
7969
7970    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7971      lt_prog_compiler_wl='-Wl,'
7972      lt_prog_compiler_pic='-KPIC'
7973      lt_prog_compiler_static='-Bstatic'
7974      ;;
7975
7976    unicos*)
7977      lt_prog_compiler_wl='-Wl,'
7978      lt_prog_compiler_can_build_shared=no
7979      ;;
7980
7981    uts4*)
7982      lt_prog_compiler_pic='-pic'
7983      lt_prog_compiler_static='-Bstatic'
7984      ;;
7985
7986    *)
7987      lt_prog_compiler_can_build_shared=no
7988      ;;
7989    esac
7990  fi
7991
7992case $host_os in
7993  # For platforms which do not support PIC, -DPIC is meaningless:
7994  *djgpp*)
7995    lt_prog_compiler_pic=
7996    ;;
7997  *)
7998    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7999    ;;
8000esac
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8002$as_echo "$lt_prog_compiler_pic" >&6; }
8003
8004
8005
8006
8007
8008
8009#
8010# Check to make sure the PIC flag actually works.
8011#
8012if test -n "$lt_prog_compiler_pic"; then
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8014$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8015if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  lt_cv_prog_compiler_pic_works=no
8019   ac_outfile=conftest.$ac_objext
8020   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8021   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8022   # Insert the option either (1) after the last *FLAGS variable, or
8023   # (2) before a word containing "conftest.", or (3) at the end.
8024   # Note that $ac_compile itself does not contain backslashes and begins
8025   # with a dollar sign (not a hyphen), so the echo should work correctly.
8026   # The option is referenced via a variable to avoid confusing sed.
8027   lt_compile=`echo "$ac_compile" | $SED \
8028   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8030   -e 's:$: $lt_compiler_flag:'`
8031   (eval echo "\"\$as_me:8031: $lt_compile\"" >&5)
8032   (eval "$lt_compile" 2>conftest.err)
8033   ac_status=$?
8034   cat conftest.err >&5
8035   echo "$as_me:8035: \$? = $ac_status" >&5
8036   if (exit $ac_status) && test -s "$ac_outfile"; then
8037     # The compiler can only warn and ignore the option if not recognized
8038     # So say no if there are warnings other than the usual output.
8039     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8040     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8041     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8042       lt_cv_prog_compiler_pic_works=yes
8043     fi
8044   fi
8045   $RM conftest*
8046
8047fi
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8049$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8050
8051if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8052    case $lt_prog_compiler_pic in
8053     "" | " "*) ;;
8054     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8055     esac
8056else
8057    lt_prog_compiler_pic=
8058     lt_prog_compiler_can_build_shared=no
8059fi
8060
8061fi
8062
8063
8064
8065
8066
8067
8068#
8069# Check to make sure the static flag actually works.
8070#
8071wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8073$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8074if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  lt_cv_prog_compiler_static_works=no
8078   save_LDFLAGS="$LDFLAGS"
8079   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8080   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8081   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8082     # The linker can only warn and ignore the option if not recognized
8083     # So say no if there are warnings
8084     if test -s conftest.err; then
8085       # Append any errors to the config.log.
8086       cat conftest.err 1>&5
8087       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8088       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8089       if diff conftest.exp conftest.er2 >/dev/null; then
8090         lt_cv_prog_compiler_static_works=yes
8091       fi
8092     else
8093       lt_cv_prog_compiler_static_works=yes
8094     fi
8095   fi
8096   $RM -r conftest*
8097   LDFLAGS="$save_LDFLAGS"
8098
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8101$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8102
8103if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8104    :
8105else
8106    lt_prog_compiler_static=
8107fi
8108
8109
8110
8111
8112
8113
8114
8115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8116$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8117if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  lt_cv_prog_compiler_c_o=no
8121   $RM -r conftest 2>/dev/null
8122   mkdir conftest
8123   cd conftest
8124   mkdir out
8125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8126
8127   lt_compiler_flag="-o out/conftest2.$ac_objext"
8128   # Insert the option either (1) after the last *FLAGS variable, or
8129   # (2) before a word containing "conftest.", or (3) at the end.
8130   # Note that $ac_compile itself does not contain backslashes and begins
8131   # with a dollar sign (not a hyphen), so the echo should work correctly.
8132   lt_compile=`echo "$ac_compile" | $SED \
8133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8135   -e 's:$: $lt_compiler_flag:'`
8136   (eval echo "\"\$as_me:8136: $lt_compile\"" >&5)
8137   (eval "$lt_compile" 2>out/conftest.err)
8138   ac_status=$?
8139   cat out/conftest.err >&5
8140   echo "$as_me:8140: \$? = $ac_status" >&5
8141   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8142   then
8143     # The compiler can only warn and ignore the option if not recognized
8144     # So say no if there are warnings
8145     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8146     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8147     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8148       lt_cv_prog_compiler_c_o=yes
8149     fi
8150   fi
8151   chmod u+w . 2>&5
8152   $RM conftest*
8153   # SGI C++ compiler will create directory out/ii_files/ for
8154   # template instantiation
8155   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8156   $RM out/* && rmdir out
8157   cd ..
8158   $RM -r conftest
8159   $RM conftest*
8160
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8163$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8164
8165
8166
8167
8168
8169
8170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8171$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8172if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  lt_cv_prog_compiler_c_o=no
8176   $RM -r conftest 2>/dev/null
8177   mkdir conftest
8178   cd conftest
8179   mkdir out
8180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8181
8182   lt_compiler_flag="-o out/conftest2.$ac_objext"
8183   # Insert the option either (1) after the last *FLAGS variable, or
8184   # (2) before a word containing "conftest.", or (3) at the end.
8185   # Note that $ac_compile itself does not contain backslashes and begins
8186   # with a dollar sign (not a hyphen), so the echo should work correctly.
8187   lt_compile=`echo "$ac_compile" | $SED \
8188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190   -e 's:$: $lt_compiler_flag:'`
8191   (eval echo "\"\$as_me:8191: $lt_compile\"" >&5)
8192   (eval "$lt_compile" 2>out/conftest.err)
8193   ac_status=$?
8194   cat out/conftest.err >&5
8195   echo "$as_me:8195: \$? = $ac_status" >&5
8196   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8197   then
8198     # The compiler can only warn and ignore the option if not recognized
8199     # So say no if there are warnings
8200     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8201     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8202     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8203       lt_cv_prog_compiler_c_o=yes
8204     fi
8205   fi
8206   chmod u+w . 2>&5
8207   $RM conftest*
8208   # SGI C++ compiler will create directory out/ii_files/ for
8209   # template instantiation
8210   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8211   $RM out/* && rmdir out
8212   cd ..
8213   $RM -r conftest
8214   $RM conftest*
8215
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8218$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8219
8220
8221
8222
8223hard_links="nottested"
8224if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8225  # do not overwrite the value of need_locks provided by the user
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8227$as_echo_n "checking if we can lock with hard links... " >&6; }
8228  hard_links=yes
8229  $RM conftest*
8230  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8231  touch conftest.a
8232  ln conftest.a conftest.b 2>&5 || hard_links=no
8233  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8235$as_echo "$hard_links" >&6; }
8236  if test "$hard_links" = no; then
8237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8238$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8239    need_locks=warn
8240  fi
8241else
8242  need_locks=no
8243fi
8244
8245
8246
8247
8248
8249
8250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8251$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8252
8253  runpath_var=
8254  allow_undefined_flag=
8255  always_export_symbols=no
8256  archive_cmds=
8257  archive_expsym_cmds=
8258  compiler_needs_object=no
8259  enable_shared_with_static_runtimes=no
8260  export_dynamic_flag_spec=
8261  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8262  hardcode_automatic=no
8263  hardcode_direct=no
8264  hardcode_direct_absolute=no
8265  hardcode_libdir_flag_spec=
8266  hardcode_libdir_flag_spec_ld=
8267  hardcode_libdir_separator=
8268  hardcode_minus_L=no
8269  hardcode_shlibpath_var=unsupported
8270  inherit_rpath=no
8271  link_all_deplibs=unknown
8272  module_cmds=
8273  module_expsym_cmds=
8274  old_archive_from_new_cmds=
8275  old_archive_from_expsyms_cmds=
8276  thread_safe_flag_spec=
8277  whole_archive_flag_spec=
8278  # include_expsyms should be a list of space-separated symbols to be *always*
8279  # included in the symbol list
8280  include_expsyms=
8281  # exclude_expsyms can be an extended regexp of symbols to exclude
8282  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8283  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8284  # as well as any symbol that contains `d'.
8285  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8286  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8287  # platforms (ab)use it in PIC code, but their linkers get confused if
8288  # the symbol is explicitly referenced.  Since portable code cannot
8289  # rely on this symbol name, it's probably fine to never include it in
8290  # preloaded symbol tables.
8291  # Exclude shared library initialization/finalization symbols.
8292  extract_expsyms_cmds=
8293
8294  case $host_os in
8295  cygwin* | mingw* | pw32* | cegcc*)
8296    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8297    # When not using gcc, we currently assume that we are using
8298    # Microsoft Visual C++.
8299    if test "$GCC" != yes; then
8300      with_gnu_ld=no
8301    fi
8302    ;;
8303  interix*)
8304    # we just hope/assume this is gcc and not c89 (= MSVC++)
8305    with_gnu_ld=yes
8306    ;;
8307  openbsd*)
8308    with_gnu_ld=no
8309    ;;
8310  esac
8311
8312  ld_shlibs=yes
8313  if test "$with_gnu_ld" = yes; then
8314    # If archive_cmds runs LD, not CC, wlarc should be empty
8315    wlarc='${wl}'
8316
8317    # Set some defaults for GNU ld with shared library support. These
8318    # are reset later if shared libraries are not supported. Putting them
8319    # here allows them to be overridden if necessary.
8320    runpath_var=LD_RUN_PATH
8321    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322    export_dynamic_flag_spec='${wl}--export-dynamic'
8323    # ancient GNU ld didn't support --whole-archive et. al.
8324    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8325      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8326    else
8327      whole_archive_flag_spec=
8328    fi
8329    supports_anon_versioning=no
8330    case `$LD -v 2>&1` in
8331      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8332      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8333      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8334      *\ 2.11.*) ;; # other 2.11 versions
8335      *) supports_anon_versioning=yes ;;
8336    esac
8337
8338    # See if GNU ld supports shared libraries.
8339    case $host_os in
8340    aix[3-9]*)
8341      # On AIX/PPC, the GNU linker is very broken
8342      if test "$host_cpu" != ia64; then
8343	ld_shlibs=no
8344	cat <<_LT_EOF 1>&2
8345
8346*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8347*** to be unable to reliably create shared libraries on AIX.
8348*** Therefore, libtool is disabling shared libraries support.  If you
8349*** really care for shared libraries, you may want to modify your PATH
8350*** so that a non-GNU linker is found, and then restart.
8351
8352_LT_EOF
8353      fi
8354      ;;
8355
8356    amigaos*)
8357      case $host_cpu in
8358      powerpc)
8359            # see comment about AmigaOS4 .so support
8360            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361            archive_expsym_cmds=''
8362        ;;
8363      m68k)
8364            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)'
8365            hardcode_libdir_flag_spec='-L$libdir'
8366            hardcode_minus_L=yes
8367        ;;
8368      esac
8369      ;;
8370
8371    beos*)
8372      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8373	allow_undefined_flag=unsupported
8374	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8375	# support --undefined.  This deserves some investigation.  FIXME
8376	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377      else
8378	ld_shlibs=no
8379      fi
8380      ;;
8381
8382    cygwin* | mingw* | pw32* | cegcc*)
8383      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8384      # as there is no search path for DLLs.
8385      hardcode_libdir_flag_spec='-L$libdir'
8386      allow_undefined_flag=unsupported
8387      always_export_symbols=no
8388      enable_shared_with_static_runtimes=yes
8389      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8390
8391      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8392        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8393	# If the export-symbols file already is a .def file (1st line
8394	# is EXPORTS), use it as is; otherwise, prepend...
8395	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8396	  cp $export_symbols $output_objdir/$soname.def;
8397	else
8398	  echo EXPORTS > $output_objdir/$soname.def;
8399	  cat $export_symbols >> $output_objdir/$soname.def;
8400	fi~
8401	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8402      else
8403	ld_shlibs=no
8404      fi
8405      ;;
8406
8407    interix[3-9]*)
8408      hardcode_direct=no
8409      hardcode_shlibpath_var=no
8410      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8411      export_dynamic_flag_spec='${wl}-E'
8412      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8413      # Instead, shared libraries are loaded at an image base (0x10000000 by
8414      # default) and relocated if they conflict, which is a slow very memory
8415      # consuming and fragmenting process.  To avoid this, we pick a random,
8416      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8417      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8418      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8419      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'
8420      ;;
8421
8422    gnu* | linux* | tpf* | k*bsd*-gnu)
8423      tmp_diet=no
8424      if test "$host_os" = linux-dietlibc; then
8425	case $cc_basename in
8426	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8427	esac
8428      fi
8429      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8430	 && test "$tmp_diet" = no
8431      then
8432	tmp_addflag=
8433	tmp_sharedflag='-shared'
8434	case $cc_basename,$host_cpu in
8435        pgcc*)				# Portland Group C compiler
8436	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8437	  tmp_addflag=' $pic_flag'
8438	  ;;
8439	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8440	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8441	  tmp_addflag=' $pic_flag -Mnomain' ;;
8442	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8443	  tmp_addflag=' -i_dynamic' ;;
8444	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8445	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8446	ifc* | ifort*)			# Intel Fortran compiler
8447	  tmp_addflag=' -nofor_main' ;;
8448	lf95*)				# Lahey Fortran 8.1
8449	  whole_archive_flag_spec=
8450	  tmp_sharedflag='--shared' ;;
8451	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8452	  tmp_sharedflag='-qmkshrobj'
8453	  tmp_addflag= ;;
8454	esac
8455	case `$CC -V 2>&1 | sed 5q` in
8456	*Sun\ C*)			# Sun C 5.9
8457	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8458	  compiler_needs_object=yes
8459	  tmp_sharedflag='-G' ;;
8460	*Sun\ F*)			# Sun Fortran 8.3
8461	  tmp_sharedflag='-G' ;;
8462	esac
8463	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464
8465        if test "x$supports_anon_versioning" = xyes; then
8466          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8467	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8468	    echo "local: *; };" >> $output_objdir/$libname.ver~
8469	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8470        fi
8471
8472	case $cc_basename in
8473	xlf*)
8474	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8475	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8476	  hardcode_libdir_flag_spec=
8477	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8478	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8479	  if test "x$supports_anon_versioning" = xyes; then
8480	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8481	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8482	      echo "local: *; };" >> $output_objdir/$libname.ver~
8483	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8484	  fi
8485	  ;;
8486	esac
8487      else
8488        ld_shlibs=no
8489      fi
8490      ;;
8491
8492    netbsd*)
8493      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8494	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8495	wlarc=
8496      else
8497	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8499      fi
8500      ;;
8501
8502    solaris*)
8503      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8504	ld_shlibs=no
8505	cat <<_LT_EOF 1>&2
8506
8507*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8508*** create shared libraries on Solaris systems.  Therefore, libtool
8509*** is disabling shared libraries support.  We urge you to upgrade GNU
8510*** binutils to release 2.9.1 or newer.  Another option is to modify
8511*** your PATH or compiler configuration so that the native linker is
8512*** used, and then restart.
8513
8514_LT_EOF
8515      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8516	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518      else
8519	ld_shlibs=no
8520      fi
8521      ;;
8522
8523    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8524      case `$LD -v 2>&1` in
8525        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8526	ld_shlibs=no
8527	cat <<_LT_EOF 1>&2
8528
8529*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8530*** reliably create shared libraries on SCO systems.  Therefore, libtool
8531*** is disabling shared libraries support.  We urge you to upgrade GNU
8532*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8533*** your PATH or compiler configuration so that the native linker is
8534*** used, and then restart.
8535
8536_LT_EOF
8537	;;
8538	*)
8539	  # For security reasons, it is highly recommended that you always
8540	  # use absolute paths for naming shared libraries, and exclude the
8541	  # DT_RUNPATH tag from executables and libraries.  But doing so
8542	  # requires that you compile everything twice, which is a pain.
8543	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8546	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8547	  else
8548	    ld_shlibs=no
8549	  fi
8550	;;
8551      esac
8552      ;;
8553
8554    sunos4*)
8555      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8556      wlarc=
8557      hardcode_direct=yes
8558      hardcode_shlibpath_var=no
8559      ;;
8560
8561    *)
8562      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8563	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8565      else
8566	ld_shlibs=no
8567      fi
8568      ;;
8569    esac
8570
8571    if test "$ld_shlibs" = no; then
8572      runpath_var=
8573      hardcode_libdir_flag_spec=
8574      export_dynamic_flag_spec=
8575      whole_archive_flag_spec=
8576    fi
8577  else
8578    # PORTME fill in a description of your system's linker (not GNU ld)
8579    case $host_os in
8580    aix3*)
8581      allow_undefined_flag=unsupported
8582      always_export_symbols=yes
8583      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'
8584      # Note: this linker hardcodes the directories in LIBPATH if there
8585      # are no directories specified by -L.
8586      hardcode_minus_L=yes
8587      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8588	# Neither direct hardcoding nor static linking is supported with a
8589	# broken collect2.
8590	hardcode_direct=unsupported
8591      fi
8592      ;;
8593
8594    aix[4-9]*)
8595      if test "$host_cpu" = ia64; then
8596	# On IA64, the linker does run time linking by default, so we don't
8597	# have to do anything special.
8598	aix_use_runtimelinking=no
8599	exp_sym_flag='-Bexport'
8600	no_entry_flag=""
8601      else
8602	# If we're using GNU nm, then we don't want the "-C" option.
8603	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8604	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8605	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8606	else
8607	  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'
8608	fi
8609	aix_use_runtimelinking=no
8610
8611	# Test if we are trying to use run time linking or normal
8612	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8613	# need to do runtime linking.
8614	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8615	  for ld_flag in $LDFLAGS; do
8616	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8617	    aix_use_runtimelinking=yes
8618	    break
8619	  fi
8620	  done
8621	  ;;
8622	esac
8623
8624	exp_sym_flag='-bexport'
8625	no_entry_flag='-bnoentry'
8626      fi
8627
8628      # When large executables or shared objects are built, AIX ld can
8629      # have problems creating the table of contents.  If linking a library
8630      # or program results in "error TOC overflow" add -mminimal-toc to
8631      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8632      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8633
8634      archive_cmds=''
8635      hardcode_direct=yes
8636      hardcode_direct_absolute=yes
8637      hardcode_libdir_separator=':'
8638      link_all_deplibs=yes
8639      file_list_spec='${wl}-f,'
8640
8641      if test "$GCC" = yes; then
8642	case $host_os in aix4.[012]|aix4.[012].*)
8643	# We only want to do this on AIX 4.2 and lower, the check
8644	# below for broken collect2 doesn't work under 4.3+
8645	  collect2name=`${CC} -print-prog-name=collect2`
8646	  if test -f "$collect2name" &&
8647	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8648	  then
8649	  # We have reworked collect2
8650	  :
8651	  else
8652	  # We have old collect2
8653	  hardcode_direct=unsupported
8654	  # It fails to find uninstalled libraries when the uninstalled
8655	  # path is not listed in the libpath.  Setting hardcode_minus_L
8656	  # to unsupported forces relinking
8657	  hardcode_minus_L=yes
8658	  hardcode_libdir_flag_spec='-L$libdir'
8659	  hardcode_libdir_separator=
8660	  fi
8661	  ;;
8662	esac
8663	shared_flag='-shared'
8664	if test "$aix_use_runtimelinking" = yes; then
8665	  shared_flag="$shared_flag "'${wl}-G'
8666	fi
8667      else
8668	# not using gcc
8669	if test "$host_cpu" = ia64; then
8670	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8671	# chokes on -Wl,-G. The following line is correct:
8672	  shared_flag='-G'
8673	else
8674	  if test "$aix_use_runtimelinking" = yes; then
8675	    shared_flag='${wl}-G'
8676	  else
8677	    shared_flag='${wl}-bM:SRE'
8678	  fi
8679	fi
8680      fi
8681
8682      export_dynamic_flag_spec='${wl}-bexpall'
8683      # It seems that -bexpall does not export symbols beginning with
8684      # underscore (_), so it is better to generate a list of symbols to export.
8685      always_export_symbols=yes
8686      if test "$aix_use_runtimelinking" = yes; then
8687	# Warning - without using the other runtime loading flags (-brtl),
8688	# -berok will link without error, but may produce a broken library.
8689	allow_undefined_flag='-berok'
8690        # Determine the default libpath from the value encoded in an
8691        # empty executable.
8692        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694
8695int
8696main ()
8697{
8698
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703if ac_fn_c_try_link "$LINENO"; then :
8704
8705lt_aix_libpath_sed='
8706    /Import File Strings/,/^$/ {
8707	/^0/ {
8708	    s/^0  *\(.*\)$/\1/
8709	    p
8710	}
8711    }'
8712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8713# Check for a 64-bit object if we didn't find anything.
8714if test -z "$aix_libpath"; then
8715  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8716fi
8717fi
8718rm -f core conftest.err conftest.$ac_objext \
8719    conftest$ac_exeext conftest.$ac_ext
8720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8721
8722        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8723        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8724      else
8725	if test "$host_cpu" = ia64; then
8726	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8727	  allow_undefined_flag="-z nodefs"
8728	  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"
8729	else
8730	 # Determine the default libpath from the value encoded in an
8731	 # empty executable.
8732	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h.  */
8734
8735int
8736main ()
8737{
8738
8739  ;
8740  return 0;
8741}
8742_ACEOF
8743if ac_fn_c_try_link "$LINENO"; then :
8744
8745lt_aix_libpath_sed='
8746    /Import File Strings/,/^$/ {
8747	/^0/ {
8748	    s/^0  *\(.*\)$/\1/
8749	    p
8750	}
8751    }'
8752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8753# Check for a 64-bit object if we didn't find anything.
8754if test -z "$aix_libpath"; then
8755  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8756fi
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759    conftest$ac_exeext conftest.$ac_ext
8760if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8761
8762	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8763	  # Warning - without using the other run time loading flags,
8764	  # -berok will link without error, but may produce a broken library.
8765	  no_undefined_flag=' ${wl}-bernotok'
8766	  allow_undefined_flag=' ${wl}-berok'
8767	  # Exported symbols can be pulled into shared objects from archives
8768	  whole_archive_flag_spec='$convenience'
8769	  archive_cmds_need_lc=yes
8770	  # This is similar to how AIX traditionally builds its shared libraries.
8771	  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'
8772	fi
8773      fi
8774      ;;
8775
8776    amigaos*)
8777      case $host_cpu in
8778      powerpc)
8779            # see comment about AmigaOS4 .so support
8780            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781            archive_expsym_cmds=''
8782        ;;
8783      m68k)
8784            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)'
8785            hardcode_libdir_flag_spec='-L$libdir'
8786            hardcode_minus_L=yes
8787        ;;
8788      esac
8789      ;;
8790
8791    bsdi[45]*)
8792      export_dynamic_flag_spec=-rdynamic
8793      ;;
8794
8795    cygwin* | mingw* | pw32* | cegcc*)
8796      # When not using gcc, we currently assume that we are using
8797      # Microsoft Visual C++.
8798      # hardcode_libdir_flag_spec is actually meaningless, as there is
8799      # no search path for DLLs.
8800      hardcode_libdir_flag_spec=' '
8801      allow_undefined_flag=unsupported
8802      # Tell ltmain to make .lib files, not .a files.
8803      libext=lib
8804      # Tell ltmain to make .dll files, not .so files.
8805      shrext_cmds=".dll"
8806      # FIXME: Setting linknames here is a bad hack.
8807      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8808      # The linker will automatically build a .lib file if we build a DLL.
8809      old_archive_from_new_cmds='true'
8810      # FIXME: Should let the user specify the lib program.
8811      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8812      fix_srcfile_path='`cygpath -w "$srcfile"`'
8813      enable_shared_with_static_runtimes=yes
8814      ;;
8815
8816    darwin* | rhapsody*)
8817
8818
8819  archive_cmds_need_lc=no
8820  hardcode_direct=no
8821  hardcode_automatic=yes
8822  hardcode_shlibpath_var=unsupported
8823  whole_archive_flag_spec=''
8824  link_all_deplibs=yes
8825  allow_undefined_flag="$_lt_dar_allow_undefined"
8826  case $cc_basename in
8827     ifort*) _lt_dar_can_shared=yes ;;
8828     *) _lt_dar_can_shared=$GCC ;;
8829  esac
8830  if test "$_lt_dar_can_shared" = "yes"; then
8831    output_verbose_link_cmd=echo
8832    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8833    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8834    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}"
8835    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}"
8836
8837  else
8838  ld_shlibs=no
8839  fi
8840
8841      ;;
8842
8843    dgux*)
8844      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845      hardcode_libdir_flag_spec='-L$libdir'
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    freebsd1*)
8850      ld_shlibs=no
8851      ;;
8852
8853    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8854    # support.  Future versions do this automatically, but an explicit c++rt0.o
8855    # does not break anything, and helps significantly (at the cost of a little
8856    # extra space).
8857    freebsd2.2*)
8858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8859      hardcode_libdir_flag_spec='-R$libdir'
8860      hardcode_direct=yes
8861      hardcode_shlibpath_var=no
8862      ;;
8863
8864    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8865    freebsd2*)
8866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8867      hardcode_direct=yes
8868      hardcode_minus_L=yes
8869      hardcode_shlibpath_var=no
8870      ;;
8871
8872    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8873    freebsd* | dragonfly*)
8874      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8875      hardcode_libdir_flag_spec='-R$libdir'
8876      hardcode_direct=yes
8877      hardcode_shlibpath_var=no
8878      ;;
8879
8880    hpux9*)
8881      if test "$GCC" = yes; then
8882	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8883      else
8884	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'
8885      fi
8886      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8887      hardcode_libdir_separator=:
8888      hardcode_direct=yes
8889
8890      # hardcode_minus_L: Not really in the search PATH,
8891      # but as the default location of the library.
8892      hardcode_minus_L=yes
8893      export_dynamic_flag_spec='${wl}-E'
8894      ;;
8895
8896    hpux10*)
8897      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8898	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8899      else
8900	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8901      fi
8902      if test "$with_gnu_ld" = no; then
8903	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8904	hardcode_libdir_flag_spec_ld='+b $libdir'
8905	hardcode_libdir_separator=:
8906	hardcode_direct=yes
8907	hardcode_direct_absolute=yes
8908	export_dynamic_flag_spec='${wl}-E'
8909	# hardcode_minus_L: Not really in the search PATH,
8910	# but as the default location of the library.
8911	hardcode_minus_L=yes
8912      fi
8913      ;;
8914
8915    hpux11*)
8916      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8917	case $host_cpu in
8918	hppa*64*)
8919	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8920	  ;;
8921	ia64*)
8922	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8923	  ;;
8924	*)
8925	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8926	  ;;
8927	esac
8928      else
8929	case $host_cpu in
8930	hppa*64*)
8931	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932	  ;;
8933	ia64*)
8934	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8935	  ;;
8936	*)
8937	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8938	  ;;
8939	esac
8940      fi
8941      if test "$with_gnu_ld" = no; then
8942	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8943	hardcode_libdir_separator=:
8944
8945	case $host_cpu in
8946	hppa*64*|ia64*)
8947	  hardcode_direct=no
8948	  hardcode_shlibpath_var=no
8949	  ;;
8950	*)
8951	  hardcode_direct=yes
8952	  hardcode_direct_absolute=yes
8953	  export_dynamic_flag_spec='${wl}-E'
8954
8955	  # hardcode_minus_L: Not really in the search PATH,
8956	  # but as the default location of the library.
8957	  hardcode_minus_L=yes
8958	  ;;
8959	esac
8960      fi
8961      ;;
8962
8963    irix5* | irix6* | nonstopux*)
8964      if test "$GCC" = yes; then
8965	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8966	# Try to use the -exported_symbol ld option, if it does not
8967	# work, assume that -exports_file does not work either and
8968	# implicitly export all symbols.
8969        save_LDFLAGS="$LDFLAGS"
8970        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8971        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h.  */
8973int foo(void) {}
8974_ACEOF
8975if ac_fn_c_try_link "$LINENO"; then :
8976  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8977
8978fi
8979rm -f core conftest.err conftest.$ac_objext \
8980    conftest$ac_exeext conftest.$ac_ext
8981        LDFLAGS="$save_LDFLAGS"
8982      else
8983	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8984	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8985      fi
8986      archive_cmds_need_lc='no'
8987      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988      hardcode_libdir_separator=:
8989      inherit_rpath=yes
8990      link_all_deplibs=yes
8991      ;;
8992
8993    netbsd*)
8994      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8995	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8996      else
8997	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8998      fi
8999      hardcode_libdir_flag_spec='-R$libdir'
9000      hardcode_direct=yes
9001      hardcode_shlibpath_var=no
9002      ;;
9003
9004    newsos6)
9005      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006      hardcode_direct=yes
9007      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008      hardcode_libdir_separator=:
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    *nto* | *qnx*)
9013      ;;
9014
9015    openbsd*)
9016      if test -f /usr/libexec/ld.so; then
9017	hardcode_direct=yes
9018	hardcode_shlibpath_var=no
9019	hardcode_direct_absolute=yes
9020	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9022	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9023	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9024	  export_dynamic_flag_spec='${wl}-E'
9025	else
9026	  case $host_os in
9027	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9028	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9029	     hardcode_libdir_flag_spec='-R$libdir'
9030	     ;;
9031	   *)
9032	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9033	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9034	     ;;
9035	  esac
9036	fi
9037      else
9038	ld_shlibs=no
9039      fi
9040      ;;
9041
9042    os2*)
9043      hardcode_libdir_flag_spec='-L$libdir'
9044      hardcode_minus_L=yes
9045      allow_undefined_flag=unsupported
9046      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'
9047      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9048      ;;
9049
9050    osf3*)
9051      if test "$GCC" = yes; then
9052	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9053	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9054      else
9055	allow_undefined_flag=' -expect_unresolved \*'
9056	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9057      fi
9058      archive_cmds_need_lc='no'
9059      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9060      hardcode_libdir_separator=:
9061      ;;
9062
9063    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9064      if test "$GCC" = yes; then
9065	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9066	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9067	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068      else
9069	allow_undefined_flag=' -expect_unresolved \*'
9070	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9071	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~
9072	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9073
9074	# Both c and cxx compiler support -rpath directly
9075	hardcode_libdir_flag_spec='-rpath $libdir'
9076      fi
9077      archive_cmds_need_lc='no'
9078      hardcode_libdir_separator=:
9079      ;;
9080
9081    solaris*)
9082      no_undefined_flag=' -z defs'
9083      if test "$GCC" = yes; then
9084	wlarc='${wl}'
9085	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9087	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9088      else
9089	case `$CC -V 2>&1` in
9090	*"Compilers 5.0"*)
9091	  wlarc=''
9092	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9094	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9095	  ;;
9096	*)
9097	  wlarc='${wl}'
9098	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9099	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9100	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9101	  ;;
9102	esac
9103      fi
9104      hardcode_libdir_flag_spec='-R$libdir'
9105      hardcode_shlibpath_var=no
9106      case $host_os in
9107      solaris2.[0-5] | solaris2.[0-5].*) ;;
9108      *)
9109	# The compiler driver will combine and reorder linker options,
9110	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9111	# but is careful enough not to reorder.
9112	# Supported since Solaris 2.6 (maybe 2.5.1?)
9113	if test "$GCC" = yes; then
9114	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9115	else
9116	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9117	fi
9118	;;
9119      esac
9120      link_all_deplibs=yes
9121      ;;
9122
9123    sunos4*)
9124      if test "x$host_vendor" = xsequent; then
9125	# Use $CC to link under sequent, because it throws in some extra .o
9126	# files that make .init and .fini sections work.
9127	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9128      else
9129	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9130      fi
9131      hardcode_libdir_flag_spec='-L$libdir'
9132      hardcode_direct=yes
9133      hardcode_minus_L=yes
9134      hardcode_shlibpath_var=no
9135      ;;
9136
9137    sysv4)
9138      case $host_vendor in
9139	sni)
9140	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141	  hardcode_direct=yes # is this really true???
9142	;;
9143	siemens)
9144	  ## LD is ld it makes a PLAMLIB
9145	  ## CC just makes a GrossModule.
9146	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9147	  reload_cmds='$CC -r -o $output$reload_objs'
9148	  hardcode_direct=no
9149        ;;
9150	motorola)
9151	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9153	;;
9154      esac
9155      runpath_var='LD_RUN_PATH'
9156      hardcode_shlibpath_var=no
9157      ;;
9158
9159    sysv4.3*)
9160      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161      hardcode_shlibpath_var=no
9162      export_dynamic_flag_spec='-Bexport'
9163      ;;
9164
9165    sysv4*MP*)
9166      if test -d /usr/nec; then
9167	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9168	hardcode_shlibpath_var=no
9169	runpath_var=LD_RUN_PATH
9170	hardcode_runpath_var=yes
9171	ld_shlibs=yes
9172      fi
9173      ;;
9174
9175    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9176      no_undefined_flag='${wl}-z,text'
9177      archive_cmds_need_lc=no
9178      hardcode_shlibpath_var=no
9179      runpath_var='LD_RUN_PATH'
9180
9181      if test "$GCC" = yes; then
9182	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9184      else
9185	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9187      fi
9188      ;;
9189
9190    sysv5* | sco3.2v5* | sco5v6*)
9191      # Note: We can NOT use -z defs as we might desire, because we do not
9192      # link with -lc, and that would cause any symbols used from libc to
9193      # always be unresolved, which means just about no library would
9194      # ever link correctly.  If we're not using GNU ld we use -z text
9195      # though, which does catch some bad symbols but isn't as heavy-handed
9196      # as -z defs.
9197      no_undefined_flag='${wl}-z,text'
9198      allow_undefined_flag='${wl}-z,nodefs'
9199      archive_cmds_need_lc=no
9200      hardcode_shlibpath_var=no
9201      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9202      hardcode_libdir_separator=':'
9203      link_all_deplibs=yes
9204      export_dynamic_flag_spec='${wl}-Bexport'
9205      runpath_var='LD_RUN_PATH'
9206
9207      if test "$GCC" = yes; then
9208	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9209	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210      else
9211	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9212	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213      fi
9214      ;;
9215
9216    uts4*)
9217      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218      hardcode_libdir_flag_spec='-L$libdir'
9219      hardcode_shlibpath_var=no
9220      ;;
9221
9222    *)
9223      ld_shlibs=no
9224      ;;
9225    esac
9226
9227    if test x$host_vendor = xsni; then
9228      case $host in
9229      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9230	export_dynamic_flag_spec='${wl}-Blargedynsym'
9231	;;
9232      esac
9233    fi
9234  fi
9235
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9237$as_echo "$ld_shlibs" >&6; }
9238test "$ld_shlibs" = no && can_build_shared=no
9239
9240with_gnu_ld=$with_gnu_ld
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256#
9257# Do we need to explicitly link libc?
9258#
9259case "x$archive_cmds_need_lc" in
9260x|xyes)
9261  # Assume -lc should be added
9262  archive_cmds_need_lc=yes
9263
9264  if test "$enable_shared" = yes && test "$GCC" = yes; then
9265    case $archive_cmds in
9266    *'~'*)
9267      # FIXME: we may have to deal with multi-command sequences.
9268      ;;
9269    '$CC '*)
9270      # Test whether the compiler implicitly links with -lc since on some
9271      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9272      # to ld, don't add -lc before -lgcc.
9273      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9274$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9275      $RM conftest*
9276      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9277
9278      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9279  (eval $ac_compile) 2>&5
9280  ac_status=$?
9281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9282  test $ac_status = 0; } 2>conftest.err; then
9283        soname=conftest
9284        lib=conftest
9285        libobjs=conftest.$ac_objext
9286        deplibs=
9287        wl=$lt_prog_compiler_wl
9288	pic_flag=$lt_prog_compiler_pic
9289        compiler_flags=-v
9290        linker_flags=-v
9291        verstring=
9292        output_objdir=.
9293        libname=conftest
9294        lt_save_allow_undefined_flag=$allow_undefined_flag
9295        allow_undefined_flag=
9296        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9297  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9298  ac_status=$?
9299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9300  test $ac_status = 0; }
9301        then
9302	  archive_cmds_need_lc=no
9303        else
9304	  archive_cmds_need_lc=yes
9305        fi
9306        allow_undefined_flag=$lt_save_allow_undefined_flag
9307      else
9308        cat conftest.err 1>&5
9309      fi
9310      $RM conftest*
9311      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9312$as_echo "$archive_cmds_need_lc" >&6; }
9313      ;;
9314    esac
9315  fi
9316  ;;
9317esac
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9476$as_echo_n "checking dynamic linker characteristics... " >&6; }
9477
9478if test "$GCC" = yes; then
9479  case $host_os in
9480    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9481    *) lt_awk_arg="/^libraries:/" ;;
9482  esac
9483  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9484  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9485    # if the path contains ";" then we assume it to be the separator
9486    # otherwise default to the standard path separator (i.e. ":") - it is
9487    # assumed that no part of a normal pathname contains ";" but that should
9488    # okay in the real world where ";" in dirpaths is itself problematic.
9489    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9490  else
9491    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9492  fi
9493  # Ok, now we have the path, separated by spaces, we can step through it
9494  # and add multilib dir if necessary.
9495  lt_tmp_lt_search_path_spec=
9496  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9497  for lt_sys_path in $lt_search_path_spec; do
9498    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9499      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9500    else
9501      test -d "$lt_sys_path" && \
9502	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9503    fi
9504  done
9505  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9506BEGIN {RS=" "; FS="/|\n";} {
9507  lt_foo="";
9508  lt_count=0;
9509  for (lt_i = NF; lt_i > 0; lt_i--) {
9510    if ($lt_i != "" && $lt_i != ".") {
9511      if ($lt_i == "..") {
9512        lt_count++;
9513      } else {
9514        if (lt_count == 0) {
9515          lt_foo="/" $lt_i lt_foo;
9516        } else {
9517          lt_count--;
9518        }
9519      }
9520    }
9521  }
9522  if (lt_foo != "") { lt_freq[lt_foo]++; }
9523  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9524}'`
9525  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9526else
9527  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9528fi
9529library_names_spec=
9530libname_spec='lib$name'
9531soname_spec=
9532shrext_cmds=".so"
9533postinstall_cmds=
9534postuninstall_cmds=
9535finish_cmds=
9536finish_eval=
9537shlibpath_var=
9538shlibpath_overrides_runpath=unknown
9539version_type=none
9540dynamic_linker="$host_os ld.so"
9541sys_lib_dlsearch_path_spec="/lib /usr/lib"
9542need_lib_prefix=unknown
9543hardcode_into_libs=no
9544
9545# when you set need_version to no, make sure it does not cause -set_version
9546# flags to be left without arguments
9547need_version=unknown
9548
9549case $host_os in
9550aix3*)
9551  version_type=linux
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9553  shlibpath_var=LIBPATH
9554
9555  # AIX 3 has no versioning support, so we append a major version to the name.
9556  soname_spec='${libname}${release}${shared_ext}$major'
9557  ;;
9558
9559aix[4-9]*)
9560  version_type=linux
9561  need_lib_prefix=no
9562  need_version=no
9563  hardcode_into_libs=yes
9564  if test "$host_cpu" = ia64; then
9565    # AIX 5 supports IA64
9566    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9567    shlibpath_var=LD_LIBRARY_PATH
9568  else
9569    # With GCC up to 2.95.x, collect2 would create an import file
9570    # for dependence libraries.  The import file would start with
9571    # the line `#! .'.  This would cause the generated library to
9572    # depend on `.', always an invalid library.  This was fixed in
9573    # development snapshots of GCC prior to 3.0.
9574    case $host_os in
9575      aix4 | aix4.[01] | aix4.[01].*)
9576      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9577	   echo ' yes '
9578	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9579	:
9580      else
9581	can_build_shared=no
9582      fi
9583      ;;
9584    esac
9585    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9586    # soname into executable. Probably we can add versioning support to
9587    # collect2, so additional links can be useful in future.
9588    if test "$aix_use_runtimelinking" = yes; then
9589      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9590      # instead of lib<name>.a to let people know that these are not
9591      # typical AIX shared libraries.
9592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593    else
9594      # We preserve .a as extension for shared libraries through AIX4.2
9595      # and later when we are not doing run time linking.
9596      library_names_spec='${libname}${release}.a $libname.a'
9597      soname_spec='${libname}${release}${shared_ext}$major'
9598    fi
9599    shlibpath_var=LIBPATH
9600  fi
9601  ;;
9602
9603amigaos*)
9604  case $host_cpu in
9605  powerpc)
9606    # Since July 2007 AmigaOS4 officially supports .so libraries.
9607    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609    ;;
9610  m68k)
9611    library_names_spec='$libname.ixlibrary $libname.a'
9612    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9613    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9614    ;;
9615  esac
9616  ;;
9617
9618beos*)
9619  library_names_spec='${libname}${shared_ext}'
9620  dynamic_linker="$host_os ld.so"
9621  shlibpath_var=LIBRARY_PATH
9622  ;;
9623
9624bsdi[45]*)
9625  version_type=linux
9626  need_version=no
9627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628  soname_spec='${libname}${release}${shared_ext}$major'
9629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9630  shlibpath_var=LD_LIBRARY_PATH
9631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9633  # the default ld.so.conf also contains /usr/contrib/lib and
9634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9635  # libtool to hard-code these into programs
9636  ;;
9637
9638cygwin* | mingw* | pw32* | cegcc*)
9639  version_type=windows
9640  shrext_cmds=".dll"
9641  need_version=no
9642  need_lib_prefix=no
9643
9644  case $GCC,$host_os in
9645  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9646    library_names_spec='$libname.dll.a'
9647    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9648    postinstall_cmds='base_file=`basename \${file}`~
9649      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9650      dldir=$destdir/`dirname \$dlpath`~
9651      test -d \$dldir || mkdir -p \$dldir~
9652      $install_prog $dir/$dlname \$dldir/$dlname~
9653      chmod a+x \$dldir/$dlname~
9654      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9655        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9656      fi'
9657    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9658      dlpath=$dir/\$dldll~
9659       $RM \$dlpath'
9660    shlibpath_overrides_runpath=yes
9661
9662    case $host_os in
9663    cygwin*)
9664      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9665      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9666      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9667      ;;
9668    mingw* | cegcc*)
9669      # MinGW DLLs use traditional 'lib' prefix
9670      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9671      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9672      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9673        # It is most probably a Windows format PATH printed by
9674        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9675        # path with ; separators, and with drive letters. We can handle the
9676        # drive letters (cygwin fileutils understands them), so leave them,
9677        # especially as we might pass files found there to a mingw objdump,
9678        # which wouldn't understand a cygwinified path. Ahh.
9679        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9680      else
9681        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9682      fi
9683      ;;
9684    pw32*)
9685      # pw32 DLLs use 'pw' prefix rather than 'lib'
9686      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9687      ;;
9688    esac
9689    ;;
9690
9691  *)
9692    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9693    ;;
9694  esac
9695  dynamic_linker='Win32 ld.exe'
9696  # FIXME: first we should search . and the directory the executable is in
9697  shlibpath_var=PATH
9698  ;;
9699
9700darwin* | rhapsody*)
9701  dynamic_linker="$host_os dyld"
9702  version_type=darwin
9703  need_lib_prefix=no
9704  need_version=no
9705  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9706  soname_spec='${libname}${release}${major}$shared_ext'
9707  shlibpath_overrides_runpath=yes
9708  shlibpath_var=DYLD_LIBRARY_PATH
9709  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9710
9711  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9712  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9713  ;;
9714
9715dgux*)
9716  version_type=linux
9717  need_lib_prefix=no
9718  need_version=no
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  shlibpath_var=LD_LIBRARY_PATH
9722  ;;
9723
9724freebsd1*)
9725  dynamic_linker=no
9726  ;;
9727
9728freebsd* | dragonfly*)
9729  # DragonFly does not have aout.  When/if they implement a new
9730  # versioning mechanism, adjust this.
9731  if test -x /usr/bin/objformat; then
9732    objformat=`/usr/bin/objformat`
9733  else
9734    case $host_os in
9735    freebsd[123]*) objformat=aout ;;
9736    *) objformat=elf ;;
9737    esac
9738  fi
9739  version_type=freebsd-$objformat
9740  case $version_type in
9741    freebsd-elf*)
9742      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9743      need_version=no
9744      need_lib_prefix=no
9745      ;;
9746    freebsd-*)
9747      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9748      need_version=yes
9749      ;;
9750  esac
9751  shlibpath_var=LD_LIBRARY_PATH
9752  case $host_os in
9753  freebsd2*)
9754    shlibpath_overrides_runpath=yes
9755    ;;
9756  freebsd3.[01]* | freebsdelf3.[01]*)
9757    shlibpath_overrides_runpath=yes
9758    hardcode_into_libs=yes
9759    ;;
9760  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9761  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9762    shlibpath_overrides_runpath=no
9763    hardcode_into_libs=yes
9764    ;;
9765  *) # from 4.6 on, and DragonFly
9766    shlibpath_overrides_runpath=yes
9767    hardcode_into_libs=yes
9768    ;;
9769  esac
9770  ;;
9771
9772gnu*)
9773  version_type=linux
9774  need_lib_prefix=no
9775  need_version=no
9776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9777  soname_spec='${libname}${release}${shared_ext}$major'
9778  shlibpath_var=LD_LIBRARY_PATH
9779  hardcode_into_libs=yes
9780  ;;
9781
9782hpux9* | hpux10* | hpux11*)
9783  # Give a soname corresponding to the major version so that dld.sl refuses to
9784  # link against other versions.
9785  version_type=sunos
9786  need_lib_prefix=no
9787  need_version=no
9788  case $host_cpu in
9789  ia64*)
9790    shrext_cmds='.so'
9791    hardcode_into_libs=yes
9792    dynamic_linker="$host_os dld.so"
9793    shlibpath_var=LD_LIBRARY_PATH
9794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796    soname_spec='${libname}${release}${shared_ext}$major'
9797    if test "X$HPUX_IA64_MODE" = X32; then
9798      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9799    else
9800      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9801    fi
9802    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9803    ;;
9804  hppa*64*)
9805    shrext_cmds='.sl'
9806    hardcode_into_libs=yes
9807    dynamic_linker="$host_os dld.sl"
9808    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9809    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811    soname_spec='${libname}${release}${shared_ext}$major'
9812    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9813    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814    ;;
9815  *)
9816    shrext_cmds='.sl'
9817    dynamic_linker="$host_os dld.sl"
9818    shlibpath_var=SHLIB_PATH
9819    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821    soname_spec='${libname}${release}${shared_ext}$major'
9822    ;;
9823  esac
9824  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9825  postinstall_cmds='chmod 555 $lib'
9826  ;;
9827
9828interix[3-9]*)
9829  version_type=linux
9830  need_lib_prefix=no
9831  need_version=no
9832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9833  soname_spec='${libname}${release}${shared_ext}$major'
9834  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9835  shlibpath_var=LD_LIBRARY_PATH
9836  shlibpath_overrides_runpath=no
9837  hardcode_into_libs=yes
9838  ;;
9839
9840irix5* | irix6* | nonstopux*)
9841  case $host_os in
9842    nonstopux*) version_type=nonstopux ;;
9843    *)
9844	if test "$lt_cv_prog_gnu_ld" = yes; then
9845		version_type=linux
9846	else
9847		version_type=irix
9848	fi ;;
9849  esac
9850  need_lib_prefix=no
9851  need_version=no
9852  soname_spec='${libname}${release}${shared_ext}$major'
9853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9854  case $host_os in
9855  irix5* | nonstopux*)
9856    libsuff= shlibsuff=
9857    ;;
9858  *)
9859    case $LD in # libtool.m4 will add one of these switches to LD
9860    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9861      libsuff= shlibsuff= libmagic=32-bit;;
9862    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9863      libsuff=32 shlibsuff=N32 libmagic=N32;;
9864    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9865      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9866    *) libsuff= shlibsuff= libmagic=never-match;;
9867    esac
9868    ;;
9869  esac
9870  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9871  shlibpath_overrides_runpath=no
9872  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9873  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9874  hardcode_into_libs=yes
9875  ;;
9876
9877# No shared lib support for Linux oldld, aout, or coff.
9878linux*oldld* | linux*aout* | linux*coff*)
9879  dynamic_linker=no
9880  ;;
9881
9882# This must be Linux ELF.
9883linux* | k*bsd*-gnu)
9884  version_type=linux
9885  need_lib_prefix=no
9886  need_version=no
9887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888  soname_spec='${libname}${release}${shared_ext}$major'
9889  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9890  shlibpath_var=LD_LIBRARY_PATH
9891  shlibpath_overrides_runpath=no
9892  # Some binutils ld are patched to set DT_RUNPATH
9893  save_LDFLAGS=$LDFLAGS
9894  save_libdir=$libdir
9895  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9896       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899
9900int
9901main ()
9902{
9903
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9910  shlibpath_overrides_runpath=yes
9911fi
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915  LDFLAGS=$save_LDFLAGS
9916  libdir=$save_libdir
9917
9918  # This implies no fast_install, which is unacceptable.
9919  # Some rework will be needed to allow for fast_install
9920  # before this can be enabled.
9921  hardcode_into_libs=yes
9922
9923  # Append ld.so.conf contents to the search path
9924  if test -f /etc/ld.so.conf; then
9925    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9926    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9927  fi
9928
9929  # We used to test for /lib/ld.so.1 and disable shared libraries on
9930  # powerpc, because MkLinux only supported shared libraries with the
9931  # GNU dynamic linker.  Since this was broken with cross compilers,
9932  # most powerpc-linux boxes support dynamic linking these days and
9933  # people can always --disable-shared, the test was removed, and we
9934  # assume the GNU/Linux dynamic linker is in use.
9935  dynamic_linker='GNU/Linux ld.so'
9936  ;;
9937
9938netbsd*)
9939  version_type=sunos
9940  need_lib_prefix=no
9941  need_version=no
9942  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9944    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9945    dynamic_linker='NetBSD (a.out) ld.so'
9946  else
9947    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9948    soname_spec='${libname}${release}${shared_ext}$major'
9949    dynamic_linker='NetBSD ld.elf_so'
9950  fi
9951  shlibpath_var=LD_LIBRARY_PATH
9952  shlibpath_overrides_runpath=yes
9953  hardcode_into_libs=yes
9954  ;;
9955
9956newsos6)
9957  version_type=linux
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=yes
9961  ;;
9962
9963*nto* | *qnx*)
9964  version_type=qnx
9965  need_lib_prefix=no
9966  need_version=no
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  shlibpath_overrides_runpath=no
9971  hardcode_into_libs=yes
9972  dynamic_linker='ldqnx.so'
9973  ;;
9974
9975openbsd*)
9976  version_type=sunos
9977  sys_lib_dlsearch_path_spec="/usr/lib"
9978  need_lib_prefix=no
9979  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9980  case $host_os in
9981    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9982    *)				need_version=no  ;;
9983  esac
9984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9986  shlibpath_var=LD_LIBRARY_PATH
9987  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9988    case $host_os in
9989      openbsd2.[89] | openbsd2.[89].*)
9990	shlibpath_overrides_runpath=no
9991	;;
9992      *)
9993	shlibpath_overrides_runpath=yes
9994	;;
9995      esac
9996  else
9997    shlibpath_overrides_runpath=yes
9998  fi
9999  ;;
10000
10001os2*)
10002  libname_spec='$name'
10003  shrext_cmds=".dll"
10004  need_lib_prefix=no
10005  library_names_spec='$libname${shared_ext} $libname.a'
10006  dynamic_linker='OS/2 ld.exe'
10007  shlibpath_var=LIBPATH
10008  ;;
10009
10010osf3* | osf4* | osf5*)
10011  version_type=osf
10012  need_lib_prefix=no
10013  need_version=no
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10018  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10019  ;;
10020
10021rdos*)
10022  dynamic_linker=no
10023  ;;
10024
10025solaris*)
10026  version_type=linux
10027  need_lib_prefix=no
10028  need_version=no
10029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030  soname_spec='${libname}${release}${shared_ext}$major'
10031  shlibpath_var=LD_LIBRARY_PATH
10032  shlibpath_overrides_runpath=yes
10033  hardcode_into_libs=yes
10034  # ldd complains unless libraries are executable
10035  postinstall_cmds='chmod +x $lib'
10036  ;;
10037
10038sunos4*)
10039  version_type=sunos
10040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10041  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10042  shlibpath_var=LD_LIBRARY_PATH
10043  shlibpath_overrides_runpath=yes
10044  if test "$with_gnu_ld" = yes; then
10045    need_lib_prefix=no
10046  fi
10047  need_version=yes
10048  ;;
10049
10050sysv4 | sysv4.3*)
10051  version_type=linux
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053  soname_spec='${libname}${release}${shared_ext}$major'
10054  shlibpath_var=LD_LIBRARY_PATH
10055  case $host_vendor in
10056    sni)
10057      shlibpath_overrides_runpath=no
10058      need_lib_prefix=no
10059      runpath_var=LD_RUN_PATH
10060      ;;
10061    siemens)
10062      need_lib_prefix=no
10063      ;;
10064    motorola)
10065      need_lib_prefix=no
10066      need_version=no
10067      shlibpath_overrides_runpath=no
10068      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10069      ;;
10070  esac
10071  ;;
10072
10073sysv4*MP*)
10074  if test -d /usr/nec ;then
10075    version_type=linux
10076    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10077    soname_spec='$libname${shared_ext}.$major'
10078    shlibpath_var=LD_LIBRARY_PATH
10079  fi
10080  ;;
10081
10082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10083  version_type=freebsd-elf
10084  need_lib_prefix=no
10085  need_version=no
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  shlibpath_overrides_runpath=yes
10090  hardcode_into_libs=yes
10091  if test "$with_gnu_ld" = yes; then
10092    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10093  else
10094    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10095    case $host_os in
10096      sco3.2v5*)
10097        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10098	;;
10099    esac
10100  fi
10101  sys_lib_dlsearch_path_spec='/usr/lib'
10102  ;;
10103
10104tpf*)
10105  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10106  version_type=linux
10107  need_lib_prefix=no
10108  need_version=no
10109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110  shlibpath_var=LD_LIBRARY_PATH
10111  shlibpath_overrides_runpath=no
10112  hardcode_into_libs=yes
10113  ;;
10114
10115uts4*)
10116  version_type=linux
10117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118  soname_spec='${libname}${release}${shared_ext}$major'
10119  shlibpath_var=LD_LIBRARY_PATH
10120  ;;
10121
10122*)
10123  dynamic_linker=no
10124  ;;
10125esac
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10127$as_echo "$dynamic_linker" >&6; }
10128test "$dynamic_linker" = no && can_build_shared=no
10129
10130variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10131if test "$GCC" = yes; then
10132  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10133fi
10134
10135if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10136  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10137fi
10138if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10139  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10140fi
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10229$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10230hardcode_action=
10231if test -n "$hardcode_libdir_flag_spec" ||
10232   test -n "$runpath_var" ||
10233   test "X$hardcode_automatic" = "Xyes" ; then
10234
10235  # We can hardcode non-existent directories.
10236  if test "$hardcode_direct" != no &&
10237     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10238     # have to relink, otherwise we might link with an installed library
10239     # when we should be linking with a yet-to-be-installed one
10240     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10241     test "$hardcode_minus_L" != no; then
10242    # Linking always hardcodes the temporary library directory.
10243    hardcode_action=relink
10244  else
10245    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10246    hardcode_action=immediate
10247  fi
10248else
10249  # We cannot hardcode anything, or else we can only hardcode existing
10250  # directories.
10251  hardcode_action=unsupported
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10254$as_echo "$hardcode_action" >&6; }
10255
10256if test "$hardcode_action" = relink ||
10257   test "$inherit_rpath" = yes; then
10258  # Fast installation is not supported
10259  enable_fast_install=no
10260elif test "$shlibpath_overrides_runpath" = yes ||
10261     test "$enable_shared" = no; then
10262  # Fast installation is not necessary
10263  enable_fast_install=needless
10264fi
10265
10266
10267
10268
10269
10270
10271  if test "x$enable_dlopen" != xyes; then
10272  enable_dlopen=unknown
10273  enable_dlopen_self=unknown
10274  enable_dlopen_self_static=unknown
10275else
10276  lt_cv_dlopen=no
10277  lt_cv_dlopen_libs=
10278
10279  case $host_os in
10280  beos*)
10281    lt_cv_dlopen="load_add_on"
10282    lt_cv_dlopen_libs=
10283    lt_cv_dlopen_self=yes
10284    ;;
10285
10286  mingw* | pw32* | cegcc*)
10287    lt_cv_dlopen="LoadLibrary"
10288    lt_cv_dlopen_libs=
10289    ;;
10290
10291  cygwin*)
10292    lt_cv_dlopen="dlopen"
10293    lt_cv_dlopen_libs=
10294    ;;
10295
10296  darwin*)
10297  # if libdl is installed we need to link against it
10298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10299$as_echo_n "checking for dlopen in -ldl... " >&6; }
10300if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  ac_check_lib_save_LIBS=$LIBS
10304LIBS="-ldl  $LIBS"
10305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306/* end confdefs.h.  */
10307
10308/* Override any GCC internal prototype to avoid an error.
10309   Use char because int might match the return type of a GCC
10310   builtin and then its argument prototype would still apply.  */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314char dlopen ();
10315int
10316main ()
10317{
10318return dlopen ();
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323if ac_fn_c_try_link "$LINENO"; then :
10324  ac_cv_lib_dl_dlopen=yes
10325else
10326  ac_cv_lib_dl_dlopen=no
10327fi
10328rm -f core conftest.err conftest.$ac_objext \
10329    conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10333$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10334if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10335  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10336else
10337
10338    lt_cv_dlopen="dyld"
10339    lt_cv_dlopen_libs=
10340    lt_cv_dlopen_self=yes
10341
10342fi
10343
10344    ;;
10345
10346  *)
10347    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10348if test "x$ac_cv_func_shl_load" = x""yes; then :
10349  lt_cv_dlopen="shl_load"
10350else
10351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10352$as_echo_n "checking for shl_load in -ldld... " >&6; }
10353if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  ac_check_lib_save_LIBS=$LIBS
10357LIBS="-ldld  $LIBS"
10358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360
10361/* Override any GCC internal prototype to avoid an error.
10362   Use char because int might match the return type of a GCC
10363   builtin and then its argument prototype would still apply.  */
10364#ifdef __cplusplus
10365extern "C"
10366#endif
10367char shl_load ();
10368int
10369main ()
10370{
10371return shl_load ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"; then :
10377  ac_cv_lib_dld_shl_load=yes
10378else
10379  ac_cv_lib_dld_shl_load=no
10380fi
10381rm -f core conftest.err conftest.$ac_objext \
10382    conftest$ac_exeext conftest.$ac_ext
10383LIBS=$ac_check_lib_save_LIBS
10384fi
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10386$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10387if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10388  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10389else
10390  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10391if test "x$ac_cv_func_dlopen" = x""yes; then :
10392  lt_cv_dlopen="dlopen"
10393else
10394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10395$as_echo_n "checking for dlopen in -ldl... " >&6; }
10396if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10397  $as_echo_n "(cached) " >&6
10398else
10399  ac_check_lib_save_LIBS=$LIBS
10400LIBS="-ldl  $LIBS"
10401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402/* end confdefs.h.  */
10403
10404/* Override any GCC internal prototype to avoid an error.
10405   Use char because int might match the return type of a GCC
10406   builtin and then its argument prototype would still apply.  */
10407#ifdef __cplusplus
10408extern "C"
10409#endif
10410char dlopen ();
10411int
10412main ()
10413{
10414return dlopen ();
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"; then :
10420  ac_cv_lib_dl_dlopen=yes
10421else
10422  ac_cv_lib_dl_dlopen=no
10423fi
10424rm -f core conftest.err conftest.$ac_objext \
10425    conftest$ac_exeext conftest.$ac_ext
10426LIBS=$ac_check_lib_save_LIBS
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10429$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10430if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10431  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10432else
10433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10434$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10435if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10436  $as_echo_n "(cached) " >&6
10437else
10438  ac_check_lib_save_LIBS=$LIBS
10439LIBS="-lsvld  $LIBS"
10440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h.  */
10442
10443/* Override any GCC internal prototype to avoid an error.
10444   Use char because int might match the return type of a GCC
10445   builtin and then its argument prototype would still apply.  */
10446#ifdef __cplusplus
10447extern "C"
10448#endif
10449char dlopen ();
10450int
10451main ()
10452{
10453return dlopen ();
10454  ;
10455  return 0;
10456}
10457_ACEOF
10458if ac_fn_c_try_link "$LINENO"; then :
10459  ac_cv_lib_svld_dlopen=yes
10460else
10461  ac_cv_lib_svld_dlopen=no
10462fi
10463rm -f core conftest.err conftest.$ac_objext \
10464    conftest$ac_exeext conftest.$ac_ext
10465LIBS=$ac_check_lib_save_LIBS
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10468$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10469if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10470  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10471else
10472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10473$as_echo_n "checking for dld_link in -ldld... " >&6; }
10474if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  ac_check_lib_save_LIBS=$LIBS
10478LIBS="-ldld  $LIBS"
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483   Use char because int might match the return type of a GCC
10484   builtin and then its argument prototype would still apply.  */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char dld_link ();
10489int
10490main ()
10491{
10492return dld_link ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498  ac_cv_lib_dld_dld_link=yes
10499else
10500  ac_cv_lib_dld_dld_link=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext \
10503    conftest$ac_exeext conftest.$ac_ext
10504LIBS=$ac_check_lib_save_LIBS
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10507$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10508if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10509  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10510fi
10511
10512
10513fi
10514
10515
10516fi
10517
10518
10519fi
10520
10521
10522fi
10523
10524
10525fi
10526
10527    ;;
10528  esac
10529
10530  if test "x$lt_cv_dlopen" != xno; then
10531    enable_dlopen=yes
10532  else
10533    enable_dlopen=no
10534  fi
10535
10536  case $lt_cv_dlopen in
10537  dlopen)
10538    save_CPPFLAGS="$CPPFLAGS"
10539    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10540
10541    save_LDFLAGS="$LDFLAGS"
10542    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10543
10544    save_LIBS="$LIBS"
10545    LIBS="$lt_cv_dlopen_libs $LIBS"
10546
10547    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10548$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10549if test "${lt_cv_dlopen_self+set}" = set; then :
10550  $as_echo_n "(cached) " >&6
10551else
10552  	  if test "$cross_compiling" = yes; then :
10553  lt_cv_dlopen_self=cross
10554else
10555  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10556  lt_status=$lt_dlunknown
10557  cat > conftest.$ac_ext <<_LT_EOF
10558#line 10558 "configure"
10559#include "confdefs.h"
10560
10561#if HAVE_DLFCN_H
10562#include <dlfcn.h>
10563#endif
10564
10565#include <stdio.h>
10566
10567#ifdef RTLD_GLOBAL
10568#  define LT_DLGLOBAL		RTLD_GLOBAL
10569#else
10570#  ifdef DL_GLOBAL
10571#    define LT_DLGLOBAL		DL_GLOBAL
10572#  else
10573#    define LT_DLGLOBAL		0
10574#  endif
10575#endif
10576
10577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10578   find out it does not work in some platform. */
10579#ifndef LT_DLLAZY_OR_NOW
10580#  ifdef RTLD_LAZY
10581#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10582#  else
10583#    ifdef DL_LAZY
10584#      define LT_DLLAZY_OR_NOW		DL_LAZY
10585#    else
10586#      ifdef RTLD_NOW
10587#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10588#      else
10589#        ifdef DL_NOW
10590#          define LT_DLLAZY_OR_NOW	DL_NOW
10591#        else
10592#          define LT_DLLAZY_OR_NOW	0
10593#        endif
10594#      endif
10595#    endif
10596#  endif
10597#endif
10598
10599void fnord() { int i=42;}
10600int main ()
10601{
10602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603  int status = $lt_dlunknown;
10604
10605  if (self)
10606    {
10607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609      /* dlclose (self); */
10610    }
10611  else
10612    puts (dlerror ());
10613
10614  return status;
10615}
10616_LT_EOF
10617  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10618  (eval $ac_link) 2>&5
10619  ac_status=$?
10620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10621  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10622    (./conftest; exit; ) >&5 2>/dev/null
10623    lt_status=$?
10624    case x$lt_status in
10625      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10626      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10627      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10628    esac
10629  else :
10630    # compilation failed
10631    lt_cv_dlopen_self=no
10632  fi
10633fi
10634rm -fr conftest*
10635
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10639$as_echo "$lt_cv_dlopen_self" >&6; }
10640
10641    if test "x$lt_cv_dlopen_self" = xyes; then
10642      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10643      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10644$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10645if test "${lt_cv_dlopen_self_static+set}" = set; then :
10646  $as_echo_n "(cached) " >&6
10647else
10648  	  if test "$cross_compiling" = yes; then :
10649  lt_cv_dlopen_self_static=cross
10650else
10651  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10652  lt_status=$lt_dlunknown
10653  cat > conftest.$ac_ext <<_LT_EOF
10654#line 10654 "configure"
10655#include "confdefs.h"
10656
10657#if HAVE_DLFCN_H
10658#include <dlfcn.h>
10659#endif
10660
10661#include <stdio.h>
10662
10663#ifdef RTLD_GLOBAL
10664#  define LT_DLGLOBAL		RTLD_GLOBAL
10665#else
10666#  ifdef DL_GLOBAL
10667#    define LT_DLGLOBAL		DL_GLOBAL
10668#  else
10669#    define LT_DLGLOBAL		0
10670#  endif
10671#endif
10672
10673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10674   find out it does not work in some platform. */
10675#ifndef LT_DLLAZY_OR_NOW
10676#  ifdef RTLD_LAZY
10677#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10678#  else
10679#    ifdef DL_LAZY
10680#      define LT_DLLAZY_OR_NOW		DL_LAZY
10681#    else
10682#      ifdef RTLD_NOW
10683#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10684#      else
10685#        ifdef DL_NOW
10686#          define LT_DLLAZY_OR_NOW	DL_NOW
10687#        else
10688#          define LT_DLLAZY_OR_NOW	0
10689#        endif
10690#      endif
10691#    endif
10692#  endif
10693#endif
10694
10695void fnord() { int i=42;}
10696int main ()
10697{
10698  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10699  int status = $lt_dlunknown;
10700
10701  if (self)
10702    {
10703      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10704      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10705      /* dlclose (self); */
10706    }
10707  else
10708    puts (dlerror ());
10709
10710  return status;
10711}
10712_LT_EOF
10713  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10714  (eval $ac_link) 2>&5
10715  ac_status=$?
10716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10718    (./conftest; exit; ) >&5 2>/dev/null
10719    lt_status=$?
10720    case x$lt_status in
10721      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10722      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10723      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10724    esac
10725  else :
10726    # compilation failed
10727    lt_cv_dlopen_self_static=no
10728  fi
10729fi
10730rm -fr conftest*
10731
10732
10733fi
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10735$as_echo "$lt_cv_dlopen_self_static" >&6; }
10736    fi
10737
10738    CPPFLAGS="$save_CPPFLAGS"
10739    LDFLAGS="$save_LDFLAGS"
10740    LIBS="$save_LIBS"
10741    ;;
10742  esac
10743
10744  case $lt_cv_dlopen_self in
10745  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10746  *) enable_dlopen_self=unknown ;;
10747  esac
10748
10749  case $lt_cv_dlopen_self_static in
10750  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10751  *) enable_dlopen_self_static=unknown ;;
10752  esac
10753fi
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771striplib=
10772old_striplib=
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10774$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10775if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10776  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10777  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10779$as_echo "yes" >&6; }
10780else
10781# FIXME - insert some real tests, host_os isn't really good enough
10782  case $host_os in
10783  darwin*)
10784    if test -n "$STRIP" ; then
10785      striplib="$STRIP -x"
10786      old_striplib="$STRIP -S"
10787      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788$as_echo "yes" >&6; }
10789    else
10790      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791$as_echo "no" >&6; }
10792    fi
10793    ;;
10794  *)
10795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796$as_echo "no" >&6; }
10797    ;;
10798  esac
10799fi
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812  # Report which library types will actually be built
10813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10814$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10816$as_echo "$can_build_shared" >&6; }
10817
10818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10819$as_echo_n "checking whether to build shared libraries... " >&6; }
10820  test "$can_build_shared" = "no" && enable_shared=no
10821
10822  # On AIX, shared libraries and static libraries use the same namespace, and
10823  # are all built from PIC.
10824  case $host_os in
10825  aix3*)
10826    test "$enable_shared" = yes && enable_static=no
10827    if test -n "$RANLIB"; then
10828      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10829      postinstall_cmds='$RANLIB $lib'
10830    fi
10831    ;;
10832
10833  aix[4-9]*)
10834    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10835      test "$enable_shared" = yes && enable_static=no
10836    fi
10837    ;;
10838  esac
10839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10840$as_echo "$enable_shared" >&6; }
10841
10842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10843$as_echo_n "checking whether to build static libraries... " >&6; }
10844  # Make sure either enable_shared or enable_static is yes.
10845  test "$enable_shared" = yes || enable_static=yes
10846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10847$as_echo "$enable_static" >&6; }
10848
10849
10850
10851
10852fi
10853ac_ext=c
10854ac_cpp='$CPP $CPPFLAGS'
10855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10857ac_compiler_gnu=$ac_cv_c_compiler_gnu
10858
10859CC="$lt_save_CC"
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873        ac_config_commands="$ac_config_commands libtool"
10874
10875
10876
10877
10878# Only expand once:
10879
10880
10881
10882if test "$ac_cv_prog_gnu_ld" = "yes" ; then
10883
10884$as_echo "#define HAVE_GNU_LD /**/" >>confdefs.h
10885
10886fi
10887
10888
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10890$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10891    # Check whether --enable-maintainer-mode was given.
10892if test "${enable_maintainer_mode+set}" = set; then :
10893  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10894else
10895  USE_MAINTAINER_MODE=no
10896fi
10897
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10899$as_echo "$USE_MAINTAINER_MODE" >&6; }
10900   if test $USE_MAINTAINER_MODE = yes; then
10901  MAINTAINER_MODE_TRUE=
10902  MAINTAINER_MODE_FALSE='#'
10903else
10904  MAINTAINER_MODE_TRUE='#'
10905  MAINTAINER_MODE_FALSE=
10906fi
10907
10908  MAINT=$MAINTAINER_MODE_TRUE
10909
10910
10911if test x${USE_MAINTAINER_MODE} = xyes ; then
10912  MAINTAINER_MODE="true"
10913  BUILD_TEST="yes"
10914
10915$as_echo "#define HAVE_MAINTAINER_MODE /**/" >>confdefs.h
10916
10917fi
10918
10919if test x${host_os} = xlinux-gnu ; then
10920  OSTYPE="linux"
10921elif test "`echo ${host_os} | sed 's/^\(linux\).*$/\1/'`" = "linux" ; then
10922  OSTYPE="linux"
10923elif test "`echo ${host_os} | sed 's/^\(irix\).*$/\1/'`" = "irix" ; then
10924  OSTYPE="irix"
10925else
10926  OSTYPE="${host_os}"
10927fi
10928
10929cat >>confdefs.h <<_ACEOF
10930#define OSTYPE "${OSTYPE}"
10931_ACEOF
10932
10933
10934
10935# Extract the first word of "cups-config", so it can be a program name with args.
10936set dummy cups-config; ac_word=$2
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  case $CUPS_CONFIG in
10943  [\\/]* | ?:[\\/]*)
10944  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
10945  ;;
10946  *)
10947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $PATH
10949do
10950  IFS=$as_save_IFS
10951  test -z "$as_dir" && as_dir=.
10952    for ac_exec_ext in '' $ac_executable_extensions; do
10953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956    break 2
10957  fi
10958done
10959  done
10960IFS=$as_save_IFS
10961
10962  ;;
10963esac
10964fi
10965CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
10966if test -n "$CUPS_CONFIG"; then
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5
10968$as_echo "$CUPS_CONFIG" >&6; }
10969else
10970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974
10975if test -z "${CUPS_CONFIG}" ; then
10976  BUILD_CUPS="no"
10977else
10978  BUILD_CUPS="yes"
10979fi
10980# create custom command-line --with option
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to whether to build CUPS driver" >&5
10982$as_echo_n "checking whether to whether to build CUPS driver... " >&6; }
10983
10984# Check whether --with-cups was given.
10985if test "${with_cups+set}" = set; then :
10986  withval=$with_cups; case "${withval}" in
10987
10988    yes) BUILD_CUPS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989$as_echo "yes" >&6; } ; cups_prefix="/usr" ;;
10990    no) BUILD_CUPS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; } ; cups_prefix="/usr" ;;
10992    *) if test -d ${withval} ; then
10993         BUILD_CUPS="yes"
10994	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using specified prefix)" >&5
10995$as_echo "yes (using specified prefix)" >&6; }
10996         cups_prefix="${withval}"
10997       else
10998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10999$as_echo "unknown" >&6; }
11000         as_fn_error "${withval}: no such directory for --with-cups" "$LINENO" 5
11001       fi ;;
11002
11003	    esac
11004else
11005  if test -z "${BUILD_CUPS}" ; then
11006               BUILD_CUPS="(automatic)"
11007             fi
11008             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS}" >&5
11009$as_echo "${BUILD_CUPS}" >&6; } ;
11010     cups_prefix="${prefix}"
11011
11012fi
11013
11014if test -z "${BUILD_CUPS}" ; then
11015  BUILD_CUPS="(automatic)"
11016fi
11017
11018
11019
11020
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11022$as_echo_n "checking whether NLS is requested... " >&6; }
11023    # Check whether --enable-nls was given.
11024if test "${enable_nls+set}" = set; then :
11025  enableval=$enable_nls; USE_NLS=$enableval
11026else
11027  USE_NLS=yes
11028fi
11029
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11031$as_echo "$USE_NLS" >&6; }
11032
11033
11034
11035
11036
11037
11038# Prepare PATH_SEPARATOR.
11039# The user is always right.
11040if test "${PATH_SEPARATOR+set}" != set; then
11041  echo "#! /bin/sh" >conf$$.sh
11042  echo  "exit 0"   >>conf$$.sh
11043  chmod +x conf$$.sh
11044  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11045    PATH_SEPARATOR=';'
11046  else
11047    PATH_SEPARATOR=:
11048  fi
11049  rm -f conf$$.sh
11050fi
11051
11052# Find out how to test for executable files. Don't use a zero-byte file,
11053# as systems may use methods other than mode bits to determine executability.
11054cat >conf$$.file <<_ASEOF
11055#! /bin/sh
11056exit 0
11057_ASEOF
11058chmod +x conf$$.file
11059if test -x conf$$.file >/dev/null 2>&1; then
11060  ac_executable_p="test -x"
11061else
11062  ac_executable_p="test -f"
11063fi
11064rm -f conf$$.file
11065
11066# Extract the first word of "msgfmt", so it can be a program name with args.
11067set dummy msgfmt; ac_word=$2
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069$as_echo_n "checking for $ac_word... " >&6; }
11070if test "${ac_cv_path_MSGFMT+set}" = set; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  case "$MSGFMT" in
11074  [\\/]* | ?:[\\/]*)
11075    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11076    ;;
11077  *)
11078    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11079    for ac_dir in $PATH; do
11080      IFS="$ac_save_IFS"
11081      test -z "$ac_dir" && ac_dir=.
11082      for ac_exec_ext in '' $ac_executable_extensions; do
11083        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11084          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11085          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11086     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11087            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11088            break 2
11089          fi
11090        fi
11091      done
11092    done
11093    IFS="$ac_save_IFS"
11094  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11095    ;;
11096esac
11097fi
11098MSGFMT="$ac_cv_path_MSGFMT"
11099if test "$MSGFMT" != ":"; then
11100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11101$as_echo "$MSGFMT" >&6; }
11102else
11103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
11105fi
11106
11107  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11108set dummy gmsgfmt; ac_word=$2
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
11111if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  case $GMSGFMT in
11115  [\\/]* | ?:[\\/]*)
11116  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11117  ;;
11118  *)
11119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122  IFS=$as_save_IFS
11123  test -z "$as_dir" && as_dir=.
11124    for ac_exec_ext in '' $ac_executable_extensions; do
11125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128    break 2
11129  fi
11130done
11131  done
11132IFS=$as_save_IFS
11133
11134  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11135  ;;
11136esac
11137fi
11138GMSGFMT=$ac_cv_path_GMSGFMT
11139if test -n "$GMSGFMT"; then
11140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11141$as_echo "$GMSGFMT" >&6; }
11142else
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144$as_echo "no" >&6; }
11145fi
11146
11147
11148
11149    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11150    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11151    *) MSGFMT_015=$MSGFMT ;;
11152  esac
11153
11154  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11155    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11156    *) GMSGFMT_015=$GMSGFMT ;;
11157  esac
11158
11159
11160
11161# Prepare PATH_SEPARATOR.
11162# The user is always right.
11163if test "${PATH_SEPARATOR+set}" != set; then
11164  echo "#! /bin/sh" >conf$$.sh
11165  echo  "exit 0"   >>conf$$.sh
11166  chmod +x conf$$.sh
11167  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11168    PATH_SEPARATOR=';'
11169  else
11170    PATH_SEPARATOR=:
11171  fi
11172  rm -f conf$$.sh
11173fi
11174
11175# Find out how to test for executable files. Don't use a zero-byte file,
11176# as systems may use methods other than mode bits to determine executability.
11177cat >conf$$.file <<_ASEOF
11178#! /bin/sh
11179exit 0
11180_ASEOF
11181chmod +x conf$$.file
11182if test -x conf$$.file >/dev/null 2>&1; then
11183  ac_executable_p="test -x"
11184else
11185  ac_executable_p="test -f"
11186fi
11187rm -f conf$$.file
11188
11189# Extract the first word of "xgettext", so it can be a program name with args.
11190set dummy xgettext; ac_word=$2
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
11193if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11194  $as_echo_n "(cached) " >&6
11195else
11196  case "$XGETTEXT" in
11197  [\\/]* | ?:[\\/]*)
11198    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11199    ;;
11200  *)
11201    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11202    for ac_dir in $PATH; do
11203      IFS="$ac_save_IFS"
11204      test -z "$ac_dir" && ac_dir=.
11205      for ac_exec_ext in '' $ac_executable_extensions; do
11206        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11207          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11208          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11209     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11210            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11211            break 2
11212          fi
11213        fi
11214      done
11215    done
11216    IFS="$ac_save_IFS"
11217  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11218    ;;
11219esac
11220fi
11221XGETTEXT="$ac_cv_path_XGETTEXT"
11222if test "$XGETTEXT" != ":"; then
11223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11224$as_echo "$XGETTEXT" >&6; }
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228fi
11229
11230    rm -f messages.po
11231
11232    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11233    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11234    *) XGETTEXT_015=$XGETTEXT ;;
11235  esac
11236
11237
11238
11239# Prepare PATH_SEPARATOR.
11240# The user is always right.
11241if test "${PATH_SEPARATOR+set}" != set; then
11242  echo "#! /bin/sh" >conf$$.sh
11243  echo  "exit 0"   >>conf$$.sh
11244  chmod +x conf$$.sh
11245  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11246    PATH_SEPARATOR=';'
11247  else
11248    PATH_SEPARATOR=:
11249  fi
11250  rm -f conf$$.sh
11251fi
11252
11253# Find out how to test for executable files. Don't use a zero-byte file,
11254# as systems may use methods other than mode bits to determine executability.
11255cat >conf$$.file <<_ASEOF
11256#! /bin/sh
11257exit 0
11258_ASEOF
11259chmod +x conf$$.file
11260if test -x conf$$.file >/dev/null 2>&1; then
11261  ac_executable_p="test -x"
11262else
11263  ac_executable_p="test -f"
11264fi
11265rm -f conf$$.file
11266
11267# Extract the first word of "msgmerge", so it can be a program name with args.
11268set dummy msgmerge; ac_word=$2
11269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270$as_echo_n "checking for $ac_word... " >&6; }
11271if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  case "$MSGMERGE" in
11275  [\\/]* | ?:[\\/]*)
11276    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11277    ;;
11278  *)
11279    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11280    for ac_dir in $PATH; do
11281      IFS="$ac_save_IFS"
11282      test -z "$ac_dir" && ac_dir=.
11283      for ac_exec_ext in '' $ac_executable_extensions; do
11284        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11285          echo "$as_me: trying $ac_dir/$ac_word..." >&5
11286          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11287            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11288            break 2
11289          fi
11290        fi
11291      done
11292    done
11293    IFS="$ac_save_IFS"
11294  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11295    ;;
11296esac
11297fi
11298MSGMERGE="$ac_cv_path_MSGMERGE"
11299if test "$MSGMERGE" != ":"; then
11300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11301$as_echo "$MSGMERGE" >&6; }
11302else
11303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304$as_echo "no" >&6; }
11305fi
11306
11307
11308        test -n "$localedir" || localedir='${datadir}/locale'
11309
11310
11311  ac_config_commands="$ac_config_commands po-directories"
11312
11313
11314
11315      if test "X$prefix" = "XNONE"; then
11316    acl_final_prefix="$ac_default_prefix"
11317  else
11318    acl_final_prefix="$prefix"
11319  fi
11320  if test "X$exec_prefix" = "XNONE"; then
11321    acl_final_exec_prefix='${prefix}'
11322  else
11323    acl_final_exec_prefix="$exec_prefix"
11324  fi
11325  acl_save_prefix="$prefix"
11326  prefix="$acl_final_prefix"
11327  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11328  prefix="$acl_save_prefix"
11329
11330
11331# Check whether --with-gnu-ld was given.
11332if test "${with_gnu_ld+set}" = set; then :
11333  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11334else
11335  with_gnu_ld=no
11336fi
11337
11338# Prepare PATH_SEPARATOR.
11339# The user is always right.
11340if test "${PATH_SEPARATOR+set}" != set; then
11341  echo "#! /bin/sh" >conf$$.sh
11342  echo  "exit 0"   >>conf$$.sh
11343  chmod +x conf$$.sh
11344  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11345    PATH_SEPARATOR=';'
11346  else
11347    PATH_SEPARATOR=:
11348  fi
11349  rm -f conf$$.sh
11350fi
11351ac_prog=ld
11352if test "$GCC" = yes; then
11353  # Check if gcc -print-prog-name=ld gives a path.
11354  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11355$as_echo_n "checking for ld used by GCC... " >&6; }
11356  case $host in
11357  *-*-mingw*)
11358    # gcc leaves a trailing carriage return which upsets mingw
11359    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11360  *)
11361    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11362  esac
11363  case $ac_prog in
11364    # Accept absolute paths.
11365    [\\/]* | [A-Za-z]:[\\/]*)
11366      re_direlt='/[^/][^/]*/\.\./'
11367      # Canonicalize the path of ld
11368      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11369      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11370	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11371      done
11372      test -z "$LD" && LD="$ac_prog"
11373      ;;
11374  "")
11375    # If it fails, then pretend we aren't using GCC.
11376    ac_prog=ld
11377    ;;
11378  *)
11379    # If it is relative, then search for the first ld in PATH.
11380    with_gnu_ld=unknown
11381    ;;
11382  esac
11383elif test "$with_gnu_ld" = yes; then
11384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11385$as_echo_n "checking for GNU ld... " >&6; }
11386else
11387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11388$as_echo_n "checking for non-GNU ld... " >&6; }
11389fi
11390if test "${acl_cv_path_LD+set}" = set; then :
11391  $as_echo_n "(cached) " >&6
11392else
11393  if test -z "$LD"; then
11394  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11395  for ac_dir in $PATH; do
11396    test -z "$ac_dir" && ac_dir=.
11397    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11398      acl_cv_path_LD="$ac_dir/$ac_prog"
11399      # Check to see if the program is GNU ld.  I'd rather use --version,
11400      # but apparently some GNU ld's only accept -v.
11401      # Break only if it was the GNU/non-GNU ld that we prefer.
11402      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11403      *GNU* | *'with BFD'*)
11404	test "$with_gnu_ld" != no && break ;;
11405      *)
11406	test "$with_gnu_ld" != yes && break ;;
11407      esac
11408    fi
11409  done
11410  IFS="$ac_save_ifs"
11411else
11412  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11413fi
11414fi
11415
11416LD="$acl_cv_path_LD"
11417if test -n "$LD"; then
11418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11419$as_echo "$LD" >&6; }
11420else
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
11423fi
11424test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11427if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11431case `$LD -v 2>&1 </dev/null` in
11432*GNU* | *'with BFD'*)
11433  acl_cv_prog_gnu_ld=yes ;;
11434*)
11435  acl_cv_prog_gnu_ld=no ;;
11436esac
11437fi
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11439$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11440with_gnu_ld=$acl_cv_prog_gnu_ld
11441
11442
11443
11444
11445                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11446$as_echo_n "checking for shared library run path origin... " >&6; }
11447if test "${acl_cv_rpath+set}" = set; then :
11448  $as_echo_n "(cached) " >&6
11449else
11450
11451    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11452    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11453    . ./conftest.sh
11454    rm -f ./conftest.sh
11455    acl_cv_rpath=done
11456
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11459$as_echo "$acl_cv_rpath" >&6; }
11460  wl="$acl_cv_wl"
11461  libext="$acl_cv_libext"
11462  shlibext="$acl_cv_shlibext"
11463  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11464  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11465  hardcode_direct="$acl_cv_hardcode_direct"
11466  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11467    # Check whether --enable-rpath was given.
11468if test "${enable_rpath+set}" = set; then :
11469  enableval=$enable_rpath; :
11470else
11471  enable_rpath=yes
11472fi
11473
11474
11475
11476                  acl_libdirstem=lib
11477  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11478  if test -n "$searchpath"; then
11479    acl_save_IFS="${IFS= 	}"; IFS=":"
11480    for searchdir in $searchpath; do
11481      if test -d "$searchdir"; then
11482        case "$searchdir" in
11483          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11484          *) searchdir=`cd "$searchdir" && pwd`
11485             case "$searchdir" in
11486               */lib64 ) acl_libdirstem=lib64 ;;
11487             esac ;;
11488        esac
11489      fi
11490    done
11491    IFS="$acl_save_IFS"
11492  fi
11493
11494
11495
11496
11497
11498
11499
11500
11501    use_additional=yes
11502
11503  acl_save_prefix="$prefix"
11504  prefix="$acl_final_prefix"
11505  acl_save_exec_prefix="$exec_prefix"
11506  exec_prefix="$acl_final_exec_prefix"
11507
11508    eval additional_includedir=\"$includedir\"
11509    eval additional_libdir=\"$libdir\"
11510
11511  exec_prefix="$acl_save_exec_prefix"
11512  prefix="$acl_save_prefix"
11513
11514
11515# Check whether --with-libiconv-prefix was given.
11516if test "${with_libiconv_prefix+set}" = set; then :
11517  withval=$with_libiconv_prefix;
11518    if test "X$withval" = "Xno"; then
11519      use_additional=no
11520    else
11521      if test "X$withval" = "X"; then
11522
11523  acl_save_prefix="$prefix"
11524  prefix="$acl_final_prefix"
11525  acl_save_exec_prefix="$exec_prefix"
11526  exec_prefix="$acl_final_exec_prefix"
11527
11528          eval additional_includedir=\"$includedir\"
11529          eval additional_libdir=\"$libdir\"
11530
11531  exec_prefix="$acl_save_exec_prefix"
11532  prefix="$acl_save_prefix"
11533
11534      else
11535        additional_includedir="$withval/include"
11536        additional_libdir="$withval/$acl_libdirstem"
11537      fi
11538    fi
11539
11540fi
11541
11542      LIBICONV=
11543  LTLIBICONV=
11544  INCICONV=
11545  rpathdirs=
11546  ltrpathdirs=
11547  names_already_handled=
11548  names_next_round='iconv '
11549  while test -n "$names_next_round"; do
11550    names_this_round="$names_next_round"
11551    names_next_round=
11552    for name in $names_this_round; do
11553      already_handled=
11554      for n in $names_already_handled; do
11555        if test "$n" = "$name"; then
11556          already_handled=yes
11557          break
11558        fi
11559      done
11560      if test -z "$already_handled"; then
11561        names_already_handled="$names_already_handled $name"
11562                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11563        eval value=\"\$HAVE_LIB$uppername\"
11564        if test -n "$value"; then
11565          if test "$value" = yes; then
11566            eval value=\"\$LIB$uppername\"
11567            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11568            eval value=\"\$LTLIB$uppername\"
11569            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11570          else
11571                                    :
11572          fi
11573        else
11574                              found_dir=
11575          found_la=
11576          found_so=
11577          found_a=
11578          if test $use_additional = yes; then
11579            if test -n "$shlibext" \
11580               && { test -f "$additional_libdir/lib$name.$shlibext" \
11581                    || { test "$shlibext" = dll \
11582                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
11583              found_dir="$additional_libdir"
11584              if test -f "$additional_libdir/lib$name.$shlibext"; then
11585                found_so="$additional_libdir/lib$name.$shlibext"
11586              else
11587                found_so="$additional_libdir/lib$name.dll.a"
11588              fi
11589              if test -f "$additional_libdir/lib$name.la"; then
11590                found_la="$additional_libdir/lib$name.la"
11591              fi
11592            else
11593              if test -f "$additional_libdir/lib$name.$libext"; then
11594                found_dir="$additional_libdir"
11595                found_a="$additional_libdir/lib$name.$libext"
11596                if test -f "$additional_libdir/lib$name.la"; then
11597                  found_la="$additional_libdir/lib$name.la"
11598                fi
11599              fi
11600            fi
11601          fi
11602          if test "X$found_dir" = "X"; then
11603            for x in $LDFLAGS $LTLIBICONV; do
11604
11605  acl_save_prefix="$prefix"
11606  prefix="$acl_final_prefix"
11607  acl_save_exec_prefix="$exec_prefix"
11608  exec_prefix="$acl_final_exec_prefix"
11609  eval x=\"$x\"
11610  exec_prefix="$acl_save_exec_prefix"
11611  prefix="$acl_save_prefix"
11612
11613              case "$x" in
11614                -L*)
11615                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11616                  if test -n "$shlibext" \
11617                     && { test -f "$dir/lib$name.$shlibext" \
11618                          || { test "$shlibext" = dll \
11619                               && test -f "$dir/lib$name.dll.a"; }; }; then
11620                    found_dir="$dir"
11621                    if test -f "$dir/lib$name.$shlibext"; then
11622                      found_so="$dir/lib$name.$shlibext"
11623                    else
11624                      found_so="$dir/lib$name.dll.a"
11625                    fi
11626                    if test -f "$dir/lib$name.la"; then
11627                      found_la="$dir/lib$name.la"
11628                    fi
11629                  else
11630                    if test -f "$dir/lib$name.$libext"; then
11631                      found_dir="$dir"
11632                      found_a="$dir/lib$name.$libext"
11633                      if test -f "$dir/lib$name.la"; then
11634                        found_la="$dir/lib$name.la"
11635                      fi
11636                    fi
11637                  fi
11638                  ;;
11639              esac
11640              if test "X$found_dir" != "X"; then
11641                break
11642              fi
11643            done
11644          fi
11645          if test "X$found_dir" != "X"; then
11646                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11647            if test "X$found_so" != "X"; then
11648                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11649                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11650              else
11651                                                                                haveit=
11652                for x in $ltrpathdirs; do
11653                  if test "X$x" = "X$found_dir"; then
11654                    haveit=yes
11655                    break
11656                  fi
11657                done
11658                if test -z "$haveit"; then
11659                  ltrpathdirs="$ltrpathdirs $found_dir"
11660                fi
11661                                if test "$hardcode_direct" = yes; then
11662                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11663                else
11664                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11665                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11666                                                            haveit=
11667                    for x in $rpathdirs; do
11668                      if test "X$x" = "X$found_dir"; then
11669                        haveit=yes
11670                        break
11671                      fi
11672                    done
11673                    if test -z "$haveit"; then
11674                      rpathdirs="$rpathdirs $found_dir"
11675                    fi
11676                  else
11677                                                                                haveit=
11678                    for x in $LDFLAGS $LIBICONV; do
11679
11680  acl_save_prefix="$prefix"
11681  prefix="$acl_final_prefix"
11682  acl_save_exec_prefix="$exec_prefix"
11683  exec_prefix="$acl_final_exec_prefix"
11684  eval x=\"$x\"
11685  exec_prefix="$acl_save_exec_prefix"
11686  prefix="$acl_save_prefix"
11687
11688                      if test "X$x" = "X-L$found_dir"; then
11689                        haveit=yes
11690                        break
11691                      fi
11692                    done
11693                    if test -z "$haveit"; then
11694                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11695                    fi
11696                    if test "$hardcode_minus_L" != no; then
11697                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11698                    else
11699                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11700                    fi
11701                  fi
11702                fi
11703              fi
11704            else
11705              if test "X$found_a" != "X"; then
11706                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11707              else
11708                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11709              fi
11710            fi
11711                        additional_includedir=
11712            case "$found_dir" in
11713              */$acl_libdirstem | */$acl_libdirstem/)
11714                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11715                additional_includedir="$basedir/include"
11716                ;;
11717            esac
11718            if test "X$additional_includedir" != "X"; then
11719                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11720                haveit=
11721                if test "X$additional_includedir" = "X/usr/local/include"; then
11722                  if test -n "$GCC"; then
11723                    case $host_os in
11724                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11725                    esac
11726                  fi
11727                fi
11728                if test -z "$haveit"; then
11729                  for x in $CPPFLAGS $INCICONV; do
11730
11731  acl_save_prefix="$prefix"
11732  prefix="$acl_final_prefix"
11733  acl_save_exec_prefix="$exec_prefix"
11734  exec_prefix="$acl_final_exec_prefix"
11735  eval x=\"$x\"
11736  exec_prefix="$acl_save_exec_prefix"
11737  prefix="$acl_save_prefix"
11738
11739                    if test "X$x" = "X-I$additional_includedir"; then
11740                      haveit=yes
11741                      break
11742                    fi
11743                  done
11744                  if test -z "$haveit"; then
11745                    if test -d "$additional_includedir"; then
11746                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11747                    fi
11748                  fi
11749                fi
11750              fi
11751            fi
11752                        if test -n "$found_la"; then
11753                                                        save_libdir="$libdir"
11754              case "$found_la" in
11755                */* | *\\*) . "$found_la" ;;
11756                *) . "./$found_la" ;;
11757              esac
11758              libdir="$save_libdir"
11759                            for dep in $dependency_libs; do
11760                case "$dep" in
11761                  -L*)
11762                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11763                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11764                      haveit=
11765                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11766                        if test -n "$GCC"; then
11767                          case $host_os in
11768                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11769                          esac
11770                        fi
11771                      fi
11772                      if test -z "$haveit"; then
11773                        haveit=
11774                        for x in $LDFLAGS $LIBICONV; do
11775
11776  acl_save_prefix="$prefix"
11777  prefix="$acl_final_prefix"
11778  acl_save_exec_prefix="$exec_prefix"
11779  exec_prefix="$acl_final_exec_prefix"
11780  eval x=\"$x\"
11781  exec_prefix="$acl_save_exec_prefix"
11782  prefix="$acl_save_prefix"
11783
11784                          if test "X$x" = "X-L$additional_libdir"; then
11785                            haveit=yes
11786                            break
11787                          fi
11788                        done
11789                        if test -z "$haveit"; then
11790                          if test -d "$additional_libdir"; then
11791                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11792                          fi
11793                        fi
11794                        haveit=
11795                        for x in $LDFLAGS $LTLIBICONV; do
11796
11797  acl_save_prefix="$prefix"
11798  prefix="$acl_final_prefix"
11799  acl_save_exec_prefix="$exec_prefix"
11800  exec_prefix="$acl_final_exec_prefix"
11801  eval x=\"$x\"
11802  exec_prefix="$acl_save_exec_prefix"
11803  prefix="$acl_save_prefix"
11804
11805                          if test "X$x" = "X-L$additional_libdir"; then
11806                            haveit=yes
11807                            break
11808                          fi
11809                        done
11810                        if test -z "$haveit"; then
11811                          if test -d "$additional_libdir"; then
11812                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11813                          fi
11814                        fi
11815                      fi
11816                    fi
11817                    ;;
11818                  -R*)
11819                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11820                    if test "$enable_rpath" != no; then
11821                                                                  haveit=
11822                      for x in $rpathdirs; do
11823                        if test "X$x" = "X$dir"; then
11824                          haveit=yes
11825                          break
11826                        fi
11827                      done
11828                      if test -z "$haveit"; then
11829                        rpathdirs="$rpathdirs $dir"
11830                      fi
11831                                                                  haveit=
11832                      for x in $ltrpathdirs; do
11833                        if test "X$x" = "X$dir"; then
11834                          haveit=yes
11835                          break
11836                        fi
11837                      done
11838                      if test -z "$haveit"; then
11839                        ltrpathdirs="$ltrpathdirs $dir"
11840                      fi
11841                    fi
11842                    ;;
11843                  -l*)
11844                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11845                    ;;
11846                  *.la)
11847                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11848                    ;;
11849                  *)
11850                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11851                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11852                    ;;
11853                esac
11854              done
11855            fi
11856          else
11857                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11858            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11859          fi
11860        fi
11861      fi
11862    done
11863  done
11864  if test "X$rpathdirs" != "X"; then
11865    if test -n "$hardcode_libdir_separator"; then
11866                        alldirs=
11867      for found_dir in $rpathdirs; do
11868        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11869      done
11870            acl_save_libdir="$libdir"
11871      libdir="$alldirs"
11872      eval flag=\"$hardcode_libdir_flag_spec\"
11873      libdir="$acl_save_libdir"
11874      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11875    else
11876            for found_dir in $rpathdirs; do
11877        acl_save_libdir="$libdir"
11878        libdir="$found_dir"
11879        eval flag=\"$hardcode_libdir_flag_spec\"
11880        libdir="$acl_save_libdir"
11881        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11882      done
11883    fi
11884  fi
11885  if test "X$ltrpathdirs" != "X"; then
11886            for found_dir in $ltrpathdirs; do
11887      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11888    done
11889  fi
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11916$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11917if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11918  $as_echo_n "(cached) " >&6
11919else
11920  gt_save_LIBS="$LIBS"
11921     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924#include <CoreFoundation/CFPreferences.h>
11925int
11926main ()
11927{
11928CFPreferencesCopyAppValue(NULL, NULL)
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_link "$LINENO"; then :
11934  gt_cv_func_CFPreferencesCopyAppValue=yes
11935else
11936  gt_cv_func_CFPreferencesCopyAppValue=no
11937fi
11938rm -f core conftest.err conftest.$ac_objext \
11939    conftest$ac_exeext conftest.$ac_ext
11940     LIBS="$gt_save_LIBS"
11941fi
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11943$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11944  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11945
11946$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11947
11948  fi
11949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11950$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11951if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  gt_save_LIBS="$LIBS"
11955     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958#include <CoreFoundation/CFLocale.h>
11959int
11960main ()
11961{
11962CFLocaleCopyCurrent();
11963  ;
11964  return 0;
11965}
11966_ACEOF
11967if ac_fn_c_try_link "$LINENO"; then :
11968  gt_cv_func_CFLocaleCopyCurrent=yes
11969else
11970  gt_cv_func_CFLocaleCopyCurrent=no
11971fi
11972rm -f core conftest.err conftest.$ac_objext \
11973    conftest$ac_exeext conftest.$ac_ext
11974     LIBS="$gt_save_LIBS"
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11977$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11978  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11979
11980$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11981
11982  fi
11983  INTL_MACOSX_LIBS=
11984  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11985    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11986  fi
11987
11988
11989
11990
11991
11992
11993  LIBINTL=
11994  LTLIBINTL=
11995  POSUB=
11996
11997    case " $gt_needs " in
11998    *" need-formatstring-macros "*) gt_api_version=3 ;;
11999    *" need-ngettext "*) gt_api_version=2 ;;
12000    *) gt_api_version=1 ;;
12001  esac
12002  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12003  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12004
12005    if test "$USE_NLS" = "yes"; then
12006    gt_use_preinstalled_gnugettext=no
12007
12008
12009        if test $gt_api_version -ge 3; then
12010          gt_revision_test_code='[
12011#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12012#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12013#endif
12014typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12015]'
12016        else
12017          gt_revision_test_code=
12018        fi
12019        if test $gt_api_version -ge 2; then
12020          gt_expression_test_code=' + * ngettext ("", "", 0)'
12021        else
12022          gt_expression_test_code=
12023        fi
12024
12025        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12026$as_echo_n "checking for GNU gettext in libc... " >&6; }
12027if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
12028  $as_echo_n "(cached) " >&6
12029else
12030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031/* end confdefs.h.  */
12032#include <libintl.h>
12033$gt_revision_test_code
12034extern int _nl_msg_cat_cntr;
12035extern int *_nl_domain_bindings;
12036int
12037main ()
12038{
12039bindtextdomain ("", "");
12040return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046  eval "$gt_func_gnugettext_libc=yes"
12047else
12048  eval "$gt_func_gnugettext_libc=no"
12049fi
12050rm -f core conftest.err conftest.$ac_objext \
12051    conftest$ac_exeext conftest.$ac_ext
12052fi
12053eval ac_res=\$$gt_func_gnugettext_libc
12054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12055$as_echo "$ac_res" >&6; }
12056
12057        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12058
12059
12060
12061
12062
12063          am_save_CPPFLAGS="$CPPFLAGS"
12064
12065  for element in $INCICONV; do
12066    haveit=
12067    for x in $CPPFLAGS; do
12068
12069  acl_save_prefix="$prefix"
12070  prefix="$acl_final_prefix"
12071  acl_save_exec_prefix="$exec_prefix"
12072  exec_prefix="$acl_final_exec_prefix"
12073  eval x=\"$x\"
12074  exec_prefix="$acl_save_exec_prefix"
12075  prefix="$acl_save_prefix"
12076
12077      if test "X$x" = "X$element"; then
12078        haveit=yes
12079        break
12080      fi
12081    done
12082    if test -z "$haveit"; then
12083      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12084    fi
12085  done
12086
12087
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12089$as_echo_n "checking for iconv... " >&6; }
12090if test "${am_cv_func_iconv+set}" = set; then :
12091  $as_echo_n "(cached) " >&6
12092else
12093
12094    am_cv_func_iconv="no, consider installing GNU libiconv"
12095    am_cv_lib_iconv=no
12096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h.  */
12098#include <stdlib.h>
12099#include <iconv.h>
12100int
12101main ()
12102{
12103iconv_t cd = iconv_open("","");
12104       iconv(cd,NULL,NULL,NULL,NULL);
12105       iconv_close(cd);
12106  ;
12107  return 0;
12108}
12109_ACEOF
12110if ac_fn_c_try_link "$LINENO"; then :
12111  am_cv_func_iconv=yes
12112fi
12113rm -f core conftest.err conftest.$ac_objext \
12114    conftest$ac_exeext conftest.$ac_ext
12115    if test "$am_cv_func_iconv" != yes; then
12116      am_save_LIBS="$LIBS"
12117      LIBS="$LIBS $LIBICONV"
12118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119/* end confdefs.h.  */
12120#include <stdlib.h>
12121#include <iconv.h>
12122int
12123main ()
12124{
12125iconv_t cd = iconv_open("","");
12126         iconv(cd,NULL,NULL,NULL,NULL);
12127         iconv_close(cd);
12128  ;
12129  return 0;
12130}
12131_ACEOF
12132if ac_fn_c_try_link "$LINENO"; then :
12133  am_cv_lib_iconv=yes
12134        am_cv_func_iconv=yes
12135fi
12136rm -f core conftest.err conftest.$ac_objext \
12137    conftest$ac_exeext conftest.$ac_ext
12138      LIBS="$am_save_LIBS"
12139    fi
12140
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12143$as_echo "$am_cv_func_iconv" >&6; }
12144  if test "$am_cv_func_iconv" = yes; then
12145
12146$as_echo "#define HAVE_ICONV 1" >>confdefs.h
12147
12148  fi
12149  if test "$am_cv_lib_iconv" = yes; then
12150    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12151$as_echo_n "checking how to link with libiconv... " >&6; }
12152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12153$as_echo "$LIBICONV" >&6; }
12154  else
12155            CPPFLAGS="$am_save_CPPFLAGS"
12156    LIBICONV=
12157    LTLIBICONV=
12158  fi
12159
12160
12161
12162
12163
12164
12165
12166    use_additional=yes
12167
12168  acl_save_prefix="$prefix"
12169  prefix="$acl_final_prefix"
12170  acl_save_exec_prefix="$exec_prefix"
12171  exec_prefix="$acl_final_exec_prefix"
12172
12173    eval additional_includedir=\"$includedir\"
12174    eval additional_libdir=\"$libdir\"
12175
12176  exec_prefix="$acl_save_exec_prefix"
12177  prefix="$acl_save_prefix"
12178
12179
12180# Check whether --with-libintl-prefix was given.
12181if test "${with_libintl_prefix+set}" = set; then :
12182  withval=$with_libintl_prefix;
12183    if test "X$withval" = "Xno"; then
12184      use_additional=no
12185    else
12186      if test "X$withval" = "X"; then
12187
12188  acl_save_prefix="$prefix"
12189  prefix="$acl_final_prefix"
12190  acl_save_exec_prefix="$exec_prefix"
12191  exec_prefix="$acl_final_exec_prefix"
12192
12193          eval additional_includedir=\"$includedir\"
12194          eval additional_libdir=\"$libdir\"
12195
12196  exec_prefix="$acl_save_exec_prefix"
12197  prefix="$acl_save_prefix"
12198
12199      else
12200        additional_includedir="$withval/include"
12201        additional_libdir="$withval/$acl_libdirstem"
12202      fi
12203    fi
12204
12205fi
12206
12207      LIBINTL=
12208  LTLIBINTL=
12209  INCINTL=
12210  rpathdirs=
12211  ltrpathdirs=
12212  names_already_handled=
12213  names_next_round='intl '
12214  while test -n "$names_next_round"; do
12215    names_this_round="$names_next_round"
12216    names_next_round=
12217    for name in $names_this_round; do
12218      already_handled=
12219      for n in $names_already_handled; do
12220        if test "$n" = "$name"; then
12221          already_handled=yes
12222          break
12223        fi
12224      done
12225      if test -z "$already_handled"; then
12226        names_already_handled="$names_already_handled $name"
12227                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12228        eval value=\"\$HAVE_LIB$uppername\"
12229        if test -n "$value"; then
12230          if test "$value" = yes; then
12231            eval value=\"\$LIB$uppername\"
12232            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12233            eval value=\"\$LTLIB$uppername\"
12234            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12235          else
12236                                    :
12237          fi
12238        else
12239                              found_dir=
12240          found_la=
12241          found_so=
12242          found_a=
12243          if test $use_additional = yes; then
12244            if test -n "$shlibext" \
12245               && { test -f "$additional_libdir/lib$name.$shlibext" \
12246                    || { test "$shlibext" = dll \
12247                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12248              found_dir="$additional_libdir"
12249              if test -f "$additional_libdir/lib$name.$shlibext"; then
12250                found_so="$additional_libdir/lib$name.$shlibext"
12251              else
12252                found_so="$additional_libdir/lib$name.dll.a"
12253              fi
12254              if test -f "$additional_libdir/lib$name.la"; then
12255                found_la="$additional_libdir/lib$name.la"
12256              fi
12257            else
12258              if test -f "$additional_libdir/lib$name.$libext"; then
12259                found_dir="$additional_libdir"
12260                found_a="$additional_libdir/lib$name.$libext"
12261                if test -f "$additional_libdir/lib$name.la"; then
12262                  found_la="$additional_libdir/lib$name.la"
12263                fi
12264              fi
12265            fi
12266          fi
12267          if test "X$found_dir" = "X"; then
12268            for x in $LDFLAGS $LTLIBINTL; do
12269
12270  acl_save_prefix="$prefix"
12271  prefix="$acl_final_prefix"
12272  acl_save_exec_prefix="$exec_prefix"
12273  exec_prefix="$acl_final_exec_prefix"
12274  eval x=\"$x\"
12275  exec_prefix="$acl_save_exec_prefix"
12276  prefix="$acl_save_prefix"
12277
12278              case "$x" in
12279                -L*)
12280                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12281                  if test -n "$shlibext" \
12282                     && { test -f "$dir/lib$name.$shlibext" \
12283                          || { test "$shlibext" = dll \
12284                               && test -f "$dir/lib$name.dll.a"; }; }; then
12285                    found_dir="$dir"
12286                    if test -f "$dir/lib$name.$shlibext"; then
12287                      found_so="$dir/lib$name.$shlibext"
12288                    else
12289                      found_so="$dir/lib$name.dll.a"
12290                    fi
12291                    if test -f "$dir/lib$name.la"; then
12292                      found_la="$dir/lib$name.la"
12293                    fi
12294                  else
12295                    if test -f "$dir/lib$name.$libext"; then
12296                      found_dir="$dir"
12297                      found_a="$dir/lib$name.$libext"
12298                      if test -f "$dir/lib$name.la"; then
12299                        found_la="$dir/lib$name.la"
12300                      fi
12301                    fi
12302                  fi
12303                  ;;
12304              esac
12305              if test "X$found_dir" != "X"; then
12306                break
12307              fi
12308            done
12309          fi
12310          if test "X$found_dir" != "X"; then
12311                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12312            if test "X$found_so" != "X"; then
12313                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12314                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12315              else
12316                                                                                haveit=
12317                for x in $ltrpathdirs; do
12318                  if test "X$x" = "X$found_dir"; then
12319                    haveit=yes
12320                    break
12321                  fi
12322                done
12323                if test -z "$haveit"; then
12324                  ltrpathdirs="$ltrpathdirs $found_dir"
12325                fi
12326                                if test "$hardcode_direct" = yes; then
12327                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12328                else
12329                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12330                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12331                                                            haveit=
12332                    for x in $rpathdirs; do
12333                      if test "X$x" = "X$found_dir"; then
12334                        haveit=yes
12335                        break
12336                      fi
12337                    done
12338                    if test -z "$haveit"; then
12339                      rpathdirs="$rpathdirs $found_dir"
12340                    fi
12341                  else
12342                                                                                haveit=
12343                    for x in $LDFLAGS $LIBINTL; do
12344
12345  acl_save_prefix="$prefix"
12346  prefix="$acl_final_prefix"
12347  acl_save_exec_prefix="$exec_prefix"
12348  exec_prefix="$acl_final_exec_prefix"
12349  eval x=\"$x\"
12350  exec_prefix="$acl_save_exec_prefix"
12351  prefix="$acl_save_prefix"
12352
12353                      if test "X$x" = "X-L$found_dir"; then
12354                        haveit=yes
12355                        break
12356                      fi
12357                    done
12358                    if test -z "$haveit"; then
12359                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12360                    fi
12361                    if test "$hardcode_minus_L" != no; then
12362                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12363                    else
12364                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12365                    fi
12366                  fi
12367                fi
12368              fi
12369            else
12370              if test "X$found_a" != "X"; then
12371                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12372              else
12373                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12374              fi
12375            fi
12376                        additional_includedir=
12377            case "$found_dir" in
12378              */$acl_libdirstem | */$acl_libdirstem/)
12379                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12380                additional_includedir="$basedir/include"
12381                ;;
12382            esac
12383            if test "X$additional_includedir" != "X"; then
12384                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12385                haveit=
12386                if test "X$additional_includedir" = "X/usr/local/include"; then
12387                  if test -n "$GCC"; then
12388                    case $host_os in
12389                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12390                    esac
12391                  fi
12392                fi
12393                if test -z "$haveit"; then
12394                  for x in $CPPFLAGS $INCINTL; do
12395
12396  acl_save_prefix="$prefix"
12397  prefix="$acl_final_prefix"
12398  acl_save_exec_prefix="$exec_prefix"
12399  exec_prefix="$acl_final_exec_prefix"
12400  eval x=\"$x\"
12401  exec_prefix="$acl_save_exec_prefix"
12402  prefix="$acl_save_prefix"
12403
12404                    if test "X$x" = "X-I$additional_includedir"; then
12405                      haveit=yes
12406                      break
12407                    fi
12408                  done
12409                  if test -z "$haveit"; then
12410                    if test -d "$additional_includedir"; then
12411                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12412                    fi
12413                  fi
12414                fi
12415              fi
12416            fi
12417                        if test -n "$found_la"; then
12418                                                        save_libdir="$libdir"
12419              case "$found_la" in
12420                */* | *\\*) . "$found_la" ;;
12421                *) . "./$found_la" ;;
12422              esac
12423              libdir="$save_libdir"
12424                            for dep in $dependency_libs; do
12425                case "$dep" in
12426                  -L*)
12427                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12428                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12429                      haveit=
12430                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12431                        if test -n "$GCC"; then
12432                          case $host_os in
12433                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12434                          esac
12435                        fi
12436                      fi
12437                      if test -z "$haveit"; then
12438                        haveit=
12439                        for x in $LDFLAGS $LIBINTL; do
12440
12441  acl_save_prefix="$prefix"
12442  prefix="$acl_final_prefix"
12443  acl_save_exec_prefix="$exec_prefix"
12444  exec_prefix="$acl_final_exec_prefix"
12445  eval x=\"$x\"
12446  exec_prefix="$acl_save_exec_prefix"
12447  prefix="$acl_save_prefix"
12448
12449                          if test "X$x" = "X-L$additional_libdir"; then
12450                            haveit=yes
12451                            break
12452                          fi
12453                        done
12454                        if test -z "$haveit"; then
12455                          if test -d "$additional_libdir"; then
12456                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12457                          fi
12458                        fi
12459                        haveit=
12460                        for x in $LDFLAGS $LTLIBINTL; do
12461
12462  acl_save_prefix="$prefix"
12463  prefix="$acl_final_prefix"
12464  acl_save_exec_prefix="$exec_prefix"
12465  exec_prefix="$acl_final_exec_prefix"
12466  eval x=\"$x\"
12467  exec_prefix="$acl_save_exec_prefix"
12468  prefix="$acl_save_prefix"
12469
12470                          if test "X$x" = "X-L$additional_libdir"; then
12471                            haveit=yes
12472                            break
12473                          fi
12474                        done
12475                        if test -z "$haveit"; then
12476                          if test -d "$additional_libdir"; then
12477                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12478                          fi
12479                        fi
12480                      fi
12481                    fi
12482                    ;;
12483                  -R*)
12484                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12485                    if test "$enable_rpath" != no; then
12486                                                                  haveit=
12487                      for x in $rpathdirs; do
12488                        if test "X$x" = "X$dir"; then
12489                          haveit=yes
12490                          break
12491                        fi
12492                      done
12493                      if test -z "$haveit"; then
12494                        rpathdirs="$rpathdirs $dir"
12495                      fi
12496                                                                  haveit=
12497                      for x in $ltrpathdirs; do
12498                        if test "X$x" = "X$dir"; then
12499                          haveit=yes
12500                          break
12501                        fi
12502                      done
12503                      if test -z "$haveit"; then
12504                        ltrpathdirs="$ltrpathdirs $dir"
12505                      fi
12506                    fi
12507                    ;;
12508                  -l*)
12509                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12510                    ;;
12511                  *.la)
12512                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12513                    ;;
12514                  *)
12515                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12516                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12517                    ;;
12518                esac
12519              done
12520            fi
12521          else
12522                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12523            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12524          fi
12525        fi
12526      fi
12527    done
12528  done
12529  if test "X$rpathdirs" != "X"; then
12530    if test -n "$hardcode_libdir_separator"; then
12531                        alldirs=
12532      for found_dir in $rpathdirs; do
12533        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12534      done
12535            acl_save_libdir="$libdir"
12536      libdir="$alldirs"
12537      eval flag=\"$hardcode_libdir_flag_spec\"
12538      libdir="$acl_save_libdir"
12539      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12540    else
12541            for found_dir in $rpathdirs; do
12542        acl_save_libdir="$libdir"
12543        libdir="$found_dir"
12544        eval flag=\"$hardcode_libdir_flag_spec\"
12545        libdir="$acl_save_libdir"
12546        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12547      done
12548    fi
12549  fi
12550  if test "X$ltrpathdirs" != "X"; then
12551            for found_dir in $ltrpathdirs; do
12552      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12553    done
12554  fi
12555
12556          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12557$as_echo_n "checking for GNU gettext in libintl... " >&6; }
12558if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
12559  $as_echo_n "(cached) " >&6
12560else
12561  gt_save_CPPFLAGS="$CPPFLAGS"
12562            CPPFLAGS="$CPPFLAGS $INCINTL"
12563            gt_save_LIBS="$LIBS"
12564            LIBS="$LIBS $LIBINTL"
12565                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566/* end confdefs.h.  */
12567#include <libintl.h>
12568$gt_revision_test_code
12569extern int _nl_msg_cat_cntr;
12570extern
12571#ifdef __cplusplus
12572"C"
12573#endif
12574const char *_nl_expand_alias (const char *);
12575int
12576main ()
12577{
12578bindtextdomain ("", "");
12579return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12580  ;
12581  return 0;
12582}
12583_ACEOF
12584if ac_fn_c_try_link "$LINENO"; then :
12585  eval "$gt_func_gnugettext_libintl=yes"
12586else
12587  eval "$gt_func_gnugettext_libintl=no"
12588fi
12589rm -f core conftest.err conftest.$ac_objext \
12590    conftest$ac_exeext conftest.$ac_ext
12591                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12592              LIBS="$LIBS $LIBICONV"
12593              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h.  */
12595#include <libintl.h>
12596$gt_revision_test_code
12597extern int _nl_msg_cat_cntr;
12598extern
12599#ifdef __cplusplus
12600"C"
12601#endif
12602const char *_nl_expand_alias (const char *);
12603int
12604main ()
12605{
12606bindtextdomain ("", "");
12607return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12608  ;
12609  return 0;
12610}
12611_ACEOF
12612if ac_fn_c_try_link "$LINENO"; then :
12613  LIBINTL="$LIBINTL $LIBICONV"
12614                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12615                eval "$gt_func_gnugettext_libintl=yes"
12616
12617fi
12618rm -f core conftest.err conftest.$ac_objext \
12619    conftest$ac_exeext conftest.$ac_ext
12620            fi
12621            CPPFLAGS="$gt_save_CPPFLAGS"
12622            LIBS="$gt_save_LIBS"
12623fi
12624eval ac_res=\$$gt_func_gnugettext_libintl
12625	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12626$as_echo "$ac_res" >&6; }
12627        fi
12628
12629                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12630           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12631                && test "$PACKAGE" != gettext-runtime \
12632                && test "$PACKAGE" != gettext-tools; }; then
12633          gt_use_preinstalled_gnugettext=yes
12634        else
12635                    LIBINTL=
12636          LTLIBINTL=
12637          INCINTL=
12638        fi
12639
12640
12641
12642    if test -n "$INTL_MACOSX_LIBS"; then
12643      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12646        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12647      fi
12648    fi
12649
12650    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12651       || test "$nls_cv_use_gnu_gettext" = "yes"; then
12652
12653$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12654
12655    else
12656      USE_NLS=no
12657    fi
12658  fi
12659
12660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12661$as_echo_n "checking whether to use NLS... " >&6; }
12662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12663$as_echo "$USE_NLS" >&6; }
12664  if test "$USE_NLS" = "yes"; then
12665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12666$as_echo_n "checking where the gettext function comes from... " >&6; }
12667    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12668      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12669        gt_source="external libintl"
12670      else
12671        gt_source="libc"
12672      fi
12673    else
12674      gt_source="included intl directory"
12675    fi
12676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12677$as_echo "$gt_source" >&6; }
12678  fi
12679
12680  if test "$USE_NLS" = "yes"; then
12681
12682    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12683      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12684        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12685$as_echo_n "checking how to link with libintl... " >&6; }
12686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12687$as_echo "$LIBINTL" >&6; }
12688
12689  for element in $INCINTL; do
12690    haveit=
12691    for x in $CPPFLAGS; do
12692
12693  acl_save_prefix="$prefix"
12694  prefix="$acl_final_prefix"
12695  acl_save_exec_prefix="$exec_prefix"
12696  exec_prefix="$acl_final_exec_prefix"
12697  eval x=\"$x\"
12698  exec_prefix="$acl_save_exec_prefix"
12699  prefix="$acl_save_prefix"
12700
12701      if test "X$x" = "X$element"; then
12702        haveit=yes
12703        break
12704      fi
12705    done
12706    if test -z "$haveit"; then
12707      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12708    fi
12709  done
12710
12711      fi
12712
12713
12714$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12715
12716
12717$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12718
12719    fi
12720
12721        POSUB=po
12722  fi
12723
12724
12725
12726    INTLLIBS="$LIBINTL"
12727
12728
12729
12730
12731
12732
12733
12734 if test x${USE_NLS} = xyes; then
12735  USE_NLS_TRUE=
12736  USE_NLS_FALSE='#'
12737else
12738  USE_NLS_TRUE='#'
12739  USE_NLS_FALSE=
12740fi
12741
12742
12743# create custom command-line --enable option
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5
12745$as_echo_n "checking whether to build CUPS PPD files... " >&6; }
12746# Check whether --enable-nls-macosx was given.
12747if test "${enable_nls_macosx+set}" = set; then :
12748  enableval=$enable_nls_macosx; case "${enableval}" in
12749
12750                yes) USE_NLS_OSX="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
12751$as_echo "${USE_NLS_OSX}" >&6; } ;;
12752                no) USE_NLS_OSX="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
12753$as_echo "${USE_NLS_OSX}" >&6; } ;;
12754                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12755$as_echo "unknown" >&6; }
12756                   as_fn_error "bad value ${enableval} for --enable-nls-macosx" "$LINENO" 5 ;;
12757
12758	    esac
12759else
12760  if test -z "${USE_NLS_OSX}" ; then
12761               USE_NLS_OSX="(automatic)"
12762             fi
12763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_NLS_OSX}" >&5
12764$as_echo "${USE_NLS_OSX}" >&6; } ;
12765fi
12766
12767if test -z "${USE_NLS_OSX}" ; then
12768  USE_NLS_OSX="(automatic)"
12769fi
12770
12771
12772USE_LEVEL3_PS=no
12773BUILD_CUPS_PPDS="${BUILD_CUPS}"
12774BUILD_TRANSLATED_CUPS_PPDS=no
12775BUILD_CUPS_1_2="no"
12776if test -n "${CUPS_CONFIG}" -a "${BUILD_CUPS}" = "yes" ; then
12777  cups_version=`${CUPS_CONFIG} --version | sed -e '1,$s/svn$/.0/'`
12778  cups_major=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`
12779  cups_minor=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`
12780  cups_point=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\3/'`
12781  if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 -o "$cups_point" -gt 14 ; then
12782    USE_LEVEL3_PS=yes
12783  fi
12784  if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 ; then
12785    BUILD_CUPS_PPDS="no"
12786    BUILD_CUPS_1_2="yes"
12787  fi
12788fi
12789
12790# create custom command-line --enable option
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS PPD files" >&5
12792$as_echo_n "checking whether to build CUPS PPD files... " >&6; }
12793# Check whether --enable-cups-ppds was given.
12794if test "${enable_cups_ppds+set}" = set; then :
12795  enableval=$enable_cups_ppds; case "${enableval}" in
12796
12797                yes) BUILD_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
12798$as_echo "${BUILD_CUPS_PPDS}" >&6; } ;;
12799                no) BUILD_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
12800$as_echo "${BUILD_CUPS_PPDS}" >&6; } ;;
12801                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12802$as_echo "unknown" >&6; }
12803                   as_fn_error "bad value ${enableval} for --enable-cups-ppds" "$LINENO" 5 ;;
12804
12805	    esac
12806else
12807  if test -z "${BUILD_CUPS_PPDS}" ; then
12808               BUILD_CUPS_PPDS="(automatic)"
12809             fi
12810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_PPDS}" >&5
12811$as_echo "${BUILD_CUPS_PPDS}" >&6; } ;
12812fi
12813
12814if test -z "${BUILD_CUPS_PPDS}" ; then
12815  BUILD_CUPS_PPDS="(automatic)"
12816fi
12817
12818
12819# create custom command-line --enable option
12820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CUPS 1.2 enhancements" >&5
12821$as_echo_n "checking whether to build CUPS 1.2 enhancements... " >&6; }
12822# Check whether --enable-cups-1_2-enhancements was given.
12823if test "${enable_cups_1_2_enhancements+set}" = set; then :
12824  enableval=$enable_cups_1_2_enhancements; case "${enableval}" in
12825
12826                yes) BUILD_CUPS_1_2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
12827$as_echo "${BUILD_CUPS_1_2}" >&6; } ;;
12828                no) BUILD_CUPS_1_2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
12829$as_echo "${BUILD_CUPS_1_2}" >&6; } ;;
12830                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12831$as_echo "unknown" >&6; }
12832                   as_fn_error "bad value ${enableval} for --enable-cups-1_2-enhancements" "$LINENO" 5 ;;
12833
12834	    esac
12835else
12836  if test -z "${BUILD_CUPS_1_2}" ; then
12837               BUILD_CUPS_1_2="(automatic)"
12838             fi
12839             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_CUPS_1_2}" >&5
12840$as_echo "${BUILD_CUPS_1_2}" >&6; } ;
12841fi
12842
12843if test -z "${BUILD_CUPS_1_2}" ; then
12844  BUILD_CUPS_1_2="(automatic)"
12845fi
12846
12847
12848if test "$USE_NLS" != no -a "$BUILD_CUPS_PPDS" = yes ; then
12849   BUILD_TRANSLATED_CUPS_PPDS="yes"
12850fi
12851
12852# create custom command-line --enable option
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build translated CUPS PPD files" >&5
12854$as_echo_n "checking whether to build translated CUPS PPD files... " >&6; }
12855# Check whether --enable-translated-cups-ppds was given.
12856if test "${enable_translated_cups_ppds+set}" = set; then :
12857  enableval=$enable_translated_cups_ppds; case "${enableval}" in
12858
12859                yes) BUILD_TRANSLATED_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
12860$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;;
12861                no) BUILD_TRANSLATED_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
12862$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;;
12863                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12864$as_echo "unknown" >&6; }
12865                   as_fn_error "bad value ${enableval} for --enable-translated-cups-ppds" "$LINENO" 5 ;;
12866
12867	    esac
12868else
12869  if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then
12870               BUILD_TRANSLATED_CUPS_PPDS="(automatic)"
12871             fi
12872             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TRANSLATED_CUPS_PPDS}" >&5
12873$as_echo "${BUILD_TRANSLATED_CUPS_PPDS}" >&6; } ;
12874fi
12875
12876if test -z "${BUILD_TRANSLATED_CUPS_PPDS}" ; then
12877  BUILD_TRANSLATED_CUPS_PPDS="(automatic)"
12878fi
12879
12880
12881if test "$BUILD_CUPS_1_2" = yes -a "$BUILD_TRANSLATED_CUPS_PPDS" = yes ; then
12882   BUILD_GLOBALIZED_CUPS_PPDS=yes
12883else
12884   BUILD_GLOBALIZED_CUPS_PPDS=no
12885fi
12886
12887# create custom command-line --enable option
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build globalized CUPS PPD files" >&5
12889$as_echo_n "checking whether to build globalized CUPS PPD files... " >&6; }
12890# Check whether --enable-globalized-cups-ppds was given.
12891if test "${enable_globalized_cups_ppds+set}" = set; then :
12892  enableval=$enable_globalized_cups_ppds; case "${enableval}" in
12893
12894                yes) BUILD_GLOBALIZED_CUPS_PPDS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
12895$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;;
12896                no) BUILD_GLOBALIZED_CUPS_PPDS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
12897$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;;
12898                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12899$as_echo "unknown" >&6; }
12900                   as_fn_error "bad value ${enableval} for --enable-globalized-cups-ppds" "$LINENO" 5 ;;
12901
12902	    esac
12903else
12904  if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then
12905               BUILD_GLOBALIZED_CUPS_PPDS="(automatic)"
12906             fi
12907             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GLOBALIZED_CUPS_PPDS}" >&5
12908$as_echo "${BUILD_GLOBALIZED_CUPS_PPDS}" >&6; } ;
12909fi
12910
12911if test -z "${BUILD_GLOBALIZED_CUPS_PPDS}" ; then
12912  BUILD_GLOBALIZED_CUPS_PPDS="(automatic)"
12913fi
12914
12915
12916# create custom command-line --enable option
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build simplified CUPS PPD files" >&5
12918$as_echo_n "checking whether to build simplified CUPS PPD files... " >&6; }
12919# Check whether --enable-simplified-cups-ppds was given.
12920if test "${enable_simplified_cups_ppds+set}" = set; then :
12921  enableval=$enable_simplified_cups_ppds; case "${enableval}" in
12922
12923    yes) WHICH_PPDS="-a"; BUILD_SIMPLIFIED_CUPS_PPDS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12924$as_echo "yes" >&6; } ;;
12925    no) WHICH_PPDS=""; BUILD_SIMPLIFIED_CUPS_PPDS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926$as_echo "no" >&6; } ;;
12927    only) WHICH_PPDS="-s"; BUILD_SIMPLIFIED_CUPS_PPDS=only; { $as_echo "$as_me:${as_lineno-$LINENO}: result: only" >&5
12928$as_echo "only" >&6; } ;;
12929    *) as_fn_error "${enableval}: not a valid option ('yes', 'no', or 'only')" "$LINENO" 5 ;;
12930
12931	    esac
12932else
12933  if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then
12934               BUILD_SIMPLIFIED_CUPS_PPDS="no"
12935             fi
12936             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_SIMPLIFIED_CUPS_PPDS}" >&5
12937$as_echo "${BUILD_SIMPLIFIED_CUPS_PPDS}" >&6; } ;
12938fi
12939
12940if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS}" ; then
12941  BUILD_SIMPLIFIED_CUPS_PPDS="no"
12942fi
12943
12944
12945# create custom command-line --enable option
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place CUPS PPD files at top level" >&5
12947$as_echo_n "checking whether to place CUPS PPD files at top level... " >&6; }
12948# Check whether --enable-cups-ppds-at-top-level was given.
12949if test "${enable_cups_ppds_at_top_level+set}" = set; then :
12950  enableval=$enable_cups_ppds_at_top_level; case "${enableval}" in
12951
12952                yes) CUPS_PPDS_AT_TOP_LEVEL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
12953$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;;
12954                no) CUPS_PPDS_AT_TOP_LEVEL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
12955$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;;
12956                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12957$as_echo "unknown" >&6; }
12958                   as_fn_error "bad value ${enableval} for --enable-cups-ppds-at-top-level" "$LINENO" 5 ;;
12959
12960	    esac
12961else
12962  if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then
12963               CUPS_PPDS_AT_TOP_LEVEL="no"
12964             fi
12965             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CUPS_PPDS_AT_TOP_LEVEL}" >&5
12966$as_echo "${CUPS_PPDS_AT_TOP_LEVEL}" >&6; } ;
12967fi
12968
12969if test -z "${CUPS_PPDS_AT_TOP_LEVEL}" ; then
12970  CUPS_PPDS_AT_TOP_LEVEL="no"
12971fi
12972
12973
12974# create custom command-line --enable option
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate PostScript level 3 PPD files" >&5
12976$as_echo_n "checking whether to generate PostScript level 3 PPD files... " >&6; }
12977# Check whether --enable-cups-level3-ppds was given.
12978if test "${enable_cups_level3_ppds+set}" = set; then :
12979  enableval=$enable_cups_level3_ppds; case "${enableval}" in
12980
12981                yes) USE_LEVEL3_PS="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
12982$as_echo "${USE_LEVEL3_PS}" >&6; } ;;
12983                no) USE_LEVEL3_PS="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
12984$as_echo "${USE_LEVEL3_PS}" >&6; } ;;
12985                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12986$as_echo "unknown" >&6; }
12987                   as_fn_error "bad value ${enableval} for --enable-cups-level3-ppds" "$LINENO" 5 ;;
12988
12989	    esac
12990else
12991  if test -z "${USE_LEVEL3_PS}" ; then
12992               USE_LEVEL3_PS="(automatic)"
12993             fi
12994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_LEVEL3_PS}" >&5
12995$as_echo "${USE_LEVEL3_PS}" >&6; } ;
12996fi
12997
12998if test -z "${USE_LEVEL3_PS}" ; then
12999  USE_LEVEL3_PS="(automatic)"
13000fi
13001
13002
13003STATIC_GENPPD="$enable_static"
13004# create custom command-line --enable option
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a statically-linked cups-genppd and rastertogutenprint.  WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!" >&5
13006$as_echo_n "checking whether to build a statically-linked cups-genppd and rastertogutenprint.  WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!... " >&6; }
13007# Check whether --enable-static-genppd was given.
13008if test "${enable_static_genppd+set}" = set; then :
13009  enableval=$enable_static_genppd; case "${enableval}" in
13010
13011                yes) STATIC_GENPPD="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
13012$as_echo "${STATIC_GENPPD}" >&6; } ;;
13013                no) STATIC_GENPPD="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
13014$as_echo "${STATIC_GENPPD}" >&6; } ;;
13015                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13016$as_echo "unknown" >&6; }
13017                   as_fn_error "bad value ${enableval} for --enable-static-genppd" "$LINENO" 5 ;;
13018
13019	    esac
13020else
13021  if test -z "${STATIC_GENPPD}" ; then
13022               STATIC_GENPPD="(automatic)"
13023             fi
13024             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STATIC_GENPPD}" >&5
13025$as_echo "${STATIC_GENPPD}" >&6; } ;
13026fi
13027
13028if test -z "${STATIC_GENPPD}" ; then
13029  STATIC_GENPPD="(automatic)"
13030fi
13031
13032
13033# Extract the first word of "foomatic-configure", so it can be a program name with args.
13034set dummy foomatic-configure; ac_word=$2
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
13037if test "${ac_cv_path_FOOMATIC_CONFIGURE+set}" = set; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  case $FOOMATIC_CONFIGURE in
13041  [\\/]* | ?:[\\/]*)
13042  ac_cv_path_FOOMATIC_CONFIGURE="$FOOMATIC_CONFIGURE" # Let the user override the test with a path.
13043  ;;
13044  *)
13045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046for as_dir in $PATH
13047do
13048  IFS=$as_save_IFS
13049  test -z "$as_dir" && as_dir=.
13050    for ac_exec_ext in '' $ac_executable_extensions; do
13051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13052    ac_cv_path_FOOMATIC_CONFIGURE="$as_dir/$ac_word$ac_exec_ext"
13053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13054    break 2
13055  fi
13056done
13057  done
13058IFS=$as_save_IFS
13059
13060  ;;
13061esac
13062fi
13063FOOMATIC_CONFIGURE=$ac_cv_path_FOOMATIC_CONFIGURE
13064if test -n "$FOOMATIC_CONFIGURE"; then
13065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOOMATIC_CONFIGURE" >&5
13066$as_echo "$FOOMATIC_CONFIGURE" >&6; }
13067else
13068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
13070fi
13071
13072
13073if test -z "${FOOMATIC_CONFIGURE}" ; then
13074  BUILD_FOOMATIC="no"
13075else
13076  BUILD_FOOMATIC="yes"
13077fi
13078# create custom command-line --with option
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build foomatic data files" >&5
13080$as_echo_n "checking whether to build foomatic data files... " >&6; }
13081
13082# Check whether --with-foomatic was given.
13083if test "${with_foomatic+set}" = set; then :
13084  withval=$with_foomatic; case "${withval}" in
13085
13086                yes) BUILD_FOOMATIC="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC}" >&5
13087$as_echo "${BUILD_FOOMATIC}" >&6; } ;;
13088                no) BUILD_FOOMATIC="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC}" >&5
13089$as_echo "${BUILD_FOOMATIC}" >&6; } ;;
13090                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13091$as_echo "unknown" >&6; }
13092                   as_fn_error "bad value ${withval} for --with-foomatic" "$LINENO" 5 ;;
13093
13094	    esac
13095else
13096  if test -z "${BUILD_FOOMATIC}" ; then
13097               BUILD_FOOMATIC="(automatic)"
13098             fi
13099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC}" >&5
13100$as_echo "${BUILD_FOOMATIC}" >&6; } ;
13101fi
13102
13103if test -z "${BUILD_FOOMATIC}" ; then
13104  BUILD_FOOMATIC="(automatic)"
13105fi
13106
13107
13108
13109# Extract the first word of "foomatic-ppdfile", so it can be a program name with args.
13110set dummy foomatic-ppdfile; ac_word=$2
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112$as_echo_n "checking for $ac_word... " >&6; }
13113if test "${ac_cv_path_FOOMATIC_PPDFILE+set}" = set; then :
13114  $as_echo_n "(cached) " >&6
13115else
13116  case $FOOMATIC_PPDFILE in
13117  [\\/]* | ?:[\\/]*)
13118  ac_cv_path_FOOMATIC_PPDFILE="$FOOMATIC_PPDFILE" # Let the user override the test with a path.
13119  ;;
13120  *)
13121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122for as_dir in $PATH
13123do
13124  IFS=$as_save_IFS
13125  test -z "$as_dir" && as_dir=.
13126    for ac_exec_ext in '' $ac_executable_extensions; do
13127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13128    ac_cv_path_FOOMATIC_PPDFILE="$as_dir/$ac_word$ac_exec_ext"
13129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130    break 2
13131  fi
13132done
13133  done
13134IFS=$as_save_IFS
13135
13136  ;;
13137esac
13138fi
13139FOOMATIC_PPDFILE=$ac_cv_path_FOOMATIC_PPDFILE
13140if test -n "$FOOMATIC_PPDFILE"; then
13141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOOMATIC_PPDFILE" >&5
13142$as_echo "$FOOMATIC_PPDFILE" >&6; }
13143else
13144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
13146fi
13147
13148
13149if test -z "${FOOMATIC_PPDFILE}" ; then
13150  BUILD_FOOMATIC_3="no"
13151else
13152  BUILD_FOOMATIC_3="yes"
13153fi
13154# create custom command-line --with option
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to make use of foomatic 3 extra features" >&5
13156$as_echo_n "checking whether to make use of foomatic 3 extra features... " >&6; }
13157
13158# Check whether --with-foomatic3 was given.
13159if test "${with_foomatic3+set}" = set; then :
13160  withval=$with_foomatic3; case "${withval}" in
13161
13162                yes) BUILD_FOOMATIC_3="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC_3}" >&5
13163$as_echo "${BUILD_FOOMATIC_3}" >&6; } ;;
13164                no) BUILD_FOOMATIC_3="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC_3}" >&5
13165$as_echo "${BUILD_FOOMATIC_3}" >&6; } ;;
13166                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13167$as_echo "unknown" >&6; }
13168                   as_fn_error "bad value ${withval} for --with-foomatic3" "$LINENO" 5 ;;
13169
13170	    esac
13171else
13172  if test -z "${BUILD_FOOMATIC_3}" ; then
13173               BUILD_FOOMATIC_3="(automatic)"
13174             fi
13175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_FOOMATIC_3}" >&5
13176$as_echo "${BUILD_FOOMATIC_3}" >&6; } ;
13177fi
13178
13179if test -z "${BUILD_FOOMATIC_3}" ; then
13180  BUILD_FOOMATIC_3="(automatic)"
13181fi
13182
13183
13184# Extract the first word of "ijs-config", so it can be a program name with args.
13185set dummy ijs-config; ac_word=$2
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_path_IJS_CONFIG+set}" = set; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  case $IJS_CONFIG in
13192  [\\/]* | ?:[\\/]*)
13193  ac_cv_path_IJS_CONFIG="$IJS_CONFIG" # Let the user override the test with a path.
13194  ;;
13195  *)
13196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199  IFS=$as_save_IFS
13200  test -z "$as_dir" && as_dir=.
13201    for ac_exec_ext in '' $ac_executable_extensions; do
13202  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203    ac_cv_path_IJS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205    break 2
13206  fi
13207done
13208  done
13209IFS=$as_save_IFS
13210
13211  ;;
13212esac
13213fi
13214IJS_CONFIG=$ac_cv_path_IJS_CONFIG
13215if test -n "$IJS_CONFIG"; then
13216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IJS_CONFIG" >&5
13217$as_echo "$IJS_CONFIG" >&6; }
13218else
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221fi
13222
13223
13224
13225if test -z "${IJS_CONFIG}"  ; then
13226  BUILD_GHOSTSCRIPT="no"
13227else
13228  BUILD_GHOSTSCRIPT="yes"
13229fi
13230# create custom command-line --with option
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Ghostscript driver" >&5
13232$as_echo_n "checking whether to build Ghostscript driver... " >&6; }
13233
13234# Check whether --with-ghostscript was given.
13235if test "${with_ghostscript+set}" = set; then :
13236  withval=$with_ghostscript; case "${withval}" in
13237
13238                yes) BUILD_GHOSTSCRIPT="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GHOSTSCRIPT}" >&5
13239$as_echo "${BUILD_GHOSTSCRIPT}" >&6; } ;;
13240                no) BUILD_GHOSTSCRIPT="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GHOSTSCRIPT}" >&5
13241$as_echo "${BUILD_GHOSTSCRIPT}" >&6; } ;;
13242                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13243$as_echo "unknown" >&6; }
13244                   as_fn_error "bad value ${withval} for --with-ghostscript" "$LINENO" 5 ;;
13245
13246	    esac
13247else
13248  if test -z "${BUILD_GHOSTSCRIPT}" ; then
13249               BUILD_GHOSTSCRIPT="(automatic)"
13250             fi
13251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GHOSTSCRIPT}" >&5
13252$as_echo "${BUILD_GHOSTSCRIPT}" >&6; } ;
13253fi
13254
13255if test -z "${BUILD_GHOSTSCRIPT}" ; then
13256  BUILD_GHOSTSCRIPT="(automatic)"
13257fi
13258
13259
13260# create custom command-line --with option
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable loadable modules" >&5
13262$as_echo_n "checking whether to enable loadable modules... " >&6; }
13263
13264# Check whether --with-modules was given.
13265if test "${with_modules+set}" = set; then :
13266  withval=$with_modules; case "${withval}" in
13267
13268    yes) WITH_MODULES="yes";  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13269$as_echo "yes" >&6; } ;;
13270    no) WITH_MODULES="no";  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; } ;;
13272    ltdl) WITH_MODULES="ltdl";  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
13273$as_echo "ltdl" >&6; } ;;
13274    dlopen) WITH_MODULES="dlopen";  { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
13275$as_echo "dlopen" >&6; } ;;
13276    static) WITH_MODULES="static";  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
13277$as_echo "static" >&6; } ;;
13278    *) as_fn_error "${withval}: not a valid module loader" "$LINENO" 5 ;;
13279
13280	    esac
13281else
13282  if test -z "${WITH_MODULES}" ; then
13283               WITH_MODULES="(automatic)"
13284             fi
13285             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WITH_MODULES}" >&5
13286$as_echo "${WITH_MODULES}" >&6; } ;
13287    # if static libraries are enabled, modules must be static
13288    if test x$enable_static = xyes; then
13289      WITH_MODULES="static"
13290    else
13291      WITH_MODULES="yes"
13292    fi
13293fi
13294
13295if test -z "${WITH_MODULES}" ; then
13296  WITH_MODULES="(automatic)"
13297fi
13298
13299
13300# Abort if a broken configuration was required
13301if test x$enable_static = xyes; then
13302  if test $WITH_MODULES = no; then
13303    :
13304  elif test $WITH_MODULES = static; then
13305    :
13306  else
13307    as_fn_error "--disable-static must be used with --with-modules" "$LINENO" 5
13308  fi
13309fi
13310
13311# create custom command-line --enable option
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on debugging in build" >&5
13313$as_echo_n "checking whether to turn on debugging in build... " >&6; }
13314# Check whether --enable-debug was given.
13315if test "${enable_debug+set}" = set; then :
13316  enableval=$enable_debug; case "${enableval}" in
13317
13318                yes) ENABLE_DEBUG="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
13319$as_echo "${ENABLE_DEBUG}" >&6; } ;;
13320                no) ENABLE_DEBUG="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
13321$as_echo "${ENABLE_DEBUG}" >&6; } ;;
13322                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13323$as_echo "unknown" >&6; }
13324                   as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
13325
13326	    esac
13327else
13328  if test -z "${ENABLE_DEBUG}" ; then
13329               ENABLE_DEBUG="no"
13330             fi
13331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_DEBUG}" >&5
13332$as_echo "${ENABLE_DEBUG}" >&6; } ;
13333fi
13334
13335if test -z "${ENABLE_DEBUG}" ; then
13336  ENABLE_DEBUG="no"
13337fi
13338
13339
13340# create custom command-line --enable option
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on profiling in build" >&5
13342$as_echo_n "checking whether to turn on profiling in build... " >&6; }
13343# Check whether --enable-profile was given.
13344if test "${enable_profile+set}" = set; then :
13345  enableval=$enable_profile; case "${enableval}" in
13346
13347                yes) ENABLE_PROFILE="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
13348$as_echo "${ENABLE_PROFILE}" >&6; } ;;
13349                no) ENABLE_PROFILE="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
13350$as_echo "${ENABLE_PROFILE}" >&6; } ;;
13351                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13352$as_echo "unknown" >&6; }
13353                   as_fn_error "bad value ${enableval} for --enable-profile" "$LINENO" 5 ;;
13354
13355	    esac
13356else
13357  if test -z "${ENABLE_PROFILE}" ; then
13358               ENABLE_PROFILE="no"
13359             fi
13360             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENABLE_PROFILE}" >&5
13361$as_echo "${ENABLE_PROFILE}" >&6; } ;
13362fi
13363
13364if test -z "${ENABLE_PROFILE}" ; then
13365  ENABLE_PROFILE="no"
13366fi
13367
13368
13369# create custom command-line --with option
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use readline" >&5
13371$as_echo_n "checking whether to use readline... " >&6; }
13372
13373# Check whether --with-readline was given.
13374if test "${with_readline+set}" = set; then :
13375  withval=$with_readline; case "${withval}" in
13376
13377    yes) USE_READLINE="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378$as_echo "yes" >&6; } ;;
13379    no) USE_READLINE="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380$as_echo "no" >&6; } ;;
13381    only) USE_READLINE="yes"
13382          EXTRA_LIBREADLINE_DEPS=" "
13383          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using only readline)" >&5
13384$as_echo "yes (using only readline)" >&6; } ;;
13385    *) USE_READLINE="yes"
13386       EXTRA_LIBREADLINE_DEPS="${withval}"
13387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using extra libraries ${withval})" >&5
13388$as_echo "yes (using extra libraries ${withval})" >&6; } ;;
13389
13390	    esac
13391else
13392  if test -z "${USE_READLINE}" ; then
13393               USE_READLINE="yes"
13394             fi
13395             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USE_READLINE}" >&5
13396$as_echo "${USE_READLINE}" >&6; } ;
13397fi
13398
13399if test -z "${USE_READLINE}" ; then
13400  USE_READLINE="yes"
13401fi
13402
13403
13404for ac_prog in gimptool-2.0 gimptool
13405do
13406  # Extract the first word of "$ac_prog", so it can be a program name with args.
13407set dummy $ac_prog; ac_word=$2
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409$as_echo_n "checking for $ac_word... " >&6; }
13410if test "${ac_cv_path_GIMPTOOL2_CHECK+set}" = set; then :
13411  $as_echo_n "(cached) " >&6
13412else
13413  case $GIMPTOOL2_CHECK in
13414  [\\/]* | ?:[\\/]*)
13415  ac_cv_path_GIMPTOOL2_CHECK="$GIMPTOOL2_CHECK" # Let the user override the test with a path.
13416  ;;
13417  *)
13418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419for as_dir in $PATH
13420do
13421  IFS=$as_save_IFS
13422  test -z "$as_dir" && as_dir=.
13423    for ac_exec_ext in '' $ac_executable_extensions; do
13424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13425    ac_cv_path_GIMPTOOL2_CHECK="$as_dir/$ac_word$ac_exec_ext"
13426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427    break 2
13428  fi
13429done
13430  done
13431IFS=$as_save_IFS
13432
13433  ;;
13434esac
13435fi
13436GIMPTOOL2_CHECK=$ac_cv_path_GIMPTOOL2_CHECK
13437if test -n "$GIMPTOOL2_CHECK"; then
13438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIMPTOOL2_CHECK" >&5
13439$as_echo "$GIMPTOOL2_CHECK" >&6; }
13440else
13441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
13443fi
13444
13445
13446  test -n "$GIMPTOOL2_CHECK" && break
13447done
13448
13449if test -z "${GIMPTOOL2_CHECK}" ; then
13450  BUILD_GIMP2="no"
13451else
13452  # Check we have version 2.0
13453  gimptool_check_version=`${GIMPTOOL2_CHECK} --version`
13454  gimptool_check_major=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`
13455  gimptool_check_minor=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`
13456  if test "$gimptool_check_major" -eq 2; then
13457    BUILD_GIMP2="yes"
13458    if test "$gimptool_check_minor" -ge 4 ; then
13459      BUILD_GIMP2_AS_GUTENPRINT="yes"
13460    else
13461      BUILD_GIMP2_AS_GUTENPRINT="no"
13462    fi
13463  else
13464    BUILD_GIMP2="no"
13465    BUILD_GIMP2_AS_GUTENPRINT="no"
13466  fi
13467fi
13468
13469
13470
13471if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13472	if test -n "$ac_tool_prefix"; then
13473  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13474set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476$as_echo_n "checking for $ac_word... " >&6; }
13477if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13478  $as_echo_n "(cached) " >&6
13479else
13480  case $PKG_CONFIG in
13481  [\\/]* | ?:[\\/]*)
13482  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13483  ;;
13484  *)
13485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488  IFS=$as_save_IFS
13489  test -z "$as_dir" && as_dir=.
13490    for ac_exec_ext in '' $ac_executable_extensions; do
13491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494    break 2
13495  fi
13496done
13497  done
13498IFS=$as_save_IFS
13499
13500  ;;
13501esac
13502fi
13503PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13504if test -n "$PKG_CONFIG"; then
13505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13506$as_echo "$PKG_CONFIG" >&6; }
13507else
13508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509$as_echo "no" >&6; }
13510fi
13511
13512
13513fi
13514if test -z "$ac_cv_path_PKG_CONFIG"; then
13515  ac_pt_PKG_CONFIG=$PKG_CONFIG
13516  # Extract the first word of "pkg-config", so it can be a program name with args.
13517set dummy pkg-config; ac_word=$2
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519$as_echo_n "checking for $ac_word... " >&6; }
13520if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13521  $as_echo_n "(cached) " >&6
13522else
13523  case $ac_pt_PKG_CONFIG in
13524  [\\/]* | ?:[\\/]*)
13525  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13526  ;;
13527  *)
13528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531  IFS=$as_save_IFS
13532  test -z "$as_dir" && as_dir=.
13533    for ac_exec_ext in '' $ac_executable_extensions; do
13534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537    break 2
13538  fi
13539done
13540  done
13541IFS=$as_save_IFS
13542
13543  ;;
13544esac
13545fi
13546ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13547if test -n "$ac_pt_PKG_CONFIG"; then
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13549$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13550else
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
13553fi
13554
13555  if test "x$ac_pt_PKG_CONFIG" = x; then
13556    PKG_CONFIG=""
13557  else
13558    case $cross_compiling:$ac_tool_warned in
13559yes:)
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13562ac_tool_warned=yes ;;
13563esac
13564    PKG_CONFIG=$ac_pt_PKG_CONFIG
13565  fi
13566else
13567  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13568fi
13569
13570fi
13571if test -n "$PKG_CONFIG"; then
13572	_pkg_min_version=0.9.0
13573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13574$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13575	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577$as_echo "yes" >&6; }
13578	else
13579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581		PKG_CONFIG=""
13582	fi
13583
13584fi
13585
13586pkg_failed=no
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
13588$as_echo_n "checking for GTK2... " >&6; }
13589
13590if test -n "$GTK2_CFLAGS"; then
13591    pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
13592 elif test -n "$PKG_CONFIG"; then
13593    if test -n "$PKG_CONFIG" && \
13594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
13595  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13596  ac_status=$?
13597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598  test $ac_status = 0; }; then
13599  pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
13600else
13601  pkg_failed=yes
13602fi
13603 else
13604    pkg_failed=untried
13605fi
13606if test -n "$GTK2_LIBS"; then
13607    pkg_cv_GTK2_LIBS="$GTK2_LIBS"
13608 elif test -n "$PKG_CONFIG"; then
13609    if test -n "$PKG_CONFIG" && \
13610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
13611  ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13612  ac_status=$?
13613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614  test $ac_status = 0; }; then
13615  pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
13616else
13617  pkg_failed=yes
13618fi
13619 else
13620    pkg_failed=untried
13621fi
13622
13623
13624
13625if test $pkg_failed = yes; then
13626
13627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13628        _pkg_short_errors_supported=yes
13629else
13630        _pkg_short_errors_supported=no
13631fi
13632        if test $_pkg_short_errors_supported = yes; then
13633	        GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
13634        else
13635	        GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
13636        fi
13637	# Put the nasty error message in config.log where it belongs
13638	echo "$GTK2_PKG_ERRORS" >&5
13639
13640	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
13642                HAVE_GTK2=no
13643	           BUILD_LIBGUTENPRINTUI2=no
13644elif test $pkg_failed = untried; then
13645	HAVE_GTK2=no
13646	           BUILD_LIBGUTENPRINTUI2=no
13647else
13648	GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
13649	GTK2_LIBS=$pkg_cv_GTK2_LIBS
13650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13651$as_echo "yes" >&6; }
13652	HAVE_GTK2=yes
13653                   BUILD_LIBGUTENPRINTUI2=yes
13654                   GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} ${GTK2_LIBS}"
13655fi
13656# Require both gimptool and pkg-config to succeed
13657if test x$BUILD_GIMP2 = xyes; then
13658
13659pkg_failed=no
13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIMP2" >&5
13661$as_echo_n "checking for GIMP2... " >&6; }
13662
13663if test -n "$GIMP2_CFLAGS"; then
13664    pkg_cv_GIMP2_CFLAGS="$GIMP2_CFLAGS"
13665 elif test -n "$PKG_CONFIG"; then
13666    if test -n "$PKG_CONFIG" && \
13667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5
13668  ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5
13669  ac_status=$?
13670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671  test $ac_status = 0; }; then
13672  pkg_cv_GIMP2_CFLAGS=`$PKG_CONFIG --cflags "gimpui-2.0" 2>/dev/null`
13673else
13674  pkg_failed=yes
13675fi
13676 else
13677    pkg_failed=untried
13678fi
13679if test -n "$GIMP2_LIBS"; then
13680    pkg_cv_GIMP2_LIBS="$GIMP2_LIBS"
13681 elif test -n "$PKG_CONFIG"; then
13682    if test -n "$PKG_CONFIG" && \
13683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gimpui-2.0\""; } >&5
13684  ($PKG_CONFIG --exists --print-errors "gimpui-2.0") 2>&5
13685  ac_status=$?
13686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687  test $ac_status = 0; }; then
13688  pkg_cv_GIMP2_LIBS=`$PKG_CONFIG --libs "gimpui-2.0" 2>/dev/null`
13689else
13690  pkg_failed=yes
13691fi
13692 else
13693    pkg_failed=untried
13694fi
13695
13696
13697
13698if test $pkg_failed = yes; then
13699
13700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13701        _pkg_short_errors_supported=yes
13702else
13703        _pkg_short_errors_supported=no
13704fi
13705        if test $_pkg_short_errors_supported = yes; then
13706	        GIMP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gimpui-2.0" 2>&1`
13707        else
13708	        GIMP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gimpui-2.0" 2>&1`
13709        fi
13710	# Put the nasty error message in config.log where it belongs
13711	echo "$GIMP2_PKG_ERRORS" >&5
13712
13713	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714$as_echo "no" >&6; }
13715                BUILD_GIMP2=no
13716elif test $pkg_failed = untried; then
13717	BUILD_GIMP2=no
13718else
13719	GIMP2_CFLAGS=$pkg_cv_GIMP2_CFLAGS
13720	GIMP2_LIBS=$pkg_cv_GIMP2_LIBS
13721        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722$as_echo "yes" >&6; }
13723	BUILD_GIMP2=yes
13724fi
13725fi
13726
13727# create custom command-line --with option
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GIMP 2.x Print plugin" >&5
13729$as_echo_n "checking whether to build GIMP 2.x Print plugin... " >&6; }
13730
13731# Check whether --with-gimp2 was given.
13732if test "${with_gimp2+set}" = set; then :
13733  withval=$with_gimp2; case "${withval}" in
13734
13735                yes) BUILD_GIMP2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
13736$as_echo "${BUILD_GIMP2}" >&6; } ;;
13737                no) BUILD_GIMP2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
13738$as_echo "${BUILD_GIMP2}" >&6; } ;;
13739                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13740$as_echo "unknown" >&6; }
13741                   as_fn_error "bad value ${withval} for --with-gimp2" "$LINENO" 5 ;;
13742
13743	    esac
13744else
13745  if test -z "${BUILD_GIMP2}" ; then
13746               BUILD_GIMP2="(automatic)"
13747             fi
13748             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2}" >&5
13749$as_echo "${BUILD_GIMP2}" >&6; } ;
13750fi
13751
13752if test -z "${BUILD_GIMP2}" ; then
13753  BUILD_GIMP2="(automatic)"
13754fi
13755
13756
13757# create custom command-line --with option
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)" >&5
13759$as_echo_n "checking whether to name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)... " >&6; }
13760
13761# Check whether --with-gimp2-as-gutenprint was given.
13762if test "${with_gimp2_as_gutenprint+set}" = set; then :
13763  withval=$with_gimp2_as_gutenprint; case "${withval}" in
13764
13765                yes) BUILD_GIMP2_AS_GUTENPRINT="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
13766$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;;
13767                no) BUILD_GIMP2_AS_GUTENPRINT="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
13768$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;;
13769                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13770$as_echo "unknown" >&6; }
13771                   as_fn_error "bad value ${withval} for --with-gimp2-as-gutenprint" "$LINENO" 5 ;;
13772
13773	    esac
13774else
13775  if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then
13776               BUILD_GIMP2_AS_GUTENPRINT="(automatic)"
13777             fi
13778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_GIMP2_AS_GUTENPRINT}" >&5
13779$as_echo "${BUILD_GIMP2_AS_GUTENPRINT}" >&6; } ;
13780fi
13781
13782if test -z "${BUILD_GIMP2_AS_GUTENPRINT}" ; then
13783  BUILD_GIMP2_AS_GUTENPRINT="(automatic)"
13784fi
13785
13786
13787# create custom command-line --enable option
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Gutenprint GTK+-2.0 user interface library" >&5
13789$as_echo_n "checking whether to build Gutenprint GTK+-2.0 user interface library... " >&6; }
13790# Check whether --enable-libgutenprintui2 was given.
13791if test "${enable_libgutenprintui2+set}" = set; then :
13792  enableval=$enable_libgutenprintui2; case "${enableval}" in
13793
13794                yes) BUILD_LIBGUTENPRINTUI2="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
13795$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;;
13796                no) BUILD_LIBGUTENPRINTUI2="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
13797$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;;
13798                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13799$as_echo "unknown" >&6; }
13800                   as_fn_error "bad value ${enableval} for --enable-libgutenprintui2" "$LINENO" 5 ;;
13801
13802	    esac
13803else
13804  if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then
13805               BUILD_LIBGUTENPRINTUI2="(automatic)"
13806             fi
13807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_LIBGUTENPRINTUI2}" >&5
13808$as_echo "${BUILD_LIBGUTENPRINTUI2}" >&6; } ;
13809fi
13810
13811if test -z "${BUILD_LIBGUTENPRINTUI2}" ; then
13812  BUILD_LIBGUTENPRINTUI2="(automatic)"
13813fi
13814
13815
13816# create custom command-line --enable option
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sample images" >&5
13818$as_echo_n "checking whether to install sample images... " >&6; }
13819# Check whether --enable-samples was given.
13820if test "${enable_samples+set}" = set; then :
13821  enableval=$enable_samples; case "${enableval}" in
13822
13823                yes) INSTALL_SAMPLES="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
13824$as_echo "${INSTALL_SAMPLES}" >&6; } ;;
13825                no) INSTALL_SAMPLES="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
13826$as_echo "${INSTALL_SAMPLES}" >&6; } ;;
13827                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13828$as_echo "unknown" >&6; }
13829                   as_fn_error "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
13830
13831	    esac
13832else
13833  if test -z "${INSTALL_SAMPLES}" ; then
13834               INSTALL_SAMPLES="yes"
13835             fi
13836             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${INSTALL_SAMPLES}" >&5
13837$as_echo "${INSTALL_SAMPLES}" >&6; } ;
13838fi
13839
13840if test -z "${INSTALL_SAMPLES}" ; then
13841  INSTALL_SAMPLES="yes"
13842fi
13843
13844
13845# create custom command-line --enable option
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build escputil" >&5
13847$as_echo_n "checking whether to build escputil... " >&6; }
13848# Check whether --enable-escputil was given.
13849if test "${enable_escputil+set}" = set; then :
13850  enableval=$enable_escputil; case "${enableval}" in
13851
13852                yes) BUILD_ESCPUTIL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
13853$as_echo "${BUILD_ESCPUTIL}" >&6; } ;;
13854                no) BUILD_ESCPUTIL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
13855$as_echo "${BUILD_ESCPUTIL}" >&6; } ;;
13856                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13857$as_echo "unknown" >&6; }
13858                   as_fn_error "bad value ${enableval} for --enable-escputil" "$LINENO" 5 ;;
13859
13860	    esac
13861else
13862  if test -z "${BUILD_ESCPUTIL}" ; then
13863               BUILD_ESCPUTIL="yes"
13864             fi
13865             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_ESCPUTIL}" >&5
13866$as_echo "${BUILD_ESCPUTIL}" >&6; } ;
13867fi
13868
13869if test -z "${BUILD_ESCPUTIL}" ; then
13870  BUILD_ESCPUTIL="yes"
13871fi
13872
13873
13874# create custom command-line --enable option
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build test programs" >&5
13876$as_echo_n "checking whether to build test programs... " >&6; }
13877# Check whether --enable-test was given.
13878if test "${enable_test+set}" = set; then :
13879  enableval=$enable_test; case "${enableval}" in
13880
13881                yes) BUILD_TEST="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
13882$as_echo "${BUILD_TEST}" >&6; } ;;
13883                no) BUILD_TEST="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
13884$as_echo "${BUILD_TEST}" >&6; } ;;
13885                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13886$as_echo "unknown" >&6; }
13887                   as_fn_error "bad value ${enableval} for --enable-test" "$LINENO" 5 ;;
13888
13889	    esac
13890else
13891  if test -z "${BUILD_TEST}" ; then
13892               BUILD_TEST="yes"
13893             fi
13894             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TEST}" >&5
13895$as_echo "${BUILD_TEST}" >&6; } ;
13896fi
13897
13898if test -z "${BUILD_TEST}" ; then
13899  BUILD_TEST="yes"
13900fi
13901
13902
13903if test "$BUILD_TEST" = "yes" ; then
13904  BUILD_TESTPATTERN="yes"
13905else
13906  BUILD_TESTPATTERN="no"
13907fi
13908
13909# create custom command-line --enable option
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build testpattern generator" >&5
13911$as_echo_n "checking whether to build testpattern generator... " >&6; }
13912# Check whether --enable-testpattern was given.
13913if test "${enable_testpattern+set}" = set; then :
13914  enableval=$enable_testpattern; case "${enableval}" in
13915
13916                yes) BUILD_TESTPATTERN="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
13917$as_echo "${BUILD_TESTPATTERN}" >&6; } ;;
13918                no) BUILD_TESTPATTERN="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
13919$as_echo "${BUILD_TESTPATTERN}" >&6; } ;;
13920                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13921$as_echo "unknown" >&6; }
13922                   as_fn_error "bad value ${enableval} for --enable-testpattern" "$LINENO" 5 ;;
13923
13924	    esac
13925else
13926  if test -z "${BUILD_TESTPATTERN}" ; then
13927               BUILD_TESTPATTERN="(automatic)"
13928             fi
13929             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_TESTPATTERN}" >&5
13930$as_echo "${BUILD_TESTPATTERN}" >&6; } ;
13931fi
13932
13933if test -z "${BUILD_TESTPATTERN}" ; then
13934  BUILD_TESTPATTERN="(automatic)"
13935fi
13936
13937
13938# create custom command-line --enable option
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install GIMP plugin in home directory" >&5
13940$as_echo_n "checking whether to install GIMP plugin in home directory... " >&6; }
13941# Check whether --enable-user-install was given.
13942if test "${enable_user_install+set}" = set; then :
13943  enableval=$enable_user_install; case "${enableval}" in
13944
13945                yes) USER_INSTALL="yes" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
13946$as_echo "${USER_INSTALL}" >&6; } ;;
13947                no) USER_INSTALL="no" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
13948$as_echo "${USER_INSTALL}" >&6; } ;;
13949                *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13950$as_echo "unknown" >&6; }
13951                   as_fn_error "bad value ${enableval} for --enable-user-install" "$LINENO" 5 ;;
13952
13953	    esac
13954else
13955  if test -z "${USER_INSTALL}" ; then
13956               USER_INSTALL="no"
13957             fi
13958             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${USER_INSTALL}" >&5
13959$as_echo "${USER_INSTALL}" >&6; } ;
13960fi
13961
13962if test -z "${USER_INSTALL}" ; then
13963  USER_INSTALL="no"
13964fi
13965
13966if test x$USER_INSTALL = xyes ; then
13967  PLUG_IN_PATH="bin"
13968else
13969  PLUG_IN_PATH="admin-bin"
13970fi
13971
13972
13973
13974
13975
13976
13977          am_save_CPPFLAGS="$CPPFLAGS"
13978
13979  for element in $INCICONV; do
13980    haveit=
13981    for x in $CPPFLAGS; do
13982
13983  acl_save_prefix="$prefix"
13984  prefix="$acl_final_prefix"
13985  acl_save_exec_prefix="$exec_prefix"
13986  exec_prefix="$acl_final_exec_prefix"
13987  eval x=\"$x\"
13988  exec_prefix="$acl_save_exec_prefix"
13989  prefix="$acl_save_prefix"
13990
13991      if test "X$x" = "X$element"; then
13992        haveit=yes
13993        break
13994      fi
13995    done
13996    if test -z "$haveit"; then
13997      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13998    fi
13999  done
14000
14001
14002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14003$as_echo_n "checking for iconv... " >&6; }
14004if test "${am_cv_func_iconv+set}" = set; then :
14005  $as_echo_n "(cached) " >&6
14006else
14007
14008    am_cv_func_iconv="no, consider installing GNU libiconv"
14009    am_cv_lib_iconv=no
14010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h.  */
14012#include <stdlib.h>
14013#include <iconv.h>
14014int
14015main ()
14016{
14017iconv_t cd = iconv_open("","");
14018       iconv(cd,NULL,NULL,NULL,NULL);
14019       iconv_close(cd);
14020  ;
14021  return 0;
14022}
14023_ACEOF
14024if ac_fn_c_try_link "$LINENO"; then :
14025  am_cv_func_iconv=yes
14026fi
14027rm -f core conftest.err conftest.$ac_objext \
14028    conftest$ac_exeext conftest.$ac_ext
14029    if test "$am_cv_func_iconv" != yes; then
14030      am_save_LIBS="$LIBS"
14031      LIBS="$LIBS $LIBICONV"
14032      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033/* end confdefs.h.  */
14034#include <stdlib.h>
14035#include <iconv.h>
14036int
14037main ()
14038{
14039iconv_t cd = iconv_open("","");
14040         iconv(cd,NULL,NULL,NULL,NULL);
14041         iconv_close(cd);
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046if ac_fn_c_try_link "$LINENO"; then :
14047  am_cv_lib_iconv=yes
14048        am_cv_func_iconv=yes
14049fi
14050rm -f core conftest.err conftest.$ac_objext \
14051    conftest$ac_exeext conftest.$ac_ext
14052      LIBS="$am_save_LIBS"
14053    fi
14054
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14057$as_echo "$am_cv_func_iconv" >&6; }
14058  if test "$am_cv_func_iconv" = yes; then
14059
14060$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14061
14062  fi
14063  if test "$am_cv_lib_iconv" = yes; then
14064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14065$as_echo_n "checking how to link with libiconv... " >&6; }
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14067$as_echo "$LIBICONV" >&6; }
14068  else
14069            CPPFLAGS="$am_save_CPPFLAGS"
14070    LIBICONV=
14071    LTLIBICONV=
14072  fi
14073
14074
14075
14076
14077        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
14078$as_echo_n "checking for strerror in -lcposix... " >&6; }
14079if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  ac_check_lib_save_LIBS=$LIBS
14083LIBS="-lcposix  $LIBS"
14084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085/* end confdefs.h.  */
14086
14087/* Override any GCC internal prototype to avoid an error.
14088   Use char because int might match the return type of a GCC
14089   builtin and then its argument prototype would still apply.  */
14090#ifdef __cplusplus
14091extern "C"
14092#endif
14093char strerror ();
14094int
14095main ()
14096{
14097return strerror ();
14098  ;
14099  return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_link "$LINENO"; then :
14103  ac_cv_lib_cposix_strerror=yes
14104else
14105  ac_cv_lib_cposix_strerror=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108    conftest$ac_exeext conftest.$ac_ext
14109LIBS=$ac_check_lib_save_LIBS
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
14112$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
14113if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
14114  LIBS="$LIBS -lcposix"
14115fi
14116
14117
14118
14119for ac_prog in gawk mawk nawk awk
14120do
14121  # Extract the first word of "$ac_prog", so it can be a program name with args.
14122set dummy $ac_prog; ac_word=$2
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124$as_echo_n "checking for $ac_word... " >&6; }
14125if test "${ac_cv_prog_AWK+set}" = set; then :
14126  $as_echo_n "(cached) " >&6
14127else
14128  if test -n "$AWK"; then
14129  ac_cv_prog_AWK="$AWK" # Let the user override the test.
14130else
14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134  IFS=$as_save_IFS
14135  test -z "$as_dir" && as_dir=.
14136    for ac_exec_ext in '' $ac_executable_extensions; do
14137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14138    ac_cv_prog_AWK="$ac_prog"
14139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140    break 2
14141  fi
14142done
14143  done
14144IFS=$as_save_IFS
14145
14146fi
14147fi
14148AWK=$ac_cv_prog_AWK
14149if test -n "$AWK"; then
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14151$as_echo "$AWK" >&6; }
14152else
14153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154$as_echo "no" >&6; }
14155fi
14156
14157
14158  test -n "$AWK" && break
14159done
14160
14161ac_ext=c
14162ac_cpp='$CPP $CPPFLAGS'
14163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166if test -n "$ac_tool_prefix"; then
14167  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14168set dummy ${ac_tool_prefix}gcc; ac_word=$2
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170$as_echo_n "checking for $ac_word... " >&6; }
14171if test "${ac_cv_prog_CC+set}" = set; then :
14172  $as_echo_n "(cached) " >&6
14173else
14174  if test -n "$CC"; then
14175  ac_cv_prog_CC="$CC" # Let the user override the test.
14176else
14177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180  IFS=$as_save_IFS
14181  test -z "$as_dir" && as_dir=.
14182    for ac_exec_ext in '' $ac_executable_extensions; do
14183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186    break 2
14187  fi
14188done
14189  done
14190IFS=$as_save_IFS
14191
14192fi
14193fi
14194CC=$ac_cv_prog_CC
14195if test -n "$CC"; then
14196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14197$as_echo "$CC" >&6; }
14198else
14199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200$as_echo "no" >&6; }
14201fi
14202
14203
14204fi
14205if test -z "$ac_cv_prog_CC"; then
14206  ac_ct_CC=$CC
14207  # Extract the first word of "gcc", so it can be a program name with args.
14208set dummy gcc; ac_word=$2
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210$as_echo_n "checking for $ac_word... " >&6; }
14211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  if test -n "$ac_ct_CC"; then
14215  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14216else
14217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220  IFS=$as_save_IFS
14221  test -z "$as_dir" && as_dir=.
14222    for ac_exec_ext in '' $ac_executable_extensions; do
14223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14224    ac_cv_prog_ac_ct_CC="gcc"
14225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226    break 2
14227  fi
14228done
14229  done
14230IFS=$as_save_IFS
14231
14232fi
14233fi
14234ac_ct_CC=$ac_cv_prog_ac_ct_CC
14235if test -n "$ac_ct_CC"; then
14236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14237$as_echo "$ac_ct_CC" >&6; }
14238else
14239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240$as_echo "no" >&6; }
14241fi
14242
14243  if test "x$ac_ct_CC" = x; then
14244    CC=""
14245  else
14246    case $cross_compiling:$ac_tool_warned in
14247yes:)
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14250ac_tool_warned=yes ;;
14251esac
14252    CC=$ac_ct_CC
14253  fi
14254else
14255  CC="$ac_cv_prog_CC"
14256fi
14257
14258if test -z "$CC"; then
14259          if test -n "$ac_tool_prefix"; then
14260    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14261set dummy ${ac_tool_prefix}cc; ac_word=$2
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263$as_echo_n "checking for $ac_word... " >&6; }
14264if test "${ac_cv_prog_CC+set}" = set; then :
14265  $as_echo_n "(cached) " >&6
14266else
14267  if test -n "$CC"; then
14268  ac_cv_prog_CC="$CC" # Let the user override the test.
14269else
14270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271for as_dir in $PATH
14272do
14273  IFS=$as_save_IFS
14274  test -z "$as_dir" && as_dir=.
14275    for ac_exec_ext in '' $ac_executable_extensions; do
14276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277    ac_cv_prog_CC="${ac_tool_prefix}cc"
14278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279    break 2
14280  fi
14281done
14282  done
14283IFS=$as_save_IFS
14284
14285fi
14286fi
14287CC=$ac_cv_prog_CC
14288if test -n "$CC"; then
14289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14290$as_echo "$CC" >&6; }
14291else
14292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293$as_echo "no" >&6; }
14294fi
14295
14296
14297  fi
14298fi
14299if test -z "$CC"; then
14300  # Extract the first word of "cc", so it can be a program name with args.
14301set dummy cc; ac_word=$2
14302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14303$as_echo_n "checking for $ac_word... " >&6; }
14304if test "${ac_cv_prog_CC+set}" = set; then :
14305  $as_echo_n "(cached) " >&6
14306else
14307  if test -n "$CC"; then
14308  ac_cv_prog_CC="$CC" # Let the user override the test.
14309else
14310  ac_prog_rejected=no
14311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312for as_dir in $PATH
14313do
14314  IFS=$as_save_IFS
14315  test -z "$as_dir" && as_dir=.
14316    for ac_exec_ext in '' $ac_executable_extensions; do
14317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14318    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14319       ac_prog_rejected=yes
14320       continue
14321     fi
14322    ac_cv_prog_CC="cc"
14323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14324    break 2
14325  fi
14326done
14327  done
14328IFS=$as_save_IFS
14329
14330if test $ac_prog_rejected = yes; then
14331  # We found a bogon in the path, so make sure we never use it.
14332  set dummy $ac_cv_prog_CC
14333  shift
14334  if test $# != 0; then
14335    # We chose a different compiler from the bogus one.
14336    # However, it has the same basename, so the bogon will be chosen
14337    # first if we set CC to just the basename; use the full file name.
14338    shift
14339    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14340  fi
14341fi
14342fi
14343fi
14344CC=$ac_cv_prog_CC
14345if test -n "$CC"; then
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14347$as_echo "$CC" >&6; }
14348else
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350$as_echo "no" >&6; }
14351fi
14352
14353
14354fi
14355if test -z "$CC"; then
14356  if test -n "$ac_tool_prefix"; then
14357  for ac_prog in cl.exe
14358  do
14359    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362$as_echo_n "checking for $ac_word... " >&6; }
14363if test "${ac_cv_prog_CC+set}" = set; then :
14364  $as_echo_n "(cached) " >&6
14365else
14366  if test -n "$CC"; then
14367  ac_cv_prog_CC="$CC" # Let the user override the test.
14368else
14369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370for as_dir in $PATH
14371do
14372  IFS=$as_save_IFS
14373  test -z "$as_dir" && as_dir=.
14374    for ac_exec_ext in '' $ac_executable_extensions; do
14375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14376    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378    break 2
14379  fi
14380done
14381  done
14382IFS=$as_save_IFS
14383
14384fi
14385fi
14386CC=$ac_cv_prog_CC
14387if test -n "$CC"; then
14388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14389$as_echo "$CC" >&6; }
14390else
14391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392$as_echo "no" >&6; }
14393fi
14394
14395
14396    test -n "$CC" && break
14397  done
14398fi
14399if test -z "$CC"; then
14400  ac_ct_CC=$CC
14401  for ac_prog in cl.exe
14402do
14403  # Extract the first word of "$ac_prog", so it can be a program name with args.
14404set dummy $ac_prog; ac_word=$2
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406$as_echo_n "checking for $ac_word... " >&6; }
14407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14408  $as_echo_n "(cached) " >&6
14409else
14410  if test -n "$ac_ct_CC"; then
14411  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14412else
14413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414for as_dir in $PATH
14415do
14416  IFS=$as_save_IFS
14417  test -z "$as_dir" && as_dir=.
14418    for ac_exec_ext in '' $ac_executable_extensions; do
14419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420    ac_cv_prog_ac_ct_CC="$ac_prog"
14421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14422    break 2
14423  fi
14424done
14425  done
14426IFS=$as_save_IFS
14427
14428fi
14429fi
14430ac_ct_CC=$ac_cv_prog_ac_ct_CC
14431if test -n "$ac_ct_CC"; then
14432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14433$as_echo "$ac_ct_CC" >&6; }
14434else
14435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436$as_echo "no" >&6; }
14437fi
14438
14439
14440  test -n "$ac_ct_CC" && break
14441done
14442
14443  if test "x$ac_ct_CC" = x; then
14444    CC=""
14445  else
14446    case $cross_compiling:$ac_tool_warned in
14447yes:)
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14450ac_tool_warned=yes ;;
14451esac
14452    CC=$ac_ct_CC
14453  fi
14454fi
14455
14456fi
14457
14458
14459test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14461as_fn_error "no acceptable C compiler found in \$PATH
14462See \`config.log' for more details." "$LINENO" 5; }
14463
14464# Provide some information about the compiler.
14465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14466set X $ac_compile
14467ac_compiler=$2
14468for ac_option in --version -v -V -qversion; do
14469  { { ac_try="$ac_compiler $ac_option >&5"
14470case "(($ac_try" in
14471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472  *) ac_try_echo=$ac_try;;
14473esac
14474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14475$as_echo "$ac_try_echo"; } >&5
14476  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14477  ac_status=$?
14478  if test -s conftest.err; then
14479    sed '10a\
14480... rest of stderr output deleted ...
14481         10q' conftest.err >conftest.er1
14482    cat conftest.er1 >&5
14483  fi
14484  rm -f conftest.er1 conftest.err
14485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14486  test $ac_status = 0; }
14487done
14488
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14491if test "${ac_cv_c_compiler_gnu+set}" = set; then :
14492  $as_echo_n "(cached) " >&6
14493else
14494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496
14497int
14498main ()
14499{
14500#ifndef __GNUC__
14501       choke me
14502#endif
14503
14504  ;
14505  return 0;
14506}
14507_ACEOF
14508if ac_fn_c_try_compile "$LINENO"; then :
14509  ac_compiler_gnu=yes
14510else
14511  ac_compiler_gnu=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514ac_cv_c_compiler_gnu=$ac_compiler_gnu
14515
14516fi
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14519if test $ac_compiler_gnu = yes; then
14520  GCC=yes
14521else
14522  GCC=
14523fi
14524ac_test_CFLAGS=${CFLAGS+set}
14525ac_save_CFLAGS=$CFLAGS
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14527$as_echo_n "checking whether $CC accepts -g... " >&6; }
14528if test "${ac_cv_prog_cc_g+set}" = set; then :
14529  $as_echo_n "(cached) " >&6
14530else
14531  ac_save_c_werror_flag=$ac_c_werror_flag
14532   ac_c_werror_flag=yes
14533   ac_cv_prog_cc_g=no
14534   CFLAGS="-g"
14535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536/* end confdefs.h.  */
14537
14538int
14539main ()
14540{
14541
14542  ;
14543  return 0;
14544}
14545_ACEOF
14546if ac_fn_c_try_compile "$LINENO"; then :
14547  ac_cv_prog_cc_g=yes
14548else
14549  CFLAGS=""
14550      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551/* end confdefs.h.  */
14552
14553int
14554main ()
14555{
14556
14557  ;
14558  return 0;
14559}
14560_ACEOF
14561if ac_fn_c_try_compile "$LINENO"; then :
14562
14563else
14564  ac_c_werror_flag=$ac_save_c_werror_flag
14565	 CFLAGS="-g"
14566	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h.  */
14568
14569int
14570main ()
14571{
14572
14573  ;
14574  return 0;
14575}
14576_ACEOF
14577if ac_fn_c_try_compile "$LINENO"; then :
14578  ac_cv_prog_cc_g=yes
14579fi
14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581fi
14582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583fi
14584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14585   ac_c_werror_flag=$ac_save_c_werror_flag
14586fi
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14588$as_echo "$ac_cv_prog_cc_g" >&6; }
14589if test "$ac_test_CFLAGS" = set; then
14590  CFLAGS=$ac_save_CFLAGS
14591elif test $ac_cv_prog_cc_g = yes; then
14592  if test "$GCC" = yes; then
14593    CFLAGS="-g -O2"
14594  else
14595    CFLAGS="-g"
14596  fi
14597else
14598  if test "$GCC" = yes; then
14599    CFLAGS="-O2"
14600  else
14601    CFLAGS=
14602  fi
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14606if test "${ac_cv_prog_cc_c89+set}" = set; then :
14607  $as_echo_n "(cached) " >&6
14608else
14609  ac_cv_prog_cc_c89=no
14610ac_save_CC=$CC
14611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613#include <stdarg.h>
14614#include <stdio.h>
14615#include <sys/types.h>
14616#include <sys/stat.h>
14617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14618struct buf { int x; };
14619FILE * (*rcsopen) (struct buf *, struct stat *, int);
14620static char *e (p, i)
14621     char **p;
14622     int i;
14623{
14624  return p[i];
14625}
14626static char *f (char * (*g) (char **, int), char **p, ...)
14627{
14628  char *s;
14629  va_list v;
14630  va_start (v,p);
14631  s = g (p, va_arg (v,int));
14632  va_end (v);
14633  return s;
14634}
14635
14636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14637   function prototypes and stuff, but not '\xHH' hex character constants.
14638   These don't provoke an error unfortunately, instead are silently treated
14639   as 'x'.  The following induces an error, until -std is added to get
14640   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14641   array size at least.  It's necessary to write '\x00'==0 to get something
14642   that's true only with -std.  */
14643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14644
14645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14646   inside strings and character constants.  */
14647#define FOO(x) 'x'
14648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14649
14650int test (int i, double x);
14651struct s1 {int (*f) (int a);};
14652struct s2 {int (*f) (double a);};
14653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14654int argc;
14655char **argv;
14656int
14657main ()
14658{
14659return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14660  ;
14661  return 0;
14662}
14663_ACEOF
14664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14665	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14666do
14667  CC="$ac_save_CC $ac_arg"
14668  if ac_fn_c_try_compile "$LINENO"; then :
14669  ac_cv_prog_cc_c89=$ac_arg
14670fi
14671rm -f core conftest.err conftest.$ac_objext
14672  test "x$ac_cv_prog_cc_c89" != "xno" && break
14673done
14674rm -f conftest.$ac_ext
14675CC=$ac_save_CC
14676
14677fi
14678# AC_CACHE_VAL
14679case "x$ac_cv_prog_cc_c89" in
14680  x)
14681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14682$as_echo "none needed" >&6; } ;;
14683  xno)
14684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14685$as_echo "unsupported" >&6; } ;;
14686  *)
14687    CC="$CC $ac_cv_prog_cc_c89"
14688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14690esac
14691if test "x$ac_cv_prog_cc_c89" != xno; then :
14692
14693fi
14694
14695ac_ext=c
14696ac_cpp='$CPP $CPPFLAGS'
14697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699ac_compiler_gnu=$ac_cv_c_compiler_gnu
14700
14701depcc="$CC"   am_compiler_list=
14702
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14704$as_echo_n "checking dependency style of $depcc... " >&6; }
14705if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14706  $as_echo_n "(cached) " >&6
14707else
14708  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14709  # We make a subdir and do the tests there.  Otherwise we can end up
14710  # making bogus files that we don't know about and never remove.  For
14711  # instance it was reported that on HP-UX the gcc test will end up
14712  # making a dummy file named `D' -- because `-MD' means `put the output
14713  # in D'.
14714  mkdir conftest.dir
14715  # Copy depcomp to subdir because otherwise we won't find it if we're
14716  # using a relative directory.
14717  cp "$am_depcomp" conftest.dir
14718  cd conftest.dir
14719  # We will build objects and dependencies in a subdirectory because
14720  # it helps to detect inapplicable dependency modes.  For instance
14721  # both Tru64's cc and ICC support -MD to output dependencies as a
14722  # side effect of compilation, but ICC will put the dependencies in
14723  # the current directory while Tru64 will put them in the object
14724  # directory.
14725  mkdir sub
14726
14727  am_cv_CC_dependencies_compiler_type=none
14728  if test "$am_compiler_list" = ""; then
14729     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14730  fi
14731  am__universal=false
14732  case " $depcc " in #(
14733     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14734     esac
14735
14736  for depmode in $am_compiler_list; do
14737    # Setup a source with many dependencies, because some compilers
14738    # like to wrap large dependency lists on column 80 (with \), and
14739    # we should not choose a depcomp mode which is confused by this.
14740    #
14741    # We need to recreate these files for each test, as the compiler may
14742    # overwrite some of them when testing with obscure command lines.
14743    # This happens at least with the AIX C compiler.
14744    : > sub/conftest.c
14745    for i in 1 2 3 4 5 6; do
14746      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14747      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14748      # Solaris 8's {/usr,}/bin/sh.
14749      touch sub/conftst$i.h
14750    done
14751    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14752
14753    # We check with `-c' and `-o' for the sake of the "dashmstdout"
14754    # mode.  It turns out that the SunPro C++ compiler does not properly
14755    # handle `-M -o', and we need to detect this.  Also, some Intel
14756    # versions had trouble with output in subdirs
14757    am__obj=sub/conftest.${OBJEXT-o}
14758    am__minus_obj="-o $am__obj"
14759    case $depmode in
14760    gcc)
14761      # This depmode causes a compiler race in universal mode.
14762      test "$am__universal" = false || continue
14763      ;;
14764    nosideeffect)
14765      # after this tag, mechanisms are not by side-effect, so they'll
14766      # only be used when explicitly requested
14767      if test "x$enable_dependency_tracking" = xyes; then
14768	continue
14769      else
14770	break
14771      fi
14772      ;;
14773    msvisualcpp | msvcmsys)
14774      # This compiler won't grok `-c -o', but also, the minuso test has
14775      # not run yet.  These depmodes are late enough in the game, and
14776      # so weak that their functioning should not be impacted.
14777      am__obj=conftest.${OBJEXT-o}
14778      am__minus_obj=
14779      ;;
14780    none) break ;;
14781    esac
14782    if depmode=$depmode \
14783       source=sub/conftest.c object=$am__obj \
14784       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14785       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14786         >/dev/null 2>conftest.err &&
14787       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14788       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14789       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14790       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14791      # icc doesn't choke on unknown options, it will just issue warnings
14792      # or remarks (even with -Werror).  So we grep stderr for any message
14793      # that says an option was ignored or not supported.
14794      # When given -MP, icc 7.0 and 7.1 complain thusly:
14795      #   icc: Command line warning: ignoring option '-M'; no argument required
14796      # The diagnosis changed in icc 8.0:
14797      #   icc: Command line remark: option '-MP' not supported
14798      if (grep 'ignoring option' conftest.err ||
14799          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14800        am_cv_CC_dependencies_compiler_type=$depmode
14801        break
14802      fi
14803    fi
14804  done
14805
14806  cd ..
14807  rm -rf conftest.dir
14808else
14809  am_cv_CC_dependencies_compiler_type=none
14810fi
14811
14812fi
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14814$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14815CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14816
14817 if
14818  test "x$enable_dependency_tracking" != xno \
14819  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14820  am__fastdepCC_TRUE=
14821  am__fastdepCC_FALSE='#'
14822else
14823  am__fastdepCC_TRUE='#'
14824  am__fastdepCC_FALSE=
14825fi
14826
14827
14828ac_ext=c
14829ac_cpp='$CPP $CPPFLAGS'
14830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832ac_compiler_gnu=$ac_cv_c_compiler_gnu
14833if test -n "$ac_tool_prefix"; then
14834  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14835set dummy ${ac_tool_prefix}gcc; ac_word=$2
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837$as_echo_n "checking for $ac_word... " >&6; }
14838if test "${ac_cv_prog_CC+set}" = set; then :
14839  $as_echo_n "(cached) " >&6
14840else
14841  if test -n "$CC"; then
14842  ac_cv_prog_CC="$CC" # Let the user override the test.
14843else
14844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845for as_dir in $PATH
14846do
14847  IFS=$as_save_IFS
14848  test -z "$as_dir" && as_dir=.
14849    for ac_exec_ext in '' $ac_executable_extensions; do
14850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14851    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853    break 2
14854  fi
14855done
14856  done
14857IFS=$as_save_IFS
14858
14859fi
14860fi
14861CC=$ac_cv_prog_CC
14862if test -n "$CC"; then
14863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14864$as_echo "$CC" >&6; }
14865else
14866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867$as_echo "no" >&6; }
14868fi
14869
14870
14871fi
14872if test -z "$ac_cv_prog_CC"; then
14873  ac_ct_CC=$CC
14874  # Extract the first word of "gcc", so it can be a program name with args.
14875set dummy gcc; ac_word=$2
14876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877$as_echo_n "checking for $ac_word... " >&6; }
14878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14879  $as_echo_n "(cached) " >&6
14880else
14881  if test -n "$ac_ct_CC"; then
14882  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14883else
14884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885for as_dir in $PATH
14886do
14887  IFS=$as_save_IFS
14888  test -z "$as_dir" && as_dir=.
14889    for ac_exec_ext in '' $ac_executable_extensions; do
14890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14891    ac_cv_prog_ac_ct_CC="gcc"
14892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14893    break 2
14894  fi
14895done
14896  done
14897IFS=$as_save_IFS
14898
14899fi
14900fi
14901ac_ct_CC=$ac_cv_prog_ac_ct_CC
14902if test -n "$ac_ct_CC"; then
14903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14904$as_echo "$ac_ct_CC" >&6; }
14905else
14906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907$as_echo "no" >&6; }
14908fi
14909
14910  if test "x$ac_ct_CC" = x; then
14911    CC=""
14912  else
14913    case $cross_compiling:$ac_tool_warned in
14914yes:)
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14917ac_tool_warned=yes ;;
14918esac
14919    CC=$ac_ct_CC
14920  fi
14921else
14922  CC="$ac_cv_prog_CC"
14923fi
14924
14925if test -z "$CC"; then
14926          if test -n "$ac_tool_prefix"; then
14927    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14928set dummy ${ac_tool_prefix}cc; ac_word=$2
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930$as_echo_n "checking for $ac_word... " >&6; }
14931if test "${ac_cv_prog_CC+set}" = set; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  if test -n "$CC"; then
14935  ac_cv_prog_CC="$CC" # Let the user override the test.
14936else
14937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938for as_dir in $PATH
14939do
14940  IFS=$as_save_IFS
14941  test -z "$as_dir" && as_dir=.
14942    for ac_exec_ext in '' $ac_executable_extensions; do
14943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14944    ac_cv_prog_CC="${ac_tool_prefix}cc"
14945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946    break 2
14947  fi
14948done
14949  done
14950IFS=$as_save_IFS
14951
14952fi
14953fi
14954CC=$ac_cv_prog_CC
14955if test -n "$CC"; then
14956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14957$as_echo "$CC" >&6; }
14958else
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960$as_echo "no" >&6; }
14961fi
14962
14963
14964  fi
14965fi
14966if test -z "$CC"; then
14967  # Extract the first word of "cc", so it can be a program name with args.
14968set dummy cc; ac_word=$2
14969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970$as_echo_n "checking for $ac_word... " >&6; }
14971if test "${ac_cv_prog_CC+set}" = set; then :
14972  $as_echo_n "(cached) " >&6
14973else
14974  if test -n "$CC"; then
14975  ac_cv_prog_CC="$CC" # Let the user override the test.
14976else
14977  ac_prog_rejected=no
14978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979for as_dir in $PATH
14980do
14981  IFS=$as_save_IFS
14982  test -z "$as_dir" && as_dir=.
14983    for ac_exec_ext in '' $ac_executable_extensions; do
14984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14985    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14986       ac_prog_rejected=yes
14987       continue
14988     fi
14989    ac_cv_prog_CC="cc"
14990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14991    break 2
14992  fi
14993done
14994  done
14995IFS=$as_save_IFS
14996
14997if test $ac_prog_rejected = yes; then
14998  # We found a bogon in the path, so make sure we never use it.
14999  set dummy $ac_cv_prog_CC
15000  shift
15001  if test $# != 0; then
15002    # We chose a different compiler from the bogus one.
15003    # However, it has the same basename, so the bogon will be chosen
15004    # first if we set CC to just the basename; use the full file name.
15005    shift
15006    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15007  fi
15008fi
15009fi
15010fi
15011CC=$ac_cv_prog_CC
15012if test -n "$CC"; then
15013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15014$as_echo "$CC" >&6; }
15015else
15016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017$as_echo "no" >&6; }
15018fi
15019
15020
15021fi
15022if test -z "$CC"; then
15023  if test -n "$ac_tool_prefix"; then
15024  for ac_prog in cl.exe
15025  do
15026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15029$as_echo_n "checking for $ac_word... " >&6; }
15030if test "${ac_cv_prog_CC+set}" = set; then :
15031  $as_echo_n "(cached) " >&6
15032else
15033  if test -n "$CC"; then
15034  ac_cv_prog_CC="$CC" # Let the user override the test.
15035else
15036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037for as_dir in $PATH
15038do
15039  IFS=$as_save_IFS
15040  test -z "$as_dir" && as_dir=.
15041    for ac_exec_ext in '' $ac_executable_extensions; do
15042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15043    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15045    break 2
15046  fi
15047done
15048  done
15049IFS=$as_save_IFS
15050
15051fi
15052fi
15053CC=$ac_cv_prog_CC
15054if test -n "$CC"; then
15055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15056$as_echo "$CC" >&6; }
15057else
15058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059$as_echo "no" >&6; }
15060fi
15061
15062
15063    test -n "$CC" && break
15064  done
15065fi
15066if test -z "$CC"; then
15067  ac_ct_CC=$CC
15068  for ac_prog in cl.exe
15069do
15070  # Extract the first word of "$ac_prog", so it can be a program name with args.
15071set dummy $ac_prog; ac_word=$2
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15073$as_echo_n "checking for $ac_word... " >&6; }
15074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
15075  $as_echo_n "(cached) " >&6
15076else
15077  if test -n "$ac_ct_CC"; then
15078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15079else
15080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15081for as_dir in $PATH
15082do
15083  IFS=$as_save_IFS
15084  test -z "$as_dir" && as_dir=.
15085    for ac_exec_ext in '' $ac_executable_extensions; do
15086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15087    ac_cv_prog_ac_ct_CC="$ac_prog"
15088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15089    break 2
15090  fi
15091done
15092  done
15093IFS=$as_save_IFS
15094
15095fi
15096fi
15097ac_ct_CC=$ac_cv_prog_ac_ct_CC
15098if test -n "$ac_ct_CC"; then
15099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15100$as_echo "$ac_ct_CC" >&6; }
15101else
15102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103$as_echo "no" >&6; }
15104fi
15105
15106
15107  test -n "$ac_ct_CC" && break
15108done
15109
15110  if test "x$ac_ct_CC" = x; then
15111    CC=""
15112  else
15113    case $cross_compiling:$ac_tool_warned in
15114yes:)
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15117ac_tool_warned=yes ;;
15118esac
15119    CC=$ac_ct_CC
15120  fi
15121fi
15122
15123fi
15124
15125
15126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15128as_fn_error "no acceptable C compiler found in \$PATH
15129See \`config.log' for more details." "$LINENO" 5; }
15130
15131# Provide some information about the compiler.
15132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15133set X $ac_compile
15134ac_compiler=$2
15135for ac_option in --version -v -V -qversion; do
15136  { { ac_try="$ac_compiler $ac_option >&5"
15137case "(($ac_try" in
15138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139  *) ac_try_echo=$ac_try;;
15140esac
15141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15142$as_echo "$ac_try_echo"; } >&5
15143  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15144  ac_status=$?
15145  if test -s conftest.err; then
15146    sed '10a\
15147... rest of stderr output deleted ...
15148         10q' conftest.err >conftest.er1
15149    cat conftest.er1 >&5
15150  fi
15151  rm -f conftest.er1 conftest.err
15152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15153  test $ac_status = 0; }
15154done
15155
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15157$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15158if test "${ac_cv_c_compiler_gnu+set}" = set; then :
15159  $as_echo_n "(cached) " >&6
15160else
15161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162/* end confdefs.h.  */
15163
15164int
15165main ()
15166{
15167#ifndef __GNUC__
15168       choke me
15169#endif
15170
15171  ;
15172  return 0;
15173}
15174_ACEOF
15175if ac_fn_c_try_compile "$LINENO"; then :
15176  ac_compiler_gnu=yes
15177else
15178  ac_compiler_gnu=no
15179fi
15180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181ac_cv_c_compiler_gnu=$ac_compiler_gnu
15182
15183fi
15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15185$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15186if test $ac_compiler_gnu = yes; then
15187  GCC=yes
15188else
15189  GCC=
15190fi
15191ac_test_CFLAGS=${CFLAGS+set}
15192ac_save_CFLAGS=$CFLAGS
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15194$as_echo_n "checking whether $CC accepts -g... " >&6; }
15195if test "${ac_cv_prog_cc_g+set}" = set; then :
15196  $as_echo_n "(cached) " >&6
15197else
15198  ac_save_c_werror_flag=$ac_c_werror_flag
15199   ac_c_werror_flag=yes
15200   ac_cv_prog_cc_g=no
15201   CFLAGS="-g"
15202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204
15205int
15206main ()
15207{
15208
15209  ;
15210  return 0;
15211}
15212_ACEOF
15213if ac_fn_c_try_compile "$LINENO"; then :
15214  ac_cv_prog_cc_g=yes
15215else
15216  CFLAGS=""
15217      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219
15220int
15221main ()
15222{
15223
15224  ;
15225  return 0;
15226}
15227_ACEOF
15228if ac_fn_c_try_compile "$LINENO"; then :
15229
15230else
15231  ac_c_werror_flag=$ac_save_c_werror_flag
15232	 CFLAGS="-g"
15233	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235
15236int
15237main ()
15238{
15239
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244if ac_fn_c_try_compile "$LINENO"; then :
15245  ac_cv_prog_cc_g=yes
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248fi
15249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250fi
15251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252   ac_c_werror_flag=$ac_save_c_werror_flag
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15255$as_echo "$ac_cv_prog_cc_g" >&6; }
15256if test "$ac_test_CFLAGS" = set; then
15257  CFLAGS=$ac_save_CFLAGS
15258elif test $ac_cv_prog_cc_g = yes; then
15259  if test "$GCC" = yes; then
15260    CFLAGS="-g -O2"
15261  else
15262    CFLAGS="-g"
15263  fi
15264else
15265  if test "$GCC" = yes; then
15266    CFLAGS="-O2"
15267  else
15268    CFLAGS=
15269  fi
15270fi
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15272$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15273if test "${ac_cv_prog_cc_c89+set}" = set; then :
15274  $as_echo_n "(cached) " >&6
15275else
15276  ac_cv_prog_cc_c89=no
15277ac_save_CC=$CC
15278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280#include <stdarg.h>
15281#include <stdio.h>
15282#include <sys/types.h>
15283#include <sys/stat.h>
15284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15285struct buf { int x; };
15286FILE * (*rcsopen) (struct buf *, struct stat *, int);
15287static char *e (p, i)
15288     char **p;
15289     int i;
15290{
15291  return p[i];
15292}
15293static char *f (char * (*g) (char **, int), char **p, ...)
15294{
15295  char *s;
15296  va_list v;
15297  va_start (v,p);
15298  s = g (p, va_arg (v,int));
15299  va_end (v);
15300  return s;
15301}
15302
15303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15304   function prototypes and stuff, but not '\xHH' hex character constants.
15305   These don't provoke an error unfortunately, instead are silently treated
15306   as 'x'.  The following induces an error, until -std is added to get
15307   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15308   array size at least.  It's necessary to write '\x00'==0 to get something
15309   that's true only with -std.  */
15310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15311
15312/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15313   inside strings and character constants.  */
15314#define FOO(x) 'x'
15315int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15316
15317int test (int i, double x);
15318struct s1 {int (*f) (int a);};
15319struct s2 {int (*f) (double a);};
15320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15321int argc;
15322char **argv;
15323int
15324main ()
15325{
15326return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15327  ;
15328  return 0;
15329}
15330_ACEOF
15331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15332	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15333do
15334  CC="$ac_save_CC $ac_arg"
15335  if ac_fn_c_try_compile "$LINENO"; then :
15336  ac_cv_prog_cc_c89=$ac_arg
15337fi
15338rm -f core conftest.err conftest.$ac_objext
15339  test "x$ac_cv_prog_cc_c89" != "xno" && break
15340done
15341rm -f conftest.$ac_ext
15342CC=$ac_save_CC
15343
15344fi
15345# AC_CACHE_VAL
15346case "x$ac_cv_prog_cc_c89" in
15347  x)
15348    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15349$as_echo "none needed" >&6; } ;;
15350  xno)
15351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15352$as_echo "unsupported" >&6; } ;;
15353  *)
15354    CC="$CC $ac_cv_prog_cc_c89"
15355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15356$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15357esac
15358if test "x$ac_cv_prog_cc_c89" != xno; then :
15359
15360fi
15361
15362ac_ext=c
15363ac_cpp='$CPP $CPPFLAGS'
15364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15366ac_compiler_gnu=$ac_cv_c_compiler_gnu
15367
15368depcc="$CC"   am_compiler_list=
15369
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15371$as_echo_n "checking dependency style of $depcc... " >&6; }
15372if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15373  $as_echo_n "(cached) " >&6
15374else
15375  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15376  # We make a subdir and do the tests there.  Otherwise we can end up
15377  # making bogus files that we don't know about and never remove.  For
15378  # instance it was reported that on HP-UX the gcc test will end up
15379  # making a dummy file named `D' -- because `-MD' means `put the output
15380  # in D'.
15381  mkdir conftest.dir
15382  # Copy depcomp to subdir because otherwise we won't find it if we're
15383  # using a relative directory.
15384  cp "$am_depcomp" conftest.dir
15385  cd conftest.dir
15386  # We will build objects and dependencies in a subdirectory because
15387  # it helps to detect inapplicable dependency modes.  For instance
15388  # both Tru64's cc and ICC support -MD to output dependencies as a
15389  # side effect of compilation, but ICC will put the dependencies in
15390  # the current directory while Tru64 will put them in the object
15391  # directory.
15392  mkdir sub
15393
15394  am_cv_CC_dependencies_compiler_type=none
15395  if test "$am_compiler_list" = ""; then
15396     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15397  fi
15398  am__universal=false
15399  case " $depcc " in #(
15400     *\ -arch\ *\ -arch\ *) am__universal=true ;;
15401     esac
15402
15403  for depmode in $am_compiler_list; do
15404    # Setup a source with many dependencies, because some compilers
15405    # like to wrap large dependency lists on column 80 (with \), and
15406    # we should not choose a depcomp mode which is confused by this.
15407    #
15408    # We need to recreate these files for each test, as the compiler may
15409    # overwrite some of them when testing with obscure command lines.
15410    # This happens at least with the AIX C compiler.
15411    : > sub/conftest.c
15412    for i in 1 2 3 4 5 6; do
15413      echo '#include "conftst'$i'.h"' >> sub/conftest.c
15414      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15415      # Solaris 8's {/usr,}/bin/sh.
15416      touch sub/conftst$i.h
15417    done
15418    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15419
15420    # We check with `-c' and `-o' for the sake of the "dashmstdout"
15421    # mode.  It turns out that the SunPro C++ compiler does not properly
15422    # handle `-M -o', and we need to detect this.  Also, some Intel
15423    # versions had trouble with output in subdirs
15424    am__obj=sub/conftest.${OBJEXT-o}
15425    am__minus_obj="-o $am__obj"
15426    case $depmode in
15427    gcc)
15428      # This depmode causes a compiler race in universal mode.
15429      test "$am__universal" = false || continue
15430      ;;
15431    nosideeffect)
15432      # after this tag, mechanisms are not by side-effect, so they'll
15433      # only be used when explicitly requested
15434      if test "x$enable_dependency_tracking" = xyes; then
15435	continue
15436      else
15437	break
15438      fi
15439      ;;
15440    msvisualcpp | msvcmsys)
15441      # This compiler won't grok `-c -o', but also, the minuso test has
15442      # not run yet.  These depmodes are late enough in the game, and
15443      # so weak that their functioning should not be impacted.
15444      am__obj=conftest.${OBJEXT-o}
15445      am__minus_obj=
15446      ;;
15447    none) break ;;
15448    esac
15449    if depmode=$depmode \
15450       source=sub/conftest.c object=$am__obj \
15451       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15452       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15453         >/dev/null 2>conftest.err &&
15454       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15455       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15456       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15457       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15458      # icc doesn't choke on unknown options, it will just issue warnings
15459      # or remarks (even with -Werror).  So we grep stderr for any message
15460      # that says an option was ignored or not supported.
15461      # When given -MP, icc 7.0 and 7.1 complain thusly:
15462      #   icc: Command line warning: ignoring option '-M'; no argument required
15463      # The diagnosis changed in icc 8.0:
15464      #   icc: Command line remark: option '-MP' not supported
15465      if (grep 'ignoring option' conftest.err ||
15466          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15467        am_cv_CC_dependencies_compiler_type=$depmode
15468        break
15469      fi
15470    fi
15471  done
15472
15473  cd ..
15474  rm -rf conftest.dir
15475else
15476  am_cv_CC_dependencies_compiler_type=none
15477fi
15478
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15481$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15482CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15483
15484 if
15485  test "x$enable_dependency_tracking" != xno \
15486  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15487  am__fastdepCC_TRUE=
15488  am__fastdepCC_FALSE='#'
15489else
15490  am__fastdepCC_TRUE='#'
15491  am__fastdepCC_FALSE=
15492fi
15493
15494
15495
15496am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
15497
15498if test "x$CC" != xcc; then
15499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15500$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15501else
15502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15503$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15504fi
15505set dummy $CC; ac_cc=`$as_echo "$2" |
15506		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15507if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
15508  $as_echo_n "(cached) " >&6
15509else
15510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512
15513int
15514main ()
15515{
15516
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521# Make sure it works both with $CC and with simple cc.
15522# We do the test twice because some compilers refuse to overwrite an
15523# existing .o file with -o, though they will create one.
15524ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15525rm -f conftest2.*
15526if { { case "(($ac_try" in
15527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528  *) ac_try_echo=$ac_try;;
15529esac
15530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15531$as_echo "$ac_try_echo"; } >&5
15532  (eval "$ac_try") 2>&5
15533  ac_status=$?
15534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15535  test $ac_status = 0; } &&
15536   test -f conftest2.$ac_objext && { { case "(($ac_try" in
15537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538  *) ac_try_echo=$ac_try;;
15539esac
15540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15541$as_echo "$ac_try_echo"; } >&5
15542  (eval "$ac_try") 2>&5
15543  ac_status=$?
15544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545  test $ac_status = 0; };
15546then
15547  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15548  if test "x$CC" != xcc; then
15549    # Test first that cc exists at all.
15550    if { ac_try='cc -c conftest.$ac_ext >&5'
15551  { { case "(($ac_try" in
15552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553  *) ac_try_echo=$ac_try;;
15554esac
15555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15556$as_echo "$ac_try_echo"; } >&5
15557  (eval "$ac_try") 2>&5
15558  ac_status=$?
15559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15560  test $ac_status = 0; }; }; then
15561      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15562      rm -f conftest2.*
15563      if { { case "(($ac_try" in
15564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565  *) ac_try_echo=$ac_try;;
15566esac
15567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15568$as_echo "$ac_try_echo"; } >&5
15569  (eval "$ac_try") 2>&5
15570  ac_status=$?
15571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572  test $ac_status = 0; } &&
15573	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575  *) ac_try_echo=$ac_try;;
15576esac
15577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15578$as_echo "$ac_try_echo"; } >&5
15579  (eval "$ac_try") 2>&5
15580  ac_status=$?
15581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15582  test $ac_status = 0; };
15583      then
15584	# cc works too.
15585	:
15586      else
15587	# cc exists but doesn't like -o.
15588	eval ac_cv_prog_cc_${ac_cc}_c_o=no
15589      fi
15590    fi
15591  fi
15592else
15593  eval ac_cv_prog_cc_${ac_cc}_c_o=no
15594fi
15595rm -f core conftest*
15596
15597fi
15598if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15600$as_echo "yes" >&6; }
15601else
15602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603$as_echo "no" >&6; }
15604
15605$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15606
15607fi
15608
15609# FIXME: we rely on the cache variable name because
15610# there is no other way.
15611set dummy $CC
15612am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15613eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15614if test "$am_t" != yes; then
15615   # Losing compiler, so override with the script.
15616   # FIXME: It is wrong to rewrite CC.
15617   # But if we don't then we get into trouble of one sort or another.
15618   # A longer-term fix would be to have automake use am__CC in this case,
15619   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15620   CC="$am_aux_dir/compile $CC"
15621fi
15622
15623
15624
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15626$as_echo_n "checking whether ln -s works... " >&6; }
15627LN_S=$as_ln_s
15628if test "$LN_S" = "ln -s"; then
15629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15630$as_echo "yes" >&6; }
15631else
15632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15633$as_echo "no, using $LN_S" >&6; }
15634fi
15635
15636for ac_prog in flex lex
15637do
15638  # Extract the first word of "$ac_prog", so it can be a program name with args.
15639set dummy $ac_prog; ac_word=$2
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641$as_echo_n "checking for $ac_word... " >&6; }
15642if test "${ac_cv_prog_LEX+set}" = set; then :
15643  $as_echo_n "(cached) " >&6
15644else
15645  if test -n "$LEX"; then
15646  ac_cv_prog_LEX="$LEX" # Let the user override the test.
15647else
15648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649for as_dir in $PATH
15650do
15651  IFS=$as_save_IFS
15652  test -z "$as_dir" && as_dir=.
15653    for ac_exec_ext in '' $ac_executable_extensions; do
15654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15655    ac_cv_prog_LEX="$ac_prog"
15656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15657    break 2
15658  fi
15659done
15660  done
15661IFS=$as_save_IFS
15662
15663fi
15664fi
15665LEX=$ac_cv_prog_LEX
15666if test -n "$LEX"; then
15667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15668$as_echo "$LEX" >&6; }
15669else
15670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671$as_echo "no" >&6; }
15672fi
15673
15674
15675  test -n "$LEX" && break
15676done
15677test -n "$LEX" || LEX=":"
15678
15679if test "x$LEX" != "x:"; then
15680  cat >conftest.l <<_ACEOF
15681%%
15682a { ECHO; }
15683b { REJECT; }
15684c { yymore (); }
15685d { yyless (1); }
15686e { yyless (input () != 0); }
15687f { unput (yytext[0]); }
15688. { BEGIN INITIAL; }
15689%%
15690#ifdef YYTEXT_POINTER
15691extern char *yytext;
15692#endif
15693int
15694main (void)
15695{
15696  return ! yylex () + ! yywrap ();
15697}
15698_ACEOF
15699{ { ac_try="$LEX conftest.l"
15700case "(($ac_try" in
15701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702  *) ac_try_echo=$ac_try;;
15703esac
15704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15705$as_echo "$ac_try_echo"; } >&5
15706  (eval "$LEX conftest.l") 2>&5
15707  ac_status=$?
15708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15709  test $ac_status = 0; }
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
15711$as_echo_n "checking lex output file root... " >&6; }
15712if test "${ac_cv_prog_lex_root+set}" = set; then :
15713  $as_echo_n "(cached) " >&6
15714else
15715
15716if test -f lex.yy.c; then
15717  ac_cv_prog_lex_root=lex.yy
15718elif test -f lexyy.c; then
15719  ac_cv_prog_lex_root=lexyy
15720else
15721  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
15722fi
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
15725$as_echo "$ac_cv_prog_lex_root" >&6; }
15726LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15727
15728if test -z "${LEXLIB+set}"; then
15729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
15730$as_echo_n "checking lex library... " >&6; }
15731if test "${ac_cv_lib_lex+set}" = set; then :
15732  $as_echo_n "(cached) " >&6
15733else
15734
15735    ac_save_LIBS=$LIBS
15736    ac_cv_lib_lex='none needed'
15737    for ac_lib in '' -lfl -ll; do
15738      LIBS="$ac_lib $ac_save_LIBS"
15739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h.  */
15741`cat $LEX_OUTPUT_ROOT.c`
15742_ACEOF
15743if ac_fn_c_try_link "$LINENO"; then :
15744  ac_cv_lib_lex=$ac_lib
15745fi
15746rm -f core conftest.err conftest.$ac_objext \
15747    conftest$ac_exeext conftest.$ac_ext
15748      test "$ac_cv_lib_lex" != 'none needed' && break
15749    done
15750    LIBS=$ac_save_LIBS
15751
15752fi
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15754$as_echo "$ac_cv_lib_lex" >&6; }
15755  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
15756fi
15757
15758
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15760$as_echo_n "checking whether yytext is a pointer... " >&6; }
15761if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
15762  $as_echo_n "(cached) " >&6
15763else
15764  # POSIX says lex can declare yytext either as a pointer or an array; the
15765# default is implementation-dependent.  Figure out which it is, since
15766# not all implementations provide the %pointer and %array declarations.
15767ac_cv_prog_lex_yytext_pointer=no
15768ac_save_LIBS=$LIBS
15769LIBS="$LEXLIB $ac_save_LIBS"
15770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h.  */
15772#define YYTEXT_POINTER 1
15773`cat $LEX_OUTPUT_ROOT.c`
15774_ACEOF
15775if ac_fn_c_try_link "$LINENO"; then :
15776  ac_cv_prog_lex_yytext_pointer=yes
15777fi
15778rm -f core conftest.err conftest.$ac_objext \
15779    conftest$ac_exeext conftest.$ac_ext
15780LIBS=$ac_save_LIBS
15781
15782fi
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15784$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
15785if test $ac_cv_prog_lex_yytext_pointer = yes; then
15786
15787$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
15788
15789fi
15790rm -f conftest.l $LEX_OUTPUT_ROOT.c
15791
15792fi
15793if test "$LEX" = :; then
15794  LEX=${am_missing_run}flex
15795fi
15796for ac_prog in 'bison -y' byacc
15797do
15798  # Extract the first word of "$ac_prog", so it can be a program name with args.
15799set dummy $ac_prog; ac_word=$2
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15801$as_echo_n "checking for $ac_word... " >&6; }
15802if test "${ac_cv_prog_YACC+set}" = set; then :
15803  $as_echo_n "(cached) " >&6
15804else
15805  if test -n "$YACC"; then
15806  ac_cv_prog_YACC="$YACC" # Let the user override the test.
15807else
15808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809for as_dir in $PATH
15810do
15811  IFS=$as_save_IFS
15812  test -z "$as_dir" && as_dir=.
15813    for ac_exec_ext in '' $ac_executable_extensions; do
15814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15815    ac_cv_prog_YACC="$ac_prog"
15816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15817    break 2
15818  fi
15819done
15820  done
15821IFS=$as_save_IFS
15822
15823fi
15824fi
15825YACC=$ac_cv_prog_YACC
15826if test -n "$YACC"; then
15827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15828$as_echo "$YACC" >&6; }
15829else
15830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831$as_echo "no" >&6; }
15832fi
15833
15834
15835  test -n "$YACC" && break
15836done
15837test -n "$YACC" || YACC="yacc"
15838
15839# Extract the first word of "test", so it can be a program name with args.
15840set dummy test; ac_word=$2
15841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15842$as_echo_n "checking for $ac_word... " >&6; }
15843if test "${ac_cv_path_TEST+set}" = set; then :
15844  $as_echo_n "(cached) " >&6
15845else
15846  case $TEST in
15847  [\\/]* | ?:[\\/]*)
15848  ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
15849  ;;
15850  *)
15851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852for as_dir in $PATH
15853do
15854  IFS=$as_save_IFS
15855  test -z "$as_dir" && as_dir=.
15856    for ac_exec_ext in '' $ac_executable_extensions; do
15857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15858    ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
15859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15860    break 2
15861  fi
15862done
15863  done
15864IFS=$as_save_IFS
15865
15866  ;;
15867esac
15868fi
15869TEST=$ac_cv_path_TEST
15870if test -n "$TEST"; then
15871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5
15872$as_echo "$TEST" >&6; }
15873else
15874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875$as_echo "no" >&6; }
15876fi
15877
15878
15879# Extract the first word of "true", so it can be a program name with args.
15880set dummy true; ac_word=$2
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882$as_echo_n "checking for $ac_word... " >&6; }
15883if test "${ac_cv_path_TRUE+set}" = set; then :
15884  $as_echo_n "(cached) " >&6
15885else
15886  case $TRUE in
15887  [\\/]* | ?:[\\/]*)
15888  ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
15889  ;;
15890  *)
15891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15892for as_dir in $PATH
15893do
15894  IFS=$as_save_IFS
15895  test -z "$as_dir" && as_dir=.
15896    for ac_exec_ext in '' $ac_executable_extensions; do
15897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15898    ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
15899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15900    break 2
15901  fi
15902done
15903  done
15904IFS=$as_save_IFS
15905
15906  ;;
15907esac
15908fi
15909TRUE=$ac_cv_path_TRUE
15910if test -n "$TRUE"; then
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
15912$as_echo "$TRUE" >&6; }
15913else
15914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915$as_echo "no" >&6; }
15916fi
15917
15918
15919# Extract the first word of "find", so it can be a program name with args.
15920set dummy find; ac_word=$2
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15922$as_echo_n "checking for $ac_word... " >&6; }
15923if test "${ac_cv_path_FIND+set}" = set; then :
15924  $as_echo_n "(cached) " >&6
15925else
15926  case $FIND in
15927  [\\/]* | ?:[\\/]*)
15928  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
15929  ;;
15930  *)
15931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932for as_dir in $PATH
15933do
15934  IFS=$as_save_IFS
15935  test -z "$as_dir" && as_dir=.
15936    for ac_exec_ext in '' $ac_executable_extensions; do
15937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15938    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
15939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15940    break 2
15941  fi
15942done
15943  done
15944IFS=$as_save_IFS
15945
15946  ;;
15947esac
15948fi
15949FIND=$ac_cv_path_FIND
15950if test -n "$FIND"; then
15951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
15952$as_echo "$FIND" >&6; }
15953else
15954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955$as_echo "no" >&6; }
15956fi
15957
15958
15959# Extract the first word of "perl", so it can be a program name with args.
15960set dummy perl; ac_word=$2
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15962$as_echo_n "checking for $ac_word... " >&6; }
15963if test "${ac_cv_path_PERL+set}" = set; then :
15964  $as_echo_n "(cached) " >&6
15965else
15966  case $PERL in
15967  [\\/]* | ?:[\\/]*)
15968  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15969  ;;
15970  *)
15971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972for as_dir in $PATH
15973do
15974  IFS=$as_save_IFS
15975  test -z "$as_dir" && as_dir=.
15976    for ac_exec_ext in '' $ac_executable_extensions; do
15977  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15978    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15980    break 2
15981  fi
15982done
15983  done
15984IFS=$as_save_IFS
15985
15986  ;;
15987esac
15988fi
15989PERL=$ac_cv_path_PERL
15990if test -n "$PERL"; then
15991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15992$as_echo "$PERL" >&6; }
15993else
15994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995$as_echo "no" >&6; }
15996fi
15997
15998
15999# Extract the first word of "glib-mkenums", so it can be a program name with args.
16000set dummy glib-mkenums; ac_word=$2
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16002$as_echo_n "checking for $ac_word... " >&6; }
16003if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  case $GLIB_MKENUMS in
16007  [\\/]* | ?:[\\/]*)
16008  ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
16009  ;;
16010  *)
16011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012for as_dir in $PATH
16013do
16014  IFS=$as_save_IFS
16015  test -z "$as_dir" && as_dir=.
16016    for ac_exec_ext in '' $ac_executable_extensions; do
16017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16018    ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
16019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020    break 2
16021  fi
16022done
16023  done
16024IFS=$as_save_IFS
16025
16026  ;;
16027esac
16028fi
16029GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
16030if test -n "$GLIB_MKENUMS"; then
16031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
16032$as_echo "$GLIB_MKENUMS" >&6; }
16033else
16034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035$as_echo "no" >&6; }
16036fi
16037
16038
16039# Extract the first word of "convert", so it can be a program name with args.
16040set dummy convert; ac_word=$2
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16042$as_echo_n "checking for $ac_word... " >&6; }
16043if test "${ac_cv_path_CONVERT+set}" = set; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046  case $CONVERT in
16047  [\\/]* | ?:[\\/]*)
16048  ac_cv_path_CONVERT="$CONVERT" # Let the user override the test with a path.
16049  ;;
16050  *)
16051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052for as_dir in $PATH
16053do
16054  IFS=$as_save_IFS
16055  test -z "$as_dir" && as_dir=.
16056    for ac_exec_ext in '' $ac_executable_extensions; do
16057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16058    ac_cv_path_CONVERT="$as_dir/$ac_word$ac_exec_ext"
16059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060    break 2
16061  fi
16062done
16063  done
16064IFS=$as_save_IFS
16065
16066  ;;
16067esac
16068fi
16069CONVERT=$ac_cv_path_CONVERT
16070if test -n "$CONVERT"; then
16071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
16072$as_echo "$CONVERT" >&6; }
16073else
16074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16075$as_echo "no" >&6; }
16076fi
16077
16078
16079if test x${USE_MAINTAINER_MODE} = xyes ; then
16080  if test x${CONVERT} = x ; then
16081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5
16082$as_echo "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;}
16083  fi
16084fi
16085# Extract the first word of "texi2html", so it can be a program name with args.
16086set dummy texi2html; ac_word=$2
16087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16088$as_echo_n "checking for $ac_word... " >&6; }
16089if test "${ac_cv_path_TEXI2HTML+set}" = set; then :
16090  $as_echo_n "(cached) " >&6
16091else
16092  case $TEXI2HTML in
16093  [\\/]* | ?:[\\/]*)
16094  ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
16095  ;;
16096  *)
16097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098for as_dir in $PATH
16099do
16100  IFS=$as_save_IFS
16101  test -z "$as_dir" && as_dir=.
16102    for ac_exec_ext in '' $ac_executable_extensions; do
16103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16104    ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext"
16105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16106    break 2
16107  fi
16108done
16109  done
16110IFS=$as_save_IFS
16111
16112  ;;
16113esac
16114fi
16115TEXI2HTML=$ac_cv_path_TEXI2HTML
16116if test -n "$TEXI2HTML"; then
16117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
16118$as_echo "$TEXI2HTML" >&6; }
16119else
16120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121$as_echo "no" >&6; }
16122fi
16123
16124
16125if test x${USE_MAINTAINER_MODE} = xyes ; then
16126  if test x${TEXI2HTML} = x ; then
16127    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML documentation cannot be regenerated!" >&5
16128$as_echo "$as_me: WARNING: HTML documentation cannot be regenerated!" >&2;}
16129  fi
16130fi
16131# Extract the first word of "dvips", so it can be a program name with args.
16132set dummy dvips; ac_word=$2
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16134$as_echo_n "checking for $ac_word... " >&6; }
16135if test "${ac_cv_path_DVIPS+set}" = set; then :
16136  $as_echo_n "(cached) " >&6
16137else
16138  case $DVIPS in
16139  [\\/]* | ?:[\\/]*)
16140  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
16141  ;;
16142  *)
16143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144for as_dir in $PATH
16145do
16146  IFS=$as_save_IFS
16147  test -z "$as_dir" && as_dir=.
16148    for ac_exec_ext in '' $ac_executable_extensions; do
16149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16150    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
16151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16152    break 2
16153  fi
16154done
16155  done
16156IFS=$as_save_IFS
16157
16158  ;;
16159esac
16160fi
16161DVIPS=$ac_cv_path_DVIPS
16162if test -n "$DVIPS"; then
16163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
16164$as_echo "$DVIPS" >&6; }
16165else
16166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167$as_echo "no" >&6; }
16168fi
16169
16170
16171if test x${USE_MAINTAINER_MODE} = xyes ; then
16172  if test x${DVIPS} = x ; then
16173    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript documentation cannot be regenerated!" >&5
16174$as_echo "$as_me: WARNING: PostScript documentation cannot be regenerated!" >&2;}
16175  fi
16176fi
16177# Extract the first word of "db2pdf", so it can be a program name with args.
16178set dummy db2pdf; ac_word=$2
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16180$as_echo_n "checking for $ac_word... " >&6; }
16181if test "${ac_cv_path_DB2PDF+set}" = set; then :
16182  $as_echo_n "(cached) " >&6
16183else
16184  case $DB2PDF in
16185  [\\/]* | ?:[\\/]*)
16186  ac_cv_path_DB2PDF="$DB2PDF" # Let the user override the test with a path.
16187  ;;
16188  *)
16189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16190for as_dir in $PATH
16191do
16192  IFS=$as_save_IFS
16193  test -z "$as_dir" && as_dir=.
16194    for ac_exec_ext in '' $ac_executable_extensions; do
16195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16196    ac_cv_path_DB2PDF="$as_dir/$ac_word$ac_exec_ext"
16197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16198    break 2
16199  fi
16200done
16201  done
16202IFS=$as_save_IFS
16203
16204  ;;
16205esac
16206fi
16207DB2PDF=$ac_cv_path_DB2PDF
16208if test -n "$DB2PDF"; then
16209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PDF" >&5
16210$as_echo "$DB2PDF" >&6; }
16211else
16212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213$as_echo "no" >&6; }
16214fi
16215
16216
16217if test x${USE_MAINTAINER_MODE} = xyes ; then
16218  if test x${DB2PDF} = x ; then
16219    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF developer's guide cannot be regenerated!" >&5
16220$as_echo "$as_me: WARNING: PDF developer's guide cannot be regenerated!" >&2;}
16221  fi
16222fi
16223for ac_prog in dvipdf dvipdfm
16224do
16225  # Extract the first word of "$ac_prog", so it can be a program name with args.
16226set dummy $ac_prog; ac_word=$2
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228$as_echo_n "checking for $ac_word... " >&6; }
16229if test "${ac_cv_path_DVIPDF+set}" = set; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  case $DVIPDF in
16233  [\\/]* | ?:[\\/]*)
16234  ac_cv_path_DVIPDF="$DVIPDF" # Let the user override the test with a path.
16235  ;;
16236  *)
16237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238for as_dir in $PATH
16239do
16240  IFS=$as_save_IFS
16241  test -z "$as_dir" && as_dir=.
16242    for ac_exec_ext in '' $ac_executable_extensions; do
16243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16244    ac_cv_path_DVIPDF="$as_dir/$ac_word$ac_exec_ext"
16245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16246    break 2
16247  fi
16248done
16249  done
16250IFS=$as_save_IFS
16251
16252  ;;
16253esac
16254fi
16255DVIPDF=$ac_cv_path_DVIPDF
16256if test -n "$DVIPDF"; then
16257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPDF" >&5
16258$as_echo "$DVIPDF" >&6; }
16259else
16260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261$as_echo "no" >&6; }
16262fi
16263
16264
16265  test -n "$DVIPDF" && break
16266done
16267
16268if test x${USE_MAINTAINER_MODE} = xyes ; then
16269  if test x${DVIPDF} = x ; then
16270    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF documentation cannot be regenerated!" >&5
16271$as_echo "$as_me: WARNING: PDF documentation cannot be regenerated!" >&2;}
16272  fi
16273fi
16274# Extract the first word of "db2ps", so it can be a program name with args.
16275set dummy db2ps; ac_word=$2
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16277$as_echo_n "checking for $ac_word... " >&6; }
16278if test "${ac_cv_path_DB2PS+set}" = set; then :
16279  $as_echo_n "(cached) " >&6
16280else
16281  case $DB2PS in
16282  [\\/]* | ?:[\\/]*)
16283  ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
16284  ;;
16285  *)
16286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16287for as_dir in $PATH
16288do
16289  IFS=$as_save_IFS
16290  test -z "$as_dir" && as_dir=.
16291    for ac_exec_ext in '' $ac_executable_extensions; do
16292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16293    ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext"
16294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16295    break 2
16296  fi
16297done
16298  done
16299IFS=$as_save_IFS
16300
16301  ;;
16302esac
16303fi
16304DB2PS=$ac_cv_path_DB2PS
16305if test -n "$DB2PS"; then
16306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PS" >&5
16307$as_echo "$DB2PS" >&6; }
16308else
16309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310$as_echo "no" >&6; }
16311fi
16312
16313
16314if test x${USE_MAINTAINER_MODE} = xyes ; then
16315  if test x${DB2PS} = x ; then
16316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript developer's guide cannot be regenerated!" >&5
16317$as_echo "$as_me: WARNING: PostScript developer's guide cannot be regenerated!" >&2;}
16318  fi
16319fi
16320# Extract the first word of "db2html", so it can be a program name with args.
16321set dummy db2html; ac_word=$2
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16323$as_echo_n "checking for $ac_word... " >&6; }
16324if test "${ac_cv_path_DB2HTML+set}" = set; then :
16325  $as_echo_n "(cached) " >&6
16326else
16327  case $DB2HTML in
16328  [\\/]* | ?:[\\/]*)
16329  ac_cv_path_DB2HTML="$DB2HTML" # Let the user override the test with a path.
16330  ;;
16331  *)
16332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333for as_dir in $PATH
16334do
16335  IFS=$as_save_IFS
16336  test -z "$as_dir" && as_dir=.
16337    for ac_exec_ext in '' $ac_executable_extensions; do
16338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16339    ac_cv_path_DB2HTML="$as_dir/$ac_word$ac_exec_ext"
16340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16341    break 2
16342  fi
16343done
16344  done
16345IFS=$as_save_IFS
16346
16347  ;;
16348esac
16349fi
16350DB2HTML=$ac_cv_path_DB2HTML
16351if test -n "$DB2HTML"; then
16352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2HTML" >&5
16353$as_echo "$DB2HTML" >&6; }
16354else
16355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356$as_echo "no" >&6; }
16357fi
16358
16359
16360if test x${USE_MAINTAINER_MODE} = xyes ; then
16361  if test x${DB2HTML} = x ; then
16362    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5
16363$as_echo "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;}
16364  fi
16365fi
16366# Extract the first word of "doxygen", so it can be a program name with args.
16367set dummy doxygen; ac_word=$2
16368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16369$as_echo_n "checking for $ac_word... " >&6; }
16370if test "${ac_cv_path_DOXYGEN+set}" = set; then :
16371  $as_echo_n "(cached) " >&6
16372else
16373  case $DOXYGEN in
16374  [\\/]* | ?:[\\/]*)
16375  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16376  ;;
16377  *)
16378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16379for as_dir in $PATH
16380do
16381  IFS=$as_save_IFS
16382  test -z "$as_dir" && as_dir=.
16383    for ac_exec_ext in '' $ac_executable_extensions; do
16384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16385    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16387    break 2
16388  fi
16389done
16390  done
16391IFS=$as_save_IFS
16392
16393  ;;
16394esac
16395fi
16396DOXYGEN=$ac_cv_path_DOXYGEN
16397if test -n "$DOXYGEN"; then
16398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16399$as_echo "$DOXYGEN" >&6; }
16400else
16401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402$as_echo "no" >&6; }
16403fi
16404
16405
16406if test x${USE_MAINTAINER_MODE} = xyes ; then
16407  if test x${DOXYGEN} = x ; then
16408    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTML developer's guide cannot be regenerated!" >&5
16409$as_echo "$as_me: WARNING: HTML developer's guide cannot be regenerated!" >&2;}
16410  fi
16411fi
16412
16413if test x${BUILD_CUPS} = xyes; then
16414  # Extract the first word of "dialog", so it can be a program name with args.
16415set dummy dialog; ac_word=$2
16416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16417$as_echo_n "checking for $ac_word... " >&6; }
16418if test "${ac_cv_path_DIALOG+set}" = set; then :
16419  $as_echo_n "(cached) " >&6
16420else
16421  case $DIALOG in
16422  [\\/]* | ?:[\\/]*)
16423  ac_cv_path_DIALOG="$DIALOG" # Let the user override the test with a path.
16424  ;;
16425  *)
16426  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16427for as_dir in $PATH
16428do
16429  IFS=$as_save_IFS
16430  test -z "$as_dir" && as_dir=.
16431    for ac_exec_ext in '' $ac_executable_extensions; do
16432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16433    ac_cv_path_DIALOG="$as_dir/$ac_word$ac_exec_ext"
16434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16435    break 2
16436  fi
16437done
16438  done
16439IFS=$as_save_IFS
16440
16441  ;;
16442esac
16443fi
16444DIALOG=$ac_cv_path_DIALOG
16445if test -n "$DIALOG"; then
16446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIALOG" >&5
16447$as_echo "$DIALOG" >&6; }
16448else
16449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450$as_echo "no" >&6; }
16451fi
16452
16453
16454fi
16455
16456
16457if test x${BUILD_FOOMATIC} = xyes ; then
16458  PATH_SBIN=$PATH:/usr/sbin:/usr/local/sbin
16459  # Extract the first word of "foomatic-kitload", so it can be a program name with args.
16460set dummy foomatic-kitload; ac_word=$2
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16462$as_echo_n "checking for $ac_word... " >&6; }
16463if test "${ac_cv_path_FOOMATIC_KITLOAD+set}" = set; then :
16464  $as_echo_n "(cached) " >&6
16465else
16466  case $FOOMATIC_KITLOAD in
16467  [\\/]* | ?:[\\/]*)
16468  ac_cv_path_FOOMATIC_KITLOAD="$FOOMATIC_KITLOAD" # Let the user override the test with a path.
16469  ;;
16470  *)
16471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472for as_dir in $PATH_SBIN
16473do
16474  IFS=$as_save_IFS
16475  test -z "$as_dir" && as_dir=.
16476    for ac_exec_ext in '' $ac_executable_extensions; do
16477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16478    ac_cv_path_FOOMATIC_KITLOAD="$as_dir/$ac_word$ac_exec_ext"
16479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16480    break 2
16481  fi
16482done
16483  done
16484IFS=$as_save_IFS
16485
16486  ;;
16487esac
16488fi
16489FOOMATIC_KITLOAD=$ac_cv_path_FOOMATIC_KITLOAD
16490if test -n "$FOOMATIC_KITLOAD"; then
16491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOOMATIC_KITLOAD" >&5
16492$as_echo "$FOOMATIC_KITLOAD" >&6; }
16493else
16494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16495$as_echo "no" >&6; }
16496fi
16497
16498
16499  if test -z "$FOOMATIC_KITLOAD" ; then
16500    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find foomatic-kitload; attempt to install foomatic will fail" >&5
16501$as_echo "$as_me: WARNING: Cannot find foomatic-kitload; attempt to install foomatic will fail" >&2;}
16502  fi
16503fi
16504
16505if test x${BUILD_GHOSTSCRIPT} = xyes ; then
16506  if test -z "$IJS_CONFIG" ; then
16507    as_fn_error "Cannot find ijs-config; please ensure Ghostscript 6.53 or above is installed" "$LINENO" 5;
16508  fi
16509  IJS_CFLAGS=`$IJS_CONFIG --cflags`
16510  IJS_LIBS=`$IJS_CONFIG --libs`
16511fi
16512
16513GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION}
16514
16515cat >>confdefs.h <<_ACEOF
16516#define GUTENPRINT_RELEASE_VERSION "${GUTENPRINT_RELEASE_VERSION}"
16517_ACEOF
16518
16519
16520
16521if test "x${prefix}" = "xNONE"; then
16522  cat >>confdefs.h <<_ACEOF
16523#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/share/locale"
16524_ACEOF
16525
16526else
16527  cat >>confdefs.h <<_ACEOF
16528#define PACKAGE_LOCALE_DIR "${prefix}/share/locale"
16529_ACEOF
16530
16531fi
16532
16533
16534if test "x${datadir}" = 'x${prefix}/share'; then
16535  if test "x${prefix}" = "xNONE"; then
16536    PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
16537  else
16538    PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
16539  fi
16540elif test "x${datadir}" = 'x${datarootdir}'; then
16541  if test "x${datarootdir}" = 'x${prefix}/share'; then
16542    if test "x${prefix}" = "xNONE"; then
16543      PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
16544    else
16545      PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
16546    fi
16547  else
16548    PACKAGE_DATA_DIR="${datarootdir}/${PACKAGE}"
16549  fi
16550else
16551  PACKAGE_DATA_DIR="${datadir}/${PACKAGE}"
16552fi
16553
16554cat >>confdefs.h <<_ACEOF
16555#define PACKAGE_DATA_DIR "${PACKAGE_DATA_DIR}"
16556_ACEOF
16557
16558
16559
16560if test "x${libdir}" = 'x${exec_prefix}/lib'; then
16561  if test "x${exec_prefix}" = "xNONE"; then
16562    if test "x${prefix}" = "xNONE"; then
16563      PACKAGE_LIB_DIR="${ac_default_prefix}/lib/${PACKAGE}"
16564    else
16565      PACKAGE_LIB_DIR="${prefix}/lib/${PACKAGE}"
16566    fi
16567  else
16568    PACKAGE_LIB_DIR="${exec_prefix}/lib/${PACKAGE}"
16569  fi
16570else
16571  PACKAGE_LIB_DIR="${libdir}/${PACKAGE}"
16572fi
16573
16574cat >>confdefs.h <<_ACEOF
16575#define PACKAGE_LIB_DIR "${PACKAGE_LIB_DIR}"
16576_ACEOF
16577
16578
16579
16580PKGXMLDATADIR="${PACKAGE_DATA_DIR}/${GUTENPRINT_RELEASE_VERSION}/xml"
16581cat >>confdefs.h <<_ACEOF
16582#define PKGXMLDATADIR "$PKGXMLDATADIR"
16583_ACEOF
16584
16585
16586
16587PKGMODULEDIR="${PACKAGE_LIB_DIR}/${GUTENPRINT_RELEASE_VERSION}/modules"
16588cat >>confdefs.h <<_ACEOF
16589#define PKGMODULEDIR "$PKGMODULEDIR"
16590_ACEOF
16591
16592
16593if test x$ac_compiler_gnu = "xyes"; then
16594
16595  for stp_ac_arg in -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=131072 ; do
16596
16597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
16598$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
16599  stp_acOLDCFLAGS="${CFLAGS}"
16600  CFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
16601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h.  */
16603
16604int
16605main ()
16606{
16607
16608  ;
16609  return 0;
16610}
16611_ACEOF
16612if ac_fn_c_try_compile "$LINENO"; then :
16613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16614$as_echo "yes" >&6; };
16615        stp_newCFLAGS="$CFLAGS"
16616else
16617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618$as_echo "no" >&6; };
16619	stp_newCFLAGS="$stp_acOLDCFLAGS"
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622  CFLAGS="$stp_acOLDCFLAGS"
16623  GNUCFLAGS="${stp_newCFLAGS}"
16624
16625  done
16626
16627  if test x${USE_MAINTAINER_MODE} = xyes ; then
16628
16629  for stp_ac_arg in -pedantic -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls ; do
16630
16631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
16632$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
16633  stp_acOLDCFLAGS="${CFLAGS}"
16634  CFLAGS="${GNUCFLAGS} ${stp_ac_arg}"
16635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h.  */
16637
16638int
16639main ()
16640{
16641
16642  ;
16643  return 0;
16644}
16645_ACEOF
16646if ac_fn_c_try_compile "$LINENO"; then :
16647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16648$as_echo "yes" >&6; };
16649        stp_newCFLAGS="$CFLAGS"
16650else
16651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652$as_echo "no" >&6; };
16653	stp_newCFLAGS="$stp_acOLDCFLAGS"
16654fi
16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656  CFLAGS="$stp_acOLDCFLAGS"
16657  GNUCFLAGS="${stp_newCFLAGS}"
16658
16659  done
16660
16661  fi
16662  if test x$ENABLE_DEBUG = xyes ; then
16663
16664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5
16665$as_echo_n "checking if ${CC} supports -g... " >&6; }
16666  stp_acOLDCFLAGS="${CFLAGS}"
16667  CFLAGS="${CFLAGS} -g"
16668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669/* end confdefs.h.  */
16670
16671int
16672main ()
16673{
16674
16675  ;
16676  return 0;
16677}
16678_ACEOF
16679if ac_fn_c_try_compile "$LINENO"; then :
16680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681$as_echo "yes" >&6; };
16682        stp_newCFLAGS="$CFLAGS"
16683else
16684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685$as_echo "no" >&6; };
16686	stp_newCFLAGS="$stp_acOLDCFLAGS"
16687fi
16688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689  CFLAGS="$stp_acOLDCFLAGS"
16690  CFLAGS="${stp_newCFLAGS}"
16691
16692  else
16693
16694  for stp_ac_arg in -O6 -O3 -O2 -O1 -O ; do
16695    stp_ac_save_CFLAGS="${CFLAGS}"
16696
16697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
16698$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
16699  stp_acOLDCFLAGS="${CFLAGS}"
16700  CFLAGS="${CFLAGS} ${stp_ac_arg}"
16701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702/* end confdefs.h.  */
16703
16704int
16705main ()
16706{
16707
16708  ;
16709  return 0;
16710}
16711_ACEOF
16712if ac_fn_c_try_compile "$LINENO"; then :
16713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714$as_echo "yes" >&6; };
16715        stp_newCFLAGS="$CFLAGS"
16716else
16717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718$as_echo "no" >&6; };
16719	stp_newCFLAGS="$stp_acOLDCFLAGS"
16720fi
16721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16722  CFLAGS="$stp_acOLDCFLAGS"
16723  CFLAGS="${stp_newCFLAGS}"
16724
16725    test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break
16726  done
16727
16728  fi
16729else
16730  if test x$ENABLE_DEBUG = xyes ; then
16731
16732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -g" >&5
16733$as_echo_n "checking if ${CC} supports -g... " >&6; }
16734  stp_acOLDCFLAGS="${CFLAGS}"
16735  CFLAGS="${CFLAGS} -g"
16736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737/* end confdefs.h.  */
16738
16739int
16740main ()
16741{
16742
16743  ;
16744  return 0;
16745}
16746_ACEOF
16747if ac_fn_c_try_compile "$LINENO"; then :
16748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16749$as_echo "yes" >&6; };
16750        stp_newCFLAGS="$CFLAGS"
16751else
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16753$as_echo "no" >&6; };
16754	stp_newCFLAGS="$stp_acOLDCFLAGS"
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757  CFLAGS="$stp_acOLDCFLAGS"
16758  CFLAGS="${stp_newCFLAGS}"
16759
16760  else
16761
16762  for stp_ac_arg in -O ; do
16763    stp_ac_save_CFLAGS="${CFLAGS}"
16764
16765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${stp_ac_arg}" >&5
16766$as_echo_n "checking if ${CC} supports ${stp_ac_arg}... " >&6; }
16767  stp_acOLDCFLAGS="${CFLAGS}"
16768  CFLAGS="${CFLAGS} ${stp_ac_arg}"
16769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770/* end confdefs.h.  */
16771
16772int
16773main ()
16774{
16775
16776  ;
16777  return 0;
16778}
16779_ACEOF
16780if ac_fn_c_try_compile "$LINENO"; then :
16781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782$as_echo "yes" >&6; };
16783        stp_newCFLAGS="$CFLAGS"
16784else
16785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16786$as_echo "no" >&6; };
16787	stp_newCFLAGS="$stp_acOLDCFLAGS"
16788fi
16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790  CFLAGS="$stp_acOLDCFLAGS"
16791  CFLAGS="${stp_newCFLAGS}"
16792
16793    test "${stp_ac_save_CFLAGS}" != "${CFLAGS}" && break
16794  done
16795
16796  fi
16797fi
16798if test x$ENABLE_PROFILE = xyes ; then
16799
16800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -pg" >&5
16801$as_echo_n "checking if ${CC} supports -pg... " >&6; }
16802  stp_acOLDCFLAGS="${CFLAGS}"
16803  CFLAGS="${CFLAGS} -pg"
16804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805/* end confdefs.h.  */
16806
16807int
16808main ()
16809{
16810
16811  ;
16812  return 0;
16813}
16814_ACEOF
16815if ac_fn_c_try_compile "$LINENO"; then :
16816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16817$as_echo "yes" >&6; };
16818        stp_newCFLAGS="$CFLAGS"
16819else
16820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821$as_echo "no" >&6; };
16822	stp_newCFLAGS="$stp_acOLDCFLAGS"
16823fi
16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825  CFLAGS="$stp_acOLDCFLAGS"
16826  CFLAGS="${stp_newCFLAGS}"
16827
16828fi
16829
16830
16831
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__ syntax" >&5
16833$as_echo_n "checking if $CC supports __attribute__ syntax... " >&6; }
16834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h.  */
16836typedef struct __attribute__((__packed__)) {
16837   unsigned char foo;
16838   char bar;
16839   long baz;
16840} test_struct_t;
16841int
16842main ()
16843{
16844test_struct_t mystruct;
16845  ;
16846  return 0;
16847}
16848_ACEOF
16849if ac_fn_c_try_compile "$LINENO"; then :
16850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16851$as_echo "yes" >&6; }
16852                   $as_echo "#define HAVE_GCC_ATTRIBUTES 1" >>confdefs.h
16853
16854else
16855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16856$as_echo "no" >&6; }
16857fi
16858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16859
16860
16861
16862
16863if test "$USE_READLINE" = yes ; then
16864  if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
16865    unset ac_cv_lib_readline_readline
16866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16867$as_echo_n "checking for readline in -lreadline... " >&6; }
16868if test "${ac_cv_lib_readline_readline+set}" = set; then :
16869  $as_echo_n "(cached) " >&6
16870else
16871  ac_check_lib_save_LIBS=$LIBS
16872LIBS="-lreadline -lncurses $LIBS"
16873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874/* end confdefs.h.  */
16875
16876/* Override any GCC internal prototype to avoid an error.
16877   Use char because int might match the return type of a GCC
16878   builtin and then its argument prototype would still apply.  */
16879#ifdef __cplusplus
16880extern "C"
16881#endif
16882char readline ();
16883int
16884main ()
16885{
16886return readline ();
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"; then :
16892  ac_cv_lib_readline_readline=yes
16893else
16894  ac_cv_lib_readline_readline=no
16895fi
16896rm -f core conftest.err conftest.$ac_objext \
16897    conftest$ac_exeext conftest.$ac_ext
16898LIBS=$ac_check_lib_save_LIBS
16899fi
16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16901$as_echo "$ac_cv_lib_readline_readline" >&6; }
16902if test "x$ac_cv_lib_readline_readline" = x""yes; then :
16903  HAVE_LIBREADLINE=true
16904else
16905  HAVE_LIBREADLINE=false
16906fi
16907
16908    if test x${HAVE_LIBREADLINE} = xtrue ; then
16909      echo "  Using -lreadline -lncurses"
16910      EXTRA_LIBREADLINE_DEPS=-lncurses
16911      $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16912
16913    else
16914      unset ac_cv_lib_readline_readline
16915      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16916$as_echo_n "checking for readline in -lreadline... " >&6; }
16917if test "${ac_cv_lib_readline_readline+set}" = set; then :
16918  $as_echo_n "(cached) " >&6
16919else
16920  ac_check_lib_save_LIBS=$LIBS
16921LIBS="-lreadline -lcurses $LIBS"
16922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h.  */
16924
16925/* Override any GCC internal prototype to avoid an error.
16926   Use char because int might match the return type of a GCC
16927   builtin and then its argument prototype would still apply.  */
16928#ifdef __cplusplus
16929extern "C"
16930#endif
16931char readline ();
16932int
16933main ()
16934{
16935return readline ();
16936  ;
16937  return 0;
16938}
16939_ACEOF
16940if ac_fn_c_try_link "$LINENO"; then :
16941  ac_cv_lib_readline_readline=yes
16942else
16943  ac_cv_lib_readline_readline=no
16944fi
16945rm -f core conftest.err conftest.$ac_objext \
16946    conftest$ac_exeext conftest.$ac_ext
16947LIBS=$ac_check_lib_save_LIBS
16948fi
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16950$as_echo "$ac_cv_lib_readline_readline" >&6; }
16951if test "x$ac_cv_lib_readline_readline" = x""yes; then :
16952  HAVE_LIBREADLINE=true
16953else
16954  HAVE_LIBREADLINE=false
16955fi
16956
16957      if test x${HAVE_LIBREADLINE} = xtrue ; then
16958	echo "  Using -lreadline -lcurses"
16959	EXTRA_LIBREADLINE_DEPS=-lcurses
16960	$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16961
16962      else
16963	unset ac_cv_lib_readline_readline
16964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
16965$as_echo_n "checking for readline in -lreadline... " >&6; }
16966if test "${ac_cv_lib_readline_readline+set}" = set; then :
16967  $as_echo_n "(cached) " >&6
16968else
16969  ac_check_lib_save_LIBS=$LIBS
16970LIBS="-lreadline -ltermcap $LIBS"
16971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972/* end confdefs.h.  */
16973
16974/* Override any GCC internal prototype to avoid an error.
16975   Use char because int might match the return type of a GCC
16976   builtin and then its argument prototype would still apply.  */
16977#ifdef __cplusplus
16978extern "C"
16979#endif
16980char readline ();
16981int
16982main ()
16983{
16984return readline ();
16985  ;
16986  return 0;
16987}
16988_ACEOF
16989if ac_fn_c_try_link "$LINENO"; then :
16990  ac_cv_lib_readline_readline=yes
16991else
16992  ac_cv_lib_readline_readline=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext \
16995    conftest$ac_exeext conftest.$ac_ext
16996LIBS=$ac_check_lib_save_LIBS
16997fi
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
16999$as_echo "$ac_cv_lib_readline_readline" >&6; }
17000if test "x$ac_cv_lib_readline_readline" = x""yes; then :
17001  HAVE_LIBREADLINE=true
17002else
17003  HAVE_LIBREADLINE=false
17004fi
17005
17006	if test x${HAVE_LIBREADLINE} = xtrue ; then
17007	  echo "  Using -lreadline -ltermcap"
17008	  EXTRA_LIBREADLINE_DEPS=-ltermcap
17009	  $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17010
17011	else
17012	  unset ac_cv_lib_readline_readline
17013	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17014$as_echo_n "checking for readline in -lreadline... " >&6; }
17015if test "${ac_cv_lib_readline_readline+set}" = set; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018  ac_check_lib_save_LIBS=$LIBS
17019LIBS="-lreadline  $LIBS"
17020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021/* end confdefs.h.  */
17022
17023/* Override any GCC internal prototype to avoid an error.
17024   Use char because int might match the return type of a GCC
17025   builtin and then its argument prototype would still apply.  */
17026#ifdef __cplusplus
17027extern "C"
17028#endif
17029char readline ();
17030int
17031main ()
17032{
17033return readline ();
17034  ;
17035  return 0;
17036}
17037_ACEOF
17038if ac_fn_c_try_link "$LINENO"; then :
17039  ac_cv_lib_readline_readline=yes
17040else
17041  ac_cv_lib_readline_readline=no
17042fi
17043rm -f core conftest.err conftest.$ac_objext \
17044    conftest$ac_exeext conftest.$ac_ext
17045LIBS=$ac_check_lib_save_LIBS
17046fi
17047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17048$as_echo "$ac_cv_lib_readline_readline" >&6; }
17049if test "x$ac_cv_lib_readline_readline" = x""yes; then :
17050  HAVE_LIBREADLINE=true
17051else
17052  HAVE_LIBREADLINE=false
17053fi
17054
17055	  if test x${HAVE_LIBREADLINE} = xtrue ; then
17056	    $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17057
17058	  else
17059	    $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h
17060
17061	  fi
17062	fi
17063      fi
17064    fi
17065  else
17066    unset ac_cv_lib_readline_readline
17067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
17068$as_echo_n "checking for readline in -lreadline... " >&6; }
17069if test "${ac_cv_lib_readline_readline+set}" = set; then :
17070  $as_echo_n "(cached) " >&6
17071else
17072  ac_check_lib_save_LIBS=$LIBS
17073LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
17074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076
17077/* Override any GCC internal prototype to avoid an error.
17078   Use char because int might match the return type of a GCC
17079   builtin and then its argument prototype would still apply.  */
17080#ifdef __cplusplus
17081extern "C"
17082#endif
17083char readline ();
17084int
17085main ()
17086{
17087return readline ();
17088  ;
17089  return 0;
17090}
17091_ACEOF
17092if ac_fn_c_try_link "$LINENO"; then :
17093  ac_cv_lib_readline_readline=yes
17094else
17095  ac_cv_lib_readline_readline=no
17096fi
17097rm -f core conftest.err conftest.$ac_objext \
17098    conftest$ac_exeext conftest.$ac_ext
17099LIBS=$ac_check_lib_save_LIBS
17100fi
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
17102$as_echo "$ac_cv_lib_readline_readline" >&6; }
17103if test "x$ac_cv_lib_readline_readline" = x""yes; then :
17104  HAVE_LIBREADLINE=true
17105else
17106  HAVE_LIBREADLINE=false
17107fi
17108
17109    if test x${HAVE_LIBREADLINE} = xtrue ; then
17110      echo "  Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
17111      $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
17112
17113    else
17114      $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h
17115
17116    fi
17117  fi
17118else
17119  HAVE_LIBREADLINE=false
17120  $as_echo "#define HAVE_LIBREADLINE 0" >>confdefs.h
17121
17122fi
17123
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
17125$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
17126if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
17127  $as_echo_n "(cached) " >&6
17128else
17129  ac_check_lib_save_LIBS=$LIBS
17130LIBS="-lltdl  $LIBS"
17131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132/* end confdefs.h.  */
17133
17134/* Override any GCC internal prototype to avoid an error.
17135   Use char because int might match the return type of a GCC
17136   builtin and then its argument prototype would still apply.  */
17137#ifdef __cplusplus
17138extern "C"
17139#endif
17140char lt_dlopen ();
17141int
17142main ()
17143{
17144return lt_dlopen ();
17145  ;
17146  return 0;
17147}
17148_ACEOF
17149if ac_fn_c_try_link "$LINENO"; then :
17150  ac_cv_lib_ltdl_lt_dlopen=yes
17151else
17152  ac_cv_lib_ltdl_lt_dlopen=no
17153fi
17154rm -f core conftest.err conftest.$ac_objext \
17155    conftest$ac_exeext conftest.$ac_ext
17156LIBS=$ac_check_lib_save_LIBS
17157fi
17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
17159$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
17160if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
17161  LTDL_LIBS="-lltdl"
17162fi
17163
17164
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17166$as_echo_n "checking for dlopen in -ldl... " >&6; }
17167if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17168  $as_echo_n "(cached) " >&6
17169else
17170  ac_check_lib_save_LIBS=$LIBS
17171LIBS="-ldl  $LIBS"
17172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h.  */
17174
17175/* Override any GCC internal prototype to avoid an error.
17176   Use char because int might match the return type of a GCC
17177   builtin and then its argument prototype would still apply.  */
17178#ifdef __cplusplus
17179extern "C"
17180#endif
17181char dlopen ();
17182int
17183main ()
17184{
17185return dlopen ();
17186  ;
17187  return 0;
17188}
17189_ACEOF
17190if ac_fn_c_try_link "$LINENO"; then :
17191  ac_cv_lib_dl_dlopen=yes
17192else
17193  ac_cv_lib_dl_dlopen=no
17194fi
17195rm -f core conftest.err conftest.$ac_objext \
17196    conftest$ac_exeext conftest.$ac_ext
17197LIBS=$ac_check_lib_save_LIBS
17198fi
17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17201if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17202  DLOPEN_LIBS="-ldl"
17203fi
17204
17205
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
17207$as_echo_n "checking for pow in -lm... " >&6; }
17208if test "${ac_cv_lib_m_pow+set}" = set; then :
17209  $as_echo_n "(cached) " >&6
17210else
17211  ac_check_lib_save_LIBS=$LIBS
17212LIBS="-lm  $LIBS"
17213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h.  */
17215
17216/* Override any GCC internal prototype to avoid an error.
17217   Use char because int might match the return type of a GCC
17218   builtin and then its argument prototype would still apply.  */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char pow ();
17223int
17224main ()
17225{
17226return pow ();
17227  ;
17228  return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_link "$LINENO"; then :
17232  ac_cv_lib_m_pow=yes
17233else
17234  ac_cv_lib_m_pow=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext \
17237    conftest$ac_exeext conftest.$ac_ext
17238LIBS=$ac_check_lib_save_LIBS
17239fi
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17241$as_echo "$ac_cv_lib_m_pow" >&6; }
17242if test "x$ac_cv_lib_m_pow" = x""yes; then :
17243  GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} -lm"
17244             gutenprint_libdeps="${gutenprint_libdeps} -lm"
17245fi
17246
17247
17248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
17249$as_echo_n "checking for pow in -lm... " >&6; }
17250if test "${ac_cv_lib_m_pow+set}" = set; then :
17251  $as_echo_n "(cached) " >&6
17252else
17253  ac_check_lib_save_LIBS=$LIBS
17254LIBS="-lm  $LIBS"
17255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257
17258/* Override any GCC internal prototype to avoid an error.
17259   Use char because int might match the return type of a GCC
17260   builtin and then its argument prototype would still apply.  */
17261#ifdef __cplusplus
17262extern "C"
17263#endif
17264char pow ();
17265int
17266main ()
17267{
17268return pow ();
17269  ;
17270  return 0;
17271}
17272_ACEOF
17273if ac_fn_c_try_link "$LINENO"; then :
17274  ac_cv_lib_m_pow=yes
17275else
17276  ac_cv_lib_m_pow=no
17277fi
17278rm -f core conftest.err conftest.$ac_objext \
17279    conftest$ac_exeext conftest.$ac_ext
17280LIBS=$ac_check_lib_save_LIBS
17281fi
17282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17283$as_echo "$ac_cv_lib_m_pow" >&6; }
17284if test "x$ac_cv_lib_m_pow" = x""yes; then :
17285  CUPS_LIBS="${CUPS_LIBS} -lm"
17286fi
17287
17288if test x${BUILD_CUPS} = xyes ; then
17289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
17290$as_echo_n "checking for gzgets in -lz... " >&6; }
17291if test "${ac_cv_lib_z_gzgets+set}" = set; then :
17292  $as_echo_n "(cached) " >&6
17293else
17294  ac_check_lib_save_LIBS=$LIBS
17295LIBS="-lz  $LIBS"
17296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297/* end confdefs.h.  */
17298
17299/* Override any GCC internal prototype to avoid an error.
17300   Use char because int might match the return type of a GCC
17301   builtin and then its argument prototype would still apply.  */
17302#ifdef __cplusplus
17303extern "C"
17304#endif
17305char gzgets ();
17306int
17307main ()
17308{
17309return gzgets ();
17310  ;
17311  return 0;
17312}
17313_ACEOF
17314if ac_fn_c_try_link "$LINENO"; then :
17315  ac_cv_lib_z_gzgets=yes
17316else
17317  ac_cv_lib_z_gzgets=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext \
17320    conftest$ac_exeext conftest.$ac_ext
17321LIBS=$ac_check_lib_save_LIBS
17322fi
17323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
17324$as_echo "$ac_cv_lib_z_gzgets" >&6; }
17325if test "x$ac_cv_lib_z_gzgets" = x""yes; then :
17326  HAVE_LIBZ=true
17327else
17328  HAVE_LIBZ=false
17329fi
17330
17331  if test x${HAVE_LIBZ} = xtrue ; then
17332    GENPPD_LIBS="-lz"
17333
17334$as_echo "#define HAVE_LIBZ /**/" >>confdefs.h
17335
17336  fi
17337  # Extract the first word of "cups-config", so it can be a program name with args.
17338set dummy cups-config; ac_word=$2
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17340$as_echo_n "checking for $ac_word... " >&6; }
17341if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then :
17342  $as_echo_n "(cached) " >&6
17343else
17344  case $CUPS_CONFIG in
17345  [\\/]* | ?:[\\/]*)
17346  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
17347  ;;
17348  *)
17349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350for as_dir in $PATH
17351do
17352  IFS=$as_save_IFS
17353  test -z "$as_dir" && as_dir=.
17354    for ac_exec_ext in '' $ac_executable_extensions; do
17355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17356    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358    break 2
17359  fi
17360done
17361  done
17362IFS=$as_save_IFS
17363
17364  ;;
17365esac
17366fi
17367CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
17368if test -n "$CUPS_CONFIG"; then
17369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_CONFIG" >&5
17370$as_echo "$CUPS_CONFIG" >&6; }
17371else
17372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373$as_echo "no" >&6; }
17374fi
17375
17376
17377  if test "x$CUPS_CONFIG" != x; then
17378        CUPS_LIBS="`$CUPS_CONFIG --ldflags` `$CUPS_CONFIG --image --libs`"
17379    CUPS_CFLAGS="`$CUPS_CONFIG --cflags`"
17380  else
17381        SAVELIBS="$LIBS"
17382    LIBS="$LIBS ${CUPS_LIBS}"
17383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17384$as_echo_n "checking for socket in -lsocket... " >&6; }
17385if test "${ac_cv_lib_socket_socket+set}" = set; then :
17386  $as_echo_n "(cached) " >&6
17387else
17388  ac_check_lib_save_LIBS=$LIBS
17389LIBS="-lsocket  $LIBS"
17390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h.  */
17392
17393/* Override any GCC internal prototype to avoid an error.
17394   Use char because int might match the return type of a GCC
17395   builtin and then its argument prototype would still apply.  */
17396#ifdef __cplusplus
17397extern "C"
17398#endif
17399char socket ();
17400int
17401main ()
17402{
17403return socket ();
17404  ;
17405  return 0;
17406}
17407_ACEOF
17408if ac_fn_c_try_link "$LINENO"; then :
17409  ac_cv_lib_socket_socket=yes
17410else
17411  ac_cv_lib_socket_socket=no
17412fi
17413rm -f core conftest.err conftest.$ac_objext \
17414    conftest$ac_exeext conftest.$ac_ext
17415LIBS=$ac_check_lib_save_LIBS
17416fi
17417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17418$as_echo "$ac_cv_lib_socket_socket" >&6; }
17419if test "x$ac_cv_lib_socket_socket" = x""yes; then :
17420  if test x${OSTYPE} != xirix ; then
17421      CUPS_LIBS="${CUPS_LIBS} -lsocket"
17422      LIBS="$LIBS -lsocket"
17423    fi
17424fi
17425
17426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
17427$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
17428if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then :
17429  $as_echo_n "(cached) " >&6
17430else
17431  ac_check_lib_save_LIBS=$LIBS
17432LIBS="-lnsl  $LIBS"
17433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434/* end confdefs.h.  */
17435
17436/* Override any GCC internal prototype to avoid an error.
17437   Use char because int might match the return type of a GCC
17438   builtin and then its argument prototype would still apply.  */
17439#ifdef __cplusplus
17440extern "C"
17441#endif
17442char gethostbyaddr ();
17443int
17444main ()
17445{
17446return gethostbyaddr ();
17447  ;
17448  return 0;
17449}
17450_ACEOF
17451if ac_fn_c_try_link "$LINENO"; then :
17452  ac_cv_lib_nsl_gethostbyaddr=yes
17453else
17454  ac_cv_lib_nsl_gethostbyaddr=no
17455fi
17456rm -f core conftest.err conftest.$ac_objext \
17457    conftest$ac_exeext conftest.$ac_ext
17458LIBS=$ac_check_lib_save_LIBS
17459fi
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
17461$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
17462if test "x$ac_cv_lib_nsl_gethostbyaddr" = x""yes; then :
17463  if test x${OSTYPE} != xirix ; then
17464      CUPS_LIBS="${CUPS_LIBS} -lnsl"
17465      LIBS="$LIBS -lnsl"
17466    fi
17467fi
17468
17469
17470            ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
17471if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
17472
17473      SSL="no"
17474
17475      for libcrypto in \
17476	  "-lcrypto" \
17477	  "-lcrypto -lrsaref" \
17478	  "-lcrypto -lRSAglue -lrsaref"
17479      do
17480	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
17481$as_echo_n "checking for SSL_new in -lssl... " >&6; }
17482if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
17483  $as_echo_n "(cached) " >&6
17484else
17485  ac_check_lib_save_LIBS=$LIBS
17486LIBS="-lssl $libcrypto $LIBS"
17487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488/* end confdefs.h.  */
17489
17490/* Override any GCC internal prototype to avoid an error.
17491   Use char because int might match the return type of a GCC
17492   builtin and then its argument prototype would still apply.  */
17493#ifdef __cplusplus
17494extern "C"
17495#endif
17496char SSL_new ();
17497int
17498main ()
17499{
17500return SSL_new ();
17501  ;
17502  return 0;
17503}
17504_ACEOF
17505if ac_fn_c_try_link "$LINENO"; then :
17506  ac_cv_lib_ssl_SSL_new=yes
17507else
17508  ac_cv_lib_ssl_SSL_new=no
17509fi
17510rm -f core conftest.err conftest.$ac_objext \
17511    conftest$ac_exeext conftest.$ac_ext
17512LIBS=$ac_check_lib_save_LIBS
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
17515$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
17516if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
17517  CUPS_LIBS="${CUPS_LIBS} -lssl $libcrypto"
17518	       SSL="yes"
17519fi
17520
17521
17522	  if test x$SSL = xyes; then
17523	      break
17524	  fi
17525      done
17526fi
17527
17528
17529
17530        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsPrintFiles in -lcups" >&5
17531$as_echo_n "checking for cupsPrintFiles in -lcups... " >&6; }
17532if test "${ac_cv_lib_cups_cupsPrintFiles+set}" = set; then :
17533  $as_echo_n "(cached) " >&6
17534else
17535  ac_check_lib_save_LIBS=$LIBS
17536LIBS="-lcups  $LIBS"
17537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h.  */
17539
17540/* Override any GCC internal prototype to avoid an error.
17541   Use char because int might match the return type of a GCC
17542   builtin and then its argument prototype would still apply.  */
17543#ifdef __cplusplus
17544extern "C"
17545#endif
17546char cupsPrintFiles ();
17547int
17548main ()
17549{
17550return cupsPrintFiles ();
17551  ;
17552  return 0;
17553}
17554_ACEOF
17555if ac_fn_c_try_link "$LINENO"; then :
17556  ac_cv_lib_cups_cupsPrintFiles=yes
17557else
17558  ac_cv_lib_cups_cupsPrintFiles=no
17559fi
17560rm -f core conftest.err conftest.$ac_objext \
17561    conftest$ac_exeext conftest.$ac_ext
17562LIBS=$ac_check_lib_save_LIBS
17563fi
17564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cups_cupsPrintFiles" >&5
17565$as_echo "$ac_cv_lib_cups_cupsPrintFiles" >&6; }
17566if test "x$ac_cv_lib_cups_cupsPrintFiles" = x""yes; then :
17567  CUPS_LIBS="${CUPS_LIBS} -lcups"
17568else
17569  LIBS="$LIBS -lcups"
17570      as_fn_error "Cannot find CUPS libraries (libcups)" "$LINENO" 5
17571fi
17572
17573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsRasterOpen in -lcupsimage" >&5
17574$as_echo_n "checking for cupsRasterOpen in -lcupsimage... " >&6; }
17575if test "${ac_cv_lib_cupsimage_cupsRasterOpen+set}" = set; then :
17576  $as_echo_n "(cached) " >&6
17577else
17578  ac_check_lib_save_LIBS=$LIBS
17579LIBS="-lcupsimage -lcups $LIBS"
17580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h.  */
17582
17583/* Override any GCC internal prototype to avoid an error.
17584   Use char because int might match the return type of a GCC
17585   builtin and then its argument prototype would still apply.  */
17586#ifdef __cplusplus
17587extern "C"
17588#endif
17589char cupsRasterOpen ();
17590int
17591main ()
17592{
17593return cupsRasterOpen ();
17594  ;
17595  return 0;
17596}
17597_ACEOF
17598if ac_fn_c_try_link "$LINENO"; then :
17599  ac_cv_lib_cupsimage_cupsRasterOpen=yes
17600else
17601  ac_cv_lib_cupsimage_cupsRasterOpen=no
17602fi
17603rm -f core conftest.err conftest.$ac_objext \
17604    conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cupsimage_cupsRasterOpen" >&5
17608$as_echo "$ac_cv_lib_cupsimage_cupsRasterOpen" >&6; }
17609if test "x$ac_cv_lib_cupsimage_cupsRasterOpen" = x""yes; then :
17610  CUPS_LIBS="${CUPS_LIBS} -lcupsimage"
17611else
17612  as_fn_error "Cannot find CUPS libraries (libcupsimage)" "$LINENO" 5
17613fi
17614
17615        LIBS="$SAVELIBS"
17616
17617        if test "x${cups_prefix}" != "x/usr" -a "x${cups_prefix}" != x; then
17618      CUPS_CFLAGS="-I${cups_prefix}/include"
17619    else
17620      CUPS_CFLAGS=""
17621    fi
17622  fi
17623fi
17624
17625
17626if test x${BUILD_GIMP2} = xyes ; then
17627  GIMP2_DATA_DIR=`$PKG_CONFIG gimp-2.0 --variable=gimpdatadir`
17628  GIMP2_PLUGIN_DIR=`$PKG_CONFIG gimp-2.0 --variable=gimplibdir`/plug-ins
17629  gimp2_plug_indir="${GIMP2_PLUGIN_DIR}"
17630fi
17631
17632
17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17634$as_echo_n "checking for ANSI C header files... " >&6; }
17635if test "${ac_cv_header_stdc+set}" = set; then :
17636  $as_echo_n "(cached) " >&6
17637else
17638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639/* end confdefs.h.  */
17640#include <stdlib.h>
17641#include <stdarg.h>
17642#include <string.h>
17643#include <float.h>
17644
17645int
17646main ()
17647{
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653if ac_fn_c_try_compile "$LINENO"; then :
17654  ac_cv_header_stdc=yes
17655else
17656  ac_cv_header_stdc=no
17657fi
17658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659
17660if test $ac_cv_header_stdc = yes; then
17661  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663/* end confdefs.h.  */
17664#include <string.h>
17665
17666_ACEOF
17667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17668  $EGREP "memchr" >/dev/null 2>&1; then :
17669
17670else
17671  ac_cv_header_stdc=no
17672fi
17673rm -f conftest*
17674
17675fi
17676
17677if test $ac_cv_header_stdc = yes; then
17678  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680/* end confdefs.h.  */
17681#include <stdlib.h>
17682
17683_ACEOF
17684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17685  $EGREP "free" >/dev/null 2>&1; then :
17686
17687else
17688  ac_cv_header_stdc=no
17689fi
17690rm -f conftest*
17691
17692fi
17693
17694if test $ac_cv_header_stdc = yes; then
17695  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17696  if test "$cross_compiling" = yes; then :
17697  :
17698else
17699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701#include <ctype.h>
17702#include <stdlib.h>
17703#if ((' ' & 0x0FF) == 0x020)
17704# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17705# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17706#else
17707# define ISLOWER(c) \
17708		   (('a' <= (c) && (c) <= 'i') \
17709		     || ('j' <= (c) && (c) <= 'r') \
17710		     || ('s' <= (c) && (c) <= 'z'))
17711# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17712#endif
17713
17714#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17715int
17716main ()
17717{
17718  int i;
17719  for (i = 0; i < 256; i++)
17720    if (XOR (islower (i), ISLOWER (i))
17721	|| toupper (i) != TOUPPER (i))
17722      return 2;
17723  return 0;
17724}
17725_ACEOF
17726if ac_fn_c_try_run "$LINENO"; then :
17727
17728else
17729  ac_cv_header_stdc=no
17730fi
17731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17732  conftest.$ac_objext conftest.beam conftest.$ac_ext
17733fi
17734
17735fi
17736fi
17737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17738$as_echo "$ac_cv_header_stdc" >&6; }
17739if test $ac_cv_header_stdc = yes; then
17740
17741$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17742
17743fi
17744
17745for ac_header in getopt.h
17746do :
17747  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17748if test "x$ac_cv_header_getopt_h" = x""yes; then :
17749  cat >>confdefs.h <<_ACEOF
17750#define HAVE_GETOPT_H 1
17751_ACEOF
17752
17753fi
17754
17755done
17756
17757ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17758if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
17759  HAVE_READLINE_READLINE_H=true
17760else
17761  HAVE_READLINE_READLINE_H=false
17762fi
17763
17764
17765if test x${HAVE_READLINE_READLINE_H} = xtrue ; then
17766
17767$as_echo "#define HAVE_READLINE_READLINE_H /**/" >>confdefs.h
17768
17769  if test x${HAVE_LIBREADLINE} = xtrue ; then
17770    LIBREADLINE_DEPS="-lreadline $EXTRA_LIBREADLINE_DEPS"
17771  fi
17772fi
17773for ac_header in dlfcn.h
17774do :
17775  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17776if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
17777  cat >>confdefs.h <<_ACEOF
17778#define HAVE_DLFCN_H 1
17779_ACEOF
17780 HAVE_DLFCN_H=true
17781fi
17782
17783done
17784
17785for ac_header in fcntl.h
17786do :
17787  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17788if test "x$ac_cv_header_fcntl_h" = x""yes; then :
17789  cat >>confdefs.h <<_ACEOF
17790#define HAVE_FCNTL_H 1
17791_ACEOF
17792
17793fi
17794
17795done
17796
17797for ac_header in limits.h
17798do :
17799  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
17800if test "x$ac_cv_header_limits_h" = x""yes; then :
17801  cat >>confdefs.h <<_ACEOF
17802#define HAVE_LIMITS_H 1
17803_ACEOF
17804
17805fi
17806
17807done
17808
17809for ac_header in locale.h
17810do :
17811  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
17812if test "x$ac_cv_header_locale_h" = x""yes; then :
17813  cat >>confdefs.h <<_ACEOF
17814#define HAVE_LOCALE_H 1
17815_ACEOF
17816
17817fi
17818
17819done
17820
17821for ac_header in ltdl.h
17822do :
17823  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
17824if test "x$ac_cv_header_ltdl_h" = x""yes; then :
17825  cat >>confdefs.h <<_ACEOF
17826#define HAVE_LTDL_H 1
17827_ACEOF
17828 HAVE_LTDL_H=true
17829fi
17830
17831done
17832
17833for ac_header in stdarg.h stdlib.h string.h
17834do :
17835  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17837eval as_val=\$$as_ac_Header
17838   if test "x$as_val" = x""yes; then :
17839  cat >>confdefs.h <<_ACEOF
17840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17841_ACEOF
17842
17843fi
17844
17845done
17846
17847for ac_header in sys/time.h sys/types.h
17848do :
17849  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17851eval as_val=\$$as_ac_Header
17852   if test "x$as_val" = x""yes; then :
17853  cat >>confdefs.h <<_ACEOF
17854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17855_ACEOF
17856
17857fi
17858
17859done
17860
17861for ac_header in time.h
17862do :
17863  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
17864if test "x$ac_cv_header_time_h" = x""yes; then :
17865  cat >>confdefs.h <<_ACEOF
17866#define HAVE_TIME_H 1
17867_ACEOF
17868
17869fi
17870
17871done
17872
17873for ac_header in unistd.h
17874do :
17875  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17876if test "x$ac_cv_header_unistd_h" = x""yes; then :
17877  cat >>confdefs.h <<_ACEOF
17878#define HAVE_UNISTD_H 1
17879_ACEOF
17880
17881fi
17882
17883done
17884
17885
17886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17887$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17888if test "${ac_cv_c_const+set}" = set; then :
17889  $as_echo_n "(cached) " >&6
17890else
17891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892/* end confdefs.h.  */
17893
17894int
17895main ()
17896{
17897/* FIXME: Include the comments suggested by Paul. */
17898#ifndef __cplusplus
17899  /* Ultrix mips cc rejects this.  */
17900  typedef int charset[2];
17901  const charset cs;
17902  /* SunOS 4.1.1 cc rejects this.  */
17903  char const *const *pcpcc;
17904  char **ppc;
17905  /* NEC SVR4.0.2 mips cc rejects this.  */
17906  struct point {int x, y;};
17907  static struct point const zero = {0,0};
17908  /* AIX XL C 1.02.0.0 rejects this.
17909     It does not let you subtract one const X* pointer from another in
17910     an arm of an if-expression whose if-part is not a constant
17911     expression */
17912  const char *g = "string";
17913  pcpcc = &g + (g ? g-g : 0);
17914  /* HPUX 7.0 cc rejects these. */
17915  ++pcpcc;
17916  ppc = (char**) pcpcc;
17917  pcpcc = (char const *const *) ppc;
17918  { /* SCO 3.2v4 cc rejects this.  */
17919    char *t;
17920    char const *s = 0 ? (char *) 0 : (char const *) 0;
17921
17922    *t++ = 0;
17923    if (s) return 0;
17924  }
17925  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17926    int x[] = {25, 17};
17927    const int *foo = &x[0];
17928    ++foo;
17929  }
17930  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17931    typedef const int *iptr;
17932    iptr p = 0;
17933    ++p;
17934  }
17935  { /* AIX XL C 1.02.0.0 rejects this saying
17936       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17937    struct s { int j; const int *ap[3]; };
17938    struct s *b; b->j = 5;
17939  }
17940  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17941    const int foo = 10;
17942    if (!foo) return 0;
17943  }
17944  return !cs[0] && !zero.x;
17945#endif
17946
17947  ;
17948  return 0;
17949}
17950_ACEOF
17951if ac_fn_c_try_compile "$LINENO"; then :
17952  ac_cv_c_const=yes
17953else
17954  ac_cv_c_const=no
17955fi
17956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17957fi
17958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17959$as_echo "$ac_cv_c_const" >&6; }
17960if test $ac_cv_c_const = no; then
17961
17962$as_echo "#define const /**/" >>confdefs.h
17963
17964fi
17965
17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17967$as_echo_n "checking for inline... " >&6; }
17968if test "${ac_cv_c_inline+set}" = set; then :
17969  $as_echo_n "(cached) " >&6
17970else
17971  ac_cv_c_inline=no
17972for ac_kw in inline __inline__ __inline; do
17973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974/* end confdefs.h.  */
17975#ifndef __cplusplus
17976typedef int foo_t;
17977static $ac_kw foo_t static_foo () {return 0; }
17978$ac_kw foo_t foo () {return 0; }
17979#endif
17980
17981_ACEOF
17982if ac_fn_c_try_compile "$LINENO"; then :
17983  ac_cv_c_inline=$ac_kw
17984fi
17985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17986  test "$ac_cv_c_inline" != no && break
17987done
17988
17989fi
17990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17991$as_echo "$ac_cv_c_inline" >&6; }
17992
17993case $ac_cv_c_inline in
17994  inline | yes) ;;
17995  *)
17996    case $ac_cv_c_inline in
17997      no) ac_val=;;
17998      *) ac_val=$ac_cv_c_inline;;
17999    esac
18000    cat >>confdefs.h <<_ACEOF
18001#ifndef __cplusplus
18002#define inline $ac_val
18003#endif
18004_ACEOF
18005    ;;
18006esac
18007
18008ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18009if test "x$ac_cv_type_off_t" = x""yes; then :
18010
18011else
18012
18013cat >>confdefs.h <<_ACEOF
18014#define off_t long int
18015_ACEOF
18016
18017fi
18018
18019ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18020if test "x$ac_cv_type_size_t" = x""yes; then :
18021
18022else
18023
18024cat >>confdefs.h <<_ACEOF
18025#define size_t unsigned int
18026_ACEOF
18027
18028fi
18029
18030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18031$as_echo_n "checking return type of signal handlers... " >&6; }
18032if test "${ac_cv_type_signal+set}" = set; then :
18033  $as_echo_n "(cached) " >&6
18034else
18035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037#include <sys/types.h>
18038#include <signal.h>
18039
18040int
18041main ()
18042{
18043return *(signal (0, 0)) (0) == 1;
18044  ;
18045  return 0;
18046}
18047_ACEOF
18048if ac_fn_c_try_compile "$LINENO"; then :
18049  ac_cv_type_signal=int
18050else
18051  ac_cv_type_signal=void
18052fi
18053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18056$as_echo "$ac_cv_type_signal" >&6; }
18057
18058cat >>confdefs.h <<_ACEOF
18059#define RETSIGTYPE $ac_cv_type_signal
18060_ACEOF
18061
18062
18063
18064for ac_func in nanosleep poll usleep
18065do :
18066  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18068eval as_val=\$$as_ac_var
18069   if test "x$as_val" = x""yes; then :
18070  cat >>confdefs.h <<_ACEOF
18071#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18072_ACEOF
18073
18074fi
18075done
18076
18077for ac_func in getopt_long
18078do :
18079  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18080if test "x$ac_cv_func_getopt_long" = x""yes; then :
18081  cat >>confdefs.h <<_ACEOF
18082#define HAVE_GETOPT_LONG 1
18083_ACEOF
18084
18085fi
18086done
18087
18088
18089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing finite" >&5
18090$as_echo_n "checking for library containing finite... " >&6; }
18091if test "${ac_cv_search_finite+set}" = set; then :
18092  $as_echo_n "(cached) " >&6
18093else
18094  ac_func_search_save_LIBS=$LIBS
18095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096/* end confdefs.h.  */
18097
18098/* Override any GCC internal prototype to avoid an error.
18099   Use char because int might match the return type of a GCC
18100   builtin and then its argument prototype would still apply.  */
18101#ifdef __cplusplus
18102extern "C"
18103#endif
18104char finite ();
18105int
18106main ()
18107{
18108return finite ();
18109  ;
18110  return 0;
18111}
18112_ACEOF
18113for ac_lib in '' m; do
18114  if test -z "$ac_lib"; then
18115    ac_res="none required"
18116  else
18117    ac_res=-l$ac_lib
18118    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18119  fi
18120  if ac_fn_c_try_link "$LINENO"; then :
18121  ac_cv_search_finite=$ac_res
18122fi
18123rm -f core conftest.err conftest.$ac_objext \
18124    conftest$ac_exeext
18125  if test "${ac_cv_search_finite+set}" = set; then :
18126  break
18127fi
18128done
18129if test "${ac_cv_search_finite+set}" = set; then :
18130
18131else
18132  ac_cv_search_finite=no
18133fi
18134rm conftest.$ac_ext
18135LIBS=$ac_func_search_save_LIBS
18136fi
18137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_finite" >&5
18138$as_echo "$ac_cv_search_finite" >&6; }
18139ac_res=$ac_cv_search_finite
18140if test "$ac_res" != no; then :
18141  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18142  CFLAGS="-Disfinite=finite $CFLAGS"
18143fi
18144
18145
18146 if test x${BUILD_FOOMATIC} = xyes; then
18147  BUILD_FOOMATIC_TRUE=
18148  BUILD_FOOMATIC_FALSE='#'
18149else
18150  BUILD_FOOMATIC_TRUE='#'
18151  BUILD_FOOMATIC_FALSE=
18152fi
18153
18154
18155 if test x${BUILD_FOOMATIC_3} = xyes; then
18156  BUILD_FOOMATIC_3_TRUE=
18157  BUILD_FOOMATIC_3_FALSE='#'
18158else
18159  BUILD_FOOMATIC_3_TRUE='#'
18160  BUILD_FOOMATIC_3_FALSE=
18161fi
18162
18163
18164 if test x${BUILD_GHOSTSCRIPT} = xyes; then
18165  BUILD_GHOSTSCRIPT_TRUE=
18166  BUILD_GHOSTSCRIPT_FALSE='#'
18167else
18168  BUILD_GHOSTSCRIPT_TRUE='#'
18169  BUILD_GHOSTSCRIPT_FALSE=
18170fi
18171
18172
18173 if test x${BUILD_CUPS} = xyes; then
18174  BUILD_CUPS_TRUE=
18175  BUILD_CUPS_FALSE='#'
18176else
18177  BUILD_CUPS_TRUE='#'
18178  BUILD_CUPS_FALSE=
18179fi
18180
18181
18182 if test x${BUILD_CUPS_1_2} = xyes; then
18183  BUILD_CUPS_1_2_TRUE=
18184  BUILD_CUPS_1_2_FALSE='#'
18185else
18186  BUILD_CUPS_1_2_TRUE='#'
18187  BUILD_CUPS_1_2_FALSE=
18188fi
18189
18190
18191 if test x${BUILD_CUPS_PPDS} = xyes; then
18192  BUILD_CUPS_PPDS_TRUE=
18193  BUILD_CUPS_PPDS_FALSE='#'
18194else
18195  BUILD_CUPS_PPDS_TRUE='#'
18196  BUILD_CUPS_PPDS_FALSE=
18197fi
18198
18199
18200 if test x${CUPS_PPDS_AT_TOP_LEVEL} = xyes; then
18201  CUPS_PPDS_AT_TOP_LEVEL_TRUE=
18202  CUPS_PPDS_AT_TOP_LEVEL_FALSE='#'
18203else
18204  CUPS_PPDS_AT_TOP_LEVEL_TRUE='#'
18205  CUPS_PPDS_AT_TOP_LEVEL_FALSE=
18206fi
18207
18208
18209 if test x${BUILD_TRANSLATED_CUPS_PPDS} = xyes ; then
18210  BUILD_TRANSLATED_CUPS_PPDS_TRUE=
18211  BUILD_TRANSLATED_CUPS_PPDS_FALSE='#'
18212else
18213  BUILD_TRANSLATED_CUPS_PPDS_TRUE='#'
18214  BUILD_TRANSLATED_CUPS_PPDS_FALSE=
18215fi
18216
18217
18218 if test x${BUILD_GLOBALIZED_CUPS_PPDS} = xyes ; then
18219  BUILD_GLOBALIZED_CUPS_PPDS_TRUE=
18220  BUILD_GLOBALIZED_CUPS_PPDS_FALSE='#'
18221else
18222  BUILD_GLOBALIZED_CUPS_PPDS_TRUE='#'
18223  BUILD_GLOBALIZED_CUPS_PPDS_FALSE=
18224fi
18225
18226
18227 if test x${BUILD_SIMPLIFIED_CUPS_PPDS} = xyes; then
18228  BUILD_SIMPLIFIED_CUPS_PPDS_TRUE=
18229  BUILD_SIMPLIFIED_CUPS_PPDS_FALSE='#'
18230else
18231  BUILD_SIMPLIFIED_CUPS_PPDS_TRUE='#'
18232  BUILD_SIMPLIFIED_CUPS_PPDS_FALSE=
18233fi
18234
18235
18236if test x${USE_LEVEL3_PS} = xno ; then
18237  CUPS_PPD_PS_LEVEL=2
18238else
18239  CUPS_PPD_PS_LEVEL=3
18240fi
18241
18242 if test x${USE_LEVEL3_PS} = xyes; then
18243  USE_LEVEL3_PS_TRUE=
18244  USE_LEVEL3_PS_FALSE='#'
18245else
18246  USE_LEVEL3_PS_TRUE='#'
18247  USE_LEVEL3_PS_FALSE=
18248fi
18249
18250
18251 if test x${BUILD_ESCPUTIL} = xyes; then
18252  BUILD_ESCPUTIL_TRUE=
18253  BUILD_ESCPUTIL_FALSE='#'
18254else
18255  BUILD_ESCPUTIL_TRUE='#'
18256  BUILD_ESCPUTIL_FALSE=
18257fi
18258
18259
18260 if test x${BUILD_TEST} = xyes; then
18261  BUILD_TEST_TRUE=
18262  BUILD_TEST_FALSE='#'
18263else
18264  BUILD_TEST_TRUE='#'
18265  BUILD_TEST_FALSE=
18266fi
18267
18268
18269 if test x${BUILD_TESTPATTERN} = xyes; then
18270  BUILD_TESTPATTERN_TRUE=
18271  BUILD_TESTPATTERN_FALSE='#'
18272else
18273  BUILD_TESTPATTERN_TRUE='#'
18274  BUILD_TESTPATTERN_FALSE=
18275fi
18276
18277
18278 if test x${BUILD_LIBGUTENPRINTUI2} = xyes; then
18279  BUILD_LIBGUTENPRINTUI2_TRUE=
18280  BUILD_LIBGUTENPRINTUI2_FALSE='#'
18281else
18282  BUILD_LIBGUTENPRINTUI2_TRUE='#'
18283  BUILD_LIBGUTENPRINTUI2_FALSE=
18284fi
18285
18286
18287 if test x${BUILD_GIMP2} = xyes; then
18288  BUILD_GIMP2_TRUE=
18289  BUILD_GIMP2_FALSE='#'
18290else
18291  BUILD_GIMP2_TRUE='#'
18292  BUILD_GIMP2_FALSE=
18293fi
18294
18295
18296 if test x${BUILD_GIMP2_AS_GUTENPRINT} = xyes; then
18297  BUILD_GIMP2_AS_GUTENPRINT_TRUE=
18298  BUILD_GIMP2_AS_GUTENPRINT_FALSE='#'
18299else
18300  BUILD_GIMP2_AS_GUTENPRINT_TRUE='#'
18301  BUILD_GIMP2_AS_GUTENPRINT_FALSE=
18302fi
18303
18304
18305 if test x${INSTALL_SAMPLES} = xyes; then
18306  INSTALL_SAMPLES_TRUE=
18307  INSTALL_SAMPLES_FALSE='#'
18308else
18309  INSTALL_SAMPLES_TRUE='#'
18310  INSTALL_SAMPLES_FALSE=
18311fi
18312
18313
18314 if test x${INSTALL_USER_GUIDE} = xyes; then
18315  INSTALL_USER_GUIDE_TRUE=
18316  INSTALL_USER_GUIDE_FALSE='#'
18317else
18318  INSTALL_USER_GUIDE_TRUE='#'
18319  INSTALL_USER_GUIDE_FALSE=
18320fi
18321
18322
18323# CUPS path setup
18324# Fix "prefix" variable if it hasn't been specified...
18325if test x${cups_prefix} = xNONE ; then
18326  cups_prefix="/usr"
18327fi
18328# Fix "exec_prefix" variable if it hasn't been specified...
18329if test x${exec_prefix} = xNONE ; then
18330  if test "${cups_prefix}" = "/" ; then
18331    cups_exec_prefix="/usr"
18332  else
18333    cups_exec_prefix="${cups_prefix}"
18334  fi
18335fi
18336# Fix "bindir" variable if it hasn't been specified...
18337if test "${bindir}" = "\${prefix}/bin" -a "${cups_prefix}" = "/" ; then
18338  cups_bindir="/usr/bin"
18339else
18340  cups_bindir="${cups_prefix}/bin"
18341fi
18342# Fix "sbindir" variable if it hasn't been specified...
18343if test "${sbindir}" = "\${prefix}/sbin" -a "${cups_prefix}" = "/" ; then
18344  cups_sbindir="/usr/sbin"
18345else
18346  cups_sbindir="${cups_prefix}/sbin"
18347fi
18348
18349# Get explicit CUPS directories if possible
18350if test "x$CUPS_CONFIG" != x; then
18351  cups_conf_datadir="`$CUPS_CONFIG --datadir`"
18352  cups_conf_serverbin="`$CUPS_CONFIG --serverbin`"
18353  cups_conf_serverroot="`$CUPS_CONFIG --serverroot`"
18354else
18355# Some logical guessing
18356  if test "${datadir}" = "\${prefix}/share" -a "${cups_prefix}" = "/" ; then
18357    cups_conf_datadir="/usr/share/cups"
18358  else
18359    cups_conf_datadir="${cups_prefix}/share/cups"
18360  fi
18361  if test "${libdir}" = "\${prefix}/lib" -a "${cups_prefix}" = "/" ; then
18362    cups_conf_serverbin="/usr/lib/cups"
18363  else
18364    cups_conf_serverbin="${cups_prefix}/lib/cups"
18365  fi
18366  if test "${sysconfdir}" = "\${prefix}/etc"; then
18367    if test "${cups_prefix}" = "/usr" ; then
18368      cups_conf_serverroot="/etc/cups"
18369    else
18370      cups_conf_serverroot="${cups_prefix}/etc/cups"
18371    fi
18372  fi
18373fi
18374
18375
18376# loadable modules
18377# portable sh has no AND test...
18378if test -n "$HAVE_LTDL_H"; then
18379  if test -n "$LTDL_LIBS"; then
18380    LTDL_POSSIBLE="true"
18381  fi
18382fi
18383if test -n "$HAVE_DLFCN_H"; then
18384  if test -n "$DLOPEN_LIBS"; then
18385    DLOPEN_POSSIBLE="true"
18386  fi
18387fi
18388# define what the user chose to build, if possible.
18389# Prefer dlopen over ltdl.
18390if test x$WITH_MODULES = xyes; then
18391  if test x$DLOPEN_POSSIBLE = xtrue; then
18392    USE_DLOPEN="true"
18393  elif test x$LDTL_POSSIBLE = xtrue; then
18394    USE_LTDL="true"
18395  fi
18396elif test x$WITH_MODULES = xltdl; then
18397  if test x$LTDL_POSSIBLE = xtrue; then
18398    USE_LTDL="true"
18399  fi
18400elif test x$WITH_MODULES = xdlopen; then
18401  if test x$DLOPEN_POSSIBLE = xtrue; then
18402    USE_DLOPEN="true"
18403  fi
18404fi
18405# define what module system is to be used
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which module system will be used" >&5
18407$as_echo_n "checking which module system will be used... " >&6; }
18408if test x$USE_LTDL = xtrue; then
18409  MODULE="true"
18410
18411$as_echo "#define MODULE \"1\"" >>confdefs.h
18412
18413
18414$as_echo "#define USE_LTDL \"1\"" >>confdefs.h
18415
18416  GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${LTDL_LIBS}"
18417  gutenprint_libdeps="${gutenprint_libdeps} ${LTDL_LIBS}"
18418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
18419$as_echo "ltdl" >&6; }
18420elif test x$USE_DLOPEN = xtrue; then
18421  MODULE="true"
18422
18423$as_echo "#define MODULE \"1\"" >>confdefs.h
18424
18425
18426$as_echo "#define USE_DLOPEN \"1\"" >>confdefs.h
18427
18428  GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${DLOPEN_LIBS}"
18429  gutenprint_libdeps="${gutenprint_libdeps} ${DLOPEN_LIBS}"
18430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
18431$as_echo "dlopen" >&6; }
18432else
18433  MODULE="false"
18434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
18435$as_echo "static" >&6; }
18436fi
18437 if test x$MODULE = xtrue; then
18438  BUILD_MODULES_TRUE=
18439  BUILD_MODULES_FALSE='#'
18440else
18441  BUILD_MODULES_TRUE='#'
18442  BUILD_MODULES_FALSE=
18443fi
18444
18445
18446 if test x"$STATIC_GENPPD" = xyes; then
18447  BUILD_GENPPD_STATIC_TRUE=
18448  BUILD_GENPPD_STATIC_FALSE='#'
18449else
18450  BUILD_GENPPD_STATIC_TRUE='#'
18451  BUILD_GENPPD_STATIC_FALSE=
18452fi
18453
18454
18455
18456
18457
18458cat >>confdefs.h <<_ACEOF
18459#define CUPS_DATADIR "${cups_conf_datadir}"
18460_ACEOF
18461
18462
18463
18464if test "${CUPS_PPDS_AT_TOP_LEVEL}" = yes ; then
18465  cat >>confdefs.h <<_ACEOF
18466#define CUPS_MODELDIR "${cups_conf_datadir}/model/"
18467_ACEOF
18468
18469else
18470  cat >>confdefs.h <<_ACEOF
18471#define CUPS_MODELDIR "${cups_conf_datadir}/model/${PACKAGE}/${GUTENPRINT_RELEASE_VERSION}/"
18472_ACEOF
18473
18474fi
18475
18476
18477# Check whether --with-cups_nickname was given.
18478if test "${with_cups_nickname+set}" = set; then :
18479  withval=$with_cups_nickname; CUPS_PPD_NICKNAME_STRING="$withval"
18480else
18481  CUPS_PPD_NICKNAME_STRING=" - CUPS+Gutenprint v"
18482fi
18483
18484
18485
18486cat >>confdefs.h <<_ACEOF
18487#define CUPS_PPD_NICKNAME_STRING "$CUPS_PPD_NICKNAME_STRING"
18488_ACEOF
18489
18490
18491
18492
18493cat >>confdefs.h <<_ACEOF
18494#define CUPS_PPD_PS_LEVEL ${CUPS_PPD_PS_LEVEL}
18495_ACEOF
18496
18497RELEASE_DATE="01 May 2011"
18498
18499cat >>confdefs.h <<_ACEOF
18500#define RELEASE_DATE "${RELEASE_DATE}"
18501_ACEOF
18502
18503
18504
18505RM='rm'
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534gutenprint_libs="${GUTENPRINT_LIBS} ${gutenprint_libdeps}"
18535
18536
18537
18538gutenprintui2_libs="${GUTENPRINTUI2_LIBS} ${gutenprintui2_libdeps}"
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548# Check whether --with-archflags was given.
18549if test "${with_archflags+set}" = set; then :
18550  withval=$with_archflags; CFLAGS="$CFLAGS $withval"
18551    LDFLAGS="$LDFLAGS $withval"
18552fi
18553
18554
18555
18556ac_config_files="$ac_config_files Makefile"
18557
18558ac_config_files="$ac_config_files doc/Makefile"
18559
18560ac_config_files="$ac_config_files doc/gutenprint.dox"
18561
18562ac_config_files="$ac_config_files doc/gutenprintui2.dox"
18563
18564ac_config_files="$ac_config_files doc/developer/Makefile"
18565
18566ac_config_files="$ac_config_files include/Makefile"
18567
18568ac_config_files="$ac_config_files include/gutenprint/Makefile"
18569
18570ac_config_files="$ac_config_files include/gutenprintui2/Makefile"
18571
18572ac_config_files="$ac_config_files include/gutenprint/gutenprint-version.h"
18573
18574ac_config_files="$ac_config_files man/Makefile"
18575
18576ac_config_files="$ac_config_files man/cups-calibrate.8"
18577
18578ac_config_files="$ac_config_files man/cups-genppd.8"
18579
18580ac_config_files="$ac_config_files man/cups-genppdupdate.8"
18581
18582ac_config_files="$ac_config_files man/escputil.1"
18583
18584ac_config_files="$ac_config_files man/ijsgutenprint.1"
18585
18586ac_config_files="$ac_config_files po/Makefile.in"
18587
18588ac_config_files="$ac_config_files samples/Makefile"
18589
18590ac_config_files="$ac_config_files src/Makefile"
18591
18592ac_config_files="$ac_config_files src/cups/Makefile"
18593
18594ac_config_files="$ac_config_files src/cups/Info.plist"
18595
18596ac_config_files="$ac_config_files src/cups/cups-genppdupdate"
18597
18598ac_config_files="$ac_config_files src/escputil/Makefile"
18599
18600ac_config_files="$ac_config_files src/foomatic/Makefile"
18601
18602ac_config_files="$ac_config_files src/foomatic/foomatic-generator"
18603
18604ac_config_files="$ac_config_files src/foomatic/mk_printerlist"
18605
18606ac_config_files="$ac_config_files src/testpattern/run-testpattern-2"
18607
18608ac_config_files="$ac_config_files src/cups/test-rastertogutenprint"
18609
18610ac_config_files="$ac_config_files src/ghost/Makefile"
18611
18612ac_config_files="$ac_config_files src/testpattern/Makefile"
18613
18614ac_config_files="$ac_config_files src/gimp2/Makefile"
18615
18616ac_config_files="$ac_config_files src/main/Makefile"
18617
18618ac_config_files="$ac_config_files src/main/gutenprint.pc"
18619
18620ac_config_files="$ac_config_files src/xml/Makefile"
18621
18622ac_config_files="$ac_config_files src/xml/escp2/Makefile"
18623
18624ac_config_files="$ac_config_files src/xml/escp2/media/Makefile"
18625
18626ac_config_files="$ac_config_files src/xml/escp2/mediasizes/Makefile"
18627
18628ac_config_files="$ac_config_files src/xml/escp2/model/Makefile"
18629
18630ac_config_files="$ac_config_files src/xml/escp2/inputslots/Makefile"
18631
18632ac_config_files="$ac_config_files src/xml/escp2/inks/Makefile"
18633
18634ac_config_files="$ac_config_files src/xml/escp2/weaves/Makefile"
18635
18636ac_config_files="$ac_config_files src/xml/escp2/qualitypresets/Makefile"
18637
18638ac_config_files="$ac_config_files src/gutenprintui2/Makefile"
18639
18640ac_config_files="$ac_config_files src/gutenprintui2/gutenprintui2.pc"
18641
18642ac_config_files="$ac_config_files test/Makefile"
18643
18644ac_config_files="$ac_config_files scripts/Makefile"
18645
18646ac_config_commands="$ac_config_commands default"
18647
18648
18649cat >confcache <<\_ACEOF
18650# This file is a shell script that caches the results of configure
18651# tests run on this system so they can be shared between configure
18652# scripts and configure runs, see configure's option --config-cache.
18653# It is not useful on other systems.  If it contains results you don't
18654# want to keep, you may remove or edit it.
18655#
18656# config.status only pays attention to the cache file if you give it
18657# the --recheck option to rerun configure.
18658#
18659# `ac_cv_env_foo' variables (set or unset) will be overridden when
18660# loading this file, other *unset* `ac_cv_foo' will be assigned the
18661# following values.
18662
18663_ACEOF
18664
18665# The following way of writing the cache mishandles newlines in values,
18666# but we know of no workaround that is simple, portable, and efficient.
18667# So, we kill variables containing newlines.
18668# Ultrix sh set writes to stderr and can't be redirected directly,
18669# and sets the high bit in the cache file unless we assign to the vars.
18670(
18671  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18672    eval ac_val=\$$ac_var
18673    case $ac_val in #(
18674    *${as_nl}*)
18675      case $ac_var in #(
18676      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18677$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18678      esac
18679      case $ac_var in #(
18680      _ | IFS | as_nl) ;; #(
18681      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18682      *) { eval $ac_var=; unset $ac_var;} ;;
18683      esac ;;
18684    esac
18685  done
18686
18687  (set) 2>&1 |
18688    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18689    *${as_nl}ac_space=\ *)
18690      # `set' does not quote correctly, so add quotes: double-quote
18691      # substitution turns \\\\ into \\, and sed turns \\ into \.
18692      sed -n \
18693	"s/'/'\\\\''/g;
18694	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18695      ;; #(
18696    *)
18697      # `set' quotes correctly as required by POSIX, so do not add quotes.
18698      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18699      ;;
18700    esac |
18701    sort
18702) |
18703  sed '
18704     /^ac_cv_env_/b end
18705     t clear
18706     :clear
18707     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18708     t end
18709     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18710     :end' >>confcache
18711if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18712  if test -w "$cache_file"; then
18713    test "x$cache_file" != "x/dev/null" &&
18714      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18715$as_echo "$as_me: updating cache $cache_file" >&6;}
18716    cat confcache >$cache_file
18717  else
18718    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18720  fi
18721fi
18722rm -f confcache
18723
18724test "x$prefix" = xNONE && prefix=$ac_default_prefix
18725# Let make expand exec_prefix.
18726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18727
18728DEFS=-DHAVE_CONFIG_H
18729
18730ac_libobjs=
18731ac_ltlibobjs=
18732for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18733  # 1. Remove the extension, and $U if already installed.
18734  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18735  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18736  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18737  #    will be set to the directory where LIBOBJS objects are built.
18738  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18739  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18740done
18741LIBOBJS=$ac_libobjs
18742
18743LTLIBOBJS=$ac_ltlibobjs
18744
18745
18746 if test -n "$EXEEXT"; then
18747  am__EXEEXT_TRUE=
18748  am__EXEEXT_FALSE='#'
18749else
18750  am__EXEEXT_TRUE='#'
18751  am__EXEEXT_FALSE=
18752fi
18753
18754if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18755  as_fn_error "conditional \"AMDEP\" was never defined.
18756Usually this means the macro was only invoked conditionally." "$LINENO" 5
18757fi
18758if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18759  as_fn_error "conditional \"am__fastdepCC\" was never defined.
18760Usually this means the macro was only invoked conditionally." "$LINENO" 5
18761fi
18762if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18763  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
18764Usually this means the macro was only invoked conditionally." "$LINENO" 5
18765fi
18766if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
18767  as_fn_error "conditional \"USE_NLS\" was never defined.
18768Usually this means the macro was only invoked conditionally." "$LINENO" 5
18769fi
18770if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18771  as_fn_error "conditional \"am__fastdepCC\" was never defined.
18772Usually this means the macro was only invoked conditionally." "$LINENO" 5
18773fi
18774if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18775  as_fn_error "conditional \"am__fastdepCC\" was never defined.
18776Usually this means the macro was only invoked conditionally." "$LINENO" 5
18777fi
18778if test -z "${BUILD_FOOMATIC_TRUE}" && test -z "${BUILD_FOOMATIC_FALSE}"; then
18779  as_fn_error "conditional \"BUILD_FOOMATIC\" was never defined.
18780Usually this means the macro was only invoked conditionally." "$LINENO" 5
18781fi
18782if test -z "${BUILD_FOOMATIC_3_TRUE}" && test -z "${BUILD_FOOMATIC_3_FALSE}"; then
18783  as_fn_error "conditional \"BUILD_FOOMATIC_3\" was never defined.
18784Usually this means the macro was only invoked conditionally." "$LINENO" 5
18785fi
18786if test -z "${BUILD_GHOSTSCRIPT_TRUE}" && test -z "${BUILD_GHOSTSCRIPT_FALSE}"; then
18787  as_fn_error "conditional \"BUILD_GHOSTSCRIPT\" was never defined.
18788Usually this means the macro was only invoked conditionally." "$LINENO" 5
18789fi
18790if test -z "${BUILD_CUPS_TRUE}" && test -z "${BUILD_CUPS_FALSE}"; then
18791  as_fn_error "conditional \"BUILD_CUPS\" was never defined.
18792Usually this means the macro was only invoked conditionally." "$LINENO" 5
18793fi
18794if test -z "${BUILD_CUPS_1_2_TRUE}" && test -z "${BUILD_CUPS_1_2_FALSE}"; then
18795  as_fn_error "conditional \"BUILD_CUPS_1_2\" was never defined.
18796Usually this means the macro was only invoked conditionally." "$LINENO" 5
18797fi
18798if test -z "${BUILD_CUPS_PPDS_TRUE}" && test -z "${BUILD_CUPS_PPDS_FALSE}"; then
18799  as_fn_error "conditional \"BUILD_CUPS_PPDS\" was never defined.
18800Usually this means the macro was only invoked conditionally." "$LINENO" 5
18801fi
18802if test -z "${CUPS_PPDS_AT_TOP_LEVEL_TRUE}" && test -z "${CUPS_PPDS_AT_TOP_LEVEL_FALSE}"; then
18803  as_fn_error "conditional \"CUPS_PPDS_AT_TOP_LEVEL\" was never defined.
18804Usually this means the macro was only invoked conditionally." "$LINENO" 5
18805fi
18806if test -z "${BUILD_TRANSLATED_CUPS_PPDS_TRUE}" && test -z "${BUILD_TRANSLATED_CUPS_PPDS_FALSE}"; then
18807  as_fn_error "conditional \"BUILD_TRANSLATED_CUPS_PPDS\" was never defined.
18808Usually this means the macro was only invoked conditionally." "$LINENO" 5
18809fi
18810if test -z "${BUILD_GLOBALIZED_CUPS_PPDS_TRUE}" && test -z "${BUILD_GLOBALIZED_CUPS_PPDS_FALSE}"; then
18811  as_fn_error "conditional \"BUILD_GLOBALIZED_CUPS_PPDS\" was never defined.
18812Usually this means the macro was only invoked conditionally." "$LINENO" 5
18813fi
18814if test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_TRUE}" && test -z "${BUILD_SIMPLIFIED_CUPS_PPDS_FALSE}"; then
18815  as_fn_error "conditional \"BUILD_SIMPLIFIED_CUPS_PPDS\" was never defined.
18816Usually this means the macro was only invoked conditionally." "$LINENO" 5
18817fi
18818if test -z "${USE_LEVEL3_PS_TRUE}" && test -z "${USE_LEVEL3_PS_FALSE}"; then
18819  as_fn_error "conditional \"USE_LEVEL3_PS\" was never defined.
18820Usually this means the macro was only invoked conditionally." "$LINENO" 5
18821fi
18822if test -z "${BUILD_ESCPUTIL_TRUE}" && test -z "${BUILD_ESCPUTIL_FALSE}"; then
18823  as_fn_error "conditional \"BUILD_ESCPUTIL\" was never defined.
18824Usually this means the macro was only invoked conditionally." "$LINENO" 5
18825fi
18826if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
18827  as_fn_error "conditional \"BUILD_TEST\" was never defined.
18828Usually this means the macro was only invoked conditionally." "$LINENO" 5
18829fi
18830if test -z "${BUILD_TESTPATTERN_TRUE}" && test -z "${BUILD_TESTPATTERN_FALSE}"; then
18831  as_fn_error "conditional \"BUILD_TESTPATTERN\" was never defined.
18832Usually this means the macro was only invoked conditionally." "$LINENO" 5
18833fi
18834if test -z "${BUILD_LIBGUTENPRINTUI2_TRUE}" && test -z "${BUILD_LIBGUTENPRINTUI2_FALSE}"; then
18835  as_fn_error "conditional \"BUILD_LIBGUTENPRINTUI2\" was never defined.
18836Usually this means the macro was only invoked conditionally." "$LINENO" 5
18837fi
18838if test -z "${BUILD_GIMP2_TRUE}" && test -z "${BUILD_GIMP2_FALSE}"; then
18839  as_fn_error "conditional \"BUILD_GIMP2\" was never defined.
18840Usually this means the macro was only invoked conditionally." "$LINENO" 5
18841fi
18842if test -z "${BUILD_GIMP2_AS_GUTENPRINT_TRUE}" && test -z "${BUILD_GIMP2_AS_GUTENPRINT_FALSE}"; then
18843  as_fn_error "conditional \"BUILD_GIMP2_AS_GUTENPRINT\" was never defined.
18844Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845fi
18846if test -z "${INSTALL_SAMPLES_TRUE}" && test -z "${INSTALL_SAMPLES_FALSE}"; then
18847  as_fn_error "conditional \"INSTALL_SAMPLES\" was never defined.
18848Usually this means the macro was only invoked conditionally." "$LINENO" 5
18849fi
18850if test -z "${INSTALL_USER_GUIDE_TRUE}" && test -z "${INSTALL_USER_GUIDE_FALSE}"; then
18851  as_fn_error "conditional \"INSTALL_USER_GUIDE\" was never defined.
18852Usually this means the macro was only invoked conditionally." "$LINENO" 5
18853fi
18854if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
18855  as_fn_error "conditional \"BUILD_MODULES\" was never defined.
18856Usually this means the macro was only invoked conditionally." "$LINENO" 5
18857fi
18858if test -z "${BUILD_GENPPD_STATIC_TRUE}" && test -z "${BUILD_GENPPD_STATIC_FALSE}"; then
18859  as_fn_error "conditional \"BUILD_GENPPD_STATIC\" was never defined.
18860Usually this means the macro was only invoked conditionally." "$LINENO" 5
18861fi
18862LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
18863
18864LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'`
18865
18866
18867: ${CONFIG_STATUS=./config.status}
18868ac_write_fail=0
18869ac_clean_files_save=$ac_clean_files
18870ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18872$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18873as_write_fail=0
18874cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18875#! $SHELL
18876# Generated by $as_me.
18877# Run this file to recreate the current configuration.
18878# Compiler output produced by configure, useful for debugging
18879# configure, is in config.log if it exists.
18880
18881debug=false
18882ac_cs_recheck=false
18883ac_cs_silent=false
18884
18885SHELL=\${CONFIG_SHELL-$SHELL}
18886export SHELL
18887_ASEOF
18888cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18889## -------------------- ##
18890## M4sh Initialization. ##
18891## -------------------- ##
18892
18893# Be more Bourne compatible
18894DUALCASE=1; export DUALCASE # for MKS sh
18895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18896  emulate sh
18897  NULLCMD=:
18898  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18899  # is contrary to our usage.  Disable this feature.
18900  alias -g '${1+"$@"}'='"$@"'
18901  setopt NO_GLOB_SUBST
18902else
18903  case `(set -o) 2>/dev/null` in #(
18904  *posix*) :
18905    set -o posix ;; #(
18906  *) :
18907     ;;
18908esac
18909fi
18910
18911
18912as_nl='
18913'
18914export as_nl
18915# Printing a long string crashes Solaris 7 /usr/bin/printf.
18916as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18918as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18919# Prefer a ksh shell builtin over an external printf program on Solaris,
18920# but without wasting forks for bash or zsh.
18921if test -z "$BASH_VERSION$ZSH_VERSION" \
18922    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18923  as_echo='print -r --'
18924  as_echo_n='print -rn --'
18925elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18926  as_echo='printf %s\n'
18927  as_echo_n='printf %s'
18928else
18929  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18930    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18931    as_echo_n='/usr/ucb/echo -n'
18932  else
18933    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18934    as_echo_n_body='eval
18935      arg=$1;
18936      case $arg in #(
18937      *"$as_nl"*)
18938	expr "X$arg" : "X\\(.*\\)$as_nl";
18939	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18940      esac;
18941      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18942    '
18943    export as_echo_n_body
18944    as_echo_n='sh -c $as_echo_n_body as_echo'
18945  fi
18946  export as_echo_body
18947  as_echo='sh -c $as_echo_body as_echo'
18948fi
18949
18950# The user is always right.
18951if test "${PATH_SEPARATOR+set}" != set; then
18952  PATH_SEPARATOR=:
18953  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18954    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18955      PATH_SEPARATOR=';'
18956  }
18957fi
18958
18959
18960# IFS
18961# We need space, tab and new line, in precisely that order.  Quoting is
18962# there to prevent editors from complaining about space-tab.
18963# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18964# splitting by setting IFS to empty value.)
18965IFS=" ""	$as_nl"
18966
18967# Find who we are.  Look in the path if we contain no directory separator.
18968case $0 in #((
18969  *[\\/]* ) as_myself=$0 ;;
18970  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18971for as_dir in $PATH
18972do
18973  IFS=$as_save_IFS
18974  test -z "$as_dir" && as_dir=.
18975    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18976  done
18977IFS=$as_save_IFS
18978
18979     ;;
18980esac
18981# We did not find ourselves, most probably we were run as `sh COMMAND'
18982# in which case we are not to be found in the path.
18983if test "x$as_myself" = x; then
18984  as_myself=$0
18985fi
18986if test ! -f "$as_myself"; then
18987  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18988  exit 1
18989fi
18990
18991# Unset variables that we do not need and which cause bugs (e.g. in
18992# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18993# suppresses any "Segmentation fault" message there.  '((' could
18994# trigger a bug in pdksh 5.2.14.
18995for as_var in BASH_ENV ENV MAIL MAILPATH
18996do eval test x\${$as_var+set} = xset \
18997  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18998done
18999PS1='$ '
19000PS2='> '
19001PS4='+ '
19002
19003# NLS nuisances.
19004LC_ALL=C
19005export LC_ALL
19006LANGUAGE=C
19007export LANGUAGE
19008
19009# CDPATH.
19010(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19011
19012
19013# as_fn_error ERROR [LINENO LOG_FD]
19014# ---------------------------------
19015# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19016# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19017# script with status $?, using 1 if that was 0.
19018as_fn_error ()
19019{
19020  as_status=$?; test $as_status -eq 0 && as_status=1
19021  if test "$3"; then
19022    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19023    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19024  fi
19025  $as_echo "$as_me: error: $1" >&2
19026  as_fn_exit $as_status
19027} # as_fn_error
19028
19029
19030# as_fn_set_status STATUS
19031# -----------------------
19032# Set $? to STATUS, without forking.
19033as_fn_set_status ()
19034{
19035  return $1
19036} # as_fn_set_status
19037
19038# as_fn_exit STATUS
19039# -----------------
19040# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19041as_fn_exit ()
19042{
19043  set +e
19044  as_fn_set_status $1
19045  exit $1
19046} # as_fn_exit
19047
19048# as_fn_unset VAR
19049# ---------------
19050# Portably unset VAR.
19051as_fn_unset ()
19052{
19053  { eval $1=; unset $1;}
19054}
19055as_unset=as_fn_unset
19056# as_fn_append VAR VALUE
19057# ----------------------
19058# Append the text in VALUE to the end of the definition contained in VAR. Take
19059# advantage of any shell optimizations that allow amortized linear growth over
19060# repeated appends, instead of the typical quadratic growth present in naive
19061# implementations.
19062if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19063  eval 'as_fn_append ()
19064  {
19065    eval $1+=\$2
19066  }'
19067else
19068  as_fn_append ()
19069  {
19070    eval $1=\$$1\$2
19071  }
19072fi # as_fn_append
19073
19074# as_fn_arith ARG...
19075# ------------------
19076# Perform arithmetic evaluation on the ARGs, and store the result in the
19077# global $as_val. Take advantage of shells that can avoid forks. The arguments
19078# must be portable across $(()) and expr.
19079if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19080  eval 'as_fn_arith ()
19081  {
19082    as_val=$(( $* ))
19083  }'
19084else
19085  as_fn_arith ()
19086  {
19087    as_val=`expr "$@" || test $? -eq 1`
19088  }
19089fi # as_fn_arith
19090
19091
19092if expr a : '\(a\)' >/dev/null 2>&1 &&
19093   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19094  as_expr=expr
19095else
19096  as_expr=false
19097fi
19098
19099if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19100  as_basename=basename
19101else
19102  as_basename=false
19103fi
19104
19105if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19106  as_dirname=dirname
19107else
19108  as_dirname=false
19109fi
19110
19111as_me=`$as_basename -- "$0" ||
19112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19113	 X"$0" : 'X\(//\)$' \| \
19114	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19115$as_echo X/"$0" |
19116    sed '/^.*\/\([^/][^/]*\)\/*$/{
19117	    s//\1/
19118	    q
19119	  }
19120	  /^X\/\(\/\/\)$/{
19121	    s//\1/
19122	    q
19123	  }
19124	  /^X\/\(\/\).*/{
19125	    s//\1/
19126	    q
19127	  }
19128	  s/.*/./; q'`
19129
19130# Avoid depending upon Character Ranges.
19131as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19133as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19134as_cr_digits='0123456789'
19135as_cr_alnum=$as_cr_Letters$as_cr_digits
19136
19137ECHO_C= ECHO_N= ECHO_T=
19138case `echo -n x` in #(((((
19139-n*)
19140  case `echo 'xy\c'` in
19141  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19142  xy)  ECHO_C='\c';;
19143  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19144       ECHO_T='	';;
19145  esac;;
19146*)
19147  ECHO_N='-n';;
19148esac
19149
19150rm -f conf$$ conf$$.exe conf$$.file
19151if test -d conf$$.dir; then
19152  rm -f conf$$.dir/conf$$.file
19153else
19154  rm -f conf$$.dir
19155  mkdir conf$$.dir 2>/dev/null
19156fi
19157if (echo >conf$$.file) 2>/dev/null; then
19158  if ln -s conf$$.file conf$$ 2>/dev/null; then
19159    as_ln_s='ln -s'
19160    # ... but there are two gotchas:
19161    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19162    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19163    # In both cases, we have to default to `cp -p'.
19164    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19165      as_ln_s='cp -p'
19166  elif ln conf$$.file conf$$ 2>/dev/null; then
19167    as_ln_s=ln
19168  else
19169    as_ln_s='cp -p'
19170  fi
19171else
19172  as_ln_s='cp -p'
19173fi
19174rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19175rmdir conf$$.dir 2>/dev/null
19176
19177
19178# as_fn_mkdir_p
19179# -------------
19180# Create "$as_dir" as a directory, including parents if necessary.
19181as_fn_mkdir_p ()
19182{
19183
19184  case $as_dir in #(
19185  -*) as_dir=./$as_dir;;
19186  esac
19187  test -d "$as_dir" || eval $as_mkdir_p || {
19188    as_dirs=
19189    while :; do
19190      case $as_dir in #(
19191      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19192      *) as_qdir=$as_dir;;
19193      esac
19194      as_dirs="'$as_qdir' $as_dirs"
19195      as_dir=`$as_dirname -- "$as_dir" ||
19196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19197	 X"$as_dir" : 'X\(//\)[^/]' \| \
19198	 X"$as_dir" : 'X\(//\)$' \| \
19199	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19200$as_echo X"$as_dir" |
19201    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19202	    s//\1/
19203	    q
19204	  }
19205	  /^X\(\/\/\)[^/].*/{
19206	    s//\1/
19207	    q
19208	  }
19209	  /^X\(\/\/\)$/{
19210	    s//\1/
19211	    q
19212	  }
19213	  /^X\(\/\).*/{
19214	    s//\1/
19215	    q
19216	  }
19217	  s/.*/./; q'`
19218      test -d "$as_dir" && break
19219    done
19220    test -z "$as_dirs" || eval "mkdir $as_dirs"
19221  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19222
19223
19224} # as_fn_mkdir_p
19225if mkdir -p . 2>/dev/null; then
19226  as_mkdir_p='mkdir -p "$as_dir"'
19227else
19228  test -d ./-p && rmdir ./-p
19229  as_mkdir_p=false
19230fi
19231
19232if test -x / >/dev/null 2>&1; then
19233  as_test_x='test -x'
19234else
19235  if ls -dL / >/dev/null 2>&1; then
19236    as_ls_L_option=L
19237  else
19238    as_ls_L_option=
19239  fi
19240  as_test_x='
19241    eval sh -c '\''
19242      if test -d "$1"; then
19243	test -d "$1/.";
19244      else
19245	case $1 in #(
19246	-*)set "./$1";;
19247	esac;
19248	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19249	???[sx]*):;;*)false;;esac;fi
19250    '\'' sh
19251  '
19252fi
19253as_executable_p=$as_test_x
19254
19255# Sed expression to map a string onto a valid CPP name.
19256as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19257
19258# Sed expression to map a string onto a valid variable name.
19259as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19260
19261
19262exec 6>&1
19263## ----------------------------------- ##
19264## Main body of $CONFIG_STATUS script. ##
19265## ----------------------------------- ##
19266_ASEOF
19267test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19268
19269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19270# Save the log message, to keep $0 and so on meaningful, and to
19271# report actual input values of CONFIG_FILES etc. instead of their
19272# values after options handling.
19273ac_log="
19274This file was extended by gutenprint $as_me 5.2.7, which was
19275generated by GNU Autoconf 2.65.  Invocation command line was
19276
19277  CONFIG_FILES    = $CONFIG_FILES
19278  CONFIG_HEADERS  = $CONFIG_HEADERS
19279  CONFIG_LINKS    = $CONFIG_LINKS
19280  CONFIG_COMMANDS = $CONFIG_COMMANDS
19281  $ $0 $@
19282
19283on `(hostname || uname -n) 2>/dev/null | sed 1q`
19284"
19285
19286_ACEOF
19287
19288case $ac_config_files in *"
19289"*) set x $ac_config_files; shift; ac_config_files=$*;;
19290esac
19291
19292case $ac_config_headers in *"
19293"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19294esac
19295
19296
19297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19298# Files that config.status was made for.
19299config_files="$ac_config_files"
19300config_headers="$ac_config_headers"
19301config_commands="$ac_config_commands"
19302
19303_ACEOF
19304
19305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19306ac_cs_usage="\
19307\`$as_me' instantiates files and other configuration actions
19308from templates according to the current configuration.  Unless the files
19309and actions are specified as TAGs, all are instantiated by default.
19310
19311Usage: $0 [OPTION]... [TAG]...
19312
19313  -h, --help       print this help, then exit
19314  -V, --version    print version number and configuration settings, then exit
19315      --config     print configuration, then exit
19316  -q, --quiet, --silent
19317                   do not print progress messages
19318  -d, --debug      don't remove temporary files
19319      --recheck    update $as_me by reconfiguring in the same conditions
19320      --file=FILE[:TEMPLATE]
19321                   instantiate the configuration file FILE
19322      --header=FILE[:TEMPLATE]
19323                   instantiate the configuration header FILE
19324
19325Configuration files:
19326$config_files
19327
19328Configuration headers:
19329$config_headers
19330
19331Configuration commands:
19332$config_commands
19333
19334Report bugs to <gimp-print-devel@lists.sourceforge.net>."
19335
19336_ACEOF
19337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19339ac_cs_version="\\
19340gutenprint config.status 5.2.7
19341configured by $0, generated by GNU Autoconf 2.65,
19342  with options \\"\$ac_cs_config\\"
19343
19344Copyright (C) 2009 Free Software Foundation, Inc.
19345This config.status script is free software; the Free Software Foundation
19346gives unlimited permission to copy, distribute and modify it."
19347
19348ac_pwd='$ac_pwd'
19349srcdir='$srcdir'
19350INSTALL='$INSTALL'
19351MKDIR_P='$MKDIR_P'
19352AWK='$AWK'
19353test -n "\$AWK" || AWK=awk
19354_ACEOF
19355
19356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357# The default lists apply if the user does not specify any file.
19358ac_need_defaults=:
19359while test $# != 0
19360do
19361  case $1 in
19362  --*=*)
19363    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19364    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19365    ac_shift=:
19366    ;;
19367  *)
19368    ac_option=$1
19369    ac_optarg=$2
19370    ac_shift=shift
19371    ;;
19372  esac
19373
19374  case $ac_option in
19375  # Handling of the options.
19376  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19377    ac_cs_recheck=: ;;
19378  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19379    $as_echo "$ac_cs_version"; exit ;;
19380  --config | --confi | --conf | --con | --co | --c )
19381    $as_echo "$ac_cs_config"; exit ;;
19382  --debug | --debu | --deb | --de | --d | -d )
19383    debug=: ;;
19384  --file | --fil | --fi | --f )
19385    $ac_shift
19386    case $ac_optarg in
19387    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19388    esac
19389    as_fn_append CONFIG_FILES " '$ac_optarg'"
19390    ac_need_defaults=false;;
19391  --header | --heade | --head | --hea )
19392    $ac_shift
19393    case $ac_optarg in
19394    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19395    esac
19396    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19397    ac_need_defaults=false;;
19398  --he | --h)
19399    # Conflict between --help and --header
19400    as_fn_error "ambiguous option: \`$1'
19401Try \`$0 --help' for more information.";;
19402  --help | --hel | -h )
19403    $as_echo "$ac_cs_usage"; exit ;;
19404  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19405  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19406    ac_cs_silent=: ;;
19407
19408  # This is an error.
19409  -*) as_fn_error "unrecognized option: \`$1'
19410Try \`$0 --help' for more information." ;;
19411
19412  *) as_fn_append ac_config_targets " $1"
19413     ac_need_defaults=false ;;
19414
19415  esac
19416  shift
19417done
19418
19419ac_configure_extra_args=
19420
19421if $ac_cs_silent; then
19422  exec 6>/dev/null
19423  ac_configure_extra_args="$ac_configure_extra_args --silent"
19424fi
19425
19426_ACEOF
19427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19428if \$ac_cs_recheck; then
19429  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19430  shift
19431  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19432  CONFIG_SHELL='$SHELL'
19433  export CONFIG_SHELL
19434  exec "\$@"
19435fi
19436
19437_ACEOF
19438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19439exec 5>>config.log
19440{
19441  echo
19442  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19443## Running $as_me. ##
19444_ASBOX
19445  $as_echo "$ac_log"
19446} >&5
19447
19448_ACEOF
19449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19450#
19451# INIT-COMMANDS
19452#
19453AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19454
19455
19456# The HP-UX ksh and POSIX shell print the target directory to stdout
19457# if CDPATH is set.
19458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19459
19460sed_quote_subst='$sed_quote_subst'
19461double_quote_subst='$double_quote_subst'
19462delay_variable_subst='$delay_variable_subst'
19463enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19464macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19465macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19466enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19467pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19468enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19469host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19470host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19471host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19472build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19473build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19474build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19475SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19476Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19477GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19478EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19479FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19480LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19481NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19482LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19483max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19484ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19485exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19486lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19487lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19488lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19489reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19490reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19491OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19492deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19493file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19494AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19495AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19496STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19497RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19498old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19499old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19500old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19501CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19502CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19503compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19504GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19505lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19506lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19507lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19508lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19509objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19510SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19511ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19512MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19513lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19514lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19515lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19516lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19517lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19518need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19519DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19520NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19521LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19522OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19523OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19524libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19525shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19526extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19527archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19528enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19529export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19530whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19531compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19532old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19533old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19534archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19535archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19536module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19537module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19538with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19539allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19540no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19541hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19542hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19543hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19544hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19545hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19546hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19547hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19548hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19549inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19550link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19551fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19552always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19553export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19554exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19555include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19556prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19557file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19558variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19559need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19560need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19561version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19562runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19563shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19564shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19565libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19566library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19567soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19568postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19569postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19570finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19571finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19572hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19573sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19574sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19575hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19576enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19577enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19578enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19579old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19580striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19581
19582LTCC='$LTCC'
19583LTCFLAGS='$LTCFLAGS'
19584compiler='$compiler_DEFAULT'
19585
19586# Quote evaled strings.
19587for var in SED \
19588GREP \
19589EGREP \
19590FGREP \
19591LD \
19592NM \
19593LN_S \
19594lt_SP2NL \
19595lt_NL2SP \
19596reload_flag \
19597OBJDUMP \
19598deplibs_check_method \
19599file_magic_cmd \
19600AR \
19601AR_FLAGS \
19602STRIP \
19603RANLIB \
19604CC \
19605CFLAGS \
19606compiler \
19607lt_cv_sys_global_symbol_pipe \
19608lt_cv_sys_global_symbol_to_cdecl \
19609lt_cv_sys_global_symbol_to_c_name_address \
19610lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19611SHELL \
19612ECHO \
19613lt_prog_compiler_no_builtin_flag \
19614lt_prog_compiler_wl \
19615lt_prog_compiler_pic \
19616lt_prog_compiler_static \
19617lt_cv_prog_compiler_c_o \
19618need_locks \
19619DSYMUTIL \
19620NMEDIT \
19621LIPO \
19622OTOOL \
19623OTOOL64 \
19624shrext_cmds \
19625export_dynamic_flag_spec \
19626whole_archive_flag_spec \
19627compiler_needs_object \
19628with_gnu_ld \
19629allow_undefined_flag \
19630no_undefined_flag \
19631hardcode_libdir_flag_spec \
19632hardcode_libdir_flag_spec_ld \
19633hardcode_libdir_separator \
19634fix_srcfile_path \
19635exclude_expsyms \
19636include_expsyms \
19637file_list_spec \
19638variables_saved_for_relink \
19639libname_spec \
19640library_names_spec \
19641soname_spec \
19642finish_eval \
19643old_striplib \
19644striplib; do
19645    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19646    *[\\\\\\\`\\"\\\$]*)
19647      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19648      ;;
19649    *)
19650      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19651      ;;
19652    esac
19653done
19654
19655# Double-quote double-evaled strings.
19656for var in reload_cmds \
19657old_postinstall_cmds \
19658old_postuninstall_cmds \
19659old_archive_cmds \
19660extract_expsyms_cmds \
19661old_archive_from_new_cmds \
19662old_archive_from_expsyms_cmds \
19663archive_cmds \
19664archive_expsym_cmds \
19665module_cmds \
19666module_expsym_cmds \
19667export_symbols_cmds \
19668prelink_cmds \
19669postinstall_cmds \
19670postuninstall_cmds \
19671finish_cmds \
19672sys_lib_search_path_spec \
19673sys_lib_dlsearch_path_spec; do
19674    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19675    *[\\\\\\\`\\"\\\$]*)
19676      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19677      ;;
19678    *)
19679      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19680      ;;
19681    esac
19682done
19683
19684# Fix-up fallback echo if it was mangled by the above quoting rules.
19685case \$lt_ECHO in
19686*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19687  ;;
19688esac
19689
19690ac_aux_dir='$ac_aux_dir'
19691xsi_shell='$xsi_shell'
19692lt_shell_append='$lt_shell_append'
19693
19694# See if we are running on zsh, and set the options which allow our
19695# commands through without removal of \ escapes INIT.
19696if test -n "\${ZSH_VERSION+set}" ; then
19697   setopt NO_GLOB_SUBST
19698fi
19699
19700
19701    PACKAGE='$PACKAGE'
19702    VERSION='$VERSION'
19703    TIMESTAMP='$TIMESTAMP'
19704    RM='$RM'
19705    ofile='$ofile'
19706
19707
19708
19709# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19710    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19711    # from automake < 1.5.
19712    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19713    # Capture the value of LINGUAS because we need it to compute CATALOGS.
19714    LINGUAS="${LINGUAS-%UNSET%}"
19715
19716GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_RELEASE_VERSION}
19717
19718
19719_ACEOF
19720
19721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19722
19723# Handling of arguments.
19724for ac_config_target in $ac_config_targets
19725do
19726  case $ac_config_target in
19727    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19728    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19729    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19730    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19731    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19732    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19733    "doc/gutenprint.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprint.dox" ;;
19734    "doc/gutenprintui2.dox") CONFIG_FILES="$CONFIG_FILES doc/gutenprintui2.dox" ;;
19735    "doc/developer/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/Makefile" ;;
19736    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19737    "include/gutenprint/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprint/Makefile" ;;
19738    "include/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES include/gutenprintui2/Makefile" ;;
19739    "include/gutenprint/gutenprint-version.h") CONFIG_FILES="$CONFIG_FILES include/gutenprint/gutenprint-version.h" ;;
19740    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19741    "man/cups-calibrate.8") CONFIG_FILES="$CONFIG_FILES man/cups-calibrate.8" ;;
19742    "man/cups-genppd.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppd.8" ;;
19743    "man/cups-genppdupdate.8") CONFIG_FILES="$CONFIG_FILES man/cups-genppdupdate.8" ;;
19744    "man/escputil.1") CONFIG_FILES="$CONFIG_FILES man/escputil.1" ;;
19745    "man/ijsgutenprint.1") CONFIG_FILES="$CONFIG_FILES man/ijsgutenprint.1" ;;
19746    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19747    "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
19748    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19749    "src/cups/Makefile") CONFIG_FILES="$CONFIG_FILES src/cups/Makefile" ;;
19750    "src/cups/Info.plist") CONFIG_FILES="$CONFIG_FILES src/cups/Info.plist" ;;
19751    "src/cups/cups-genppdupdate") CONFIG_FILES="$CONFIG_FILES src/cups/cups-genppdupdate" ;;
19752    "src/escputil/Makefile") CONFIG_FILES="$CONFIG_FILES src/escputil/Makefile" ;;
19753    "src/foomatic/Makefile") CONFIG_FILES="$CONFIG_FILES src/foomatic/Makefile" ;;
19754    "src/foomatic/foomatic-generator") CONFIG_FILES="$CONFIG_FILES src/foomatic/foomatic-generator" ;;
19755    "src/foomatic/mk_printerlist") CONFIG_FILES="$CONFIG_FILES src/foomatic/mk_printerlist" ;;
19756    "src/testpattern/run-testpattern-2") CONFIG_FILES="$CONFIG_FILES src/testpattern/run-testpattern-2" ;;
19757    "src/cups/test-rastertogutenprint") CONFIG_FILES="$CONFIG_FILES src/cups/test-rastertogutenprint" ;;
19758    "src/ghost/Makefile") CONFIG_FILES="$CONFIG_FILES src/ghost/Makefile" ;;
19759    "src/testpattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/testpattern/Makefile" ;;
19760    "src/gimp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gimp2/Makefile" ;;
19761    "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
19762    "src/main/gutenprint.pc") CONFIG_FILES="$CONFIG_FILES src/main/gutenprint.pc" ;;
19763    "src/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/Makefile" ;;
19764    "src/xml/escp2/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/Makefile" ;;
19765    "src/xml/escp2/media/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/media/Makefile" ;;
19766    "src/xml/escp2/mediasizes/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/mediasizes/Makefile" ;;
19767    "src/xml/escp2/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/model/Makefile" ;;
19768    "src/xml/escp2/inputslots/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inputslots/Makefile" ;;
19769    "src/xml/escp2/inks/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/inks/Makefile" ;;
19770    "src/xml/escp2/weaves/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/weaves/Makefile" ;;
19771    "src/xml/escp2/qualitypresets/Makefile") CONFIG_FILES="$CONFIG_FILES src/xml/escp2/qualitypresets/Makefile" ;;
19772    "src/gutenprintui2/Makefile") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/Makefile" ;;
19773    "src/gutenprintui2/gutenprintui2.pc") CONFIG_FILES="$CONFIG_FILES src/gutenprintui2/gutenprintui2.pc" ;;
19774    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19775    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19776    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19777
19778  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19779  esac
19780done
19781
19782
19783# If the user did not use the arguments to specify the items to instantiate,
19784# then the envvar interface is used.  Set only those that are not.
19785# We use the long form for the default assignment because of an extremely
19786# bizarre bug on SunOS 4.1.3.
19787if $ac_need_defaults; then
19788  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19789  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19790  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19791fi
19792
19793# Have a temporary directory for convenience.  Make it in the build tree
19794# simply because there is no reason against having it here, and in addition,
19795# creating and moving files from /tmp can sometimes cause problems.
19796# Hook for its removal unless debugging.
19797# Note that there is a small window in which the directory will not be cleaned:
19798# after its creation but before its name has been assigned to `$tmp'.
19799$debug ||
19800{
19801  tmp=
19802  trap 'exit_status=$?
19803  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19804' 0
19805  trap 'as_fn_exit 1' 1 2 13 15
19806}
19807# Create a (secure) tmp directory for tmp files.
19808
19809{
19810  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19811  test -n "$tmp" && test -d "$tmp"
19812}  ||
19813{
19814  tmp=./conf$$-$RANDOM
19815  (umask 077 && mkdir "$tmp")
19816} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19817
19818# Set up the scripts for CONFIG_FILES section.
19819# No need to generate them if there are no CONFIG_FILES.
19820# This happens for instance with `./config.status config.h'.
19821if test -n "$CONFIG_FILES"; then
19822
19823
19824ac_cr=`echo X | tr X '\015'`
19825# On cygwin, bash can eat \r inside `` if the user requested igncr.
19826# But we know of no other shell where ac_cr would be empty at this
19827# point, so we can use a bashism as a fallback.
19828if test "x$ac_cr" = x; then
19829  eval ac_cr=\$\'\\r\'
19830fi
19831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19833  ac_cs_awk_cr='\r'
19834else
19835  ac_cs_awk_cr=$ac_cr
19836fi
19837
19838echo 'BEGIN {' >"$tmp/subs1.awk" &&
19839_ACEOF
19840
19841
19842{
19843  echo "cat >conf$$subs.awk <<_ACEOF" &&
19844  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19845  echo "_ACEOF"
19846} >conf$$subs.sh ||
19847  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19848ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19849ac_delim='%!_!# '
19850for ac_last_try in false false false false false :; do
19851  . ./conf$$subs.sh ||
19852    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19853
19854  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19855  if test $ac_delim_n = $ac_delim_num; then
19856    break
19857  elif $ac_last_try; then
19858    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19859  else
19860    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19861  fi
19862done
19863rm -f conf$$subs.sh
19864
19865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19866cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19867_ACEOF
19868sed -n '
19869h
19870s/^/S["/; s/!.*/"]=/
19871p
19872g
19873s/^[^!]*!//
19874:repl
19875t repl
19876s/'"$ac_delim"'$//
19877t delim
19878:nl
19879h
19880s/\(.\{148\}\)..*/\1/
19881t more1
19882s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19883p
19884n
19885b repl
19886:more1
19887s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19888p
19889g
19890s/.\{148\}//
19891t nl
19892:delim
19893h
19894s/\(.\{148\}\)..*/\1/
19895t more2
19896s/["\\]/\\&/g; s/^/"/; s/$/"/
19897p
19898b
19899:more2
19900s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19901p
19902g
19903s/.\{148\}//
19904t delim
19905' <conf$$subs.awk | sed '
19906/^[^""]/{
19907  N
19908  s/\n//
19909}
19910' >>$CONFIG_STATUS || ac_write_fail=1
19911rm -f conf$$subs.awk
19912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19913_ACAWK
19914cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19915  for (key in S) S_is_set[key] = 1
19916  FS = ""
19917
19918}
19919{
19920  line = $ 0
19921  nfields = split(line, field, "@")
19922  substed = 0
19923  len = length(field[1])
19924  for (i = 2; i < nfields; i++) {
19925    key = field[i]
19926    keylen = length(key)
19927    if (S_is_set[key]) {
19928      value = S[key]
19929      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19930      len += length(value) + length(field[++i])
19931      substed = 1
19932    } else
19933      len += 1 + keylen
19934  }
19935
19936  print line
19937}
19938
19939_ACAWK
19940_ACEOF
19941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19943  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19944else
19945  cat
19946fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19947  || as_fn_error "could not setup config files machinery" "$LINENO" 5
19948_ACEOF
19949
19950# VPATH may cause trouble with some makes, so we remove $(srcdir),
19951# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19952# trailing colons and then remove the whole line if VPATH becomes empty
19953# (actually we leave an empty line to preserve line numbers).
19954if test "x$srcdir" = x.; then
19955  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19956s/:*\$(srcdir):*/:/
19957s/:*\${srcdir}:*/:/
19958s/:*@srcdir@:*/:/
19959s/^\([^=]*=[	 ]*\):*/\1/
19960s/:*$//
19961s/^[^=]*=[	 ]*$//
19962}'
19963fi
19964
19965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19966fi # test -n "$CONFIG_FILES"
19967
19968# Set up the scripts for CONFIG_HEADERS section.
19969# No need to generate them if there are no CONFIG_HEADERS.
19970# This happens for instance with `./config.status Makefile'.
19971if test -n "$CONFIG_HEADERS"; then
19972cat >"$tmp/defines.awk" <<\_ACAWK ||
19973BEGIN {
19974_ACEOF
19975
19976# Transform confdefs.h into an awk script `defines.awk', embedded as
19977# here-document in config.status, that substitutes the proper values into
19978# config.h.in to produce config.h.
19979
19980# Create a delimiter string that does not exist in confdefs.h, to ease
19981# handling of long lines.
19982ac_delim='%!_!# '
19983for ac_last_try in false false :; do
19984  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19985  if test -z "$ac_t"; then
19986    break
19987  elif $ac_last_try; then
19988    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19989  else
19990    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19991  fi
19992done
19993
19994# For the awk script, D is an array of macro values keyed by name,
19995# likewise P contains macro parameters if any.  Preserve backslash
19996# newline sequences.
19997
19998ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19999sed -n '
20000s/.\{148\}/&'"$ac_delim"'/g
20001t rset
20002:rset
20003s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20004t def
20005d
20006:def
20007s/\\$//
20008t bsnl
20009s/["\\]/\\&/g
20010s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20011D["\1"]=" \3"/p
20012s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20013d
20014:bsnl
20015s/["\\]/\\&/g
20016s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20017D["\1"]=" \3\\\\\\n"\\/p
20018t cont
20019s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20020t cont
20021d
20022:cont
20023n
20024s/.\{148\}/&'"$ac_delim"'/g
20025t clear
20026:clear
20027s/\\$//
20028t bsnlc
20029s/["\\]/\\&/g; s/^/"/; s/$/"/p
20030d
20031:bsnlc
20032s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20033b cont
20034' <confdefs.h | sed '
20035s/'"$ac_delim"'/"\\\
20036"/g' >>$CONFIG_STATUS || ac_write_fail=1
20037
20038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20039  for (key in D) D_is_set[key] = 1
20040  FS = ""
20041}
20042/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20043  line = \$ 0
20044  split(line, arg, " ")
20045  if (arg[1] == "#") {
20046    defundef = arg[2]
20047    mac1 = arg[3]
20048  } else {
20049    defundef = substr(arg[1], 2)
20050    mac1 = arg[2]
20051  }
20052  split(mac1, mac2, "(") #)
20053  macro = mac2[1]
20054  prefix = substr(line, 1, index(line, defundef) - 1)
20055  if (D_is_set[macro]) {
20056    # Preserve the white space surrounding the "#".
20057    print prefix "define", macro P[macro] D[macro]
20058    next
20059  } else {
20060    # Replace #undef with comments.  This is necessary, for example,
20061    # in the case of _POSIX_SOURCE, which is predefined and required
20062    # on some systems where configure will not decide to define it.
20063    if (defundef == "undef") {
20064      print "/*", prefix defundef, macro, "*/"
20065      next
20066    }
20067  }
20068}
20069{ print }
20070_ACAWK
20071_ACEOF
20072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073  as_fn_error "could not setup config headers machinery" "$LINENO" 5
20074fi # test -n "$CONFIG_HEADERS"
20075
20076
20077eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20078shift
20079for ac_tag
20080do
20081  case $ac_tag in
20082  :[FHLC]) ac_mode=$ac_tag; continue;;
20083  esac
20084  case $ac_mode$ac_tag in
20085  :[FHL]*:*);;
20086  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20087  :[FH]-) ac_tag=-:-;;
20088  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20089  esac
20090  ac_save_IFS=$IFS
20091  IFS=:
20092  set x $ac_tag
20093  IFS=$ac_save_IFS
20094  shift
20095  ac_file=$1
20096  shift
20097
20098  case $ac_mode in
20099  :L) ac_source=$1;;
20100  :[FH])
20101    ac_file_inputs=
20102    for ac_f
20103    do
20104      case $ac_f in
20105      -) ac_f="$tmp/stdin";;
20106      *) # Look for the file first in the build tree, then in the source tree
20107	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20108	 # because $ac_f cannot contain `:'.
20109	 test -f "$ac_f" ||
20110	   case $ac_f in
20111	   [\\/$]*) false;;
20112	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20113	   esac ||
20114	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20115      esac
20116      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20117      as_fn_append ac_file_inputs " '$ac_f'"
20118    done
20119
20120    # Let's still pretend it is `configure' which instantiates (i.e., don't
20121    # use $as_me), people would be surprised to read:
20122    #    /* config.h.  Generated by config.status.  */
20123    configure_input='Generated from '`
20124	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20125	`' by configure.'
20126    if test x"$ac_file" != x-; then
20127      configure_input="$ac_file.  $configure_input"
20128      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20129$as_echo "$as_me: creating $ac_file" >&6;}
20130    fi
20131    # Neutralize special characters interpreted by sed in replacement strings.
20132    case $configure_input in #(
20133    *\&* | *\|* | *\\* )
20134       ac_sed_conf_input=`$as_echo "$configure_input" |
20135       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20136    *) ac_sed_conf_input=$configure_input;;
20137    esac
20138
20139    case $ac_tag in
20140    *:-:* | *:-) cat >"$tmp/stdin" \
20141      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20142    esac
20143    ;;
20144  esac
20145
20146  ac_dir=`$as_dirname -- "$ac_file" ||
20147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20148	 X"$ac_file" : 'X\(//\)[^/]' \| \
20149	 X"$ac_file" : 'X\(//\)$' \| \
20150	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20151$as_echo X"$ac_file" |
20152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20153	    s//\1/
20154	    q
20155	  }
20156	  /^X\(\/\/\)[^/].*/{
20157	    s//\1/
20158	    q
20159	  }
20160	  /^X\(\/\/\)$/{
20161	    s//\1/
20162	    q
20163	  }
20164	  /^X\(\/\).*/{
20165	    s//\1/
20166	    q
20167	  }
20168	  s/.*/./; q'`
20169  as_dir="$ac_dir"; as_fn_mkdir_p
20170  ac_builddir=.
20171
20172case "$ac_dir" in
20173.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20174*)
20175  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20176  # A ".." for each directory in $ac_dir_suffix.
20177  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20178  case $ac_top_builddir_sub in
20179  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20180  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20181  esac ;;
20182esac
20183ac_abs_top_builddir=$ac_pwd
20184ac_abs_builddir=$ac_pwd$ac_dir_suffix
20185# for backward compatibility:
20186ac_top_builddir=$ac_top_build_prefix
20187
20188case $srcdir in
20189  .)  # We are building in place.
20190    ac_srcdir=.
20191    ac_top_srcdir=$ac_top_builddir_sub
20192    ac_abs_top_srcdir=$ac_pwd ;;
20193  [\\/]* | ?:[\\/]* )  # Absolute name.
20194    ac_srcdir=$srcdir$ac_dir_suffix;
20195    ac_top_srcdir=$srcdir
20196    ac_abs_top_srcdir=$srcdir ;;
20197  *) # Relative name.
20198    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20199    ac_top_srcdir=$ac_top_build_prefix$srcdir
20200    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20201esac
20202ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20203
20204
20205  case $ac_mode in
20206  :F)
20207  #
20208  # CONFIG_FILE
20209  #
20210
20211  case $INSTALL in
20212  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20213  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20214  esac
20215  ac_MKDIR_P=$MKDIR_P
20216  case $MKDIR_P in
20217  [\\/$]* | ?:[\\/]* ) ;;
20218  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20219  esac
20220_ACEOF
20221
20222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223# If the template does not know about datarootdir, expand it.
20224# FIXME: This hack should be removed a few years after 2.60.
20225ac_datarootdir_hack=; ac_datarootdir_seen=
20226ac_sed_dataroot='
20227/datarootdir/ {
20228  p
20229  q
20230}
20231/@datadir@/p
20232/@docdir@/p
20233/@infodir@/p
20234/@localedir@/p
20235/@mandir@/p'
20236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20237*datarootdir*) ac_datarootdir_seen=yes;;
20238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20239  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20240$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20241_ACEOF
20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20243  ac_datarootdir_hack='
20244  s&@datadir@&$datadir&g
20245  s&@docdir@&$docdir&g
20246  s&@infodir@&$infodir&g
20247  s&@localedir@&$localedir&g
20248  s&@mandir@&$mandir&g
20249  s&\\\${datarootdir}&$datarootdir&g' ;;
20250esac
20251_ACEOF
20252
20253# Neutralize VPATH when `$srcdir' = `.'.
20254# Shell code in configure.ac might set extrasub.
20255# FIXME: do we really want to maintain this feature?
20256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20257ac_sed_extra="$ac_vpsub
20258$extrasub
20259_ACEOF
20260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20261:t
20262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20263s|@configure_input@|$ac_sed_conf_input|;t t
20264s&@top_builddir@&$ac_top_builddir_sub&;t t
20265s&@top_build_prefix@&$ac_top_build_prefix&;t t
20266s&@srcdir@&$ac_srcdir&;t t
20267s&@abs_srcdir@&$ac_abs_srcdir&;t t
20268s&@top_srcdir@&$ac_top_srcdir&;t t
20269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20270s&@builddir@&$ac_builddir&;t t
20271s&@abs_builddir@&$ac_abs_builddir&;t t
20272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20273s&@INSTALL@&$ac_INSTALL&;t t
20274s&@MKDIR_P@&$ac_MKDIR_P&;t t
20275$ac_datarootdir_hack
20276"
20277eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20278  || as_fn_error "could not create $ac_file" "$LINENO" 5
20279
20280test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20281  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20282  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20283  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20284which seems to be undefined.  Please make sure it is defined." >&5
20285$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20286which seems to be undefined.  Please make sure it is defined." >&2;}
20287
20288  rm -f "$tmp/stdin"
20289  case $ac_file in
20290  -) cat "$tmp/out" && rm -f "$tmp/out";;
20291  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20292  esac \
20293  || as_fn_error "could not create $ac_file" "$LINENO" 5
20294 ;;
20295  :H)
20296  #
20297  # CONFIG_HEADER
20298  #
20299  if test x"$ac_file" != x-; then
20300    {
20301      $as_echo "/* $configure_input  */" \
20302      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20303    } >"$tmp/config.h" \
20304      || as_fn_error "could not create $ac_file" "$LINENO" 5
20305    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20306      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20307$as_echo "$as_me: $ac_file is unchanged" >&6;}
20308    else
20309      rm -f "$ac_file"
20310      mv "$tmp/config.h" "$ac_file" \
20311	|| as_fn_error "could not create $ac_file" "$LINENO" 5
20312    fi
20313  else
20314    $as_echo "/* $configure_input  */" \
20315      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20316      || as_fn_error "could not create -" "$LINENO" 5
20317  fi
20318# Compute "$ac_file"'s index in $config_headers.
20319_am_arg="$ac_file"
20320_am_stamp_count=1
20321for _am_header in $config_headers :; do
20322  case $_am_header in
20323    $_am_arg | $_am_arg:* )
20324      break ;;
20325    * )
20326      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20327  esac
20328done
20329echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20330$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20331	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20332	 X"$_am_arg" : 'X\(//\)$' \| \
20333	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20334$as_echo X"$_am_arg" |
20335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20336	    s//\1/
20337	    q
20338	  }
20339	  /^X\(\/\/\)[^/].*/{
20340	    s//\1/
20341	    q
20342	  }
20343	  /^X\(\/\/\)$/{
20344	    s//\1/
20345	    q
20346	  }
20347	  /^X\(\/\).*/{
20348	    s//\1/
20349	    q
20350	  }
20351	  s/.*/./; q'`/stamp-h$_am_stamp_count
20352 ;;
20353
20354  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20355$as_echo "$as_me: executing $ac_file commands" >&6;}
20356 ;;
20357  esac
20358
20359
20360  case $ac_file$ac_mode in
20361    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20362  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20363  # are listed without --file.  Let's play safe and only enable the eval
20364  # if we detect the quoting.
20365  case $CONFIG_FILES in
20366  *\'*) eval set x "$CONFIG_FILES" ;;
20367  *)   set x $CONFIG_FILES ;;
20368  esac
20369  shift
20370  for mf
20371  do
20372    # Strip MF so we end up with the name of the file.
20373    mf=`echo "$mf" | sed -e 's/:.*$//'`
20374    # Check whether this is an Automake generated Makefile or not.
20375    # We used to match only the files named `Makefile.in', but
20376    # some people rename them; so instead we look at the file content.
20377    # Grep'ing the first line is not enough: some people post-process
20378    # each Makefile.in and add a new line on top of each file to say so.
20379    # Grep'ing the whole file is not good either: AIX grep has a line
20380    # limit of 2048, but all sed's we know have understand at least 4000.
20381    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20382      dirpart=`$as_dirname -- "$mf" ||
20383$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20384	 X"$mf" : 'X\(//\)[^/]' \| \
20385	 X"$mf" : 'X\(//\)$' \| \
20386	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20387$as_echo X"$mf" |
20388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20389	    s//\1/
20390	    q
20391	  }
20392	  /^X\(\/\/\)[^/].*/{
20393	    s//\1/
20394	    q
20395	  }
20396	  /^X\(\/\/\)$/{
20397	    s//\1/
20398	    q
20399	  }
20400	  /^X\(\/\).*/{
20401	    s//\1/
20402	    q
20403	  }
20404	  s/.*/./; q'`
20405    else
20406      continue
20407    fi
20408    # Extract the definition of DEPDIR, am__include, and am__quote
20409    # from the Makefile without running `make'.
20410    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20411    test -z "$DEPDIR" && continue
20412    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20413    test -z "am__include" && continue
20414    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20415    # When using ansi2knr, U may be empty or an underscore; expand it
20416    U=`sed -n 's/^U = //p' < "$mf"`
20417    # Find all dependency output files, they are included files with
20418    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20419    # simplest approach to changing $(DEPDIR) to its actual value in the
20420    # expansion.
20421    for file in `sed -n "
20422      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20423	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20424      # Make sure the directory exists.
20425      test -f "$dirpart/$file" && continue
20426      fdir=`$as_dirname -- "$file" ||
20427$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20428	 X"$file" : 'X\(//\)[^/]' \| \
20429	 X"$file" : 'X\(//\)$' \| \
20430	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20431$as_echo X"$file" |
20432    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20433	    s//\1/
20434	    q
20435	  }
20436	  /^X\(\/\/\)[^/].*/{
20437	    s//\1/
20438	    q
20439	  }
20440	  /^X\(\/\/\)$/{
20441	    s//\1/
20442	    q
20443	  }
20444	  /^X\(\/\).*/{
20445	    s//\1/
20446	    q
20447	  }
20448	  s/.*/./; q'`
20449      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20450      # echo "creating $dirpart/$file"
20451      echo '# dummy' > "$dirpart/$file"
20452    done
20453  done
20454}
20455 ;;
20456    "libtool":C)
20457
20458    # See if we are running on zsh, and set the options which allow our
20459    # commands through without removal of \ escapes.
20460    if test -n "${ZSH_VERSION+set}" ; then
20461      setopt NO_GLOB_SUBST
20462    fi
20463
20464    cfgfile="${ofile}T"
20465    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20466    $RM "$cfgfile"
20467
20468    cat <<_LT_EOF >> "$cfgfile"
20469#! $SHELL
20470
20471# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20472# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20473# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20474#
20475#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20476#                 2006, 2007, 2008 Free Software Foundation, Inc.
20477#   Written by Gordon Matzigkeit, 1996
20478#
20479#   This file is part of GNU Libtool.
20480#
20481# GNU Libtool is free software; you can redistribute it and/or
20482# modify it under the terms of the GNU General Public License as
20483# published by the Free Software Foundation; either version 2 of
20484# the License, or (at your option) any later version.
20485#
20486# As a special exception to the GNU General Public License,
20487# if you distribute this file as part of a program or library that
20488# is built using GNU Libtool, you may include this file under the
20489# same distribution terms that you use for the rest of that program.
20490#
20491# GNU Libtool is distributed in the hope that it will be useful,
20492# but WITHOUT ANY WARRANTY; without even the implied warranty of
20493# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20494# GNU General Public License for more details.
20495#
20496# You should have received a copy of the GNU General Public License
20497# along with GNU Libtool; see the file COPYING.  If not, a copy
20498# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20499# obtained by writing to the Free Software Foundation, Inc.,
20500# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20501
20502
20503# The names of the tagged configurations supported by this script.
20504available_tags=""
20505
20506# ### BEGIN LIBTOOL CONFIG
20507
20508# Whether or not to build static libraries.
20509build_old_libs=$enable_static
20510
20511# Which release of libtool.m4 was used?
20512macro_version=$macro_version
20513macro_revision=$macro_revision
20514
20515# Whether or not to build shared libraries.
20516build_libtool_libs=$enable_shared
20517
20518# What type of objects to build.
20519pic_mode=$pic_mode
20520
20521# Whether or not to optimize for fast installation.
20522fast_install=$enable_fast_install
20523
20524# The host system.
20525host_alias=$host_alias
20526host=$host
20527host_os=$host_os
20528
20529# The build system.
20530build_alias=$build_alias
20531build=$build
20532build_os=$build_os
20533
20534# A sed program that does not truncate output.
20535SED=$lt_SED
20536
20537# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20538Xsed="\$SED -e 1s/^X//"
20539
20540# A grep program that handles long lines.
20541GREP=$lt_GREP
20542
20543# An ERE matcher.
20544EGREP=$lt_EGREP
20545
20546# A literal string matcher.
20547FGREP=$lt_FGREP
20548
20549# A BSD- or MS-compatible name lister.
20550NM=$lt_NM
20551
20552# Whether we need soft or hard links.
20553LN_S=$lt_LN_S
20554
20555# What is the maximum length of a command?
20556max_cmd_len=$max_cmd_len
20557
20558# Object file suffix (normally "o").
20559objext=$ac_objext
20560
20561# Executable file suffix (normally "").
20562exeext=$exeext
20563
20564# whether the shell understands "unset".
20565lt_unset=$lt_unset
20566
20567# turn spaces into newlines.
20568SP2NL=$lt_lt_SP2NL
20569
20570# turn newlines into spaces.
20571NL2SP=$lt_lt_NL2SP
20572
20573# How to create reloadable object files.
20574reload_flag=$lt_reload_flag
20575reload_cmds=$lt_reload_cmds
20576
20577# An object symbol dumper.
20578OBJDUMP=$lt_OBJDUMP
20579
20580# Method to check whether dependent libraries are shared objects.
20581deplibs_check_method=$lt_deplibs_check_method
20582
20583# Command to use when deplibs_check_method == "file_magic".
20584file_magic_cmd=$lt_file_magic_cmd
20585
20586# The archiver.
20587AR=$lt_AR
20588AR_FLAGS=$lt_AR_FLAGS
20589
20590# A symbol stripping program.
20591STRIP=$lt_STRIP
20592
20593# Commands used to install an old-style archive.
20594RANLIB=$lt_RANLIB
20595old_postinstall_cmds=$lt_old_postinstall_cmds
20596old_postuninstall_cmds=$lt_old_postuninstall_cmds
20597
20598# A C compiler.
20599LTCC=$lt_CC
20600
20601# LTCC compiler flags.
20602LTCFLAGS=$lt_CFLAGS
20603
20604# Take the output of nm and produce a listing of raw symbols and C names.
20605global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20606
20607# Transform the output of nm in a proper C declaration.
20608global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20609
20610# Transform the output of nm in a C name address pair.
20611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20612
20613# Transform the output of nm in a C name address pair when lib prefix is needed.
20614global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20615
20616# The name of the directory that contains temporary libtool files.
20617objdir=$objdir
20618
20619# Shell to use when invoking shell scripts.
20620SHELL=$lt_SHELL
20621
20622# An echo program that does not interpret backslashes.
20623ECHO=$lt_ECHO
20624
20625# Used to examine libraries when file_magic_cmd begins with "file".
20626MAGIC_CMD=$MAGIC_CMD
20627
20628# Must we lock files when doing compilation?
20629need_locks=$lt_need_locks
20630
20631# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20632DSYMUTIL=$lt_DSYMUTIL
20633
20634# Tool to change global to local symbols on Mac OS X.
20635NMEDIT=$lt_NMEDIT
20636
20637# Tool to manipulate fat objects and archives on Mac OS X.
20638LIPO=$lt_LIPO
20639
20640# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20641OTOOL=$lt_OTOOL
20642
20643# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20644OTOOL64=$lt_OTOOL64
20645
20646# Old archive suffix (normally "a").
20647libext=$libext
20648
20649# Shared library suffix (normally ".so").
20650shrext_cmds=$lt_shrext_cmds
20651
20652# The commands to extract the exported symbol list from a shared archive.
20653extract_expsyms_cmds=$lt_extract_expsyms_cmds
20654
20655# Variables whose values should be saved in libtool wrapper scripts and
20656# restored at link time.
20657variables_saved_for_relink=$lt_variables_saved_for_relink
20658
20659# Do we need the "lib" prefix for modules?
20660need_lib_prefix=$need_lib_prefix
20661
20662# Do we need a version for libraries?
20663need_version=$need_version
20664
20665# Library versioning type.
20666version_type=$version_type
20667
20668# Shared library runtime path variable.
20669runpath_var=$runpath_var
20670
20671# Shared library path variable.
20672shlibpath_var=$shlibpath_var
20673
20674# Is shlibpath searched before the hard-coded library search path?
20675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20676
20677# Format of library name prefix.
20678libname_spec=$lt_libname_spec
20679
20680# List of archive names.  First name is the real one, the rest are links.
20681# The last name is the one that the linker finds with -lNAME
20682library_names_spec=$lt_library_names_spec
20683
20684# The coded name of the library, if different from the real name.
20685soname_spec=$lt_soname_spec
20686
20687# Command to use after installation of a shared archive.
20688postinstall_cmds=$lt_postinstall_cmds
20689
20690# Command to use after uninstallation of a shared archive.
20691postuninstall_cmds=$lt_postuninstall_cmds
20692
20693# Commands used to finish a libtool library installation in a directory.
20694finish_cmds=$lt_finish_cmds
20695
20696# As "finish_cmds", except a single script fragment to be evaled but
20697# not shown.
20698finish_eval=$lt_finish_eval
20699
20700# Whether we should hardcode library paths into libraries.
20701hardcode_into_libs=$hardcode_into_libs
20702
20703# Compile-time system search path for libraries.
20704sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20705
20706# Run-time system search path for libraries.
20707sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20708
20709# Whether dlopen is supported.
20710dlopen_support=$enable_dlopen
20711
20712# Whether dlopen of programs is supported.
20713dlopen_self=$enable_dlopen_self
20714
20715# Whether dlopen of statically linked programs is supported.
20716dlopen_self_static=$enable_dlopen_self_static
20717
20718# Commands to strip libraries.
20719old_striplib=$lt_old_striplib
20720striplib=$lt_striplib
20721
20722
20723# The linker used to build libraries.
20724LD=$lt_LD
20725
20726# Commands used to build an old-style archive.
20727old_archive_cmds=$lt_old_archive_cmds
20728
20729# A language specific compiler.
20730CC=$lt_compiler
20731
20732# Is the compiler the GNU compiler?
20733with_gcc=$GCC
20734
20735# Compiler flag to turn off builtin functions.
20736no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20737
20738# How to pass a linker flag through the compiler.
20739wl=$lt_lt_prog_compiler_wl
20740
20741# Additional compiler flags for building library objects.
20742pic_flag=$lt_lt_prog_compiler_pic
20743
20744# Compiler flag to prevent dynamic linking.
20745link_static_flag=$lt_lt_prog_compiler_static
20746
20747# Does compiler simultaneously support -c and -o options?
20748compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20749
20750# Whether or not to add -lc for building shared libraries.
20751build_libtool_need_lc=$archive_cmds_need_lc
20752
20753# Whether or not to disallow shared libs when runtime libs are static.
20754allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20755
20756# Compiler flag to allow reflexive dlopens.
20757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20758
20759# Compiler flag to generate shared objects directly from archives.
20760whole_archive_flag_spec=$lt_whole_archive_flag_spec
20761
20762# Whether the compiler copes with passing no objects directly.
20763compiler_needs_object=$lt_compiler_needs_object
20764
20765# Create an old-style archive from a shared archive.
20766old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20767
20768# Create a temporary old-style archive to link instead of a shared archive.
20769old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20770
20771# Commands used to build a shared archive.
20772archive_cmds=$lt_archive_cmds
20773archive_expsym_cmds=$lt_archive_expsym_cmds
20774
20775# Commands used to build a loadable module if different from building
20776# a shared archive.
20777module_cmds=$lt_module_cmds
20778module_expsym_cmds=$lt_module_expsym_cmds
20779
20780# Whether we are building with GNU ld or not.
20781with_gnu_ld=$lt_with_gnu_ld
20782
20783# Flag that allows shared libraries with undefined symbols to be built.
20784allow_undefined_flag=$lt_allow_undefined_flag
20785
20786# Flag that enforces no undefined symbols.
20787no_undefined_flag=$lt_no_undefined_flag
20788
20789# Flag to hardcode \$libdir into a binary during linking.
20790# This must work even if \$libdir does not exist
20791hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20792
20793# If ld is used when linking, flag to hardcode \$libdir into a binary
20794# during linking.  This must work even if \$libdir does not exist.
20795hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20796
20797# Whether we need a single "-rpath" flag with a separated argument.
20798hardcode_libdir_separator=$lt_hardcode_libdir_separator
20799
20800# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20801# DIR into the resulting binary.
20802hardcode_direct=$hardcode_direct
20803
20804# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20805# DIR into the resulting binary and the resulting library dependency is
20806# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20807# library is relocated.
20808hardcode_direct_absolute=$hardcode_direct_absolute
20809
20810# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20811# into the resulting binary.
20812hardcode_minus_L=$hardcode_minus_L
20813
20814# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20815# into the resulting binary.
20816hardcode_shlibpath_var=$hardcode_shlibpath_var
20817
20818# Set to "yes" if building a shared library automatically hardcodes DIR
20819# into the library and all subsequent libraries and executables linked
20820# against it.
20821hardcode_automatic=$hardcode_automatic
20822
20823# Set to yes if linker adds runtime paths of dependent libraries
20824# to runtime path list.
20825inherit_rpath=$inherit_rpath
20826
20827# Whether libtool must link a program against all its dependency libraries.
20828link_all_deplibs=$link_all_deplibs
20829
20830# Fix the shell variable \$srcfile for the compiler.
20831fix_srcfile_path=$lt_fix_srcfile_path
20832
20833# Set to "yes" if exported symbols are required.
20834always_export_symbols=$always_export_symbols
20835
20836# The commands to list exported symbols.
20837export_symbols_cmds=$lt_export_symbols_cmds
20838
20839# Symbols that should not be listed in the preloaded symbols.
20840exclude_expsyms=$lt_exclude_expsyms
20841
20842# Symbols that must always be exported.
20843include_expsyms=$lt_include_expsyms
20844
20845# Commands necessary for linking programs (against libraries) with templates.
20846prelink_cmds=$lt_prelink_cmds
20847
20848# Specify filename containing input files.
20849file_list_spec=$lt_file_list_spec
20850
20851# How to hardcode a shared library path into an executable.
20852hardcode_action=$hardcode_action
20853
20854# ### END LIBTOOL CONFIG
20855
20856_LT_EOF
20857
20858  case $host_os in
20859  aix3*)
20860    cat <<\_LT_EOF >> "$cfgfile"
20861# AIX sometimes has problems with the GCC collect2 program.  For some
20862# reason, if we set the COLLECT_NAMES environment variable, the problems
20863# vanish in a puff of smoke.
20864if test "X${COLLECT_NAMES+set}" != Xset; then
20865  COLLECT_NAMES=
20866  export COLLECT_NAMES
20867fi
20868_LT_EOF
20869    ;;
20870  esac
20871
20872
20873ltmain="$ac_aux_dir/ltmain.sh"
20874
20875
20876  # We use sed instead of cat because bash on DJGPP gets confused if
20877  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20878  # text mode, it properly converts lines to CR/LF.  This bash problem
20879  # is reportedly fixed, but why not run on old versions too?
20880  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20881    || (rm -f "$cfgfile"; exit 1)
20882
20883  case $xsi_shell in
20884  yes)
20885    cat << \_LT_EOF >> "$cfgfile"
20886
20887# func_dirname file append nondir_replacement
20888# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20889# otherwise set result to NONDIR_REPLACEMENT.
20890func_dirname ()
20891{
20892  case ${1} in
20893    */*) func_dirname_result="${1%/*}${2}" ;;
20894    *  ) func_dirname_result="${3}" ;;
20895  esac
20896}
20897
20898# func_basename file
20899func_basename ()
20900{
20901  func_basename_result="${1##*/}"
20902}
20903
20904# func_dirname_and_basename file append nondir_replacement
20905# perform func_basename and func_dirname in a single function
20906# call:
20907#   dirname:  Compute the dirname of FILE.  If nonempty,
20908#             add APPEND to the result, otherwise set result
20909#             to NONDIR_REPLACEMENT.
20910#             value returned in "$func_dirname_result"
20911#   basename: Compute filename of FILE.
20912#             value retuned in "$func_basename_result"
20913# Implementation must be kept synchronized with func_dirname
20914# and func_basename. For efficiency, we do not delegate to
20915# those functions but instead duplicate the functionality here.
20916func_dirname_and_basename ()
20917{
20918  case ${1} in
20919    */*) func_dirname_result="${1%/*}${2}" ;;
20920    *  ) func_dirname_result="${3}" ;;
20921  esac
20922  func_basename_result="${1##*/}"
20923}
20924
20925# func_stripname prefix suffix name
20926# strip PREFIX and SUFFIX off of NAME.
20927# PREFIX and SUFFIX must not contain globbing or regex special
20928# characters, hashes, percent signs, but SUFFIX may contain a leading
20929# dot (in which case that matches only a dot).
20930func_stripname ()
20931{
20932  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20933  # positional parameters, so assign one to ordinary parameter first.
20934  func_stripname_result=${3}
20935  func_stripname_result=${func_stripname_result#"${1}"}
20936  func_stripname_result=${func_stripname_result%"${2}"}
20937}
20938
20939# func_opt_split
20940func_opt_split ()
20941{
20942  func_opt_split_opt=${1%%=*}
20943  func_opt_split_arg=${1#*=}
20944}
20945
20946# func_lo2o object
20947func_lo2o ()
20948{
20949  case ${1} in
20950    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20951    *)    func_lo2o_result=${1} ;;
20952  esac
20953}
20954
20955# func_xform libobj-or-source
20956func_xform ()
20957{
20958  func_xform_result=${1%.*}.lo
20959}
20960
20961# func_arith arithmetic-term...
20962func_arith ()
20963{
20964  func_arith_result=$(( $* ))
20965}
20966
20967# func_len string
20968# STRING may not start with a hyphen.
20969func_len ()
20970{
20971  func_len_result=${#1}
20972}
20973
20974_LT_EOF
20975    ;;
20976  *) # Bourne compatible functions.
20977    cat << \_LT_EOF >> "$cfgfile"
20978
20979# func_dirname file append nondir_replacement
20980# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20981# otherwise set result to NONDIR_REPLACEMENT.
20982func_dirname ()
20983{
20984  # Extract subdirectory from the argument.
20985  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20986  if test "X$func_dirname_result" = "X${1}"; then
20987    func_dirname_result="${3}"
20988  else
20989    func_dirname_result="$func_dirname_result${2}"
20990  fi
20991}
20992
20993# func_basename file
20994func_basename ()
20995{
20996  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20997}
20998
20999
21000# func_stripname prefix suffix name
21001# strip PREFIX and SUFFIX off of NAME.
21002# PREFIX and SUFFIX must not contain globbing or regex special
21003# characters, hashes, percent signs, but SUFFIX may contain a leading
21004# dot (in which case that matches only a dot).
21005# func_strip_suffix prefix name
21006func_stripname ()
21007{
21008  case ${2} in
21009    .*) func_stripname_result=`$ECHO "X${3}" \
21010           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21011    *)  func_stripname_result=`$ECHO "X${3}" \
21012           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21013  esac
21014}
21015
21016# sed scripts:
21017my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21018my_sed_long_arg='1s/^-[^=]*=//'
21019
21020# func_opt_split
21021func_opt_split ()
21022{
21023  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21024  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21025}
21026
21027# func_lo2o object
21028func_lo2o ()
21029{
21030  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21031}
21032
21033# func_xform libobj-or-source
21034func_xform ()
21035{
21036  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21037}
21038
21039# func_arith arithmetic-term...
21040func_arith ()
21041{
21042  func_arith_result=`expr "$@"`
21043}
21044
21045# func_len string
21046# STRING may not start with a hyphen.
21047func_len ()
21048{
21049  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21050}
21051
21052_LT_EOF
21053esac
21054
21055case $lt_shell_append in
21056  yes)
21057    cat << \_LT_EOF >> "$cfgfile"
21058
21059# func_append var value
21060# Append VALUE to the end of shell variable VAR.
21061func_append ()
21062{
21063  eval "$1+=\$2"
21064}
21065_LT_EOF
21066    ;;
21067  *)
21068    cat << \_LT_EOF >> "$cfgfile"
21069
21070# func_append var value
21071# Append VALUE to the end of shell variable VAR.
21072func_append ()
21073{
21074  eval "$1=\$$1\$2"
21075}
21076
21077_LT_EOF
21078    ;;
21079  esac
21080
21081
21082  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21083    || (rm -f "$cfgfile"; exit 1)
21084
21085  mv -f "$cfgfile" "$ofile" ||
21086    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21087  chmod +x "$ofile"
21088
21089 ;;
21090    "po-directories":C)
21091    for ac_file in $CONFIG_FILES; do
21092      # Support "outfile[:infile[:infile...]]"
21093      case "$ac_file" in
21094        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21095      esac
21096      # PO directories have a Makefile.in generated from Makefile.in.in.
21097      case "$ac_file" in */Makefile.in)
21098        # Adjust a relative srcdir.
21099        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21100        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21101        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21102        # In autoconf-2.13 it is called $ac_given_srcdir.
21103        # In autoconf-2.50 it is called $srcdir.
21104        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21105        case "$ac_given_srcdir" in
21106          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21107          /*) top_srcdir="$ac_given_srcdir" ;;
21108          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
21109        esac
21110        # Treat a directory as a PO directory if and only if it has a
21111        # POTFILES.in file. This allows packages to have multiple PO
21112        # directories under different names or in different locations.
21113        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21114          rm -f "$ac_dir/POTFILES"
21115          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21116          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21117          POMAKEFILEDEPS="POTFILES.in"
21118          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21119          # on $ac_dir but don't depend on user-specified configuration
21120          # parameters.
21121          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21122            # The LINGUAS file contains the set of available languages.
21123            if test -n "$OBSOLETE_ALL_LINGUAS"; then
21124              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21125            fi
21126            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21127            # Hide the ALL_LINGUAS assigment from automake < 1.5.
21128            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21129            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21130          else
21131            # The set of available languages was given in configure.in.
21132            # Hide the ALL_LINGUAS assigment from automake < 1.5.
21133            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21134          fi
21135          # Compute POFILES
21136          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21137          # Compute UPDATEPOFILES
21138          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21139          # Compute DUMMYPOFILES
21140          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21141          # Compute GMOFILES
21142          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21143          case "$ac_given_srcdir" in
21144            .) srcdirpre= ;;
21145            *) srcdirpre='$(srcdir)/' ;;
21146          esac
21147          POFILES=
21148          UPDATEPOFILES=
21149          DUMMYPOFILES=
21150          GMOFILES=
21151          for lang in $ALL_LINGUAS; do
21152            POFILES="$POFILES $srcdirpre$lang.po"
21153            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21154            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21155            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21156          done
21157          # CATALOGS depends on both $ac_dir and the user's LINGUAS
21158          # environment variable.
21159          INST_LINGUAS=
21160          if test -n "$ALL_LINGUAS"; then
21161            for presentlang in $ALL_LINGUAS; do
21162              useit=no
21163              if test "%UNSET%" != "$LINGUAS"; then
21164                desiredlanguages="$LINGUAS"
21165              else
21166                desiredlanguages="$ALL_LINGUAS"
21167              fi
21168              for desiredlang in $desiredlanguages; do
21169                # Use the presentlang catalog if desiredlang is
21170                #   a. equal to presentlang, or
21171                #   b. a variant of presentlang (because in this case,
21172                #      presentlang can be used as a fallback for messages
21173                #      which are not translated in the desiredlang catalog).
21174                case "$desiredlang" in
21175                  "$presentlang"*) useit=yes;;
21176                esac
21177              done
21178              if test $useit = yes; then
21179                INST_LINGUAS="$INST_LINGUAS $presentlang"
21180              fi
21181            done
21182          fi
21183          CATALOGS=
21184          if test -n "$INST_LINGUAS"; then
21185            for lang in $INST_LINGUAS; do
21186              CATALOGS="$CATALOGS $lang.gmo"
21187            done
21188          fi
21189          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21190          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21191          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21192            if test -f "$f"; then
21193              case "$f" in
21194                *.orig | *.bak | *~) ;;
21195                *) cat "$f" >> "$ac_dir/Makefile" ;;
21196              esac
21197            fi
21198          done
21199        fi
21200        ;;
21201      esac
21202    done ;;
21203    "src/cups/cups-genppdupdate":F) chmod +x src/cups/cups-genppdupdate ;;
21204    "src/foomatic/foomatic-generator":F) chmod +x src/foomatic/foomatic-generator ;;
21205    "src/foomatic/mk_printerlist":F) chmod +x src/foomatic/mk_printerlist ;;
21206    "src/testpattern/run-testpattern-2":F) chmod +x src/testpattern/run-testpattern-2 ;;
21207    "src/cups/test-rastertogutenprint":F) chmod +x src/cups/test-rastertogutenprint ;;
21208    "default":C)
21209echo
21210 ;;
21211
21212  esac
21213done # for ac_tag
21214
21215
21216as_fn_exit 0
21217_ACEOF
21218ac_clean_files=$ac_clean_files_save
21219
21220test $ac_write_fail = 0 ||
21221  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21222
21223
21224# configure is writing to config.log, and then calls config.status.
21225# config.status does its own redirection, appending to config.log.
21226# Unfortunately, on DOS this fails, as config.log is still kept open
21227# by configure, so config.status won't be able to write to it; its
21228# output is simply discarded.  So we exec the FD to /dev/null,
21229# effectively closing config.log, so it can be properly (re)opened and
21230# appended to by config.status.  When coming back to configure, we
21231# need to make the FD available again.
21232if test "$no_create" != yes; then
21233  ac_cs_success=:
21234  ac_config_status_args=
21235  test "$silent" = yes &&
21236    ac_config_status_args="$ac_config_status_args --quiet"
21237  exec 5>/dev/null
21238  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21239  exec 5>>config.log
21240  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21241  # would make configure fail if this is the last instruction.
21242  $ac_cs_success || as_fn_exit $?
21243fi
21244if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21245  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21246$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21247fi
21248
21249
21250warnings_emitted=0
21251echo
21252echo "Configuration Summary:"
21253echo "------------- --------"
21254echo
21255echo "If you have any problems, please report the information below to"
21256echo "$PACKAGE_BUGREPORT"
21257echo
21258echo "================================================================"
21259echo "  Release: $PACKAGE_STRING generated on $RELEASE_DATE"
21260echo
21261echo "  Features:"
21262if test "$BUILD_CUPS" != "no" ; then
21263    echo "    Build CUPS:                                 $BUILD_CUPS, installing in $cups_prefix"
21264    echo "        Build CUPS 1.2 enhancements:            $BUILD_CUPS_1_2"
21265    echo "        Build CUPS PPD files:                   $BUILD_CUPS_PPDS"
21266    if test "$BUILD_CUPS_PPDS" != "no" ; then
21267	echo "            Build translated CUPS PPD files:    $BUILD_TRANSLATED_CUPS_PPDS"
21268	echo "                Build global CUPS PPD files:    $BUILD_GLOBALIZED_CUPS_PPDS"
21269	echo "            Build simplified CUPS PPD files:    $BUILD_SIMPLIFIED_CUPS_PPDS"
21270	echo "            Install CUPS PPDs at top level:     $CUPS_PPDS_AT_TOP_LEVEL"
21271    fi
21272    if test "$BUILD_CUPS_PPDS" != "no" -o "$BUILD_CUPS_1_2" != "no" ; then
21273        echo "        Generate PS level 3 CUPS PPD files:     $USE_LEVEL3_PS"
21274    fi
21275    echo "        Build genppd statically:                $STATIC_GENPPD"
21276
21277    if test "$STATIC_GENPPD" = "no" ; then
21278        echo "            ***WARNING: Use of --disable-static-genppd or --disable-static"
21279	echo "                        when building CUPS is very dangerous.  The build may"
21280	echo "                        fail when building the PPD files, or may *SILENTLY*"
21281	echo "                        build incorrect PPD files or cause other problems."
21282	echo "                        Please review the README and release notes carefully!"
21283	warnings_emitted=1
21284    fi
21285else
21286    echo "    Build CUPS:                                 $BUILD_CUPS"
21287fi
21288echo "    Build Ghostscript IJS driver:               $BUILD_GHOSTSCRIPT"
21289echo "    Build Foomatic data:                        $BUILD_FOOMATIC"
21290if test "$BUILD_FOOMATIC" != "no" ; then
21291    echo "        Build Foomatic 3.x data:                $BUILD_FOOMATIC_3"
21292fi
21293if test "$BUILD_GIMP2" != "no" ; then
21294    echo "    Build enhanced Print plugin for GIMP:       yes"
21295    if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then
21296	echo "        GIMP plugin will be named:              gutenprint"
21297    else
21298	echo "        GIMP plugin will be named:              print"
21299    fi
21300    echo "        Install plugin(s) in home directory:    $USER_INSTALL"
21301else
21302    echo "    Build enhanced Print plugin for GIMP:       no"
21303fi
21304echo "    Build EPSON Stylus utility:                 $BUILD_ESCPUTIL"
21305echo "    Build test programs:                        $BUILD_TEST"
21306echo "    Build testpattern generator:                $BUILD_TESTPATTERN"
21307echo
21308echo "  Installation summary:"
21309echo "    Installation prefix:                        $prefix"
21310echo "    Data directory:                             $PACKAGE_DATA_DIR"
21311echo "    Library directory:                          $PACKAGE_LIB_DIR"
21312echo "    XML data directory:                         $PKGXMLDATADIR"
21313echo "    Module directory:                           $PKGMODULEDIR"
21314echo "    Install sample images:                      $INSTALL_SAMPLES"
21315echo
21316echo "  General configuration:"
21317if test x$ac_compiler_gnu = "xyes"; then
21318    echo "    Compiler options:                           $CFLAGS $GNUCFLAGS"
21319else
21320    echo "    Compiler options:                           $CFLAGS"
21321fi
21322echo "    Build static libraries:                     $enable_static"
21323echo "    Build shared libraries:                     $enable_shared"
21324echo "    Maintainer mode:                            $USE_MAINTAINER_MODE"
21325echo "    Use i18n:                                   $USE_NLS"
21326echo "    Generate profiling information:             $ENABLE_PROFILE"
21327echo "    Generate debugging symbols:                 $ENABLE_DEBUG"
21328echo "    Use modules:                                $WITH_MODULES"
21329if test -n "$EXTRA_LIBREADLINE_DEPS" ; then
21330    echo "    Use readline libraries:                     $USE_READLINE, extra arguments: $EXTRA_LIBREADLINE_DEPS"
21331else
21332    echo "    Use readline libraries:                     $USE_READLINE"
21333fi
21334echo "    uname -a output:                            `uname -a`"
21335echo "================================================================"
21336if test $warnings_emitted -ne 0 ; then
21337    echo
21338    echo '*** NOTE: Please review the warnings shown above carefully!'
21339fi
21340echo
21341if test "$BUILD_GIMP2" = "no" -o "$BUILD_CUPS" = "no" ; then
21342    echo "VERY IMPORTANT:"
21343    echo "If you expect to build the CUPS driver or the enhanced Print plugin for"
21344    echo "GIMP, but the output above indicates that that component will not be built,"
21345    echo "it almost certainly indicates that development packages required to build"
21346    echo "that component are not installed on your system.  Please read the README"
21347    echo "file and install the necessary development packages before reporting any"
21348    echo "error to the development team.  Depending upon your operating system version,"
21349    echo "you may have to install packages from the installation medium or over"
21350    echo "the network."
21351    echo
21352fi
21353echo "Finished configuring.  Please review CAREFULLY the configuration summary above."
21354echo "Type 'make clean' followed by 'make' to build the package"
21355echo "then 'make install' to install it."
21356