Annotation of rpl/configure, revision 1.102

1.1       bertrand    1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.100     bertrand    3: # Generated by GNU Autoconf 2.67 for rpl 4.1.6.
1.15      bertrand    4: #
1.1       bertrand    5: #
                      6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36      bertrand    7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
                      8: # Foundation, Inc.
1.15      bertrand    9: #
                     10: #
1.1       bertrand   11: # This configure script is free software; the Free Software Foundation
                     12: # gives unlimited permission to copy, distribute and modify it.
1.15      bertrand   13: ## -------------------- ##
                     14: ## M4sh Initialization. ##
                     15: ## -------------------- ##
1.1       bertrand   16: 
                     17: # Be more Bourne compatible
                     18: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand   19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand   20:   emulate sh
                     21:   NULLCMD=:
1.15      bertrand   22:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand   23:   # is contrary to our usage.  Disable this feature.
                     24:   alias -g '${1+"$@"}'='"$@"'
                     25:   setopt NO_GLOB_SUBST
                     26: else
1.15      bertrand   27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
1.1       bertrand   32: esac
                     33: fi
                     34: 
                     35: 
1.15      bertrand   36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                     43: # Prefer a ksh shell builtin over an external printf program on Solaris,
                     44: # but without wasting forks for bash or zsh.
                     45: if test -z "$BASH_VERSION$ZSH_VERSION" \
                     46:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                     47:   as_echo='print -r --'
                     48:   as_echo_n='print -rn --'
                     49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                     50:   as_echo='printf %s\n'
                     51:   as_echo_n='printf %s'
                     52: else
                     53:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                     54:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                     55:     as_echo_n='/usr/ucb/echo -n'
                     56:   else
                     57:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                     58:     as_echo_n_body='eval
                     59:       arg=$1;
                     60:       case $arg in #(
                     61:       *"$as_nl"*)
                     62:    expr "X$arg" : "X\\(.*\\)$as_nl";
                     63:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                     64:       esac;
                     65:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                     66:     '
                     67:     export as_echo_n_body
                     68:     as_echo_n='sh -c $as_echo_n_body as_echo'
                     69:   fi
                     70:   export as_echo_body
                     71:   as_echo='sh -c $as_echo_body as_echo'
                     72: fi
1.14      bertrand   73: 
                     74: # The user is always right.
                     75: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand   76:   PATH_SEPARATOR=:
                     77:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                     78:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                     79:       PATH_SEPARATOR=';'
                     80:   }
1.1       bertrand   81: fi
                     82: 
                     83: 
                     84: # IFS
                     85: # We need space, tab and new line, in precisely that order.  Quoting is
                     86: # there to prevent editors from complaining about space-tab.
                     87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     88: # splitting by setting IFS to empty value.)
                     89: IFS=" ""   $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand   92: case $0 in #((
1.1       bertrand   93:   *[\\/]* ) as_myself=$0 ;;
                     94:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     95: for as_dir in $PATH
                     96: do
                     97:   IFS=$as_save_IFS
                     98:   test -z "$as_dir" && as_dir=.
1.15      bertrand   99:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    100:   done
1.1       bertrand  101: IFS=$as_save_IFS
                    102: 
                    103:      ;;
                    104: esac
                    105: # We did not find ourselves, most probably we were run as `sh COMMAND'
                    106: # in which case we are not to be found in the path.
                    107: if test "x$as_myself" = x; then
                    108:   as_myself=$0
                    109: fi
                    110: if test ! -f "$as_myself"; then
1.15      bertrand  111:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    112:   exit 1
1.1       bertrand  113: fi
                    114: 
1.15      bertrand  115: # Unset variables that we do not need and which cause bugs (e.g. in
                    116: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                    117: # suppresses any "Segmentation fault" message there.  '((' could
                    118: # trigger a bug in pdksh 5.2.14.
                    119: for as_var in BASH_ENV ENV MAIL MAILPATH
                    120: do eval test x\${$as_var+set} = xset \
                    121:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand  122: done
                    123: PS1='$ '
                    124: PS2='> '
                    125: PS4='+ '
                    126: 
                    127: # NLS nuisances.
1.15      bertrand  128: LC_ALL=C
                    129: export LC_ALL
                    130: LANGUAGE=C
                    131: export LANGUAGE
1.1       bertrand  132: 
                    133: # CDPATH.
1.15      bertrand  134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1       bertrand  135: 
                    136: if test "x$CONFIG_SHELL" = x; then
1.15      bertrand  137:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
                    138:   emulate sh
                    139:   NULLCMD=:
                    140:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
                    141:   # is contrary to our usage.  Disable this feature.
                    142:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
                    143:   setopt NO_GLOB_SUBST
1.1       bertrand  144: else
1.15      bertrand  145:   case \`(set -o) 2>/dev/null\` in #(
                    146:   *posix*) :
                    147:     set -o posix ;; #(
                    148:   *) :
                    149:      ;;
                    150: esac
1.1       bertrand  151: fi
1.15      bertrand  152: "
                    153:   as_required="as_fn_return () { (exit \$1); }
                    154: as_fn_success () { as_fn_return 0; }
                    155: as_fn_failure () { as_fn_return 1; }
                    156: as_fn_ret_success () { return 0; }
                    157: as_fn_ret_failure () { return 1; }
1.1       bertrand  158: 
                    159: exitcode=0
1.15      bertrand  160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    165: 
                    166: else
                    167:   exitcode=1; echo positional parameters were not saved.
                    168: fi
                    169: test x\$exitcode = x0 || exit 1"
                    170:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
                    171:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
                    172:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
                    173:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
                    174: test \$(( 1 + 1 )) = 2 || exit 1"
                    175:   if (eval "$as_required") 2>/dev/null; then :
                    176:   as_have_required=yes
1.14      bertrand  177: else
1.15      bertrand  178:   as_have_required=no
1.14      bertrand  179: fi
1.15      bertrand  180:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14      bertrand  181: 
                    182: else
1.15      bertrand  183:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    184: as_found=false
1.1       bertrand  185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    186: do
                    187:   IFS=$as_save_IFS
                    188:   test -z "$as_dir" && as_dir=.
1.15      bertrand  189:   as_found=:
                    190:   case $as_dir in #(
1.1       bertrand  191:     /*)
                    192:       for as_base in sh bash ksh sh5; do
1.15      bertrand  193:         # Try only shells that exist, to save several forks.
                    194:         as_shell=$as_dir/$as_base
                    195:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    196:            { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    197:   CONFIG_SHELL=$as_shell as_have_required=yes
                    198:           if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
                    199:   break 2
                    200: fi
                    201: fi
1.1       bertrand  202:       done;;
                    203:        esac
1.15      bertrand  204:   as_found=false
1.1       bertrand  205: done
1.15      bertrand  206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
                    207:          { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
                    208:   CONFIG_SHELL=$SHELL as_have_required=yes
                    209: fi; }
1.1       bertrand  210: IFS=$as_save_IFS
                    211: 
                    212: 
1.15      bertrand  213:       if test "x$CONFIG_SHELL" != x; then :
                    214:   # We cannot yet assume a decent shell, so we have to provide a
                    215:    # neutralization value for shells without unset; and this also
                    216:    # works around shells that cannot unset nonexistent variables.
                    217:    BASH_ENV=/dev/null
                    218:    ENV=/dev/null
                    219:    (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
                    220:    export CONFIG_SHELL
1.99      bertrand  221:    exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
1.15      bertrand  222: fi
                    223: 
                    224:     if test x$as_have_required = xno; then :
                    225:   $as_echo "$0: This script requires a shell more modern than all"
                    226:   $as_echo "$0: the shells that I found on your system."
                    227:   if test x${ZSH_VERSION+set} = xset ; then
                    228:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
                    229:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
                    230:   else
                    231:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
                    232: $0: including any error possibly output before this
                    233: $0: message. Then install a modern shell, or manually run
                    234: $0: the script under such a shell if you do have one."
                    235:   fi
                    236:   exit 1
                    237: fi
1.1       bertrand  238: fi
                    239: fi
1.15      bertrand  240: SHELL=${CONFIG_SHELL-/bin/sh}
                    241: export SHELL
                    242: # Unset more variables known to interfere with behavior of common tools.
                    243: CLICOLOR_FORCE= GREP_OPTIONS=
                    244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14      bertrand  245: 
1.15      bertrand  246: ## --------------------- ##
                    247: ## M4sh Shell Functions. ##
                    248: ## --------------------- ##
                    249: # as_fn_unset VAR
                    250: # ---------------
                    251: # Portably unset VAR.
                    252: as_fn_unset ()
                    253: {
                    254:   { eval $1=; unset $1;}
                    255: }
                    256: as_unset=as_fn_unset
                    257: 
                    258: # as_fn_set_status STATUS
                    259: # -----------------------
                    260: # Set $? to STATUS, without forking.
                    261: as_fn_set_status ()
                    262: {
                    263:   return $1
                    264: } # as_fn_set_status
                    265: 
                    266: # as_fn_exit STATUS
                    267: # -----------------
                    268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                    269: as_fn_exit ()
                    270: {
                    271:   set +e
                    272:   as_fn_set_status $1
                    273:   exit $1
                    274: } # as_fn_exit
                    275: 
                    276: # as_fn_mkdir_p
                    277: # -------------
                    278: # Create "$as_dir" as a directory, including parents if necessary.
                    279: as_fn_mkdir_p ()
                    280: {
1.14      bertrand  281: 
1.15      bertrand  282:   case $as_dir in #(
                    283:   -*) as_dir=./$as_dir;;
                    284:   esac
                    285:   test -d "$as_dir" || eval $as_mkdir_p || {
                    286:     as_dirs=
                    287:     while :; do
                    288:       case $as_dir in #(
                    289:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                    290:       *) as_qdir=$as_dir;;
                    291:       esac
                    292:       as_dirs="'$as_qdir' $as_dirs"
                    293:       as_dir=`$as_dirname -- "$as_dir" ||
                    294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                    295:     X"$as_dir" : 'X\(//\)[^/]' \| \
                    296:     X"$as_dir" : 'X\(//\)$' \| \
                    297:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                    298: $as_echo X"$as_dir" |
                    299:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                    300:        s//\1/
                    301:        q
                    302:      }
                    303:      /^X\(\/\/\)[^/].*/{
                    304:        s//\1/
                    305:        q
                    306:      }
                    307:      /^X\(\/\/\)$/{
                    308:        s//\1/
                    309:        q
                    310:      }
                    311:      /^X\(\/\).*/{
                    312:        s//\1/
                    313:        q
                    314:      }
                    315:      s/.*/./; q'`
                    316:       test -d "$as_dir" && break
                    317:     done
                    318:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand  319:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1       bertrand  320: 
                    321: 
1.15      bertrand  322: } # as_fn_mkdir_p
                    323: # as_fn_append VAR VALUE
                    324: # ----------------------
                    325: # Append the text in VALUE to the end of the definition contained in VAR. Take
                    326: # advantage of any shell optimizations that allow amortized linear growth over
                    327: # repeated appends, instead of the typical quadratic growth present in naive
                    328: # implementations.
                    329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                    330:   eval 'as_fn_append ()
                    331:   {
                    332:     eval $1+=\$2
                    333:   }'
1.14      bertrand  334: else
1.15      bertrand  335:   as_fn_append ()
                    336:   {
                    337:     eval $1=\$$1\$2
                    338:   }
                    339: fi # as_fn_append
1.1       bertrand  340: 
1.15      bertrand  341: # as_fn_arith ARG...
                    342: # ------------------
                    343: # Perform arithmetic evaluation on the ARGs, and store the result in the
                    344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                    345: # must be portable across $(()) and expr.
                    346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    347:   eval 'as_fn_arith ()
                    348:   {
                    349:     as_val=$(( $* ))
                    350:   }'
1.1       bertrand  351: else
1.15      bertrand  352:   as_fn_arith ()
                    353:   {
                    354:     as_val=`expr "$@" || test $? -eq 1`
                    355:   }
                    356: fi # as_fn_arith
1.14      bertrand  357: 
                    358: 
1.36      bertrand  359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                    360: # ----------------------------------------
1.15      bertrand  361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                    362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand  363: # script with STATUS, using 1 if that was 0.
1.15      bertrand  364: as_fn_error ()
                    365: {
1.36      bertrand  366:   as_status=$1; test $as_status -eq 0 && as_status=1
                    367:   if test "$4"; then
                    368:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                    369:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand  370:   fi
1.36      bertrand  371:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand  372:   as_fn_exit $as_status
                    373: } # as_fn_error
1.14      bertrand  374: 
1.15      bertrand  375: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    376:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    377:   as_expr=expr
1.1       bertrand  378: else
1.15      bertrand  379:   as_expr=false
1.14      bertrand  380: fi
                    381: 
1.15      bertrand  382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    383:   as_basename=basename
1.1       bertrand  384: else
1.15      bertrand  385:   as_basename=false
1.14      bertrand  386: fi
                    387: 
1.15      bertrand  388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    389:   as_dirname=dirname
1.1       bertrand  390: else
1.15      bertrand  391:   as_dirname=false
1.1       bertrand  392: fi
                    393: 
1.15      bertrand  394: as_me=`$as_basename -- "$0" ||
                    395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    396:     X"$0" : 'X\(//\)$' \| \
                    397:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                    398: $as_echo X/"$0" |
                    399:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    400:        s//\1/
                    401:        q
                    402:      }
                    403:      /^X\/\(\/\/\)$/{
                    404:        s//\1/
                    405:        q
                    406:      }
                    407:      /^X\/\(\/\).*/{
                    408:        s//\1/
                    409:        q
                    410:      }
                    411:      s/.*/./; q'`
1.1       bertrand  412: 
1.15      bertrand  413: # Avoid depending upon Character Ranges.
                    414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    417: as_cr_digits='0123456789'
                    418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand  419: 
                    420: 
1.15      bertrand  421:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
                    422:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
                    423:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
                    424:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
                    425:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.1       bertrand  426:   sed -n '
                    427:     p
                    428:     /[$]LINENO/=
                    429:   ' <$as_myself |
                    430:     sed '
                    431:       s/[$]LINENO.*/&-/
                    432:       t lineno
                    433:       b
                    434:       :lineno
                    435:       N
                    436:       :loop
                    437:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                    438:       t loop
                    439:       s/-\n.*//
                    440:     ' >$as_me.lineno &&
                    441:   chmod +x "$as_me.lineno" ||
1.15      bertrand  442:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1       bertrand  443: 
                    444:   # Don't try to exec as it changes $[0], causing all sort of problems
                    445:   # (the dirname of $[0] is not the place where we might find the
                    446:   # original and so on.  Autoconf is especially sensitive to this).
                    447:   . "./$as_me.lineno"
                    448:   # Exit status is that of the last command.
                    449:   exit
                    450: }
                    451: 
1.15      bertrand  452: ECHO_C= ECHO_N= ECHO_T=
                    453: case `echo -n x` in #(((((
                    454: -n*)
                    455:   case `echo 'xy\c'` in
1.1       bertrand  456:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand  457:   xy)  ECHO_C='\c';;
                    458:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                    459:        ECHO_T='    ';;
1.1       bertrand  460:   esac;;
                    461: *)
                    462:   ECHO_N='-n';;
                    463: esac
                    464: 
                    465: rm -f conf$$ conf$$.exe conf$$.file
                    466: if test -d conf$$.dir; then
                    467:   rm -f conf$$.dir/conf$$.file
                    468: else
                    469:   rm -f conf$$.dir
1.15      bertrand  470:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand  471: fi
1.15      bertrand  472: if (echo >conf$$.file) 2>/dev/null; then
                    473:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                    474:     as_ln_s='ln -s'
                    475:     # ... but there are two gotchas:
                    476:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    477:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    478:     # In both cases, we have to default to `cp -p'.
                    479:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                    480:       as_ln_s='cp -p'
                    481:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    482:     as_ln_s=ln
                    483:   else
1.1       bertrand  484:     as_ln_s='cp -p'
1.15      bertrand  485:   fi
1.1       bertrand  486: else
                    487:   as_ln_s='cp -p'
                    488: fi
                    489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    490: rmdir conf$$.dir 2>/dev/null
                    491: 
                    492: if mkdir -p . 2>/dev/null; then
1.15      bertrand  493:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand  494: else
                    495:   test -d ./-p && rmdir ./-p
                    496:   as_mkdir_p=false
                    497: fi
                    498: 
                    499: if test -x / >/dev/null 2>&1; then
                    500:   as_test_x='test -x'
                    501: else
                    502:   if ls -dL / >/dev/null 2>&1; then
                    503:     as_ls_L_option=L
                    504:   else
                    505:     as_ls_L_option=
                    506:   fi
                    507:   as_test_x='
                    508:     eval sh -c '\''
                    509:       if test -d "$1"; then
1.15      bertrand  510:    test -d "$1/.";
1.1       bertrand  511:       else
1.15      bertrand  512:    case $1 in #(
                    513:    -*)set "./$1";;
1.1       bertrand  514:    esac;
1.15      bertrand  515:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand  516:    ???[sx]*):;;*)false;;esac;fi
                    517:     '\'' sh
                    518:   '
                    519: fi
                    520: as_executable_p=$as_test_x
                    521: 
                    522: # Sed expression to map a string onto a valid CPP name.
                    523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                    524: 
                    525: # Sed expression to map a string onto a valid variable name.
                    526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    527: 
                    528: 
1.15      bertrand  529: test -n "$DJDIR" || exec 7<&0 </dev/null
                    530: exec 6>&1
1.1       bertrand  531: 
                    532: # Name of the host.
1.36      bertrand  533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1       bertrand  534: # so uname gets run too.
                    535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    536: 
                    537: #
                    538: # Initializations.
                    539: #
                    540: ac_default_prefix=/usr/local
                    541: ac_clean_files=
                    542: ac_config_libobj_dir=.
                    543: LIBOBJS=
                    544: cross_compiling=no
                    545: subdirs=
                    546: MFLAGS=
                    547: MAKEFLAGS=
                    548: 
                    549: # Identity of this package.
                    550: PACKAGE_NAME='rpl'
                    551: PACKAGE_TARNAME='rpl'
1.100     bertrand  552: PACKAGE_VERSION='4.1.6'
                    553: PACKAGE_STRING='rpl 4.1.6'
1.1       bertrand  554: PACKAGE_BUGREPORT=''
1.15      bertrand  555: PACKAGE_URL=''
1.1       bertrand  556: 
1.80      bertrand  557: enable_option_checking=no
1.1       bertrand  558: ac_default_prefix=/usr/local
                    559: # Factoring default headers for most tests.
                    560: ac_includes_default="\
                    561: #include <stdio.h>
                    562: #ifdef HAVE_SYS_TYPES_H
                    563: # include <sys/types.h>
                    564: #endif
                    565: #ifdef HAVE_SYS_STAT_H
                    566: # include <sys/stat.h>
                    567: #endif
                    568: #ifdef STDC_HEADERS
                    569: # include <stdlib.h>
                    570: # include <stddef.h>
                    571: #else
                    572: # ifdef HAVE_STDLIB_H
                    573: #  include <stdlib.h>
                    574: # endif
                    575: #endif
                    576: #ifdef HAVE_STRING_H
                    577: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
                    578: #  include <memory.h>
                    579: # endif
                    580: # include <string.h>
                    581: #endif
                    582: #ifdef HAVE_STRINGS_H
                    583: # include <strings.h>
                    584: #endif
                    585: #ifdef HAVE_INTTYPES_H
                    586: # include <inttypes.h>
                    587: #endif
                    588: #ifdef HAVE_STDINT_H
                    589: # include <stdint.h>
                    590: #endif
                    591: #ifdef HAVE_UNISTD_H
                    592: # include <unistd.h>
                    593: #endif"
                    594: 
1.15      bertrand  595: ac_subst_vars='am__EXEEXT_FALSE
                    596: am__EXEEXT_TRUE
                    597: LTLIBOBJS
                    598: LIBOBJS
1.102   ! bertrand  599: DEBVIM
        !           600: DEBMYSQL
        !           601: DEBPQ
1.80      bertrand  602: LIBMOTIF
                    603: INCMOTIF
1.56      bertrand  604: GIAC
                    605: PARI
                    606: COCOA
                    607: NTL
1.55      bertrand  608: MPFR
                    609: GMP
1.49      bertrand  610: MALLOC
1.30      bertrand  611: EXT_SQL
1.15      bertrand  612: DATE_FR
                    613: FINAL_ENCODING
1.76      bertrand  614: SIGSEGV
1.80      bertrand  615: BUILD_OPENMOTIF
1.78      bertrand  616: OPENMOTIF
1.82      bertrand  617: LIBXPM
1.15      bertrand  618: OPENSSL
                    619: SQLITE
                    620: ICONV
                    621: FILE
                    622: GNUPLOT
                    623: GPP
                    624: GSL
                    625: UNITS
                    626: READLINE
                    627: NCURSES
1.97      bertrand  628: ARCH
1.75      bertrand  629: ELF
1.40      bertrand  630: BSH_PATH
1.34      bertrand  631: IPV6
1.33      bertrand  632: SEMUN
1.36      bertrand  633: IPCS_SYSV
1.17      bertrand  634: SEMAPHORES_NOMMES
                    635: NESTED_FUNCTIONS
                    636: EXPORT_DYNAMIC
1.33      bertrand  637: C_STANDARD
1.91      bertrand  638: LIB_PREFIX
1.90      bertrand  639: WHOLE_LIB2
                    640: WHOLE_LIB1
1.15      bertrand  641: OS
1.69      bertrand  642: HOST
1.15      bertrand  643: GNUPLOT_COMPILATION
                    644: EGREP
                    645: GREP
                    646: libPgSQLlib
                    647: libPgSQLinc
                    648: POSTGRESQL_SUPPORT
                    649: libMySQLlib
                    650: libMySQLinc
                    651: MYSQL_SUPPORT
                    652: DATE
                    653: includeX
                    654: libX
                    655: MOTIF_SUPPORT
                    656: DEBUG
                    657: EXPERIMENTAL_CODE
                    658: VIM_SUPPORT
                    659: POSTSCRIPT_SUPPORT
                    660: FORCE_GNUPLOT_PATH
                    661: GNUPLOT_SUPPORT
                    662: VIM
                    663: GNUPLOT_P
                    664: GV
                    665: GS
                    666: DVIPS
                    667: LATEX
                    668: TEX
                    669: SED
                    670: RANLIB
                    671: LN_S
                    672: RUNPATH
                    673: PROFILAGE
1.80      bertrand  674: subdirs
1.91      bertrand  675: PSELECT
1.89      bertrand  676: SHARED_MEMORY
1.67      bertrand  677: LIBRPLCAS
                    678: RPLCAS
1.66      bertrand  679: ABI
1.88      bertrand  680: RPLTOOLS
1.15      bertrand  681: X_EXTRA_LIBS
                    682: X_LIBS
                    683: X_PRE_LIBS
                    684: X_CFLAGS
                    685: CPP
                    686: XMKMF
                    687: ac_ct_FC
                    688: FCFLAGS
                    689: FC
                    690: ac_ct_F77
                    691: FFLAGS
                    692: F77
                    693: am__fastdepCXX_FALSE
                    694: am__fastdepCXX_TRUE
                    695: CXXDEPMODE
                    696: ac_ct_CXX
                    697: CXXFLAGS
                    698: CXX
                    699: am__fastdepCC_FALSE
                    700: am__fastdepCC_TRUE
                    701: CCDEPMODE
                    702: AMDEPBACKSLASH
                    703: AMDEP_FALSE
                    704: AMDEP_TRUE
                    705: am__quote
                    706: am__include
                    707: DEPDIR
                    708: OBJEXT
                    709: EXEEXT
                    710: ac_ct_CC
                    711: CPPFLAGS
                    712: LDFLAGS
                    713: CFLAGS
                    714: CC
1.92      bertrand  715: AM_BACKSLASH
                    716: AM_DEFAULT_VERBOSITY
1.15      bertrand  717: am__untar
                    718: am__tar
                    719: AMTAR
                    720: am__leading_dot
                    721: SET_MAKE
                    722: AWK
                    723: mkdir_p
                    724: MKDIR_P
                    725: INSTALL_STRIP_PROGRAM
                    726: STRIP
                    727: install_sh
                    728: MAKEINFO
                    729: AUTOHEADER
                    730: AUTOMAKE
                    731: AUTOCONF
                    732: ACLOCAL
                    733: VERSION
                    734: PACKAGE
                    735: CYGPATH_W
                    736: am__isrc
                    737: INSTALL_DATA
                    738: INSTALL_SCRIPT
                    739: INSTALL_PROGRAM
                    740: target_os
                    741: target_vendor
                    742: target_cpu
                    743: target
                    744: host_os
                    745: host_vendor
                    746: host_cpu
                    747: host
                    748: build_os
                    749: build_vendor
                    750: build_cpu
                    751: build
                    752: target_alias
                    753: host_alias
                    754: build_alias
                    755: LIBS
                    756: ECHO_T
                    757: ECHO_N
                    758: ECHO_C
                    759: DEFS
                    760: mandir
                    761: localedir
                    762: libdir
                    763: psdir
                    764: pdfdir
                    765: dvidir
                    766: htmldir
                    767: infodir
                    768: docdir
                    769: oldincludedir
                    770: includedir
                    771: localstatedir
                    772: sharedstatedir
                    773: sysconfdir
                    774: datadir
                    775: datarootdir
                    776: libexecdir
                    777: sbindir
                    778: bindir
                    779: program_transform_name
                    780: prefix
                    781: exec_prefix
                    782: PACKAGE_URL
                    783: PACKAGE_BUGREPORT
                    784: PACKAGE_STRING
                    785: PACKAGE_VERSION
                    786: PACKAGE_TARNAME
                    787: PACKAGE_NAME
1.14      bertrand  788: PATH_SEPARATOR
1.15      bertrand  789: SHELL'
                    790: ac_subst_files=''
                    791: ac_user_opts='
                    792: enable_option_checking
1.92      bertrand  793: enable_silent_rules
1.15      bertrand  794: enable_dependency_tracking
                    795: with_x
1.69      bertrand  796: with_32bits_abi
                    797: with_64bits_abi
1.91      bertrand  798: enable_recursive
1.88      bertrand  799: with_rpltools
                    800: enable_rplcas
1.15      bertrand  801: enable_optimization
1.87      bertrand  802: enable_sysv_ipcs
1.30      bertrand  803: enable_full_static
1.15      bertrand  804: enable_final_encoding
                    805: enable_tex
                    806: enable_vim
                    807: enable_embedded_gnuplot
                    808: enable_gnuplot
                    809: enable_motif
                    810: enable_experimental
                    811: enable_debug
                    812: enable_profile
                    813: enable_final_run_path
                    814: with_mysql
                    815: with_postgresql
1.40      bertrand  816: with_bourne_shell
1.15      bertrand  817: with_openssl_arch
                    818: '
                    819:       ac_precious_vars='build_alias
1.1       bertrand  820: host_alias
                    821: target_alias
                    822: CC
                    823: CFLAGS
                    824: LDFLAGS
1.15      bertrand  825: LIBS
1.1       bertrand  826: CPPFLAGS
                    827: CXX
                    828: CXXFLAGS
1.15      bertrand  829: CCC
1.1       bertrand  830: F77
                    831: FFLAGS
                    832: FC
                    833: FCFLAGS
                    834: XMKMF
                    835: CPP'
1.80      bertrand  836: ac_subdirs_all='tools/$LIBXPM
                    837: tools/$OPENMOTIF
                    838: tools/$GNUPLOT
1.69      bertrand  839: tools/$NCURSES
1.1       bertrand  840: tools/$READLINE
                    841: tools/$GSL
                    842: tools/$GPP
                    843: tools/$FILE
                    844: tools/$ICONV
1.9       bertrand  845: tools/$SQLITE
1.76      bertrand  846: tools/$UNITS
                    847: tools/$SIGSEGV'
1.1       bertrand  848: 
                    849: # Initialize some variables set by options.
                    850: ac_init_help=
                    851: ac_init_version=false
1.15      bertrand  852: ac_unrecognized_opts=
                    853: ac_unrecognized_sep=
1.1       bertrand  854: # The variables have the same names as the options, with
                    855: # dashes changed to underlines.
                    856: cache_file=/dev/null
                    857: exec_prefix=NONE
                    858: no_create=
                    859: no_recursion=
                    860: prefix=NONE
                    861: program_prefix=NONE
                    862: program_suffix=NONE
                    863: program_transform_name=s,x,x,
                    864: silent=
                    865: site=
                    866: srcdir=
                    867: verbose=
                    868: x_includes=NONE
                    869: x_libraries=NONE
                    870: 
                    871: # Installation directory options.
                    872: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    873: # and all the variables that are supposed to be based on exec_prefix
                    874: # by default will actually change.
                    875: # Use braces instead of parens because sh, perl, etc. also accept them.
                    876: # (The list follows the same order as the GNU Coding Standards.)
                    877: bindir='${exec_prefix}/bin'
                    878: sbindir='${exec_prefix}/sbin'
                    879: libexecdir='${exec_prefix}/libexec'
                    880: datarootdir='${prefix}/share'
                    881: datadir='${datarootdir}'
                    882: sysconfdir='${prefix}/etc'
                    883: sharedstatedir='${prefix}/com'
                    884: localstatedir='${prefix}/var'
                    885: includedir='${prefix}/include'
                    886: oldincludedir='/usr/include'
                    887: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    888: infodir='${datarootdir}/info'
                    889: htmldir='${docdir}'
                    890: dvidir='${docdir}'
                    891: pdfdir='${docdir}'
                    892: psdir='${docdir}'
                    893: libdir='${exec_prefix}/lib'
                    894: localedir='${datarootdir}/locale'
                    895: mandir='${datarootdir}/man'
                    896: 
                    897: ac_prev=
                    898: ac_dashdash=
                    899: for ac_option
                    900: do
                    901:   # If the previous option needs an argument, assign it.
                    902:   if test -n "$ac_prev"; then
                    903:     eval $ac_prev=\$ac_option
                    904:     ac_prev=
                    905:     continue
                    906:   fi
                    907: 
                    908:   case $ac_option in
1.36      bertrand  909:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    910:   *=)   ac_optarg= ;;
                    911:   *)    ac_optarg=yes ;;
1.1       bertrand  912:   esac
                    913: 
                    914:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    915: 
                    916:   case $ac_dashdash$ac_option in
                    917:   --)
                    918:     ac_dashdash=yes ;;
                    919: 
                    920:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    921:     ac_prev=bindir ;;
                    922:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    923:     bindir=$ac_optarg ;;
                    924: 
                    925:   -build | --build | --buil | --bui | --bu)
                    926:     ac_prev=build_alias ;;
                    927:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    928:     build_alias=$ac_optarg ;;
                    929: 
                    930:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    931:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    932:     ac_prev=cache_file ;;
                    933:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    934:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    935:     cache_file=$ac_optarg ;;
                    936: 
                    937:   --config-cache | -C)
                    938:     cache_file=config.cache ;;
                    939: 
                    940:   -datadir | --datadir | --datadi | --datad)
                    941:     ac_prev=datadir ;;
                    942:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    943:     datadir=$ac_optarg ;;
                    944: 
                    945:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    946:   | --dataroo | --dataro | --datar)
                    947:     ac_prev=datarootdir ;;
                    948:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    949:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    950:     datarootdir=$ac_optarg ;;
                    951: 
                    952:   -disable-* | --disable-*)
1.15      bertrand  953:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       bertrand  954:     # Reject names that are not valid shell variable names.
1.15      bertrand  955:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  956:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  957:     ac_useropt_orig=$ac_useropt
                    958:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    959:     case $ac_user_opts in
                    960:       *"
                    961: "enable_$ac_useropt"
                    962: "*) ;;
                    963:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    964:     ac_unrecognized_sep=', ';;
                    965:     esac
                    966:     eval enable_$ac_useropt=no ;;
1.1       bertrand  967: 
                    968:   -docdir | --docdir | --docdi | --doc | --do)
                    969:     ac_prev=docdir ;;
                    970:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    971:     docdir=$ac_optarg ;;
                    972: 
                    973:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    974:     ac_prev=dvidir ;;
                    975:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    976:     dvidir=$ac_optarg ;;
                    977: 
                    978:   -enable-* | --enable-*)
1.15      bertrand  979:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       bertrand  980:     # Reject names that are not valid shell variable names.
1.15      bertrand  981:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand  982:       as_fn_error $? "invalid feature name: $ac_useropt"
1.15      bertrand  983:     ac_useropt_orig=$ac_useropt
                    984:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    985:     case $ac_user_opts in
                    986:       *"
                    987: "enable_$ac_useropt"
                    988: "*) ;;
                    989:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    990:     ac_unrecognized_sep=', ';;
                    991:     esac
                    992:     eval enable_$ac_useropt=\$ac_optarg ;;
1.1       bertrand  993: 
                    994:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    995:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    996:   | --exec | --exe | --ex)
                    997:     ac_prev=exec_prefix ;;
                    998:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    999:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1000:   | --exec=* | --exe=* | --ex=*)
                   1001:     exec_prefix=$ac_optarg ;;
                   1002: 
                   1003:   -gas | --gas | --ga | --g)
                   1004:     # Obsolete; use --with-gas.
                   1005:     with_gas=yes ;;
                   1006: 
                   1007:   -help | --help | --hel | --he | -h)
                   1008:     ac_init_help=long ;;
                   1009:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1010:     ac_init_help=recursive ;;
                   1011:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1012:     ac_init_help=short ;;
                   1013: 
                   1014:   -host | --host | --hos | --ho)
                   1015:     ac_prev=host_alias ;;
                   1016:   -host=* | --host=* | --hos=* | --ho=*)
                   1017:     host_alias=$ac_optarg ;;
                   1018: 
                   1019:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1020:     ac_prev=htmldir ;;
                   1021:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1022:   | --ht=*)
                   1023:     htmldir=$ac_optarg ;;
                   1024: 
                   1025:   -includedir | --includedir | --includedi | --included | --include \
                   1026:   | --includ | --inclu | --incl | --inc)
                   1027:     ac_prev=includedir ;;
                   1028:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1029:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                   1030:     includedir=$ac_optarg ;;
                   1031: 
                   1032:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1033:     ac_prev=infodir ;;
                   1034:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                   1035:     infodir=$ac_optarg ;;
                   1036: 
                   1037:   -libdir | --libdir | --libdi | --libd)
                   1038:     ac_prev=libdir ;;
                   1039:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                   1040:     libdir=$ac_optarg ;;
                   1041: 
                   1042:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1043:   | --libexe | --libex | --libe)
                   1044:     ac_prev=libexecdir ;;
                   1045:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1046:   | --libexe=* | --libex=* | --libe=*)
                   1047:     libexecdir=$ac_optarg ;;
                   1048: 
                   1049:   -localedir | --localedir | --localedi | --localed | --locale)
                   1050:     ac_prev=localedir ;;
                   1051:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1052:     localedir=$ac_optarg ;;
                   1053: 
                   1054:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                   1055:   | --localstate | --localstat | --localsta | --localst | --locals)
                   1056:     ac_prev=localstatedir ;;
                   1057:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                   1058:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                   1059:     localstatedir=$ac_optarg ;;
                   1060: 
                   1061:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1062:     ac_prev=mandir ;;
                   1063:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                   1064:     mandir=$ac_optarg ;;
                   1065: 
                   1066:   -nfp | --nfp | --nf)
                   1067:     # Obsolete; use --without-fp.
                   1068:     with_fp=no ;;
                   1069: 
                   1070:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                   1071:   | --no-cr | --no-c | -n)
                   1072:     no_create=yes ;;
                   1073: 
                   1074:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1075:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1076:     no_recursion=yes ;;
                   1077: 
                   1078:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1079:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1080:   | --oldin | --oldi | --old | --ol | --o)
                   1081:     ac_prev=oldincludedir ;;
                   1082:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1083:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1084:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                   1085:     oldincludedir=$ac_optarg ;;
                   1086: 
                   1087:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1088:     ac_prev=prefix ;;
                   1089:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   1090:     prefix=$ac_optarg ;;
                   1091: 
                   1092:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1093:   | --program-pre | --program-pr | --program-p)
                   1094:     ac_prev=program_prefix ;;
                   1095:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1096:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                   1097:     program_prefix=$ac_optarg ;;
                   1098: 
                   1099:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1100:   | --program-suf | --program-su | --program-s)
                   1101:     ac_prev=program_suffix ;;
                   1102:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1103:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                   1104:     program_suffix=$ac_optarg ;;
                   1105: 
                   1106:   -program-transform-name | --program-transform-name \
                   1107:   | --program-transform-nam | --program-transform-na \
                   1108:   | --program-transform-n | --program-transform- \
                   1109:   | --program-transform | --program-transfor \
                   1110:   | --program-transfo | --program-transf \
                   1111:   | --program-trans | --program-tran \
                   1112:   | --progr-tra | --program-tr | --program-t)
                   1113:     ac_prev=program_transform_name ;;
                   1114:   -program-transform-name=* | --program-transform-name=* \
                   1115:   | --program-transform-nam=* | --program-transform-na=* \
                   1116:   | --program-transform-n=* | --program-transform-=* \
                   1117:   | --program-transform=* | --program-transfor=* \
                   1118:   | --program-transfo=* | --program-transf=* \
                   1119:   | --program-trans=* | --program-tran=* \
                   1120:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1121:     program_transform_name=$ac_optarg ;;
                   1122: 
                   1123:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1124:     ac_prev=pdfdir ;;
                   1125:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1126:     pdfdir=$ac_optarg ;;
                   1127: 
                   1128:   -psdir | --psdir | --psdi | --psd | --ps)
                   1129:     ac_prev=psdir ;;
                   1130:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1131:     psdir=$ac_optarg ;;
                   1132: 
                   1133:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1134:   | -silent | --silent | --silen | --sile | --sil)
                   1135:     silent=yes ;;
                   1136: 
                   1137:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1138:     ac_prev=sbindir ;;
                   1139:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1140:   | --sbi=* | --sb=*)
                   1141:     sbindir=$ac_optarg ;;
                   1142: 
                   1143:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1144:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1145:   | --sharedst | --shareds | --shared | --share | --shar \
                   1146:   | --sha | --sh)
                   1147:     ac_prev=sharedstatedir ;;
                   1148:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1149:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1150:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1151:   | --sha=* | --sh=*)
                   1152:     sharedstatedir=$ac_optarg ;;
                   1153: 
                   1154:   -site | --site | --sit)
                   1155:     ac_prev=site ;;
                   1156:   -site=* | --site=* | --sit=*)
                   1157:     site=$ac_optarg ;;
                   1158: 
                   1159:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1160:     ac_prev=srcdir ;;
                   1161:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1162:     srcdir=$ac_optarg ;;
                   1163: 
                   1164:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1165:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1166:     ac_prev=sysconfdir ;;
                   1167:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1168:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1169:     sysconfdir=$ac_optarg ;;
                   1170: 
                   1171:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1172:     ac_prev=target_alias ;;
                   1173:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1174:     target_alias=$ac_optarg ;;
                   1175: 
                   1176:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1177:     verbose=yes ;;
                   1178: 
                   1179:   -version | --version | --versio | --versi | --vers | -V)
                   1180:     ac_init_version=: ;;
                   1181: 
                   1182:   -with-* | --with-*)
1.15      bertrand 1183:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       bertrand 1184:     # Reject names that are not valid shell variable names.
1.15      bertrand 1185:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1186:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1187:     ac_useropt_orig=$ac_useropt
                   1188:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1189:     case $ac_user_opts in
                   1190:       *"
                   1191: "with_$ac_useropt"
                   1192: "*) ;;
                   1193:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1194:     ac_unrecognized_sep=', ';;
                   1195:     esac
                   1196:     eval with_$ac_useropt=\$ac_optarg ;;
1.1       bertrand 1197: 
                   1198:   -without-* | --without-*)
1.15      bertrand 1199:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       bertrand 1200:     # Reject names that are not valid shell variable names.
1.15      bertrand 1201:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36      bertrand 1202:       as_fn_error $? "invalid package name: $ac_useropt"
1.15      bertrand 1203:     ac_useropt_orig=$ac_useropt
                   1204:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1205:     case $ac_user_opts in
                   1206:       *"
                   1207: "with_$ac_useropt"
                   1208: "*) ;;
                   1209:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1210:     ac_unrecognized_sep=', ';;
                   1211:     esac
                   1212:     eval with_$ac_useropt=no ;;
1.1       bertrand 1213: 
                   1214:   --x)
                   1215:     # Obsolete; use --with-x.
                   1216:     with_x=yes ;;
                   1217: 
                   1218:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1219:   | --x-incl | --x-inc | --x-in | --x-i)
                   1220:     ac_prev=x_includes ;;
                   1221:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1222:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1223:     x_includes=$ac_optarg ;;
                   1224: 
                   1225:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1226:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1227:     ac_prev=x_libraries ;;
                   1228:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1229:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1230:     x_libraries=$ac_optarg ;;
                   1231: 
1.36      bertrand 1232:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1233: Try \`$0 --help' for more information"
1.1       bertrand 1234:     ;;
                   1235: 
                   1236:   *=*)
                   1237:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1238:     # Reject names that are not valid shell variable names.
1.15      bertrand 1239:     case $ac_envvar in #(
                   1240:       '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36      bertrand 1241:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15      bertrand 1242:     esac
1.1       bertrand 1243:     eval $ac_envvar=\$ac_optarg
                   1244:     export $ac_envvar ;;
                   1245: 
                   1246:   *)
                   1247:     # FIXME: should be removed in autoconf 3.0.
1.15      bertrand 1248:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1       bertrand 1249:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15      bertrand 1250:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.99      bertrand 1251:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       bertrand 1252:     ;;
                   1253: 
                   1254:   esac
                   1255: done
                   1256: 
                   1257: if test -n "$ac_prev"; then
                   1258:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36      bertrand 1259:   as_fn_error $? "missing argument to $ac_option"
1.15      bertrand 1260: fi
                   1261: 
                   1262: if test -n "$ac_unrecognized_opts"; then
                   1263:   case $enable_option_checking in
                   1264:     no) ;;
1.36      bertrand 1265:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15      bertrand 1266:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1267:   esac
1.1       bertrand 1268: fi
                   1269: 
1.15      bertrand 1270: # Check all directory arguments for consistency.
1.1       bertrand 1271: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1272:        datadir sysconfdir sharedstatedir localstatedir includedir \
                   1273:        oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1274:        libdir localedir mandir
                   1275: do
                   1276:   eval ac_val=\$$ac_var
1.15      bertrand 1277:   # Remove trailing slashes.
                   1278:   case $ac_val in
                   1279:     */ )
                   1280:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1281:       eval $ac_var=\$ac_val;;
                   1282:   esac
                   1283:   # Be sure to have absolute directory names.
1.1       bertrand 1284:   case $ac_val in
                   1285:     [\\/$]* | ?:[\\/]* )  continue;;
                   1286:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1287:   esac
1.36      bertrand 1288:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1       bertrand 1289: done
                   1290: 
                   1291: # There might be people who depend on the old broken behavior: `$host'
                   1292: # used to hold the argument of --host etc.
                   1293: # FIXME: To remove some day.
                   1294: build=$build_alias
                   1295: host=$host_alias
                   1296: target=$target_alias
                   1297: 
                   1298: # FIXME: To remove some day.
                   1299: if test "x$host_alias" != x; then
                   1300:   if test "x$build_alias" = x; then
                   1301:     cross_compiling=maybe
1.36      bertrand 1302:     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
                   1303:     If a cross compiler is detected then cross compile mode will be used" >&2
1.1       bertrand 1304:   elif test "x$build_alias" != "x$host_alias"; then
                   1305:     cross_compiling=yes
                   1306:   fi
                   1307: fi
                   1308: 
                   1309: ac_tool_prefix=
                   1310: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1311: 
                   1312: test "$silent" = yes && exec 6>/dev/null
                   1313: 
                   1314: 
                   1315: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1316: ac_ls_di=`ls -di .` &&
                   1317: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36      bertrand 1318:   as_fn_error $? "working directory cannot be determined"
1.1       bertrand 1319: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36      bertrand 1320:   as_fn_error $? "pwd does not report name of working directory"
1.1       bertrand 1321: 
                   1322: 
                   1323: # Find the source files, if location was not specified.
                   1324: if test -z "$srcdir"; then
                   1325:   ac_srcdir_defaulted=yes
                   1326:   # Try the directory containing this script, then the parent directory.
1.15      bertrand 1327:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1328: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1329:     X"$as_myself" : 'X\(//\)[^/]' \| \
                   1330:     X"$as_myself" : 'X\(//\)$' \| \
                   1331:     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1332: $as_echo X"$as_myself" |
1.1       bertrand 1333:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1334:        s//\1/
                   1335:        q
                   1336:      }
                   1337:      /^X\(\/\/\)[^/].*/{
                   1338:        s//\1/
                   1339:        q
                   1340:      }
                   1341:      /^X\(\/\/\)$/{
                   1342:        s//\1/
                   1343:        q
                   1344:      }
                   1345:      /^X\(\/\).*/{
                   1346:        s//\1/
                   1347:        q
                   1348:      }
                   1349:      s/.*/./; q'`
                   1350:   srcdir=$ac_confdir
                   1351:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1352:     srcdir=..
                   1353:   fi
                   1354: else
                   1355:   ac_srcdir_defaulted=no
                   1356: fi
                   1357: if test ! -r "$srcdir/$ac_unique_file"; then
                   1358:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36      bertrand 1359:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1       bertrand 1360: fi
                   1361: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1362: ac_abs_confdir=`(
1.36      bertrand 1363:    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1       bertrand 1364:    pwd)`
                   1365: # When building in place, set srcdir=.
                   1366: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1367:   srcdir=.
                   1368: fi
                   1369: # Remove unnecessary trailing slashes from srcdir.
                   1370: # Double slashes in file names in object file debugging info
                   1371: # mess up M-x gdb in Emacs.
                   1372: case $srcdir in
                   1373: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1374: esac
                   1375: for ac_var in $ac_precious_vars; do
                   1376:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1377:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1378:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1379:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1380: done
                   1381: 
                   1382: #
                   1383: # Report the --help message.
                   1384: #
                   1385: if test "$ac_init_help" = "long"; then
                   1386:   # Omit some internal or obsolete options to make the list less imposing.
                   1387:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1388:   cat <<_ACEOF
1.100     bertrand 1389: \`configure' configures rpl 4.1.6 to adapt to many kinds of systems.
1.1       bertrand 1390: 
                   1391: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1392: 
                   1393: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1394: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1395: 
                   1396: Defaults for the options are specified in brackets.
                   1397: 
                   1398: Configuration:
                   1399:   -h, --help              display this help and exit
                   1400:       --help=short        display options specific to this package
                   1401:       --help=recursive    display the short help of all the included packages
                   1402:   -V, --version           display version information and exit
1.36      bertrand 1403:   -q, --quiet, --silent   do not print \`checking ...' messages
1.1       bertrand 1404:       --cache-file=FILE   cache test results in FILE [disabled]
                   1405:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1406:   -n, --no-create         do not create output files
                   1407:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1408: 
                   1409: Installation directories:
                   1410:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.15      bertrand 1411:                           [$ac_default_prefix]
1.1       bertrand 1412:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.15      bertrand 1413:                           [PREFIX]
1.1       bertrand 1414: 
                   1415: By default, \`make install' will install all the files in
                   1416: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1417: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1418: for instance \`--prefix=\$HOME'.
                   1419: 
                   1420: For better control, use the options below.
                   1421: 
                   1422: Fine tuning of the installation directories:
1.15      bertrand 1423:   --bindir=DIR            user executables [EPREFIX/bin]
                   1424:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1425:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1426:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1427:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1428:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1429:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1430:   --includedir=DIR        C header files [PREFIX/include]
                   1431:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1432:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1433:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1434:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1435:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1436:   --mandir=DIR            man documentation [DATAROOTDIR/man]
                   1437:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rpl]
                   1438:   --htmldir=DIR           html documentation [DOCDIR]
                   1439:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1440:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1441:   --psdir=DIR             ps documentation [DOCDIR]
1.1       bertrand 1442: _ACEOF
                   1443: 
                   1444:   cat <<\_ACEOF
                   1445: 
                   1446: Program names:
                   1447:   --program-prefix=PREFIX            prepend PREFIX to installed program names
                   1448:   --program-suffix=SUFFIX            append SUFFIX to installed program names
                   1449:   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
                   1450: 
                   1451: X features:
                   1452:   --x-includes=DIR    X include files are in DIR
                   1453:   --x-libraries=DIR   X library files are in DIR
                   1454: 
                   1455: System types:
                   1456:   --build=BUILD     configure for building on BUILD [guessed]
                   1457:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1458:   --target=TARGET   configure for building compilers for TARGET [HOST]
                   1459: _ACEOF
                   1460: fi
                   1461: 
                   1462: if test -n "$ac_init_help"; then
                   1463:   case $ac_init_help in
1.100     bertrand 1464:      short | recursive ) echo "Configuration of rpl 4.1.6:";;
1.1       bertrand 1465:    esac
                   1466:   cat <<\_ACEOF
                   1467: 
                   1468: Optional Features:
1.15      bertrand 1469:   --disable-option-checking  ignore unrecognized --enable/--with options
1.1       bertrand 1470:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1471:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.92      bertrand 1472:   --enable-silent-rules          less verbose build output (undo: `make V=1')
                   1473:   --disable-silent-rules         verbose build output (undo: `make V=0')
1.1       bertrand 1474:   --disable-dependency-tracking  speeds up one-time build
                   1475:   --enable-dependency-tracking   do not reject slow dependency extractors
1.91      bertrand 1476:   --enable-recursive      recursive configuration (default=yes)
1.88      bertrand 1477:   --enable-rplcas         compile rplcas (default=no)
1.1       bertrand 1478:   --enable-optimization   set compiler flags [default=environment variables -O3]
1.81      bertrand 1479:   --enable-sysv-ipcs      use SystemV IPC functions [default=guessed]
1.30      bertrand 1480:   --enable-full-static    build static RPL/2 engine [default=shared]
1.1       bertrand 1481:   --enable-final-encoding force final encoding [default=guessed]
                   1482:   --enable-tex            provide the TeX support [default=guessed]
                   1483:   --enable-vim            provide the vim support [default=guessed]
                   1484:   --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
                   1485:   --enable-gnuplot        provide the GnuPlot support [default=guessed]
                   1486:   --enable-motif          provide the Motif support [default=guessed]
                   1487:   --enable-experimental   enable experimental code [default=no]
                   1488:   --enable-debug          enable debug code [default=no]
                   1489:   --enable-profile        enable profile code [default=no]
                   1490:   --enable-final-run-path=PATH enable another final run path than PREFIX
                   1491: 
                   1492: Optional Packages:
                   1493:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1494:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1495:   --with-x                use the X Window System
1.64      bertrand 1496:   --with-32bits-abi       force 32bits ABI (multilib)
1.67      bertrand 1497:   --with-64bits-abi       force 64bits ABI (multilib)
1.88      bertrand 1498:   --with-rpltools         specify rpltools path used for cross compilation
1.1       bertrand 1499:   --with-mysql=PATH         specify directory for installed mysql
                   1500:   --with-postgresql=PATH    specify directory for installed postgresql
1.40      bertrand 1501:   --with-bourne-shell=PATH  specify path for OS/2 bourne shell
1.15      bertrand 1502:   --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)
1.1       bertrand 1503: 
                   1504: Some influential environment variables:
                   1505:   CC          C compiler command
                   1506:   CFLAGS      C compiler flags
                   1507:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1508:               nonstandard directory <lib dir>
                   1509:   LIBS        libraries to pass to the linker, e.g. -l<library>
1.15      bertrand 1510:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1       bertrand 1511:               you have headers in a nonstandard directory <include dir>
                   1512:   CXX         C++ compiler command
                   1513:   CXXFLAGS    C++ compiler flags
                   1514:   F77         Fortran 77 compiler command
                   1515:   FFLAGS      Fortran 77 compiler flags
                   1516:   FC          Fortran compiler command
                   1517:   FCFLAGS     Fortran compiler flags
                   1518:   XMKMF       Path to xmkmf, Makefile generator for X Window System
                   1519:   CPP         C preprocessor
                   1520: 
                   1521: Use these variables to override the choices made by `configure' or to help
                   1522: it to find libraries and programs with nonstandard names/locations.
                   1523: 
1.15      bertrand 1524: Report bugs to the package provider.
1.1       bertrand 1525: _ACEOF
                   1526: ac_status=$?
                   1527: fi
                   1528: 
                   1529: if test "$ac_init_help" = "recursive"; then
                   1530:   # If there are subdirs, report their specific --help.
                   1531:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15      bertrand 1532:     test -d "$ac_dir" ||
                   1533:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1534:       continue
1.1       bertrand 1535:     ac_builddir=.
                   1536: 
                   1537: case "$ac_dir" in
                   1538: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1539: *)
1.15      bertrand 1540:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 1541:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 1542:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 1543:   case $ac_top_builddir_sub in
                   1544:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1545:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1546:   esac ;;
                   1547: esac
                   1548: ac_abs_top_builddir=$ac_pwd
                   1549: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1550: # for backward compatibility:
                   1551: ac_top_builddir=$ac_top_build_prefix
                   1552: 
                   1553: case $srcdir in
                   1554:   .)  # We are building in place.
                   1555:     ac_srcdir=.
                   1556:     ac_top_srcdir=$ac_top_builddir_sub
                   1557:     ac_abs_top_srcdir=$ac_pwd ;;
                   1558:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1559:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1560:     ac_top_srcdir=$srcdir
                   1561:     ac_abs_top_srcdir=$srcdir ;;
                   1562:   *) # Relative name.
                   1563:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1564:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1565:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1566: esac
                   1567: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1568: 
                   1569:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1570:     # Check for guested configure.
                   1571:     if test -f "$ac_srcdir/configure.gnu"; then
                   1572:       echo &&
                   1573:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1574:     elif test -f "$ac_srcdir/configure"; then
                   1575:       echo &&
                   1576:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1577:     else
1.15      bertrand 1578:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1       bertrand 1579:     fi || ac_status=$?
                   1580:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1581:   done
                   1582: fi
                   1583: 
                   1584: test -n "$ac_init_help" && exit $ac_status
                   1585: if $ac_init_version; then
                   1586:   cat <<\_ACEOF
1.100     bertrand 1587: rpl configure 4.1.6
1.99      bertrand 1588: generated by GNU Autoconf 2.67
1.1       bertrand 1589: 
1.36      bertrand 1590: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 1591: This configure script is free software; the Free Software Foundation
                   1592: gives unlimited permission to copy, distribute and modify it.
                   1593: _ACEOF
                   1594:   exit
                   1595: fi
                   1596: 
1.15      bertrand 1597: ## ------------------------ ##
                   1598: ## Autoconf initialization. ##
                   1599: ## ------------------------ ##
                   1600: 
                   1601: # ac_fn_c_try_compile LINENO
                   1602: # --------------------------
                   1603: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1604: ac_fn_c_try_compile ()
                   1605: {
                   1606:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1607:   rm -f conftest.$ac_objext
                   1608:   if { { ac_try="$ac_compile"
                   1609: case "(($ac_try" in
                   1610:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1611:   *) ac_try_echo=$ac_try;;
                   1612: esac
                   1613: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1614: $as_echo "$ac_try_echo"; } >&5
                   1615:   (eval "$ac_compile") 2>conftest.err
                   1616:   ac_status=$?
                   1617:   if test -s conftest.err; then
                   1618:     grep -v '^ *+' conftest.err >conftest.er1
                   1619:     cat conftest.er1 >&5
                   1620:     mv -f conftest.er1 conftest.err
                   1621:   fi
                   1622:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1623:   test $ac_status = 0; } && {
                   1624:     test -z "$ac_c_werror_flag" ||
                   1625:     test ! -s conftest.err
                   1626:        } && test -s conftest.$ac_objext; then :
                   1627:   ac_retval=0
                   1628: else
                   1629:   $as_echo "$as_me: failed program was:" >&5
                   1630: sed 's/^/| /' conftest.$ac_ext >&5
                   1631: 
                   1632:    ac_retval=1
                   1633: fi
1.99      bertrand 1634:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1635:   as_fn_set_status $ac_retval
1.1       bertrand 1636: 
1.15      bertrand 1637: } # ac_fn_c_try_compile
1.1       bertrand 1638: 
1.15      bertrand 1639: # ac_fn_cxx_try_compile LINENO
                   1640: # ----------------------------
                   1641: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1642: ac_fn_cxx_try_compile ()
1.1       bertrand 1643: {
1.15      bertrand 1644:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1645:   rm -f conftest.$ac_objext
                   1646:   if { { ac_try="$ac_compile"
                   1647: case "(($ac_try" in
                   1648:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1649:   *) ac_try_echo=$ac_try;;
                   1650: esac
                   1651: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1652: $as_echo "$ac_try_echo"; } >&5
                   1653:   (eval "$ac_compile") 2>conftest.err
                   1654:   ac_status=$?
                   1655:   if test -s conftest.err; then
                   1656:     grep -v '^ *+' conftest.err >conftest.er1
                   1657:     cat conftest.er1 >&5
                   1658:     mv -f conftest.er1 conftest.err
                   1659:   fi
                   1660:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1661:   test $ac_status = 0; } && {
                   1662:     test -z "$ac_cxx_werror_flag" ||
                   1663:     test ! -s conftest.err
                   1664:        } && test -s conftest.$ac_objext; then :
                   1665:   ac_retval=0
                   1666: else
                   1667:   $as_echo "$as_me: failed program was:" >&5
                   1668: sed 's/^/| /' conftest.$ac_ext >&5
                   1669: 
                   1670:    ac_retval=1
                   1671: fi
1.99      bertrand 1672:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1673:   as_fn_set_status $ac_retval
1.1       bertrand 1674: 
1.15      bertrand 1675: } # ac_fn_cxx_try_compile
1.1       bertrand 1676: 
1.15      bertrand 1677: # ac_fn_f77_try_compile LINENO
                   1678: # ----------------------------
                   1679: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1680: ac_fn_f77_try_compile ()
                   1681: {
                   1682:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1683:   rm -f conftest.$ac_objext
                   1684:   if { { ac_try="$ac_compile"
                   1685: case "(($ac_try" in
                   1686:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1687:   *) ac_try_echo=$ac_try;;
                   1688: esac
                   1689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1690: $as_echo "$ac_try_echo"; } >&5
                   1691:   (eval "$ac_compile") 2>conftest.err
                   1692:   ac_status=$?
                   1693:   if test -s conftest.err; then
                   1694:     grep -v '^ *+' conftest.err >conftest.er1
                   1695:     cat conftest.er1 >&5
                   1696:     mv -f conftest.er1 conftest.err
                   1697:   fi
                   1698:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1699:   test $ac_status = 0; } && {
                   1700:     test -z "$ac_f77_werror_flag" ||
                   1701:     test ! -s conftest.err
                   1702:        } && test -s conftest.$ac_objext; then :
                   1703:   ac_retval=0
                   1704: else
                   1705:   $as_echo "$as_me: failed program was:" >&5
                   1706: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1707: 
1.15      bertrand 1708:    ac_retval=1
                   1709: fi
1.99      bertrand 1710:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1711:   as_fn_set_status $ac_retval
1.1       bertrand 1712: 
1.15      bertrand 1713: } # ac_fn_f77_try_compile
1.1       bertrand 1714: 
1.15      bertrand 1715: # ac_fn_fc_try_compile LINENO
                   1716: # ---------------------------
                   1717: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1718: ac_fn_fc_try_compile ()
                   1719: {
                   1720:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1721:   rm -f conftest.$ac_objext
                   1722:   if { { ac_try="$ac_compile"
                   1723: case "(($ac_try" in
                   1724:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1725:   *) ac_try_echo=$ac_try;;
                   1726: esac
                   1727: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1728: $as_echo "$ac_try_echo"; } >&5
                   1729:   (eval "$ac_compile") 2>conftest.err
                   1730:   ac_status=$?
                   1731:   if test -s conftest.err; then
                   1732:     grep -v '^ *+' conftest.err >conftest.er1
                   1733:     cat conftest.er1 >&5
                   1734:     mv -f conftest.er1 conftest.err
                   1735:   fi
                   1736:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1737:   test $ac_status = 0; } && {
                   1738:     test -z "$ac_fc_werror_flag" ||
                   1739:     test ! -s conftest.err
                   1740:        } && test -s conftest.$ac_objext; then :
                   1741:   ac_retval=0
                   1742: else
                   1743:   $as_echo "$as_me: failed program was:" >&5
                   1744: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1745: 
1.15      bertrand 1746:    ac_retval=1
                   1747: fi
1.99      bertrand 1748:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1749:   as_fn_set_status $ac_retval
1.1       bertrand 1750: 
1.15      bertrand 1751: } # ac_fn_fc_try_compile
1.1       bertrand 1752: 
1.15      bertrand 1753: # ac_fn_c_try_cpp LINENO
                   1754: # ----------------------
                   1755: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1756: ac_fn_c_try_cpp ()
                   1757: {
                   1758:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1759:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1760: case "(($ac_try" in
                   1761:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1762:   *) ac_try_echo=$ac_try;;
                   1763: esac
                   1764: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1765: $as_echo "$ac_try_echo"; } >&5
                   1766:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1767:   ac_status=$?
                   1768:   if test -s conftest.err; then
                   1769:     grep -v '^ *+' conftest.err >conftest.er1
                   1770:     cat conftest.er1 >&5
                   1771:     mv -f conftest.er1 conftest.err
                   1772:   fi
                   1773:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36      bertrand 1774:   test $ac_status = 0; } > conftest.i && {
1.15      bertrand 1775:     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1776:     test ! -s conftest.err
                   1777:        }; then :
                   1778:   ac_retval=0
                   1779: else
                   1780:   $as_echo "$as_me: failed program was:" >&5
                   1781: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1782: 
1.15      bertrand 1783:     ac_retval=1
                   1784: fi
1.99      bertrand 1785:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1786:   as_fn_set_status $ac_retval
1.1       bertrand 1787: 
1.15      bertrand 1788: } # ac_fn_c_try_cpp
1.1       bertrand 1789: 
1.15      bertrand 1790: # ac_fn_c_try_link LINENO
                   1791: # -----------------------
                   1792: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1793: ac_fn_c_try_link ()
                   1794: {
                   1795:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1796:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1797:   if { { ac_try="$ac_link"
                   1798: case "(($ac_try" in
                   1799:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1800:   *) ac_try_echo=$ac_try;;
                   1801: esac
                   1802: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1803: $as_echo "$ac_try_echo"; } >&5
                   1804:   (eval "$ac_link") 2>conftest.err
                   1805:   ac_status=$?
                   1806:   if test -s conftest.err; then
                   1807:     grep -v '^ *+' conftest.err >conftest.er1
                   1808:     cat conftest.er1 >&5
                   1809:     mv -f conftest.er1 conftest.err
                   1810:   fi
                   1811:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1812:   test $ac_status = 0; } && {
                   1813:     test -z "$ac_c_werror_flag" ||
                   1814:     test ! -s conftest.err
                   1815:        } && test -s conftest$ac_exeext && {
                   1816:     test "$cross_compiling" = yes ||
                   1817:     $as_test_x conftest$ac_exeext
                   1818:        }; then :
                   1819:   ac_retval=0
                   1820: else
                   1821:   $as_echo "$as_me: failed program was:" >&5
                   1822: sed 's/^/| /' conftest.$ac_ext >&5
1.1       bertrand 1823: 
1.15      bertrand 1824:    ac_retval=1
                   1825: fi
                   1826:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1827:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1828:   # interfere with the next link command; also delete a directory that is
                   1829:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1830:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.99      bertrand 1831:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 1832:   as_fn_set_status $ac_retval
1.1       bertrand 1833: 
1.15      bertrand 1834: } # ac_fn_c_try_link
1.1       bertrand 1835: 
1.15      bertrand 1836: # ac_fn_c_check_func LINENO FUNC VAR
                   1837: # ----------------------------------
                   1838: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   1839: ac_fn_c_check_func ()
                   1840: {
                   1841:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1842:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1843: $as_echo_n "checking for $2... " >&6; }
1.99      bertrand 1844: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 1845:   $as_echo_n "(cached) " >&6
                   1846: else
                   1847:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1848: /* end confdefs.h.  */
                   1849: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   1850:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   1851: #define $2 innocuous_$2
1.1       bertrand 1852: 
1.15      bertrand 1853: /* System header to define __stub macros and hopefully few prototypes,
                   1854:     which can conflict with char $2 (); below.
                   1855:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   1856:     <limits.h> exists even on freestanding compilers.  */
1.1       bertrand 1857: 
1.15      bertrand 1858: #ifdef __STDC__
                   1859: # include <limits.h>
                   1860: #else
                   1861: # include <assert.h>
                   1862: #endif
1.1       bertrand 1863: 
1.15      bertrand 1864: #undef $2
1.1       bertrand 1865: 
1.15      bertrand 1866: /* Override any GCC internal prototype to avoid an error.
                   1867:    Use char because int might match the return type of a GCC
                   1868:    builtin and then its argument prototype would still apply.  */
                   1869: #ifdef __cplusplus
                   1870: extern "C"
                   1871: #endif
                   1872: char $2 ();
                   1873: /* The GNU C library defines this for functions which it implements
                   1874:     to always fail with ENOSYS.  Some functions are actually named
                   1875:     something starting with __ and the normal name is an alias.  */
                   1876: #if defined __stub_$2 || defined __stub___$2
                   1877: choke me
                   1878: #endif
1.1       bertrand 1879: 
1.15      bertrand 1880: int
                   1881: main ()
                   1882: {
                   1883: return $2 ();
                   1884:   ;
                   1885:   return 0;
                   1886: }
1.1       bertrand 1887: _ACEOF
1.15      bertrand 1888: if ac_fn_c_try_link "$LINENO"; then :
                   1889:   eval "$3=yes"
                   1890: else
                   1891:   eval "$3=no"
                   1892: fi
                   1893: rm -f core conftest.err conftest.$ac_objext \
                   1894:     conftest$ac_exeext conftest.$ac_ext
                   1895: fi
                   1896: eval ac_res=\$$3
                   1897:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1898: $as_echo "$ac_res" >&6; }
1.99      bertrand 1899:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 1900: 
1.15      bertrand 1901: } # ac_fn_c_check_func
1.1       bertrand 1902: 
1.83      bertrand 1903: # ac_fn_c_try_run LINENO
                   1904: # ----------------------
                   1905: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1906: # that executables *can* be run.
                   1907: ac_fn_c_try_run ()
                   1908: {
                   1909:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1910:   if { { ac_try="$ac_link"
                   1911: case "(($ac_try" in
                   1912:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1913:   *) ac_try_echo=$ac_try;;
                   1914: esac
                   1915: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1916: $as_echo "$ac_try_echo"; } >&5
                   1917:   (eval "$ac_link") 2>&5
                   1918:   ac_status=$?
                   1919:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1920:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1921:   { { case "(($ac_try" in
                   1922:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1923:   *) ac_try_echo=$ac_try;;
                   1924: esac
                   1925: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1926: $as_echo "$ac_try_echo"; } >&5
                   1927:   (eval "$ac_try") 2>&5
                   1928:   ac_status=$?
                   1929:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1930:   test $ac_status = 0; }; }; then :
                   1931:   ac_retval=0
                   1932: else
                   1933:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1934:        $as_echo "$as_me: failed program was:" >&5
                   1935: sed 's/^/| /' conftest.$ac_ext >&5
                   1936: 
                   1937:        ac_retval=$ac_status
                   1938: fi
                   1939:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.99      bertrand 1940:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.83      bertrand 1941:   as_fn_set_status $ac_retval
                   1942: 
                   1943: } # ac_fn_c_try_run
                   1944: 
1.33      bertrand 1945: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1946: # -------------------------------------------
                   1947: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1948: # variable VAR accordingly.
                   1949: ac_fn_c_check_type ()
                   1950: {
                   1951:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1952:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1953: $as_echo_n "checking for $2... " >&6; }
1.99      bertrand 1954: if eval "test \"\${$3+set}\"" = set; then :
1.33      bertrand 1955:   $as_echo_n "(cached) " >&6
                   1956: else
                   1957:   eval "$3=no"
                   1958:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1959: /* end confdefs.h.  */
                   1960: $4
                   1961: int
                   1962: main ()
                   1963: {
                   1964: if (sizeof ($2))
                   1965:     return 0;
                   1966:   ;
                   1967:   return 0;
                   1968: }
                   1969: _ACEOF
                   1970: if ac_fn_c_try_compile "$LINENO"; then :
                   1971:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1972: /* end confdefs.h.  */
                   1973: $4
                   1974: int
                   1975: main ()
                   1976: {
                   1977: if (sizeof (($2)))
                   1978:        return 0;
                   1979:   ;
                   1980:   return 0;
                   1981: }
                   1982: _ACEOF
                   1983: if ac_fn_c_try_compile "$LINENO"; then :
                   1984: 
                   1985: else
                   1986:   eval "$3=yes"
                   1987: fi
                   1988: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1989: fi
                   1990: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1991: fi
                   1992: eval ac_res=\$$3
                   1993:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1994: $as_echo "$ac_res" >&6; }
1.99      bertrand 1995:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.33      bertrand 1996: 
                   1997: } # ac_fn_c_check_type
                   1998: 
1.15      bertrand 1999: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   2000: # --------------------------------------------
                   2001: # Tries to find the compile-time value of EXPR in a program that includes
                   2002: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   2003: # computed
                   2004: ac_fn_c_compute_int ()
                   2005: {
                   2006:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2007:   if test "$cross_compiling" = yes; then
                   2008:     # Depending upon the size, compute the lo and hi bounds.
                   2009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2010: /* end confdefs.h.  */
                   2011: $4
                   2012: int
                   2013: main ()
                   2014: {
                   2015: static int test_array [1 - 2 * !(($2) >= 0)];
                   2016: test_array [0] = 0
1.1       bertrand 2017: 
1.15      bertrand 2018:   ;
                   2019:   return 0;
                   2020: }
1.1       bertrand 2021: _ACEOF
1.15      bertrand 2022: if ac_fn_c_try_compile "$LINENO"; then :
                   2023:   ac_lo=0 ac_mid=0
                   2024:   while :; do
                   2025:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2026: /* end confdefs.h.  */
                   2027: $4
                   2028: int
                   2029: main ()
                   2030: {
                   2031: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2032: test_array [0] = 0
1.1       bertrand 2033: 
1.15      bertrand 2034:   ;
                   2035:   return 0;
                   2036: }
                   2037: _ACEOF
                   2038: if ac_fn_c_try_compile "$LINENO"; then :
                   2039:   ac_hi=$ac_mid; break
                   2040: else
                   2041:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   2042:            if test $ac_lo -le $ac_mid; then
                   2043:              ac_lo= ac_hi=
                   2044:              break
                   2045:            fi
                   2046:            as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   2047: fi
                   2048: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2049:   done
                   2050: else
                   2051:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2052: /* end confdefs.h.  */
                   2053: $4
                   2054: int
                   2055: main ()
                   2056: {
                   2057: static int test_array [1 - 2 * !(($2) < 0)];
                   2058: test_array [0] = 0
1.1       bertrand 2059: 
1.15      bertrand 2060:   ;
                   2061:   return 0;
                   2062: }
1.1       bertrand 2063: _ACEOF
1.15      bertrand 2064: if ac_fn_c_try_compile "$LINENO"; then :
                   2065:   ac_hi=-1 ac_mid=-1
                   2066:   while :; do
                   2067:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2068: /* end confdefs.h.  */
                   2069: $4
                   2070: int
                   2071: main ()
                   2072: {
                   2073: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
                   2074: test_array [0] = 0
1.1       bertrand 2075: 
1.15      bertrand 2076:   ;
                   2077:   return 0;
                   2078: }
                   2079: _ACEOF
                   2080: if ac_fn_c_try_compile "$LINENO"; then :
                   2081:   ac_lo=$ac_mid; break
                   2082: else
                   2083:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   2084:            if test $ac_mid -le $ac_hi; then
                   2085:              ac_lo= ac_hi=
                   2086:              break
                   2087:            fi
                   2088:            as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   2089: fi
                   2090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2091:   done
1.1       bertrand 2092: else
1.15      bertrand 2093:   ac_lo= ac_hi=
                   2094: fi
                   2095: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 2096: fi
1.15      bertrand 2097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2098: # Binary search between lo and hi bounds.
                   2099: while test "x$ac_lo" != "x$ac_hi"; do
                   2100:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   2101:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2102: /* end confdefs.h.  */
                   2103: $4
                   2104: int
                   2105: main ()
                   2106: {
                   2107: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
                   2108: test_array [0] = 0
1.1       bertrand 2109: 
1.15      bertrand 2110:   ;
                   2111:   return 0;
                   2112: }
                   2113: _ACEOF
                   2114: if ac_fn_c_try_compile "$LINENO"; then :
                   2115:   ac_hi=$ac_mid
1.1       bertrand 2116: else
1.15      bertrand 2117:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1       bertrand 2118: fi
1.15      bertrand 2119: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2120: done
                   2121: case $ac_lo in #((
                   2122: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   2123: '') ac_retval=1 ;;
                   2124: esac
                   2125:   else
                   2126:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2127: /* end confdefs.h.  */
                   2128: $4
                   2129: static long int longval () { return $2; }
                   2130: static unsigned long int ulongval () { return $2; }
                   2131: #include <stdio.h>
                   2132: #include <stdlib.h>
                   2133: int
                   2134: main ()
                   2135: {
1.1       bertrand 2136: 
1.15      bertrand 2137:   FILE *f = fopen ("conftest.val", "w");
                   2138:   if (! f)
                   2139:     return 1;
                   2140:   if (($2) < 0)
                   2141:     {
                   2142:       long int i = longval ();
                   2143:       if (i != ($2))
                   2144:    return 1;
                   2145:       fprintf (f, "%ld", i);
                   2146:     }
                   2147:   else
                   2148:     {
                   2149:       unsigned long int i = ulongval ();
                   2150:       if (i != ($2))
                   2151:    return 1;
                   2152:       fprintf (f, "%lu", i);
                   2153:     }
                   2154:   /* Do not output a trailing newline, as this causes \r\n confusion
                   2155:      on some platforms.  */
                   2156:   return ferror (f) || fclose (f) != 0;
                   2157: 
                   2158:   ;
                   2159:   return 0;
                   2160: }
                   2161: _ACEOF
                   2162: if ac_fn_c_try_run "$LINENO"; then :
                   2163:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   2164: else
                   2165:   ac_retval=1
1.14      bertrand 2166: fi
1.15      bertrand 2167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   2168:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   2169: rm -f conftest.val
1.14      bertrand 2170: 
1.15      bertrand 2171:   fi
1.99      bertrand 2172:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.15      bertrand 2173:   as_fn_set_status $ac_retval
1.14      bertrand 2174: 
1.15      bertrand 2175: } # ac_fn_c_compute_int
1.1       bertrand 2176: 
1.15      bertrand 2177: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   2178: # -------------------------------------------------------
                   2179: # Tests whether HEADER exists and can be compiled using the include files in
                   2180: # INCLUDES, setting the cache variable VAR accordingly.
                   2181: ac_fn_c_check_header_compile ()
                   2182: {
                   2183:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2184:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2185: $as_echo_n "checking for $2... " >&6; }
1.99      bertrand 2186: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2187:   $as_echo_n "(cached) " >&6
                   2188: else
                   2189:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2190: /* end confdefs.h.  */
                   2191: $4
                   2192: #include <$2>
                   2193: _ACEOF
                   2194: if ac_fn_c_try_compile "$LINENO"; then :
                   2195:   eval "$3=yes"
                   2196: else
                   2197:   eval "$3=no"
                   2198: fi
                   2199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2200: fi
                   2201: eval ac_res=\$$3
                   2202:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2203: $as_echo "$ac_res" >&6; }
1.99      bertrand 2204:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2205: 
1.15      bertrand 2206: } # ac_fn_c_check_header_compile
1.1       bertrand 2207: 
1.15      bertrand 2208: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   2209: # -------------------------------------------------------
                   2210: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   2211: # the include files in INCLUDES and setting the cache variable VAR
                   2212: # accordingly.
                   2213: ac_fn_c_check_header_mongrel ()
                   2214: {
                   2215:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.99      bertrand 2216:   if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2217:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2218: $as_echo_n "checking for $2... " >&6; }
1.99      bertrand 2219: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2220:   $as_echo_n "(cached) " >&6
                   2221: fi
                   2222: eval ac_res=\$$3
                   2223:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2224: $as_echo "$ac_res" >&6; }
                   2225: else
                   2226:   # Is the header compilable?
                   2227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   2228: $as_echo_n "checking $2 usability... " >&6; }
                   2229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2230: /* end confdefs.h.  */
                   2231: $4
                   2232: #include <$2>
                   2233: _ACEOF
                   2234: if ac_fn_c_try_compile "$LINENO"; then :
                   2235:   ac_header_compiler=yes
                   2236: else
                   2237:   ac_header_compiler=no
                   2238: fi
                   2239: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   2241: $as_echo "$ac_header_compiler" >&6; }
1.1       bertrand 2242: 
1.15      bertrand 2243: # Is the header present?
                   2244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   2245: $as_echo_n "checking $2 presence... " >&6; }
                   2246: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2247: /* end confdefs.h.  */
                   2248: #include <$2>
                   2249: _ACEOF
                   2250: if ac_fn_c_try_cpp "$LINENO"; then :
                   2251:   ac_header_preproc=yes
                   2252: else
                   2253:   ac_header_preproc=no
                   2254: fi
1.36      bertrand 2255: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 2256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   2257: $as_echo "$ac_header_preproc" >&6; }
1.1       bertrand 2258: 
1.15      bertrand 2259: # So?  What about this header?
                   2260: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   2261:   yes:no: )
                   2262:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   2263: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   2264:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2265: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2266:     ;;
                   2267:   no:yes:* )
                   2268:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   2269: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   2270:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   2271: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   2272:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   2273: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   2274:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   2275: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   2276:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   2277: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   2278:     ;;
                   2279: esac
                   2280:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2281: $as_echo_n "checking for $2... " >&6; }
1.99      bertrand 2282: if eval "test \"\${$3+set}\"" = set; then :
1.15      bertrand 2283:   $as_echo_n "(cached) " >&6
                   2284: else
                   2285:   eval "$3=\$ac_header_compiler"
                   2286: fi
                   2287: eval ac_res=\$$3
                   2288:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2289: $as_echo "$ac_res" >&6; }
                   2290: fi
1.99      bertrand 2291:   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1       bertrand 2292: 
1.15      bertrand 2293: } # ac_fn_c_check_header_mongrel
                   2294: cat >config.log <<_ACEOF
                   2295: This file contains any messages produced by compilers while
                   2296: running configure, to aid debugging if configure makes a mistake.
1.1       bertrand 2297: 
1.100     bertrand 2298: It was created by rpl $as_me 4.1.6, which was
1.99      bertrand 2299: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 2300: 
1.15      bertrand 2301:   $ $0 $@
1.1       bertrand 2302: 
1.15      bertrand 2303: _ACEOF
                   2304: exec 5>>config.log
                   2305: {
                   2306: cat <<_ASUNAME
                   2307: ## --------- ##
                   2308: ## Platform. ##
                   2309: ## --------- ##
1.1       bertrand 2310: 
1.15      bertrand 2311: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2312: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2313: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2314: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2315: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1       bertrand 2316: 
1.15      bertrand 2317: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2318: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1.1       bertrand 2319: 
1.15      bertrand 2320: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2321: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2322: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2323: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2324: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2325: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2326: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1.1       bertrand 2327: 
1.15      bertrand 2328: _ASUNAME
1.1       bertrand 2329: 
1.15      bertrand 2330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2331: for as_dir in $PATH
                   2332: do
                   2333:   IFS=$as_save_IFS
                   2334:   test -z "$as_dir" && as_dir=.
                   2335:     $as_echo "PATH: $as_dir"
                   2336:   done
                   2337: IFS=$as_save_IFS
1.1       bertrand 2338: 
1.15      bertrand 2339: } >&5
1.1       bertrand 2340: 
1.15      bertrand 2341: cat >&5 <<_ACEOF
1.1       bertrand 2342: 
                   2343: 
1.15      bertrand 2344: ## ----------- ##
                   2345: ## Core tests. ##
                   2346: ## ----------- ##
1.1       bertrand 2347: 
1.15      bertrand 2348: _ACEOF
1.1       bertrand 2349: 
                   2350: 
1.15      bertrand 2351: # Keep a trace of the command line.
                   2352: # Strip out --no-create and --no-recursion so they do not pile up.
                   2353: # Strip out --silent because we don't want to record it for future runs.
                   2354: # Also quote any args containing shell meta-characters.
                   2355: # Make two passes to allow for proper duplicate-argument suppression.
                   2356: ac_configure_args=
                   2357: ac_configure_args0=
                   2358: ac_configure_args1=
                   2359: ac_must_keep_next=false
                   2360: for ac_pass in 1 2
                   2361: do
                   2362:   for ac_arg
                   2363:   do
                   2364:     case $ac_arg in
                   2365:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2366:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2367:     | -silent | --silent | --silen | --sile | --sil)
                   2368:       continue ;;
                   2369:     *\'*)
                   2370:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2371:     esac
                   2372:     case $ac_pass in
                   2373:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2374:     2)
                   2375:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2376:       if test $ac_must_keep_next = true; then
                   2377:    ac_must_keep_next=false # Got value, back to normal.
                   2378:       else
                   2379:    case $ac_arg in
                   2380:      *=* | --config-cache | -C | -disable-* | --disable-* \
                   2381:      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2382:      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2383:      | -with-* | --with-* | -without-* | --without-* | --x)
                   2384:        case "$ac_configure_args0 " in
                   2385:          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2386:        esac
                   2387:        ;;
                   2388:      -* ) ac_must_keep_next=true ;;
                   2389:    esac
                   2390:       fi
                   2391:       as_fn_append ac_configure_args " '$ac_arg'"
                   2392:       ;;
                   2393:     esac
                   2394:   done
                   2395: done
                   2396: { ac_configure_args0=; unset ac_configure_args0;}
                   2397: { ac_configure_args1=; unset ac_configure_args1;}
1.1       bertrand 2398: 
1.15      bertrand 2399: # When interrupted or exit'd, cleanup temporary files, and complete
                   2400: # config.log.  We remove comments because anyway the quotes in there
                   2401: # would cause problems or look ugly.
                   2402: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2403: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2404: trap 'exit_status=$?
                   2405:   # Save into config.log some information that might help in debugging.
                   2406:   {
                   2407:     echo
1.1       bertrand 2408: 
1.36      bertrand 2409:     $as_echo "## ---------------- ##
1.15      bertrand 2410: ## Cache variables. ##
1.36      bertrand 2411: ## ---------------- ##"
1.15      bertrand 2412:     echo
                   2413:     # The following way of writing the cache mishandles newlines in values,
                   2414: (
                   2415:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2416:     eval ac_val=\$$ac_var
                   2417:     case $ac_val in #(
                   2418:     *${as_nl}*)
                   2419:       case $ac_var in #(
                   2420:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2421: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2422:       esac
                   2423:       case $ac_var in #(
                   2424:       _ | IFS | as_nl) ;; #(
                   2425:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2426:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2427:       esac ;;
                   2428:     esac
                   2429:   done
                   2430:   (set) 2>&1 |
                   2431:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2432:     *${as_nl}ac_space=\ *)
                   2433:       sed -n \
                   2434:    "s/'\''/'\''\\\\'\'''\''/g;
                   2435:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2436:       ;; #(
                   2437:     *)
                   2438:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2439:       ;;
                   2440:     esac |
                   2441:     sort
                   2442: )
                   2443:     echo
1.1       bertrand 2444: 
1.36      bertrand 2445:     $as_echo "## ----------------- ##
1.15      bertrand 2446: ## Output variables. ##
1.36      bertrand 2447: ## ----------------- ##"
1.15      bertrand 2448:     echo
                   2449:     for ac_var in $ac_subst_vars
                   2450:     do
                   2451:       eval ac_val=\$$ac_var
                   2452:       case $ac_val in
                   2453:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2454:       esac
                   2455:       $as_echo "$ac_var='\''$ac_val'\''"
                   2456:     done | sort
                   2457:     echo
1.1       bertrand 2458: 
1.15      bertrand 2459:     if test -n "$ac_subst_files"; then
1.36      bertrand 2460:       $as_echo "## ------------------- ##
1.15      bertrand 2461: ## File substitutions. ##
1.36      bertrand 2462: ## ------------------- ##"
1.15      bertrand 2463:       echo
                   2464:       for ac_var in $ac_subst_files
                   2465:       do
                   2466:    eval ac_val=\$$ac_var
                   2467:    case $ac_val in
                   2468:    *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2469:    esac
                   2470:    $as_echo "$ac_var='\''$ac_val'\''"
                   2471:       done | sort
                   2472:       echo
1.14      bertrand 2473:     fi
                   2474: 
1.15      bertrand 2475:     if test -s confdefs.h; then
1.36      bertrand 2476:       $as_echo "## ----------- ##
1.15      bertrand 2477: ## confdefs.h. ##
1.36      bertrand 2478: ## ----------- ##"
1.15      bertrand 2479:       echo
                   2480:       cat confdefs.h
                   2481:       echo
                   2482:     fi
                   2483:     test "$ac_signal" != 0 &&
                   2484:       $as_echo "$as_me: caught signal $ac_signal"
                   2485:     $as_echo "$as_me: exit $exit_status"
                   2486:   } >&5
                   2487:   rm -f core *.core core.conftest.* &&
                   2488:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2489:     exit $exit_status
                   2490: ' 0
                   2491: for ac_signal in 1 2 13 15; do
                   2492:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2493: done
                   2494: ac_signal=0
1.14      bertrand 2495: 
1.15      bertrand 2496: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2497: rm -f -r conftest* confdefs.h
1.14      bertrand 2498: 
1.15      bertrand 2499: $as_echo "/* confdefs.h */" > confdefs.h
1.14      bertrand 2500: 
1.15      bertrand 2501: # Predefined preprocessor variables.
1.14      bertrand 2502: 
1.15      bertrand 2503: cat >>confdefs.h <<_ACEOF
                   2504: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2505: _ACEOF
1.14      bertrand 2506: 
1.15      bertrand 2507: cat >>confdefs.h <<_ACEOF
                   2508: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14      bertrand 2509: _ACEOF
                   2510: 
1.15      bertrand 2511: cat >>confdefs.h <<_ACEOF
                   2512: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2513: _ACEOF
1.14      bertrand 2514: 
1.15      bertrand 2515: cat >>confdefs.h <<_ACEOF
                   2516: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14      bertrand 2517: _ACEOF
                   2518: 
1.15      bertrand 2519: cat >>confdefs.h <<_ACEOF
                   2520: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2521: _ACEOF
1.14      bertrand 2522: 
1.15      bertrand 2523: cat >>confdefs.h <<_ACEOF
                   2524: #define PACKAGE_URL "$PACKAGE_URL"
                   2525: _ACEOF
1.14      bertrand 2526: 
                   2527: 
1.15      bertrand 2528: # Let the site file select an alternate cache file if it wants to.
                   2529: # Prefer an explicitly selected file to automatically selected ones.
                   2530: ac_site_file1=NONE
                   2531: ac_site_file2=NONE
                   2532: if test -n "$CONFIG_SITE"; then
1.36      bertrand 2533:   # We do not want a PATH search for config.site.
                   2534:   case $CONFIG_SITE in #((
                   2535:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2536:     */*) ac_site_file1=$CONFIG_SITE;;
                   2537:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2538:   esac
1.15      bertrand 2539: elif test "x$prefix" != xNONE; then
                   2540:   ac_site_file1=$prefix/share/config.site
                   2541:   ac_site_file2=$prefix/etc/config.site
1.14      bertrand 2542: else
1.15      bertrand 2543:   ac_site_file1=$ac_default_prefix/share/config.site
                   2544:   ac_site_file2=$ac_default_prefix/etc/config.site
1.14      bertrand 2545: fi
1.15      bertrand 2546: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2547: do
                   2548:   test "x$ac_site_file" = xNONE && continue
                   2549:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2550:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2551: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2552:     sed 's/^/| /' "$ac_site_file" >&5
1.36      bertrand 2553:     . "$ac_site_file" \
                   2554:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2555: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2556: as_fn_error $? "failed to load site script $ac_site_file
1.99      bertrand 2557: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 2558:   fi
                   2559: done
1.14      bertrand 2560: 
1.15      bertrand 2561: if test -r "$cache_file"; then
                   2562:   # Some versions of bash will fail to source /dev/null (special files
                   2563:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2564:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2565:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2566: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2567:     case $cache_file in
                   2568:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2569:       *)                      . "./$cache_file";;
                   2570:     esac
                   2571:   fi
1.14      bertrand 2572: else
1.15      bertrand 2573:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2574: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2575:   >$cache_file
1.14      bertrand 2576: fi
                   2577: 
1.15      bertrand 2578: # Check that the precious variables saved in the cache have kept the same
                   2579: # value.
                   2580: ac_cache_corrupted=false
                   2581: for ac_var in $ac_precious_vars; do
                   2582:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2583:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2584:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2585:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2586:   case $ac_old_set,$ac_new_set in
                   2587:     set,)
                   2588:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2589: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2590:       ac_cache_corrupted=: ;;
                   2591:     ,set)
                   2592:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2593: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2594:       ac_cache_corrupted=: ;;
                   2595:     ,);;
                   2596:     *)
                   2597:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2598:    # differences in whitespace do not lead to failure.
                   2599:    ac_old_val_w=`echo x $ac_old_val`
                   2600:    ac_new_val_w=`echo x $ac_new_val`
                   2601:    if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2602:      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2603: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2604:      ac_cache_corrupted=:
                   2605:    else
                   2606:      { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2607: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2608:      eval $ac_var=\$ac_old_val
                   2609:    fi
                   2610:    { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2611: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2612:    { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2613: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2614:       fi;;
                   2615:   esac
                   2616:   # Pass precious variables to config.status.
                   2617:   if test "$ac_new_set" = set; then
                   2618:     case $ac_new_val in
                   2619:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2620:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2621:     esac
                   2622:     case " $ac_configure_args " in
                   2623:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2624:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2625:     esac
1.14      bertrand 2626:   fi
                   2627: done
1.15      bertrand 2628: if $ac_cache_corrupted; then
                   2629:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2630: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2631:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2632: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36      bertrand 2633:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15      bertrand 2634: fi
                   2635: ## -------------------- ##
                   2636: ## Main body of script. ##
                   2637: ## -------------------- ##
1.14      bertrand 2638: 
1.15      bertrand 2639: ac_ext=c
                   2640: ac_cpp='$CPP $CPPFLAGS'
                   2641: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2642: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2643: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 2644: 
                   2645: 
1.15      bertrand 2646: ac_aux_dir=
                   2647: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36      bertrand 2648:   if test -f "$ac_dir/install-sh"; then
                   2649:     ac_aux_dir=$ac_dir
                   2650:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2651:     break
                   2652:   elif test -f "$ac_dir/install.sh"; then
                   2653:     ac_aux_dir=$ac_dir
                   2654:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2655:     break
                   2656:   elif test -f "$ac_dir/shtool"; then
                   2657:     ac_aux_dir=$ac_dir
                   2658:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2659:     break
                   2660:   fi
1.14      bertrand 2661: done
1.15      bertrand 2662: if test -z "$ac_aux_dir"; then
1.36      bertrand 2663:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15      bertrand 2664: fi
1.14      bertrand 2665: 
1.15      bertrand 2666: # These three variables are undocumented and unsupported,
                   2667: # and are intended to be withdrawn in a future Autoconf release.
                   2668: # They can cause serious problems if a builder's source tree is in a directory
                   2669: # whose full name contains unusual characters.
                   2670: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2671: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2672: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1.14      bertrand 2673: 
                   2674: 
1.15      bertrand 2675: # Make sure we can run config.sub.
                   2676: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36      bertrand 2677:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14      bertrand 2678: 
1.15      bertrand 2679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2680: $as_echo_n "checking build system type... " >&6; }
1.99      bertrand 2681: if test "${ac_cv_build+set}" = set; then :
1.15      bertrand 2682:   $as_echo_n "(cached) " >&6
1.14      bertrand 2683: else
1.15      bertrand 2684:   ac_build_alias=$build_alias
                   2685: test "x$ac_build_alias" = x &&
                   2686:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2687: test "x$ac_build_alias" = x &&
1.36      bertrand 2688:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15      bertrand 2689: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36      bertrand 2690:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14      bertrand 2691: 
                   2692: fi
1.15      bertrand 2693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2694: $as_echo "$ac_cv_build" >&6; }
                   2695: case $ac_cv_build in
                   2696: *-*-*) ;;
1.99      bertrand 2697: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1.15      bertrand 2698: esac
                   2699: build=$ac_cv_build
                   2700: ac_save_IFS=$IFS; IFS='-'
                   2701: set x $ac_cv_build
                   2702: shift
                   2703: build_cpu=$1
                   2704: build_vendor=$2
                   2705: shift; shift
                   2706: # Remember, the first character of IFS is used to create $*,
                   2707: # except with old shells:
                   2708: build_os=$*
                   2709: IFS=$ac_save_IFS
                   2710: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2711: 
                   2712: 
1.15      bertrand 2713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2714: $as_echo_n "checking host system type... " >&6; }
1.99      bertrand 2715: if test "${ac_cv_host+set}" = set; then :
1.15      bertrand 2716:   $as_echo_n "(cached) " >&6
1.14      bertrand 2717: else
1.15      bertrand 2718:   if test "x$host_alias" = x; then
                   2719:   ac_cv_host=$ac_cv_build
1.14      bertrand 2720: else
1.15      bertrand 2721:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36      bertrand 2722:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14      bertrand 2723: fi
                   2724: 
                   2725: fi
1.15      bertrand 2726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2727: $as_echo "$ac_cv_host" >&6; }
                   2728: case $ac_cv_host in
                   2729: *-*-*) ;;
1.99      bertrand 2730: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1.15      bertrand 2731: esac
                   2732: host=$ac_cv_host
                   2733: ac_save_IFS=$IFS; IFS='-'
                   2734: set x $ac_cv_host
                   2735: shift
                   2736: host_cpu=$1
                   2737: host_vendor=$2
                   2738: shift; shift
                   2739: # Remember, the first character of IFS is used to create $*,
                   2740: # except with old shells:
                   2741: host_os=$*
                   2742: IFS=$ac_save_IFS
                   2743: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14      bertrand 2744: 
                   2745: 
1.15      bertrand 2746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
                   2747: $as_echo_n "checking target system type... " >&6; }
1.99      bertrand 2748: if test "${ac_cv_target+set}" = set; then :
1.15      bertrand 2749:   $as_echo_n "(cached) " >&6
                   2750: else
                   2751:   if test "x$target_alias" = x; then
                   2752:   ac_cv_target=$ac_cv_host
1.14      bertrand 2753: else
1.15      bertrand 2754:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36      bertrand 2755:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15      bertrand 2756: fi
1.14      bertrand 2757: 
                   2758: fi
1.15      bertrand 2759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
                   2760: $as_echo "$ac_cv_target" >&6; }
                   2761: case $ac_cv_target in
                   2762: *-*-*) ;;
1.99      bertrand 2763: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
1.15      bertrand 2764: esac
                   2765: target=$ac_cv_target
                   2766: ac_save_IFS=$IFS; IFS='-'
                   2767: set x $ac_cv_target
                   2768: shift
                   2769: target_cpu=$1
                   2770: target_vendor=$2
                   2771: shift; shift
                   2772: # Remember, the first character of IFS is used to create $*,
                   2773: # except with old shells:
                   2774: target_os=$*
                   2775: IFS=$ac_save_IFS
                   2776: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
                   2777: 
1.14      bertrand 2778: 
1.15      bertrand 2779: # The aliases save the names the user supplied, while $host etc.
                   2780: # will get canonicalized.
                   2781: test -n "$target_alias" &&
                   2782:   test "$program_prefix$program_suffix$program_transform_name" = \
                   2783:     NONENONEs,x,x, &&
                   2784:   program_prefix=${target_alias}-
1.1       bertrand 2785: 
1.15      bertrand 2786: am__api_version='1.11'
1.1       bertrand 2787: 
1.14      bertrand 2788: # Find a good install program.  We prefer a C program (faster),
                   2789: # so one script is as good as another.  But avoid the broken or
                   2790: # incompatible versions:
                   2791: # SysV /etc/install, /usr/sbin/install
                   2792: # SunOS /usr/etc/install
                   2793: # IRIX /sbin/install
                   2794: # AIX /bin/install
                   2795: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2796: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2797: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2798: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2799: # OS/2's system install, which has a completely different semantic
                   2800: # ./install, which can be erroneously created by make from ./install.sh.
1.15      bertrand 2801: # Reject install programs that cannot install multiple files.
                   2802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   2803: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14      bertrand 2804: if test -z "$INSTALL"; then
1.99      bertrand 2805: if test "${ac_cv_path_install+set}" = set; then :
1.15      bertrand 2806:   $as_echo_n "(cached) " >&6
1.14      bertrand 2807: else
                   2808:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2809: for as_dir in $PATH
                   2810: do
                   2811:   IFS=$as_save_IFS
                   2812:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2813:     # Account for people who put trailing slashes in PATH elements.
                   2814: case $as_dir/ in #((
                   2815:   ./ | .// | /[cC]/* | \
1.14      bertrand 2816:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15      bertrand 2817:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14      bertrand 2818:   /usr/ucb/* ) ;;
                   2819:   *)
                   2820:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2821:     # Don't use installbsd from OSF since it installs stuff as root
                   2822:     # by default.
                   2823:     for ac_prog in ginstall scoinst install; do
                   2824:       for ac_exec_ext in '' $ac_executable_extensions; do
                   2825:    if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
                   2826:      if test $ac_prog = install &&
                   2827:        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2828:        # AIX install.  It has an incompatible calling convention.
                   2829:        :
                   2830:      elif test $ac_prog = install &&
                   2831:        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   2832:        # program-specific install script used by HP pwplus--don't use.
                   2833:        :
                   2834:      else
1.15      bertrand 2835:        rm -rf conftest.one conftest.two conftest.dir
                   2836:        echo one > conftest.one
                   2837:        echo two > conftest.two
                   2838:        mkdir conftest.dir
                   2839:        if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   2840:          test -s conftest.one && test -s conftest.two &&
                   2841:          test -s conftest.dir/conftest.one &&
                   2842:          test -s conftest.dir/conftest.two
                   2843:        then
                   2844:          ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   2845:          break 3
                   2846:        fi
1.14      bertrand 2847:      fi
                   2848:    fi
                   2849:       done
                   2850:     done
                   2851:     ;;
                   2852: esac
1.15      bertrand 2853: 
                   2854:   done
1.14      bertrand 2855: IFS=$as_save_IFS
1.1       bertrand 2856: 
1.15      bertrand 2857: rm -rf conftest.one conftest.two conftest.dir
1.1       bertrand 2858: 
1.14      bertrand 2859: fi
                   2860:   if test "${ac_cv_path_install+set}" = set; then
                   2861:     INSTALL=$ac_cv_path_install
                   2862:   else
                   2863:     # As a last resort, use the slow shell script.  Don't cache a
                   2864:     # value for INSTALL within a source directory, because that will
                   2865:     # break other packages using the cache if that directory is
                   2866:     # removed, or if the value is a relative name.
                   2867:     INSTALL=$ac_install_sh
                   2868:   fi
                   2869: fi
1.15      bertrand 2870: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   2871: $as_echo "$INSTALL" >&6; }
1.1       bertrand 2872: 
1.14      bertrand 2873: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2874: # It thinks the first close brace ends the variable substitution.
                   2875: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1       bertrand 2876: 
1.14      bertrand 2877: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1       bertrand 2878: 
1.14      bertrand 2879: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       bertrand 2880: 
1.15      bertrand 2881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
                   2882: $as_echo_n "checking whether build environment is sane... " >&6; }
                   2883: # Just in case
                   2884: sleep 1
                   2885: echo timestamp > conftest.file
                   2886: # Reject unsafe characters in $srcdir or the absolute working directory
                   2887: # name.  Accept space and tab only in the latter.
                   2888: am_lf='
                   2889: '
                   2890: case `pwd` in
                   2891:   *[\\\"\#\$\&\'\`$am_lf]*)
1.99      bertrand 2892:     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1.15      bertrand 2893: esac
                   2894: case $srcdir in
                   2895:   *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
1.99      bertrand 2896:     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1.15      bertrand 2897: esac
                   2898: 
                   2899: # Do `set' in a subshell so we don't clobber the current shell's
                   2900: # arguments.  Must try -L first in case configure is actually a
                   2901: # symlink; some systems play weird games with the mod time of symlinks
                   2902: # (eg FreeBSD returns the mod time of the symlink's containing
                   2903: # directory).
                   2904: if (
                   2905:    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
                   2906:    if test "$*" = "X"; then
                   2907:       # -L didn't work.
                   2908:       set X `ls -t "$srcdir/configure" conftest.file`
                   2909:    fi
                   2910:    rm -f conftest.file
                   2911:    if test "$*" != "X $srcdir/configure conftest.file" \
                   2912:       && test "$*" != "X conftest.file $srcdir/configure"; then
                   2913: 
                   2914:       # If neither matched, then we have a broken ls.  This can happen
                   2915:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                   2916:       # broken ls alias from the environment.  This has actually
                   2917:       # happened.  Such a system could not be considered "sane".
1.36      bertrand 2918:       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1.15      bertrand 2919: alias in your environment" "$LINENO" 5
                   2920:    fi
                   2921: 
                   2922:    test "$2" = conftest.file
                   2923:    )
                   2924: then
                   2925:    # Ok.
                   2926:    :
1.14      bertrand 2927: else
1.36      bertrand 2928:    as_fn_error $? "newly created file is older than distributed files!
1.15      bertrand 2929: Check your system clock" "$LINENO" 5
1.14      bertrand 2930: fi
1.15      bertrand 2931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2932: $as_echo "yes" >&6; }
                   2933: test "$program_prefix" != NONE &&
                   2934:   program_transform_name="s&^&$program_prefix&;$program_transform_name"
                   2935: # Use a double $ so make ignores it.
                   2936: test "$program_suffix" != NONE &&
                   2937:   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
                   2938: # Double any \ or $.
                   2939: # By default was `s,x,x', remove it if useless.
                   2940: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
                   2941: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
                   2942: 
                   2943: # expand $ac_aux_dir to an absolute path
                   2944: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1       bertrand 2945: 
1.15      bertrand 2946: if test x"${MISSING+set}" != xset; then
                   2947:   case $am_aux_dir in
                   2948:   *\ * | *\    *)
                   2949:     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14      bertrand 2950:   *)
1.15      bertrand 2951:     MISSING="\${SHELL} $am_aux_dir/missing" ;;
                   2952:   esac
1.14      bertrand 2953: fi
1.15      bertrand 2954: # Use eval to expand $SHELL
                   2955: if eval "$MISSING --run true"; then
                   2956:   am_missing_run="$MISSING --run "
1.14      bertrand 2957: else
1.15      bertrand 2958:   am_missing_run=
                   2959:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
                   2960: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
                   2961: fi
                   2962: 
                   2963: if test x"${install_sh}" != xset; then
                   2964:   case $am_aux_dir in
                   2965:   *\ * | *\    *)
                   2966:     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
                   2967:   *)
                   2968:     install_sh="\${SHELL} $am_aux_dir/install-sh"
                   2969:   esac
1.14      bertrand 2970: fi
1.15      bertrand 2971: 
                   2972: # Installed binaries are usually stripped using `strip' when the user
                   2973: # run `make install-strip'.  However `strip' might not be the right
                   2974: # tool to use in cross-compilation environments, therefore Automake
                   2975: # will honor the `STRIP' environment variable to overrule this program.
                   2976: if test "$cross_compiling" != no; then
                   2977:   if test -n "$ac_tool_prefix"; then
                   2978:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   2979: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   2980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2981: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 2982: if test "${ac_cv_prog_STRIP+set}" = set; then :
1.15      bertrand 2983:   $as_echo_n "(cached) " >&6
1.14      bertrand 2984: else
1.15      bertrand 2985:   if test -n "$STRIP"; then
                   2986:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14      bertrand 2987: else
                   2988: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2989: for as_dir in $PATH
                   2990: do
                   2991:   IFS=$as_save_IFS
                   2992:   test -z "$as_dir" && as_dir=.
1.15      bertrand 2993:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 2994:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 2995:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   2996:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 2997:     break 2
                   2998:   fi
                   2999: done
1.15      bertrand 3000:   done
1.14      bertrand 3001: IFS=$as_save_IFS
1.1       bertrand 3002: 
1.14      bertrand 3003: fi
                   3004: fi
1.15      bertrand 3005: STRIP=$ac_cv_prog_STRIP
                   3006: if test -n "$STRIP"; then
                   3007:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
                   3008: $as_echo "$STRIP" >&6; }
1.14      bertrand 3009: else
1.15      bertrand 3010:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3011: $as_echo "no" >&6; }
1.14      bertrand 3012: fi
1.1       bertrand 3013: 
                   3014: 
1.14      bertrand 3015: fi
1.15      bertrand 3016: if test -z "$ac_cv_prog_STRIP"; then
                   3017:   ac_ct_STRIP=$STRIP
                   3018:   # Extract the first word of "strip", so it can be a program name with args.
                   3019: set dummy strip; ac_word=$2
                   3020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3021: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 3022: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
1.15      bertrand 3023:   $as_echo_n "(cached) " >&6
1.14      bertrand 3024: else
1.15      bertrand 3025:   if test -n "$ac_ct_STRIP"; then
                   3026:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1       bertrand 3027: else
1.14      bertrand 3028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3029: for as_dir in $PATH
1.1       bertrand 3030: do
1.14      bertrand 3031:   IFS=$as_save_IFS
                   3032:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3033:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3034:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3035:     ac_cv_prog_ac_ct_STRIP="strip"
                   3036:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3037:     break 2
1.1       bertrand 3038:   fi
                   3039: done
1.15      bertrand 3040:   done
1.14      bertrand 3041: IFS=$as_save_IFS
1.1       bertrand 3042: 
1.14      bertrand 3043: fi
                   3044: fi
1.15      bertrand 3045: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   3046: if test -n "$ac_ct_STRIP"; then
                   3047:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
                   3048: $as_echo "$ac_ct_STRIP" >&6; }
1.1       bertrand 3049: else
1.15      bertrand 3050:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3051: $as_echo "no" >&6; }
1.1       bertrand 3052: fi
                   3053: 
1.15      bertrand 3054:   if test "x$ac_ct_STRIP" = x; then
                   3055:     STRIP=":"
1.14      bertrand 3056:   else
                   3057:     case $cross_compiling:$ac_tool_warned in
                   3058: yes:)
1.15      bertrand 3059: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3060: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14      bertrand 3061: ac_tool_warned=yes ;;
                   3062: esac
1.15      bertrand 3063:     STRIP=$ac_ct_STRIP
1.1       bertrand 3064:   fi
1.14      bertrand 3065: else
1.15      bertrand 3066:   STRIP="$ac_cv_prog_STRIP"
1.1       bertrand 3067: fi
                   3068: 
1.15      bertrand 3069: fi
                   3070: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1       bertrand 3071: 
1.15      bertrand 3072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3073: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3074: if test -z "$MKDIR_P"; then
1.99      bertrand 3075:   if test "${ac_cv_path_mkdir+set}" = set; then :
1.15      bertrand 3076:   $as_echo_n "(cached) " >&6
1.14      bertrand 3077: else
1.15      bertrand 3078:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3079: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14      bertrand 3080: do
                   3081:   IFS=$as_save_IFS
                   3082:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3083:     for ac_prog in mkdir gmkdir; do
                   3084:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3085:       { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
                   3086:       case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3087:         'mkdir (GNU coreutils) '* | \
                   3088:         'mkdir (coreutils) '* | \
                   3089:         'mkdir (fileutils) '4.1*)
                   3090:           ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3091:           break 3;;
                   3092:       esac
                   3093:     done
                   3094:        done
                   3095:   done
1.14      bertrand 3096: IFS=$as_save_IFS
1.1       bertrand 3097: 
                   3098: fi
1.15      bertrand 3099: 
                   3100:   test -d ./--version && rmdir ./--version
                   3101:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3102:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3103:   else
                   3104:     # As a last resort, use the slow shell script.  Don't cache a
                   3105:     # value for MKDIR_P within a source directory, because that will
                   3106:     # break other packages using the cache if that directory is
                   3107:     # removed, or if the value is a relative name.
                   3108:     MKDIR_P="$ac_install_sh -d"
                   3109:   fi
1.14      bertrand 3110: fi
1.15      bertrand 3111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3112: $as_echo "$MKDIR_P" >&6; }
1.1       bertrand 3113: 
1.15      bertrand 3114: mkdir_p="$MKDIR_P"
                   3115: case $mkdir_p in
                   3116:   [\\/$]* | ?:[\\/]*) ;;
                   3117:   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
                   3118: esac
1.1       bertrand 3119: 
1.15      bertrand 3120: for ac_prog in gawk mawk nawk awk
                   3121: do
                   3122:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3123: set dummy $ac_prog; ac_word=$2
                   3124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3125: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 3126: if test "${ac_cv_prog_AWK+set}" = set; then :
1.15      bertrand 3127:   $as_echo_n "(cached) " >&6
1.1       bertrand 3128: else
1.15      bertrand 3129:   if test -n "$AWK"; then
                   3130:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1       bertrand 3131: else
1.14      bertrand 3132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3133: for as_dir in $PATH
                   3134: do
                   3135:   IFS=$as_save_IFS
                   3136:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3137:     for ac_exec_ext in '' $ac_executable_extensions; do
1.14      bertrand 3138:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3139:     ac_cv_prog_AWK="$ac_prog"
                   3140:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14      bertrand 3141:     break 2
                   3142:   fi
                   3143: done
1.15      bertrand 3144:   done
1.14      bertrand 3145: IFS=$as_save_IFS
                   3146: 
                   3147: fi
1.1       bertrand 3148: fi
1.15      bertrand 3149: AWK=$ac_cv_prog_AWK
                   3150: if test -n "$AWK"; then
                   3151:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   3152: $as_echo "$AWK" >&6; }
1.14      bertrand 3153: else
1.15      bertrand 3154:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3155: $as_echo "no" >&6; }
1.1       bertrand 3156: fi
                   3157: 
                   3158: 
1.15      bertrand 3159:   test -n "$AWK" && break
                   3160: done
1.1       bertrand 3161: 
1.15      bertrand 3162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   3163: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   3164: set x ${MAKE-make}
                   3165: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.99      bertrand 3166: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 3167:   $as_echo_n "(cached) " >&6
1.14      bertrand 3168: else
1.15      bertrand 3169:   cat >conftest.make <<\_ACEOF
                   3170: SHELL = /bin/sh
                   3171: all:
                   3172:    @echo '@@@%%%=$(MAKE)=@@@%%%'
                   3173: _ACEOF
1.36      bertrand 3174: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 3175: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   3176:   *@@@%%%=?*=@@@%%%*)
                   3177:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   3178:   *)
                   3179:     eval ac_cv_prog_make_${ac_make}_set=no;;
                   3180: esac
                   3181: rm -f conftest.make
                   3182: fi
                   3183: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   3184:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3185: $as_echo "yes" >&6; }
                   3186:   SET_MAKE=
1.1       bertrand 3187: else
1.15      bertrand 3188:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3189: $as_echo "no" >&6; }
                   3190:   SET_MAKE="MAKE=${MAKE-make}"
                   3191: fi
1.1       bertrand 3192: 
1.15      bertrand 3193: rm -rf .tst 2>/dev/null
                   3194: mkdir .tst 2>/dev/null
                   3195: if test -d .tst; then
                   3196:   am__leading_dot=.
                   3197: else
                   3198:   am__leading_dot=_
1.14      bertrand 3199: fi
1.15      bertrand 3200: rmdir .tst 2>/dev/null
                   3201: 
1.92      bertrand 3202: # Check whether --enable-silent-rules was given.
                   3203: if test "${enable_silent_rules+set}" = set; then :
                   3204:   enableval=$enable_silent_rules;
                   3205: fi
                   3206: 
                   3207: case $enable_silent_rules in
                   3208: yes) AM_DEFAULT_VERBOSITY=0;;
                   3209: no)  AM_DEFAULT_VERBOSITY=1;;
                   3210: *)   AM_DEFAULT_VERBOSITY=1;;
                   3211: esac
                   3212: AM_BACKSLASH='\'
                   3213: 
1.15      bertrand 3214: if test "`cd $srcdir && pwd`" != "`pwd`"; then
                   3215:   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
                   3216:   # is not polluted with repeated "-I."
                   3217:   am__isrc=' -I$(srcdir)'
                   3218:   # test to see if srcdir already configured
                   3219:   if test -f $srcdir/config.status; then
1.36      bertrand 3220:     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15      bertrand 3221:   fi
1.1       bertrand 3222: fi
1.15      bertrand 3223: 
                   3224: # test whether we have cygpath
                   3225: if test -z "$CYGPATH_W"; then
                   3226:   if (cygpath --version) >/dev/null 2>/dev/null; then
                   3227:     CYGPATH_W='cygpath -w'
                   3228:   else
                   3229:     CYGPATH_W=echo
                   3230:   fi
1.1       bertrand 3231: fi
                   3232: 
                   3233: 
1.15      bertrand 3234: # Define the identity of the package.
                   3235:  PACKAGE='rpl'
1.100     bertrand 3236:  VERSION='4.1.6'
1.15      bertrand 3237: 
                   3238: 
                   3239: cat >>confdefs.h <<_ACEOF
                   3240: #define PACKAGE "$PACKAGE"
                   3241: _ACEOF
                   3242: 
                   3243: 
                   3244: cat >>confdefs.h <<_ACEOF
                   3245: #define VERSION "$VERSION"
                   3246: _ACEOF
                   3247: 
                   3248: # Some tools Automake needs.
                   3249: 
                   3250: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
                   3251: 
                   3252: 
                   3253: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
                   3254: 
                   3255: 
                   3256: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
                   3257: 
                   3258: 
                   3259: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
                   3260: 
                   3261: 
                   3262: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
                   3263: 
                   3264: # We need awk for the "check" target.  The system "awk" is bad on
                   3265: # some platforms.
                   3266: # Always define AMTAR for backward compatibility.
                   3267: 
                   3268: AMTAR=${AMTAR-"${am_missing_run}tar"}
                   3269: 
                   3270: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
                   3271: 
                   3272: 
                   3273: 
                   3274: 
1.1       bertrand 3275: 
1.92      bertrand 3276: # Check whether --enable-silent-rules was given.
                   3277: if test "${enable_silent_rules+set}" = set; then :
                   3278:   enableval=$enable_silent_rules;
                   3279: fi
                   3280: 
                   3281: case $enable_silent_rules in
                   3282: yes) AM_DEFAULT_VERBOSITY=0;;
                   3283: no)  AM_DEFAULT_VERBOSITY=1;;
1.93      bertrand 3284: *)   AM_DEFAULT_VERBOSITY=0;;
1.92      bertrand 3285: esac
                   3286: AM_BACKSLASH='\'
                   3287: 
1.1       bertrand 3288: 
1.15      bertrand 3289: ac_config_headers="$ac_config_headers rplconfig.h"
1.1       bertrand 3290: 
                   3291: 
1.54      bertrand 3292: NCURSES=ncurses-5.9
1.50      bertrand 3293: READLINE=readline-6.2
1.30      bertrand 3294: UNITS=units-1.88
1.57      bertrand 3295: GSL=gsl-1.15
1.72      bertrand 3296: GPP=gpp-3.0
1.52      bertrand 3297: GNUPLOT=gnuplot-4.4.3
1.15      bertrand 3298: FILE=file-5.03
                   3299: ICONV=libiconv-1.13.1
1.99      bertrand 3300: SQLITE=sqlite-3.7.10
                   3301: OPENSSL=openssl-1.0.0f
1.79      bertrand 3302: OPENMOTIF=openmotif-2.3.3
1.80      bertrand 3303: LIBXPM=libXpm-3.5.9
1.76      bertrand 3304: SIGSEGV=libsigsegv-2.6
1.14      bertrand 3305: 
1.75      bertrand 3306: GMP=gmp-5.0.2
1.55      bertrand 3307: MPFR=mpfr-3.0.1
1.56      bertrand 3308: NTL=ntl-5.5.2
                   3309: COCOA=CoCoALib-0.9943
1.76      bertrand 3310: PARI=pari-2.5.0
1.94      bertrand 3311: GIAC=giac-0.9.5
1.55      bertrand 3312: 
1.15      bertrand 3313: ac_ext=c
                   3314: ac_cpp='$CPP $CPPFLAGS'
                   3315: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3316: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3317: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3318: if test -n "$ac_tool_prefix"; then
1.23      bertrand 3319:   for ac_prog in gcc
1.15      bertrand 3320:   do
                   3321:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3322: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3324: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 3325: if test "${ac_cv_prog_CC+set}" = set; then :
1.15      bertrand 3326:   $as_echo_n "(cached) " >&6
1.1       bertrand 3327: else
1.15      bertrand 3328:   if test -n "$CC"; then
                   3329:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       bertrand 3330: else
                   3331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3332: for as_dir in $PATH
                   3333: do
                   3334:   IFS=$as_save_IFS
                   3335:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3336:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3337:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3338:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3339:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3340:     break 2
                   3341:   fi
                   3342: done
1.15      bertrand 3343:   done
1.1       bertrand 3344: IFS=$as_save_IFS
                   3345: 
                   3346: fi
                   3347: fi
1.15      bertrand 3348: CC=$ac_cv_prog_CC
                   3349: if test -n "$CC"; then
                   3350:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   3351: $as_echo "$CC" >&6; }
1.1       bertrand 3352: else
1.15      bertrand 3353:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3354: $as_echo "no" >&6; }
1.1       bertrand 3355: fi
                   3356: 
                   3357: 
1.15      bertrand 3358:     test -n "$CC" && break
                   3359:   done
                   3360: fi
                   3361: if test -z "$CC"; then
                   3362:   ac_ct_CC=$CC
1.23      bertrand 3363:   for ac_prog in gcc
1.15      bertrand 3364: do
                   3365:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3366: set dummy $ac_prog; ac_word=$2
                   3367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   3368: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 3369: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1.15      bertrand 3370:   $as_echo_n "(cached) " >&6
1.1       bertrand 3371: else
1.15      bertrand 3372:   if test -n "$ac_ct_CC"; then
                   3373:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1       bertrand 3374: else
                   3375: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3376: for as_dir in $PATH
                   3377: do
                   3378:   IFS=$as_save_IFS
                   3379:   test -z "$as_dir" && as_dir=.
1.15      bertrand 3380:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1       bertrand 3381:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15      bertrand 3382:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   3383:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1       bertrand 3384:     break 2
                   3385:   fi
                   3386: done
1.15      bertrand 3387:   done
1.1       bertrand 3388: IFS=$as_save_IFS
                   3389: 
                   3390: fi
                   3391: fi
1.15      bertrand 3392: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3393: if test -n "$ac_ct_CC"; then
                   3394:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   3395: $as_echo "$ac_ct_CC" >&6; }
1.1       bertrand 3396: else
1.15      bertrand 3397:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3398: $as_echo "no" >&6; }
1.1       bertrand 3399: fi
                   3400: 
                   3401: 
1.15      bertrand 3402:   test -n "$ac_ct_CC" && break
                   3403: done
1.1       bertrand 3404: 
1.15      bertrand 3405:   if test "x$ac_ct_CC" = x; then
                   3406:     CC=""
                   3407:   else
                   3408:     case $cross_compiling:$ac_tool_warned in
                   3409: yes:)
                   3410: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   3411: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   3412: ac_tool_warned=yes ;;
                   3413: esac
                   3414:     CC=$ac_ct_CC
1.1       bertrand 3415:   fi
                   3416: fi
                   3417: 
                   3418: 
1.15      bertrand 3419: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3420: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3421: as_fn_error $? "no acceptable C compiler found in \$PATH
1.99      bertrand 3422: See \`config.log' for more details" "$LINENO" 5 ; }
1.1       bertrand 3423: 
1.15      bertrand 3424: # Provide some information about the compiler.
                   3425: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   3426: set X $ac_compile
                   3427: ac_compiler=$2
                   3428: for ac_option in --version -v -V -qversion; do
                   3429:   { { ac_try="$ac_compiler $ac_option >&5"
                   3430: case "(($ac_try" in
                   3431:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3432:   *) ac_try_echo=$ac_try;;
                   3433: esac
                   3434: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3435: $as_echo "$ac_try_echo"; } >&5
                   3436:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   3437:   ac_status=$?
                   3438:   if test -s conftest.err; then
                   3439:     sed '10a\
                   3440: ... rest of stderr output deleted ...
                   3441:          10q' conftest.err >conftest.er1
                   3442:     cat conftest.er1 >&5
1.1       bertrand 3443:   fi
1.15      bertrand 3444:   rm -f conftest.er1 conftest.err
                   3445:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3446:   test $ac_status = 0; }
1.1       bertrand 3447: done
                   3448: 
1.15      bertrand 3449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3450: /* end confdefs.h.  */
                   3451: 
                   3452: int
                   3453: main ()
                   3454: {
1.14      bertrand 3455: 
1.15      bertrand 3456:   ;
                   3457:   return 0;
                   3458: }
                   3459: _ACEOF
                   3460: ac_clean_files_save=$ac_clean_files
                   3461: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   3462: # Try to create an executable without -o first, disregard a.out.
                   3463: # It will help us diagnose broken compilers, and finding out an intuition
                   3464: # of exeext.
                   3465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   3466: $as_echo_n "checking whether the C compiler works... " >&6; }
                   3467: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14      bertrand 3468: 
1.15      bertrand 3469: # The possible output files:
                   3470: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1       bertrand 3471: 
1.15      bertrand 3472: ac_rmfiles=
                   3473: for ac_file in $ac_files
1.1       bertrand 3474: do
1.15      bertrand 3475:   case $ac_file in
                   3476:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3477:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   3478:   esac
1.1       bertrand 3479: done
1.15      bertrand 3480: rm -f $ac_rmfiles
                   3481: 
                   3482: if { { ac_try="$ac_link_default"
                   3483: case "(($ac_try" in
                   3484:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3485:   *) ac_try_echo=$ac_try;;
                   3486: esac
                   3487: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3488: $as_echo "$ac_try_echo"; } >&5
                   3489:   (eval "$ac_link_default") 2>&5
                   3490:   ac_status=$?
                   3491:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3492:   test $ac_status = 0; }; then :
                   3493:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   3494: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   3495: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   3496: # so that the user can short-circuit this test for compilers unknown to
                   3497: # Autoconf.
                   3498: for ac_file in $ac_files ''
                   3499: do
                   3500:   test -f "$ac_file" || continue
                   3501:   case $ac_file in
                   3502:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   3503:    ;;
                   3504:     [ab].out )
                   3505:    # We found the default executable, but exeext='' is most
                   3506:    # certainly right.
                   3507:    break;;
                   3508:     *.* )
                   3509:    if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   3510:    then :; else
                   3511:       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3512:    fi
                   3513:    # We set ac_cv_exeext here because the later test for it is not
                   3514:    # safe: cross compilers may not add the suffix if given an `-o'
                   3515:    # argument, so we may need to know it at that point already.
                   3516:    # Even if this section looks crufty: it has the advantage of
                   3517:    # actually working.
                   3518:    break;;
                   3519:     * )
                   3520:    break;;
                   3521:   esac
1.14      bertrand 3522: done
1.15      bertrand 3523: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1       bertrand 3524: 
1.14      bertrand 3525: else
1.15      bertrand 3526:   ac_file=''
1.1       bertrand 3527: fi
1.15      bertrand 3528: if test -z "$ac_file"; then :
                   3529:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3530: $as_echo "no" >&6; }
                   3531: $as_echo "$as_me: failed program was:" >&5
                   3532: sed 's/^/| /' conftest.$ac_ext >&5
                   3533: 
                   3534: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3535: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3536: as_fn_error 77 "C compiler cannot create executables
1.99      bertrand 3537: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3538: else
                   3539:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3540: $as_echo "yes" >&6; }
                   3541: fi
                   3542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3543: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3545: $as_echo "$ac_file" >&6; }
                   3546: ac_exeext=$ac_cv_exeext
1.1       bertrand 3547: 
1.15      bertrand 3548: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3549: ac_clean_files=$ac_clean_files_save
                   3550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3551: $as_echo_n "checking for suffix of executables... " >&6; }
                   3552: if { { ac_try="$ac_link"
                   3553: case "(($ac_try" in
                   3554:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3555:   *) ac_try_echo=$ac_try;;
                   3556: esac
                   3557: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3558: $as_echo "$ac_try_echo"; } >&5
                   3559:   (eval "$ac_link") 2>&5
                   3560:   ac_status=$?
                   3561:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3562:   test $ac_status = 0; }; then :
                   3563:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3564: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3565: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3566: # `rm'.
                   3567: for ac_file in conftest.exe conftest conftest.*; do
                   3568:   test -f "$ac_file" || continue
                   3569:   case $ac_file in
                   3570:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3571:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3572:      break;;
                   3573:     * ) break;;
                   3574:   esac
                   3575: done
1.14      bertrand 3576: else
1.15      bertrand 3577:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3578: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3579: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.99      bertrand 3580: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3581: fi
                   3582: rm -f conftest conftest$ac_cv_exeext
                   3583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3584: $as_echo "$ac_cv_exeext" >&6; }
                   3585: 
                   3586: rm -f conftest.$ac_ext
                   3587: EXEEXT=$ac_cv_exeext
                   3588: ac_exeext=$EXEEXT
                   3589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3590: /* end confdefs.h.  */
1.15      bertrand 3591: #include <stdio.h>
1.14      bertrand 3592: int
                   3593: main ()
                   3594: {
1.15      bertrand 3595: FILE *f = fopen ("conftest.out", "w");
                   3596:  return ferror (f) || fclose (f) != 0;
                   3597: 
1.14      bertrand 3598:   ;
                   3599:   return 0;
                   3600: }
                   3601: _ACEOF
1.15      bertrand 3602: ac_clean_files="$ac_clean_files conftest.out"
                   3603: # Check that the compiler produces executables we can run.  If not, either
                   3604: # the compiler is broken, or we cross compile.
                   3605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3606: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3607: if test "$cross_compiling" != yes; then
                   3608:   { { ac_try="$ac_link"
1.1       bertrand 3609: case "(($ac_try" in
                   3610:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3611:   *) ac_try_echo=$ac_try;;
                   3612: esac
1.15      bertrand 3613: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3614: $as_echo "$ac_try_echo"; } >&5
                   3615:   (eval "$ac_link") 2>&5
                   3616:   ac_status=$?
                   3617:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3618:   test $ac_status = 0; }
                   3619:   if { ac_try='./conftest$ac_cv_exeext'
                   3620:   { { case "(($ac_try" in
                   3621:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3622:   *) ac_try_echo=$ac_try;;
                   3623: esac
                   3624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3625: $as_echo "$ac_try_echo"; } >&5
                   3626:   (eval "$ac_try") 2>&5
1.1       bertrand 3627:   ac_status=$?
1.15      bertrand 3628:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3629:   test $ac_status = 0; }; }; then
                   3630:     cross_compiling=no
                   3631:   else
                   3632:     if test "$cross_compiling" = maybe; then
                   3633:    cross_compiling=yes
                   3634:     else
                   3635:    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3636: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3637: as_fn_error $? "cannot run C compiled programs.
1.15      bertrand 3638: If you meant to cross compile, use \`--host'.
1.99      bertrand 3639: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 3640:     fi
                   3641:   fi
1.14      bertrand 3642: fi
1.15      bertrand 3643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3644: $as_echo "$cross_compiling" >&6; }
1.14      bertrand 3645: 
1.15      bertrand 3646: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3647: ac_clean_files=$ac_clean_files_save
                   3648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3649: $as_echo_n "checking for suffix of object files... " >&6; }
1.99      bertrand 3650: if test "${ac_cv_objext+set}" = set; then :
1.15      bertrand 3651:   $as_echo_n "(cached) " >&6
1.14      bertrand 3652: else
1.15      bertrand 3653:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 3654: /* end confdefs.h.  */
                   3655: 
                   3656: int
                   3657: main ()
                   3658: {
1.15      bertrand 3659: 
1.1       bertrand 3660:   ;
                   3661:   return 0;
                   3662: }
                   3663: _ACEOF
1.15      bertrand 3664: rm -f conftest.o conftest.obj
                   3665: if { { ac_try="$ac_compile"
1.1       bertrand 3666: case "(($ac_try" in
                   3667:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3668:   *) ac_try_echo=$ac_try;;
                   3669: esac
1.15      bertrand 3670: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3671: $as_echo "$ac_try_echo"; } >&5
                   3672:   (eval "$ac_compile") 2>&5
1.1       bertrand 3673:   ac_status=$?
1.15      bertrand 3674:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3675:   test $ac_status = 0; }; then :
                   3676:   for ac_file in conftest.o conftest.obj conftest.*; do
                   3677:   test -f "$ac_file" || continue;
                   3678:   case $ac_file in
                   3679:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
                   3680:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3681:        break;;
                   3682:   esac
                   3683: done
1.14      bertrand 3684: else
1.15      bertrand 3685:   $as_echo "$as_me: failed program was:" >&5
1.14      bertrand 3686: sed 's/^/| /' conftest.$ac_ext >&5
                   3687: 
1.15      bertrand 3688: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3689: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 3690: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.99      bertrand 3691: See \`config.log' for more details" "$LINENO" 5 ; }
1.14      bertrand 3692: fi
1.15      bertrand 3693: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3694: fi
                   3695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3696: $as_echo "$ac_cv_objext" >&6; }
                   3697: OBJEXT=$ac_cv_objext
                   3698: ac_objext=$OBJEXT
                   3699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3700: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.99      bertrand 3701: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
1.15      bertrand 3702:   $as_echo_n "(cached) " >&6
                   3703: else
                   3704:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3705: /* end confdefs.h.  */
                   3706: 
                   3707: int
                   3708: main ()
                   3709: {
                   3710: #ifndef __GNUC__
                   3711:        choke me
                   3712: #endif
1.14      bertrand 3713: 
1.15      bertrand 3714:   ;
                   3715:   return 0;
                   3716: }
                   3717: _ACEOF
                   3718: if ac_fn_c_try_compile "$LINENO"; then :
                   3719:   ac_compiler_gnu=yes
1.14      bertrand 3720: else
1.15      bertrand 3721:   ac_compiler_gnu=no
1.14      bertrand 3722: fi
1.15      bertrand 3723: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3724: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14      bertrand 3725: 
1.15      bertrand 3726: fi
                   3727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3728: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3729: if test $ac_compiler_gnu = yes; then
                   3730:   GCC=yes
1.14      bertrand 3731: else
1.15      bertrand 3732:   GCC=
1.14      bertrand 3733: fi
1.15      bertrand 3734: ac_test_CFLAGS=${CFLAGS+set}
                   3735: ac_save_CFLAGS=$CFLAGS
                   3736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3737: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.99      bertrand 3738: if test "${ac_cv_prog_cc_g+set}" = set; then :
1.15      bertrand 3739:   $as_echo_n "(cached) " >&6
                   3740: else
                   3741:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3742:    ac_c_werror_flag=yes
                   3743:    ac_cv_prog_cc_g=no
                   3744:    CFLAGS="-g"
                   3745:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3746: /* end confdefs.h.  */
1.14      bertrand 3747: 
1.15      bertrand 3748: int
                   3749: main ()
                   3750: {
1.14      bertrand 3751: 
1.15      bertrand 3752:   ;
                   3753:   return 0;
                   3754: }
                   3755: _ACEOF
                   3756: if ac_fn_c_try_compile "$LINENO"; then :
                   3757:   ac_cv_prog_cc_g=yes
                   3758: else
                   3759:   CFLAGS=""
                   3760:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3761: /* end confdefs.h.  */
1.14      bertrand 3762: 
1.15      bertrand 3763: int
                   3764: main ()
                   3765: {
1.14      bertrand 3766: 
1.15      bertrand 3767:   ;
                   3768:   return 0;
                   3769: }
                   3770: _ACEOF
                   3771: if ac_fn_c_try_compile "$LINENO"; then :
1.14      bertrand 3772: 
1.15      bertrand 3773: else
                   3774:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3775:     CFLAGS="-g"
                   3776:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3777: /* end confdefs.h.  */
1.14      bertrand 3778: 
1.15      bertrand 3779: int
                   3780: main ()
                   3781: {
1.14      bertrand 3782: 
1.15      bertrand 3783:   ;
                   3784:   return 0;
                   3785: }
                   3786: _ACEOF
                   3787: if ac_fn_c_try_compile "$LINENO"; then :
                   3788:   ac_cv_prog_cc_g=yes
                   3789: fi
                   3790: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3791: fi
                   3792: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3793: fi
                   3794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3795:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3796: fi
                   3797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3798: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3799: if test "$ac_test_CFLAGS" = set; then
                   3800:   CFLAGS=$ac_save_CFLAGS
                   3801: elif test $ac_cv_prog_cc_g = yes; then
                   3802:   if test "$GCC" = yes; then
                   3803:     CFLAGS="-g -O2"
                   3804:   else
                   3805:     CFLAGS="-g"
                   3806:   fi
                   3807: else
                   3808:   if test "$GCC" = yes; then
                   3809:     CFLAGS="-O2"
                   3810:   else
                   3811:     CFLAGS=
                   3812:   fi
                   3813: fi
                   3814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3815: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.99      bertrand 3816: if test "${ac_cv_prog_cc_c89+set}" = set; then :
1.15      bertrand 3817:   $as_echo_n "(cached) " >&6
1.1       bertrand 3818: else
1.15      bertrand 3819:   ac_cv_prog_cc_c89=no
                   3820: ac_save_CC=$CC
                   3821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 3822: /* end confdefs.h.  */
1.15      bertrand 3823: #include <stdarg.h>
                   3824: #include <stdio.h>
                   3825: #include <sys/types.h>
                   3826: #include <sys/stat.h>
                   3827: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3828: struct buf { int x; };
                   3829: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3830: static char *e (p, i)
                   3831:      char **p;
                   3832:      int i;
                   3833: {
                   3834:   return p[i];
                   3835: }
                   3836: static char *f (char * (*g) (char **, int), char **p, ...)
                   3837: {
                   3838:   char *s;
                   3839:   va_list v;
                   3840:   va_start (v,p);
                   3841:   s = g (p, va_arg (v,int));
                   3842:   va_end (v);
                   3843:   return s;
                   3844: }
                   3845: 
                   3846: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3847:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3848:    These don't provoke an error unfortunately, instead are silently treated
                   3849:    as 'x'.  The following induces an error, until -std is added to get
                   3850:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3851:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3852:    that's true only with -std.  */
                   3853: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14      bertrand 3854: 
1.15      bertrand 3855: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3856:    inside strings and character constants.  */
                   3857: #define FOO(x) 'x'
                   3858: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1       bertrand 3859: 
1.15      bertrand 3860: int test (int i, double x);
                   3861: struct s1 {int (*f) (int a);};
                   3862: struct s2 {int (*f) (double a);};
                   3863: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3864: int argc;
                   3865: char **argv;
1.14      bertrand 3866: int
                   3867: main ()
                   3868: {
1.15      bertrand 3869: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1.14      bertrand 3870:   ;
                   3871:   return 0;
                   3872: }
                   3873: _ACEOF
1.15      bertrand 3874: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3875:    -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3876: do
                   3877:   CC="$ac_save_CC $ac_arg"
                   3878:   if ac_fn_c_try_compile "$LINENO"; then :
                   3879:   ac_cv_prog_cc_c89=$ac_arg
                   3880: fi
                   3881: rm -f core conftest.err conftest.$ac_objext
                   3882:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3883: done
                   3884: rm -f conftest.$ac_ext
                   3885: CC=$ac_save_CC
                   3886: 
                   3887: fi
                   3888: # AC_CACHE_VAL
                   3889: case "x$ac_cv_prog_cc_c89" in
                   3890:   x)
                   3891:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3892: $as_echo "none needed" >&6; } ;;
                   3893:   xno)
                   3894:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3895: $as_echo "unsupported" >&6; } ;;
                   3896:   *)
                   3897:     CC="$CC $ac_cv_prog_cc_c89"
                   3898:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3899: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1       bertrand 3900: esac
1.15      bertrand 3901: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14      bertrand 3902: 
                   3903: fi
                   3904: 
1.15      bertrand 3905: ac_ext=c
                   3906: ac_cpp='$CPP $CPPFLAGS'
                   3907: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3908: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3909: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3910: DEPDIR="${am__leading_dot}deps"
                   3911: 
                   3912: ac_config_commands="$ac_config_commands depfiles"
                   3913: 
                   3914: 
                   3915: am_make=${MAKE-make}
                   3916: cat > confinc << 'END'
                   3917: am__doit:
                   3918:    @echo this is the am__doit target
                   3919: .PHONY: am__doit
                   3920: END
                   3921: # If we don't find an include directive, just comment out the code.
                   3922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
                   3923: $as_echo_n "checking for style of include used by $am_make... " >&6; }
                   3924: am__include="#"
                   3925: am__quote=
                   3926: _am_result=none
                   3927: # First try GNU make style include.
                   3928: echo "include confinc" > confmf
                   3929: # Ignore all kinds of additional output from `make'.
                   3930: case `$am_make -s -f confmf 2> /dev/null` in #(
                   3931: *the\ am__doit\ target*)
                   3932:   am__include=include
                   3933:   am__quote=
                   3934:   _am_result=GNU
                   3935:   ;;
                   3936: esac
                   3937: # Now try BSD make style include.
                   3938: if test "$am__include" = "#"; then
                   3939:    echo '.include "confinc"' > confmf
                   3940:    case `$am_make -s -f confmf 2> /dev/null` in #(
                   3941:    *the\ am__doit\ target*)
                   3942:      am__include=.include
                   3943:      am__quote="\""
                   3944:      _am_result=BSD
                   3945:      ;;
                   3946:    esac
1.14      bertrand 3947: fi
                   3948: 
                   3949: 
1.15      bertrand 3950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
                   3951: $as_echo "$_am_result" >&6; }
                   3952: rm -f confinc confmf
                   3953: 
                   3954: # Check whether --enable-dependency-tracking was given.
                   3955: if test "${enable_dependency_tracking+set}" = set; then :
                   3956:   enableval=$enable_dependency_tracking;
                   3957: fi
                   3958: 
                   3959: if test "x$enable_dependency_tracking" != xno; then
                   3960:   am_depcomp="$ac_aux_dir/depcomp"
                   3961:   AMDEPBACKSLASH='\'
                   3962: fi
                   3963:  if test "x$enable_dependency_tracking" != xno; then
                   3964:   AMDEP_TRUE=
                   3965:   AMDEP_FALSE='#'
1.1       bertrand 3966: else
1.15      bertrand 3967:   AMDEP_TRUE='#'
                   3968:   AMDEP_FALSE=
1.14      bertrand 3969: fi
1.1       bertrand 3970: 
1.14      bertrand 3971: 
                   3972: 
1.15      bertrand 3973: depcc="$CC"   am_compiler_list=
1.14      bertrand 3974: 
1.15      bertrand 3975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   3976: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.99      bertrand 3977: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
1.15      bertrand 3978:   $as_echo_n "(cached) " >&6
1.14      bertrand 3979: else
1.15      bertrand 3980:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   3981:   # We make a subdir and do the tests there.  Otherwise we can end up
                   3982:   # making bogus files that we don't know about and never remove.  For
                   3983:   # instance it was reported that on HP-UX the gcc test will end up
                   3984:   # making a dummy file named `D' -- because `-MD' means `put the output
                   3985:   # in D'.
                   3986:   mkdir conftest.dir
                   3987:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   3988:   # using a relative directory.
                   3989:   cp "$am_depcomp" conftest.dir
                   3990:   cd conftest.dir
                   3991:   # We will build objects and dependencies in a subdirectory because
                   3992:   # it helps to detect inapplicable dependency modes.  For instance
                   3993:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   3994:   # side effect of compilation, but ICC will put the dependencies in
                   3995:   # the current directory while Tru64 will put them in the object
                   3996:   # directory.
                   3997:   mkdir sub
1.14      bertrand 3998: 
1.15      bertrand 3999:   am_cv_CC_dependencies_compiler_type=none
                   4000:   if test "$am_compiler_list" = ""; then
                   4001:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4002:   fi
                   4003:   am__universal=false
                   4004:   case " $depcc " in #(
                   4005:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4006:      esac
1.14      bertrand 4007: 
1.15      bertrand 4008:   for depmode in $am_compiler_list; do
                   4009:     # Setup a source with many dependencies, because some compilers
                   4010:     # like to wrap large dependency lists on column 80 (with \), and
                   4011:     # we should not choose a depcomp mode which is confused by this.
                   4012:     #
                   4013:     # We need to recreate these files for each test, as the compiler may
                   4014:     # overwrite some of them when testing with obscure command lines.
                   4015:     # This happens at least with the AIX C compiler.
                   4016:     : > sub/conftest.c
                   4017:     for i in 1 2 3 4 5 6; do
                   4018:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4019:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4020:       # Solaris 8's {/usr,}/bin/sh.
                   4021:       touch sub/conftst$i.h
                   4022:     done
                   4023:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14      bertrand 4024: 
1.15      bertrand 4025:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4026:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4027:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4028:     # versions had trouble with output in subdirs
                   4029:     am__obj=sub/conftest.${OBJEXT-o}
                   4030:     am__minus_obj="-o $am__obj"
                   4031:     case $depmode in
                   4032:     gcc)
                   4033:       # This depmode causes a compiler race in universal mode.
                   4034:       test "$am__universal" = false || continue
                   4035:       ;;
                   4036:     nosideeffect)
                   4037:       # after this tag, mechanisms are not by side-effect, so they'll
                   4038:       # only be used when explicitly requested
                   4039:       if test "x$enable_dependency_tracking" = xyes; then
                   4040:    continue
                   4041:       else
                   4042:    break
                   4043:       fi
                   4044:       ;;
                   4045:     msvisualcpp | msvcmsys)
                   4046:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4047:       # not run yet.  These depmodes are late enough in the game, and
                   4048:       # so weak that their functioning should not be impacted.
                   4049:       am__obj=conftest.${OBJEXT-o}
                   4050:       am__minus_obj=
                   4051:       ;;
                   4052:     none) break ;;
                   4053:     esac
                   4054:     if depmode=$depmode \
                   4055:        source=sub/conftest.c object=$am__obj \
                   4056:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4057:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4058:          >/dev/null 2>conftest.err &&
                   4059:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4060:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4061:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4062:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4063:       # icc doesn't choke on unknown options, it will just issue warnings
                   4064:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4065:       # that says an option was ignored or not supported.
                   4066:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4067:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4068:       # The diagnosis changed in icc 8.0:
                   4069:       #   icc: Command line remark: option '-MP' not supported
                   4070:       if (grep 'ignoring option' conftest.err ||
                   4071:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4072:         am_cv_CC_dependencies_compiler_type=$depmode
                   4073:         break
                   4074:       fi
                   4075:     fi
                   4076:   done
1.14      bertrand 4077: 
1.15      bertrand 4078:   cd ..
                   4079:   rm -rf conftest.dir
1.14      bertrand 4080: else
1.15      bertrand 4081:   am_cv_CC_dependencies_compiler_type=none
1.1       bertrand 4082: fi
                   4083: 
1.15      bertrand 4084: fi
                   4085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
                   4086: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
                   4087: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14      bertrand 4088: 
1.15      bertrand 4089:  if
                   4090:   test "x$enable_dependency_tracking" != xno \
                   4091:   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
                   4092:   am__fastdepCC_TRUE=
                   4093:   am__fastdepCC_FALSE='#'
1.1       bertrand 4094: else
1.15      bertrand 4095:   am__fastdepCC_TRUE='#'
                   4096:   am__fastdepCC_FALSE=
                   4097: fi
                   4098: 
1.1       bertrand 4099: 
                   4100: 
1.30      bertrand 4101: EXT_SQL=
                   4102: 
1.15      bertrand 4103: if test x"$CC" != x""; then
                   4104:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4105:            awk -F. '{ printf("%s", $1);}'`
                   4106:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4107:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 4108:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 4109:        OPTIMISATION_C=-O3
                   4110:    else
1.23      bertrand 4111:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                   4112:                then
1.15      bertrand 4113:            OPTIMISATION_C=-O3
                   4114:        else
1.23      bertrand 4115:            if test $GCC_VERSION_MAJEURE -ge 2; then
                   4116:                OPTIMISATION_C=-O2
                   4117:            else
1.36      bertrand 4118:                as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23      bertrand 4119:            fi
1.15      bertrand 4120:        fi
                   4121:    fi
1.14      bertrand 4122: fi
                   4123: 
1.15      bertrand 4124: if test "x$CC" != xcc; then
                   4125:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
                   4126: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14      bertrand 4127: else
1.15      bertrand 4128:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
                   4129: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1       bertrand 4130: fi
1.15      bertrand 4131: set dummy $CC; ac_cc=`$as_echo "$2" |
                   4132:              sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.99      bertrand 4133: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
1.15      bertrand 4134:   $as_echo_n "(cached) " >&6
1.1       bertrand 4135: else
1.15      bertrand 4136:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 4137: /* end confdefs.h.  */
                   4138: 
                   4139: int
                   4140: main ()
                   4141: {
1.15      bertrand 4142: 
1.1       bertrand 4143:   ;
                   4144:   return 0;
                   4145: }
                   4146: _ACEOF
1.15      bertrand 4147: # Make sure it works both with $CC and with simple cc.
                   4148: # We do the test twice because some compilers refuse to overwrite an
                   4149: # existing .o file with -o, though they will create one.
                   4150: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4151: rm -f conftest2.*
                   4152: if { { case "(($ac_try" in
                   4153:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4154:   *) ac_try_echo=$ac_try;;
                   4155: esac
                   4156: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4157: $as_echo "$ac_try_echo"; } >&5
                   4158:   (eval "$ac_try") 2>&5
                   4159:   ac_status=$?
                   4160:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4161:   test $ac_status = 0; } &&
                   4162:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
                   4163:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4164:   *) ac_try_echo=$ac_try;;
                   4165: esac
                   4166: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4167: $as_echo "$ac_try_echo"; } >&5
                   4168:   (eval "$ac_try") 2>&5
                   4169:   ac_status=$?
                   4170:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4171:   test $ac_status = 0; };
                   4172: then
                   4173:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
                   4174:   if test "x$CC" != xcc; then
                   4175:     # Test first that cc exists at all.
                   4176:     if { ac_try='cc -c conftest.$ac_ext >&5'
                   4177:   { { case "(($ac_try" in
                   4178:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4179:   *) ac_try_echo=$ac_try;;
                   4180: esac
                   4181: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4182: $as_echo "$ac_try_echo"; } >&5
                   4183:   (eval "$ac_try") 2>&5
                   4184:   ac_status=$?
                   4185:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4186:   test $ac_status = 0; }; }; then
                   4187:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
                   4188:       rm -f conftest2.*
                   4189:       if { { case "(($ac_try" in
                   4190:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4191:   *) ac_try_echo=$ac_try;;
                   4192: esac
                   4193: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4194: $as_echo "$ac_try_echo"; } >&5
                   4195:   (eval "$ac_try") 2>&5
                   4196:   ac_status=$?
                   4197:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4198:   test $ac_status = 0; } &&
                   4199:     test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14      bertrand 4200:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4201:   *) ac_try_echo=$ac_try;;
                   4202: esac
1.15      bertrand 4203: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4204: $as_echo "$ac_try_echo"; } >&5
                   4205:   (eval "$ac_try") 2>&5
1.14      bertrand 4206:   ac_status=$?
1.15      bertrand 4207:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4208:   test $ac_status = 0; };
                   4209:       then
                   4210:    # cc works too.
                   4211:    :
                   4212:       else
                   4213:    # cc exists but doesn't like -o.
                   4214:    eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4215:       fi
                   4216:     fi
                   4217:   fi
1.1       bertrand 4218: else
1.15      bertrand 4219:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
                   4220: fi
                   4221: rm -f core conftest*
1.14      bertrand 4222: 
1.1       bertrand 4223: fi
1.15      bertrand 4224: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
                   4225:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   4226: $as_echo "yes" >&6; }
                   4227: else
                   4228:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4229: $as_echo "no" >&6; }
                   4230: 
                   4231: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1       bertrand 4232: 
                   4233: fi
1.15      bertrand 4234: 
                   4235: # FIXME: we rely on the cache variable name because
                   4236: # there is no other way.
                   4237: set dummy $CC
                   4238: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
                   4239: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
                   4240: if test "$am_t" != yes; then
                   4241:    # Losing compiler, so override with the script.
                   4242:    # FIXME: It is wrong to rewrite CC.
                   4243:    # But if we don't then we get into trouble of one sort or another.
                   4244:    # A longer-term fix would be to have automake use am__CC in this case,
                   4245:    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
                   4246:    CC="$am_aux_dir/compile $CC"
1.1       bertrand 4247: fi
1.14      bertrand 4248: 
                   4249: 
1.15      bertrand 4250: 
                   4251: if test "$GCC" != yes; then
1.36      bertrand 4252:    as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15      bertrand 4253: fi
                   4254: 
                   4255: ac_ext=cpp
                   4256: ac_cpp='$CXXCPP $CPPFLAGS'
                   4257: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4258: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4259: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
                   4260: if test -z "$CXX"; then
                   4261:   if test -n "$CCC"; then
                   4262:     CXX=$CCC
                   4263:   else
                   4264:     if test -n "$ac_tool_prefix"; then
1.23      bertrand 4265:   for ac_prog in g++
1.15      bertrand 4266:   do
                   4267:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4268: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4270: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4271: if test "${ac_cv_prog_CXX+set}" = set; then :
1.15      bertrand 4272:   $as_echo_n "(cached) " >&6
1.1       bertrand 4273: else
1.15      bertrand 4274:   if test -n "$CXX"; then
                   4275:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14      bertrand 4276: else
1.15      bertrand 4277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4278: for as_dir in $PATH
                   4279: do
                   4280:   IFS=$as_save_IFS
                   4281:   test -z "$as_dir" && as_dir=.
                   4282:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4283:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4284:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
                   4285:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4286:     break 2
                   4287:   fi
                   4288: done
                   4289:   done
                   4290: IFS=$as_save_IFS
1.14      bertrand 4291: 
                   4292: fi
                   4293: fi
1.15      bertrand 4294: CXX=$ac_cv_prog_CXX
                   4295: if test -n "$CXX"; then
                   4296:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
                   4297: $as_echo "$CXX" >&6; }
1.14      bertrand 4298: else
1.15      bertrand 4299:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4300: $as_echo "no" >&6; }
1.14      bertrand 4301: fi
                   4302: 
                   4303: 
1.15      bertrand 4304:     test -n "$CXX" && break
                   4305:   done
                   4306: fi
                   4307: if test -z "$CXX"; then
                   4308:   ac_ct_CXX=$CXX
1.23      bertrand 4309:   for ac_prog in g++
1.15      bertrand 4310: do
                   4311:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4312: set dummy $ac_prog; ac_word=$2
                   4313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4314: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4315: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
1.15      bertrand 4316:   $as_echo_n "(cached) " >&6
                   4317: else
                   4318:   if test -n "$ac_ct_CXX"; then
                   4319:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
                   4320: else
                   4321: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4322: for as_dir in $PATH
                   4323: do
                   4324:   IFS=$as_save_IFS
                   4325:   test -z "$as_dir" && as_dir=.
                   4326:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4327:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4328:     ac_cv_prog_ac_ct_CXX="$ac_prog"
                   4329:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4330:     break 2
                   4331:   fi
                   4332: done
                   4333:   done
                   4334: IFS=$as_save_IFS
1.14      bertrand 4335: 
1.15      bertrand 4336: fi
                   4337: fi
                   4338: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
                   4339: if test -n "$ac_ct_CXX"; then
                   4340:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
                   4341: $as_echo "$ac_ct_CXX" >&6; }
1.1       bertrand 4342: else
1.15      bertrand 4343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4344: $as_echo "no" >&6; }
1.14      bertrand 4345: fi
                   4346: 
                   4347: 
1.15      bertrand 4348:   test -n "$ac_ct_CXX" && break
                   4349: done
1.14      bertrand 4350: 
1.15      bertrand 4351:   if test "x$ac_ct_CXX" = x; then
                   4352:     CXX="g++"
                   4353:   else
                   4354:     case $cross_compiling:$ac_tool_warned in
                   4355: yes:)
                   4356: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4357: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4358: ac_tool_warned=yes ;;
                   4359: esac
                   4360:     CXX=$ac_ct_CXX
                   4361:   fi
                   4362: fi
1.1       bertrand 4363: 
1.15      bertrand 4364:   fi
                   4365: fi
                   4366: # Provide some information about the compiler.
                   4367: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
                   4368: set X $ac_compile
                   4369: ac_compiler=$2
                   4370: for ac_option in --version -v -V -qversion; do
                   4371:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4372: case "(($ac_try" in
                   4373:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4374:   *) ac_try_echo=$ac_try;;
                   4375: esac
1.15      bertrand 4376: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4377: $as_echo "$ac_try_echo"; } >&5
                   4378:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4379:   ac_status=$?
1.15      bertrand 4380:   if test -s conftest.err; then
                   4381:     sed '10a\
                   4382: ... rest of stderr output deleted ...
                   4383:          10q' conftest.err >conftest.er1
                   4384:     cat conftest.er1 >&5
                   4385:   fi
                   4386:   rm -f conftest.er1 conftest.err
                   4387:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4388:   test $ac_status = 0; }
                   4389: done
                   4390: 
                   4391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
                   4392: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.99      bertrand 4393: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
1.15      bertrand 4394:   $as_echo_n "(cached) " >&6
1.14      bertrand 4395: else
1.15      bertrand 4396:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4397: /* end confdefs.h.  */
1.1       bertrand 4398: 
                   4399: int
                   4400: main ()
                   4401: {
1.15      bertrand 4402: #ifndef __GNUC__
                   4403:        choke me
                   4404: #endif
1.1       bertrand 4405: 
                   4406:   ;
                   4407:   return 0;
                   4408: }
                   4409: _ACEOF
1.15      bertrand 4410: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4411:   ac_compiler_gnu=yes
1.1       bertrand 4412: else
1.15      bertrand 4413:   ac_compiler_gnu=no
1.1       bertrand 4414: fi
1.14      bertrand 4415: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 4416: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4417: 
1.15      bertrand 4418: fi
                   4419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
                   4420: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
                   4421: if test $ac_compiler_gnu = yes; then
                   4422:   GXX=yes
                   4423: else
                   4424:   GXX=
                   4425: fi
                   4426: ac_test_CXXFLAGS=${CXXFLAGS+set}
                   4427: ac_save_CXXFLAGS=$CXXFLAGS
                   4428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
                   4429: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.99      bertrand 4430: if test "${ac_cv_prog_cxx_g+set}" = set; then :
1.15      bertrand 4431:   $as_echo_n "(cached) " >&6
                   4432: else
                   4433:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
                   4434:    ac_cxx_werror_flag=yes
                   4435:    ac_cv_prog_cxx_g=no
                   4436:    CXXFLAGS="-g"
                   4437:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 4438: /* end confdefs.h.  */
1.15      bertrand 4439: 
1.1       bertrand 4440: int
                   4441: main ()
                   4442: {
1.14      bertrand 4443: 
1.1       bertrand 4444:   ;
                   4445:   return 0;
                   4446: }
                   4447: _ACEOF
1.15      bertrand 4448: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4449:   ac_cv_prog_cxx_g=yes
1.14      bertrand 4450: else
1.15      bertrand 4451:   CXXFLAGS=""
                   4452:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4453: /* end confdefs.h.  */
1.1       bertrand 4454: 
1.14      bertrand 4455: int
                   4456: main ()
                   4457: {
1.1       bertrand 4458: 
1.14      bertrand 4459:   ;
                   4460:   return 0;
                   4461: }
                   4462: _ACEOF
1.15      bertrand 4463: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1       bertrand 4464: 
                   4465: else
1.15      bertrand 4466:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4467:     CXXFLAGS="-g"
                   4468:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4469: /* end confdefs.h.  */
1.1       bertrand 4470: 
1.14      bertrand 4471: int
                   4472: main ()
                   4473: {
1.1       bertrand 4474: 
1.14      bertrand 4475:   ;
                   4476:   return 0;
                   4477: }
                   4478: _ACEOF
1.15      bertrand 4479: if ac_fn_cxx_try_compile "$LINENO"; then :
                   4480:   ac_cv_prog_cxx_g=yes
                   4481: fi
                   4482: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4483: fi
                   4484: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4485: fi
                   4486: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4487:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
                   4488: fi
                   4489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
                   4490: $as_echo "$ac_cv_prog_cxx_g" >&6; }
                   4491: if test "$ac_test_CXXFLAGS" = set; then
                   4492:   CXXFLAGS=$ac_save_CXXFLAGS
                   4493: elif test $ac_cv_prog_cxx_g = yes; then
                   4494:   if test "$GXX" = yes; then
                   4495:     CXXFLAGS="-g -O2"
                   4496:   else
                   4497:     CXXFLAGS="-g"
                   4498:   fi
                   4499: else
                   4500:   if test "$GXX" = yes; then
                   4501:     CXXFLAGS="-O2"
                   4502:   else
                   4503:     CXXFLAGS=
                   4504:   fi
                   4505: fi
                   4506: ac_ext=c
                   4507: ac_cpp='$CPP $CPPFLAGS'
                   4508: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4509: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4510: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4511: 
                   4512: depcc="$CXX"  am_compiler_list=
                   4513: 
                   4514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
                   4515: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.99      bertrand 4516: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
1.15      bertrand 4517:   $as_echo_n "(cached) " >&6
                   4518: else
                   4519:   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
                   4520:   # We make a subdir and do the tests there.  Otherwise we can end up
                   4521:   # making bogus files that we don't know about and never remove.  For
                   4522:   # instance it was reported that on HP-UX the gcc test will end up
                   4523:   # making a dummy file named `D' -- because `-MD' means `put the output
                   4524:   # in D'.
                   4525:   mkdir conftest.dir
                   4526:   # Copy depcomp to subdir because otherwise we won't find it if we're
                   4527:   # using a relative directory.
                   4528:   cp "$am_depcomp" conftest.dir
                   4529:   cd conftest.dir
                   4530:   # We will build objects and dependencies in a subdirectory because
                   4531:   # it helps to detect inapplicable dependency modes.  For instance
                   4532:   # both Tru64's cc and ICC support -MD to output dependencies as a
                   4533:   # side effect of compilation, but ICC will put the dependencies in
                   4534:   # the current directory while Tru64 will put them in the object
                   4535:   # directory.
                   4536:   mkdir sub
                   4537: 
                   4538:   am_cv_CXX_dependencies_compiler_type=none
                   4539:   if test "$am_compiler_list" = ""; then
                   4540:      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
                   4541:   fi
                   4542:   am__universal=false
                   4543:   case " $depcc " in #(
                   4544:      *\ -arch\ *\ -arch\ *) am__universal=true ;;
                   4545:      esac
                   4546: 
                   4547:   for depmode in $am_compiler_list; do
                   4548:     # Setup a source with many dependencies, because some compilers
                   4549:     # like to wrap large dependency lists on column 80 (with \), and
                   4550:     # we should not choose a depcomp mode which is confused by this.
                   4551:     #
                   4552:     # We need to recreate these files for each test, as the compiler may
                   4553:     # overwrite some of them when testing with obscure command lines.
                   4554:     # This happens at least with the AIX C compiler.
                   4555:     : > sub/conftest.c
                   4556:     for i in 1 2 3 4 5 6; do
                   4557:       echo '#include "conftst'$i'.h"' >> sub/conftest.c
                   4558:       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
                   4559:       # Solaris 8's {/usr,}/bin/sh.
                   4560:       touch sub/conftst$i.h
                   4561:     done
                   4562:     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
                   4563: 
                   4564:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
                   4565:     # mode.  It turns out that the SunPro C++ compiler does not properly
                   4566:     # handle `-M -o', and we need to detect this.  Also, some Intel
                   4567:     # versions had trouble with output in subdirs
                   4568:     am__obj=sub/conftest.${OBJEXT-o}
                   4569:     am__minus_obj="-o $am__obj"
                   4570:     case $depmode in
                   4571:     gcc)
                   4572:       # This depmode causes a compiler race in universal mode.
                   4573:       test "$am__universal" = false || continue
                   4574:       ;;
                   4575:     nosideeffect)
                   4576:       # after this tag, mechanisms are not by side-effect, so they'll
                   4577:       # only be used when explicitly requested
                   4578:       if test "x$enable_dependency_tracking" = xyes; then
                   4579:    continue
                   4580:       else
                   4581:    break
                   4582:       fi
                   4583:       ;;
                   4584:     msvisualcpp | msvcmsys)
                   4585:       # This compiler won't grok `-c -o', but also, the minuso test has
                   4586:       # not run yet.  These depmodes are late enough in the game, and
                   4587:       # so weak that their functioning should not be impacted.
                   4588:       am__obj=conftest.${OBJEXT-o}
                   4589:       am__minus_obj=
                   4590:       ;;
                   4591:     none) break ;;
                   4592:     esac
                   4593:     if depmode=$depmode \
                   4594:        source=sub/conftest.c object=$am__obj \
                   4595:        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
                   4596:        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
                   4597:          >/dev/null 2>conftest.err &&
                   4598:        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
                   4599:        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
                   4600:        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
                   4601:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
                   4602:       # icc doesn't choke on unknown options, it will just issue warnings
                   4603:       # or remarks (even with -Werror).  So we grep stderr for any message
                   4604:       # that says an option was ignored or not supported.
                   4605:       # When given -MP, icc 7.0 and 7.1 complain thusly:
                   4606:       #   icc: Command line warning: ignoring option '-M'; no argument required
                   4607:       # The diagnosis changed in icc 8.0:
                   4608:       #   icc: Command line remark: option '-MP' not supported
                   4609:       if (grep 'ignoring option' conftest.err ||
                   4610:           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
                   4611:         am_cv_CXX_dependencies_compiler_type=$depmode
                   4612:         break
                   4613:       fi
                   4614:     fi
                   4615:   done
                   4616: 
                   4617:   cd ..
                   4618:   rm -rf conftest.dir
                   4619: else
                   4620:   am_cv_CXX_dependencies_compiler_type=none
                   4621: fi
                   4622: 
                   4623: fi
                   4624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
                   4625: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
                   4626: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
                   4627: 
                   4628:  if
                   4629:   test "x$enable_dependency_tracking" != xno \
                   4630:   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
                   4631:   am__fastdepCXX_TRUE=
                   4632:   am__fastdepCXX_FALSE='#'
                   4633: else
                   4634:   am__fastdepCXX_TRUE='#'
                   4635:   am__fastdepCXX_FALSE=
                   4636: fi
                   4637: 
                   4638: 
                   4639: 
1.87      bertrand 4640: if test "$GXX" != yes; then
1.36      bertrand 4641:    as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15      bertrand 4642: fi
                   4643: 
1.69      bertrand 4644: if test x"$CXX" != x""; then
                   4645:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4646:            awk -F. '{ printf("%s", $1);}'`
                   4647:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   4648:            awk -F. '{ printf("%s", $2);}'`
                   4649:    if test $GCC_VERSION_MAJEURE -ge 5; then
                   4650:        OPTIMISATION_GXX=-O3
                   4651:    else
                   4652:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                   4653:            OPTIMISATION_GXX=-O3
                   4654:        else
                   4655:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   4656:                OPTIMISATION_GXX=-O2
                   4657:            else
                   4658:                as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
                   4659:            fi
                   4660:        fi
                   4661:    fi
                   4662: fi
                   4663: 
1.15      bertrand 4664: ac_ext=f
                   4665: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
                   4666: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4667: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
                   4668: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4669:   for ac_prog in gfortran
1.15      bertrand 4670:   do
                   4671:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4672: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4674: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4675: if test "${ac_cv_prog_F77+set}" = set; then :
1.15      bertrand 4676:   $as_echo_n "(cached) " >&6
                   4677: else
                   4678:   if test -n "$F77"; then
                   4679:   ac_cv_prog_F77="$F77" # Let the user override the test.
                   4680: else
                   4681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4682: for as_dir in $PATH
                   4683: do
                   4684:   IFS=$as_save_IFS
                   4685:   test -z "$as_dir" && as_dir=.
                   4686:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4687:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4688:     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
                   4689:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4690:     break 2
                   4691:   fi
                   4692: done
                   4693:   done
                   4694: IFS=$as_save_IFS
                   4695: 
                   4696: fi
                   4697: fi
                   4698: F77=$ac_cv_prog_F77
                   4699: if test -n "$F77"; then
                   4700:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
                   4701: $as_echo "$F77" >&6; }
                   4702: else
                   4703:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4704: $as_echo "no" >&6; }
                   4705: fi
                   4706: 
                   4707: 
                   4708:     test -n "$F77" && break
                   4709:   done
                   4710: fi
                   4711: if test -z "$F77"; then
                   4712:   ac_ct_F77=$F77
1.23      bertrand 4713:   for ac_prog in gfortran
1.15      bertrand 4714: do
                   4715:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4716: set dummy $ac_prog; ac_word=$2
                   4717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4718: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4719: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
1.15      bertrand 4720:   $as_echo_n "(cached) " >&6
                   4721: else
                   4722:   if test -n "$ac_ct_F77"; then
                   4723:   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
                   4724: else
                   4725: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4726: for as_dir in $PATH
                   4727: do
                   4728:   IFS=$as_save_IFS
                   4729:   test -z "$as_dir" && as_dir=.
                   4730:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4731:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4732:     ac_cv_prog_ac_ct_F77="$ac_prog"
                   4733:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4734:     break 2
                   4735:   fi
                   4736: done
                   4737:   done
                   4738: IFS=$as_save_IFS
                   4739: 
                   4740: fi
                   4741: fi
                   4742: ac_ct_F77=$ac_cv_prog_ac_ct_F77
                   4743: if test -n "$ac_ct_F77"; then
                   4744:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
                   4745: $as_echo "$ac_ct_F77" >&6; }
1.1       bertrand 4746: else
1.15      bertrand 4747:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4748: $as_echo "no" >&6; }
                   4749: fi
                   4750: 
                   4751: 
                   4752:   test -n "$ac_ct_F77" && break
                   4753: done
1.1       bertrand 4754: 
1.15      bertrand 4755:   if test "x$ac_ct_F77" = x; then
                   4756:     F77=""
                   4757:   else
                   4758:     case $cross_compiling:$ac_tool_warned in
                   4759: yes:)
                   4760: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4761: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4762: ac_tool_warned=yes ;;
                   4763: esac
                   4764:     F77=$ac_ct_F77
                   4765:   fi
1.14      bertrand 4766: fi
1.1       bertrand 4767: 
                   4768: 
1.15      bertrand 4769: # Provide some information about the compiler.
                   4770: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
                   4771: set X $ac_compile
                   4772: ac_compiler=$2
                   4773: for ac_option in --version -v -V -qversion; do
                   4774:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4775: case "(($ac_try" in
                   4776:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4777:   *) ac_try_echo=$ac_try;;
                   4778: esac
1.15      bertrand 4779: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4780: $as_echo "$ac_try_echo"; } >&5
                   4781:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4782:   ac_status=$?
1.15      bertrand 4783:   if test -s conftest.err; then
                   4784:     sed '10a\
                   4785: ... rest of stderr output deleted ...
                   4786:          10q' conftest.err >conftest.er1
                   4787:     cat conftest.er1 >&5
                   4788:   fi
                   4789:   rm -f conftest.er1 conftest.err
                   4790:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   4791:   test $ac_status = 0; }
                   4792: done
                   4793: rm -f a.out
                   4794: 
                   4795: # If we don't use `.F' as extension, the preprocessor is not run on the
                   4796: # input file.  (Note that this only needs to work for GNU compilers.)
                   4797: ac_save_ext=$ac_ext
                   4798: ac_ext=F
                   4799: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
                   4800: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.99      bertrand 4801: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
1.15      bertrand 4802:   $as_echo_n "(cached) " >&6
1.1       bertrand 4803: else
1.15      bertrand 4804:   cat > conftest.$ac_ext <<_ACEOF
                   4805:       program main
                   4806: #ifndef __GNUC__
                   4807:        choke me
                   4808: #endif
1.14      bertrand 4809: 
1.15      bertrand 4810:       end
                   4811: _ACEOF
                   4812: if ac_fn_f77_try_compile "$LINENO"; then :
                   4813:   ac_compiler_gnu=yes
                   4814: else
                   4815:   ac_compiler_gnu=no
1.1       bertrand 4816: fi
1.15      bertrand 4817: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4818: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 4819: 
                   4820: fi
1.15      bertrand 4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
                   4822: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
                   4823: ac_ext=$ac_save_ext
                   4824: ac_test_FFLAGS=${FFLAGS+set}
                   4825: ac_save_FFLAGS=$FFLAGS
                   4826: FFLAGS=
                   4827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
                   4828: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.99      bertrand 4829: if test "${ac_cv_prog_f77_g+set}" = set; then :
1.15      bertrand 4830:   $as_echo_n "(cached) " >&6
                   4831: else
                   4832:   FFLAGS=-g
                   4833: cat > conftest.$ac_ext <<_ACEOF
                   4834:       program main
1.1       bertrand 4835: 
1.15      bertrand 4836:       end
1.14      bertrand 4837: _ACEOF
1.15      bertrand 4838: if ac_fn_f77_try_compile "$LINENO"; then :
                   4839:   ac_cv_prog_f77_g=yes
1.1       bertrand 4840: else
1.15      bertrand 4841:   ac_cv_prog_f77_g=no
1.1       bertrand 4842: fi
1.15      bertrand 4843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 4844: 
                   4845: fi
1.15      bertrand 4846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
                   4847: $as_echo "$ac_cv_prog_f77_g" >&6; }
                   4848: if test "$ac_test_FFLAGS" = set; then
                   4849:   FFLAGS=$ac_save_FFLAGS
                   4850: elif test $ac_cv_prog_f77_g = yes; then
                   4851:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4852:     FFLAGS="-g -O2"
                   4853:   else
                   4854:     FFLAGS="-g"
                   4855:   fi
                   4856: else
                   4857:   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
                   4858:     FFLAGS="-O2"
                   4859:   else
                   4860:     FFLAGS=
                   4861:   fi
1.1       bertrand 4862: fi
                   4863: 
1.15      bertrand 4864: if test $ac_compiler_gnu = yes; then
                   4865:   G77=yes
1.1       bertrand 4866: else
1.15      bertrand 4867:   G77=
1.1       bertrand 4868: fi
1.15      bertrand 4869: ac_ext=c
                   4870: ac_cpp='$CPP $CPPFLAGS'
                   4871: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4872: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4873: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 4874: 
                   4875: 
1.15      bertrand 4876: ac_ext=${ac_fc_srcext-f}
                   4877: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
                   4878: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
                   4879: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
                   4880: if test -n "$ac_tool_prefix"; then
1.23      bertrand 4881:   for ac_prog in gfortran
1.15      bertrand 4882:   do
                   4883:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4884: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   4885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4886: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4887: if test "${ac_cv_prog_FC+set}" = set; then :
1.15      bertrand 4888:   $as_echo_n "(cached) " >&6
                   4889: else
                   4890:   if test -n "$FC"; then
                   4891:   ac_cv_prog_FC="$FC" # Let the user override the test.
1.1       bertrand 4892: else
1.15      bertrand 4893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4894: for as_dir in $PATH
                   4895: do
                   4896:   IFS=$as_save_IFS
                   4897:   test -z "$as_dir" && as_dir=.
                   4898:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4899:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4900:     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
                   4901:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4902:     break 2
                   4903:   fi
                   4904: done
                   4905:   done
                   4906: IFS=$as_save_IFS
1.1       bertrand 4907: 
                   4908: fi
1.15      bertrand 4909: fi
                   4910: FC=$ac_cv_prog_FC
                   4911: if test -n "$FC"; then
                   4912:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
                   4913: $as_echo "$FC" >&6; }
1.14      bertrand 4914: else
1.15      bertrand 4915:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4916: $as_echo "no" >&6; }
1.14      bertrand 4917: fi
                   4918: 
1.1       bertrand 4919: 
1.15      bertrand 4920:     test -n "$FC" && break
                   4921:   done
                   4922: fi
                   4923: if test -z "$FC"; then
                   4924:   ac_ct_FC=$FC
1.23      bertrand 4925:   for ac_prog in gfortran
1.15      bertrand 4926: do
                   4927:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4928: set dummy $ac_prog; ac_word=$2
                   4929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4930: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 4931: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
1.15      bertrand 4932:   $as_echo_n "(cached) " >&6
                   4933: else
                   4934:   if test -n "$ac_ct_FC"; then
                   4935:   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
                   4936: else
                   4937: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4938: for as_dir in $PATH
                   4939: do
                   4940:   IFS=$as_save_IFS
                   4941:   test -z "$as_dir" && as_dir=.
                   4942:     for ac_exec_ext in '' $ac_executable_extensions; do
                   4943:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   4944:     ac_cv_prog_ac_ct_FC="$ac_prog"
                   4945:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4946:     break 2
                   4947:   fi
                   4948: done
                   4949:   done
                   4950: IFS=$as_save_IFS
1.1       bertrand 4951: 
1.15      bertrand 4952: fi
                   4953: fi
                   4954: ac_ct_FC=$ac_cv_prog_ac_ct_FC
                   4955: if test -n "$ac_ct_FC"; then
                   4956:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
                   4957: $as_echo "$ac_ct_FC" >&6; }
1.1       bertrand 4958: else
1.15      bertrand 4959:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4960: $as_echo "no" >&6; }
1.1       bertrand 4961: fi
1.14      bertrand 4962: 
1.1       bertrand 4963: 
1.15      bertrand 4964:   test -n "$ac_ct_FC" && break
                   4965: done
1.1       bertrand 4966: 
1.15      bertrand 4967:   if test "x$ac_ct_FC" = x; then
                   4968:     FC=""
                   4969:   else
                   4970:     case $cross_compiling:$ac_tool_warned in
                   4971: yes:)
                   4972: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   4973: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   4974: ac_tool_warned=yes ;;
1.14      bertrand 4975: esac
1.15      bertrand 4976:     FC=$ac_ct_FC
                   4977:   fi
1.14      bertrand 4978: fi
                   4979: 
                   4980: 
1.15      bertrand 4981: # Provide some information about the compiler.
                   4982: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
                   4983: set X $ac_compile
                   4984: ac_compiler=$2
                   4985: for ac_option in --version -v -V -qversion; do
                   4986:   { { ac_try="$ac_compiler $ac_option >&5"
1.14      bertrand 4987: case "(($ac_try" in
                   4988:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4989:   *) ac_try_echo=$ac_try;;
                   4990: esac
1.15      bertrand 4991: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   4992: $as_echo "$ac_try_echo"; } >&5
                   4993:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14      bertrand 4994:   ac_status=$?
1.15      bertrand 4995:   if test -s conftest.err; then
                   4996:     sed '10a\
                   4997: ... rest of stderr output deleted ...
                   4998:          10q' conftest.err >conftest.er1
                   4999:     cat conftest.er1 >&5
                   5000:   fi
                   5001:   rm -f conftest.er1 conftest.err
                   5002:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   5003:   test $ac_status = 0; }
                   5004: done
                   5005: rm -f a.out
                   5006: 
                   5007: # If we don't use `.F' as extension, the preprocessor is not run on the
                   5008: # input file.  (Note that this only needs to work for GNU compilers.)
                   5009: ac_save_ext=$ac_ext
                   5010: ac_ext=F
                   5011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
                   5012: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.99      bertrand 5013: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
1.15      bertrand 5014:   $as_echo_n "(cached) " >&6
1.14      bertrand 5015: else
1.15      bertrand 5016:   cat > conftest.$ac_ext <<_ACEOF
                   5017:       program main
                   5018: #ifndef __GNUC__
                   5019:        choke me
                   5020: #endif
1.14      bertrand 5021: 
1.15      bertrand 5022:       end
                   5023: _ACEOF
                   5024: if ac_fn_fc_try_compile "$LINENO"; then :
                   5025:   ac_compiler_gnu=yes
                   5026: else
                   5027:   ac_compiler_gnu=no
1.14      bertrand 5028: fi
                   5029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 5030: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1       bertrand 5031: 
1.15      bertrand 5032: fi
                   5033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
                   5034: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
                   5035: ac_ext=$ac_save_ext
                   5036: ac_test_FCFLAGS=${FCFLAGS+set}
                   5037: ac_save_FCFLAGS=$FCFLAGS
                   5038: FCFLAGS=
                   5039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
                   5040: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.99      bertrand 5041: if test "${ac_cv_prog_fc_g+set}" = set; then :
1.15      bertrand 5042:   $as_echo_n "(cached) " >&6
                   5043: else
                   5044:   FCFLAGS=-g
                   5045: cat > conftest.$ac_ext <<_ACEOF
                   5046:       program main
1.1       bertrand 5047: 
1.15      bertrand 5048:       end
1.1       bertrand 5049: _ACEOF
1.15      bertrand 5050: if ac_fn_fc_try_compile "$LINENO"; then :
                   5051:   ac_cv_prog_fc_g=yes
1.1       bertrand 5052: else
1.15      bertrand 5053:   ac_cv_prog_fc_g=no
1.1       bertrand 5054: fi
1.14      bertrand 5055: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 5056: 
1.15      bertrand 5057: fi
                   5058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
                   5059: $as_echo "$ac_cv_prog_fc_g" >&6; }
                   5060: if test "$ac_test_FCFLAGS" = set; then
                   5061:   FCFLAGS=$ac_save_FCFLAGS
                   5062: elif test $ac_cv_prog_fc_g = yes; then
                   5063:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5064:     FCFLAGS="-g -O2"
                   5065:   else
                   5066:     FCFLAGS="-g"
                   5067:   fi
1.1       bertrand 5068: else
1.15      bertrand 5069:   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
                   5070:     FCFLAGS="-O2"
                   5071:   else
                   5072:     FCFLAGS=
                   5073:   fi
1.1       bertrand 5074: fi
                   5075: 
1.15      bertrand 5076: ac_ext=c
                   5077: ac_cpp='$CPP $CPPFLAGS'
                   5078: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5079: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5080: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       bertrand 5081: 
                   5082: 
1.88      bertrand 5083: if test x"$F77" == x; then
                   5084:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
                   5085: fi
                   5086: 
                   5087: if test x"$FC" == x; then
1.36      bertrand 5088:    as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1       bertrand 5089: fi
                   5090: 
1.15      bertrand 5091: if test x"$FC" != x""; then
                   5092:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5093:            awk -F. '{ printf("%s", $1);}'`
                   5094:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                   5095:            awk -F. '{ printf("%s", $2);}'`
1.23      bertrand 5096:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.15      bertrand 5097:        OPTIMISATION_F=-O3
                   5098:    else
1.23      bertrand 5099:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15      bertrand 5100:            OPTIMISATION_F=-O3
                   5101:        else
1.23      bertrand 5102:            if test $GCC_VERSION_MAJEURE -ge 3; then
                   5103:                OPTIMISATION_F=-O2
                   5104:            else
1.36      bertrand 5105:                as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23      bertrand 5106:            fi
1.14      bertrand 5107:        fi
                   5108:    fi
                   5109: fi
1.1       bertrand 5110: 
                   5111: 
1.15      bertrand 5112: ac_ext=c
                   5113: ac_cpp='$CPP $CPPFLAGS'
                   5114: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5115: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5116: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   5118: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   5119: # On Suns, sometimes $CPP names a directory.
                   5120: if test -n "$CPP" && test -d "$CPP"; then
                   5121:   CPP=
                   5122: fi
                   5123: if test -z "$CPP"; then
1.99      bertrand 5124:   if test "${ac_cv_prog_CPP+set}" = set; then :
1.15      bertrand 5125:   $as_echo_n "(cached) " >&6
                   5126: else
                   5127:       # Double quotes because CPP needs to be expanded
                   5128:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5129:     do
                   5130:       ac_preproc_ok=false
                   5131: for ac_c_preproc_warn_flag in '' yes
                   5132: do
                   5133:   # Use a header file that comes with gcc, so configuring glibc
                   5134:   # with a fresh cross-compiler works.
                   5135:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5136:   # <limits.h> exists even on freestanding compilers.
                   5137:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5138:   # not just through cpp. "Syntax error" is here to catch this case.
                   5139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5140: /* end confdefs.h.  */
1.15      bertrand 5141: #ifdef __STDC__
                   5142: # include <limits.h>
                   5143: #else
                   5144: # include <assert.h>
                   5145: #endif
                   5146:             Syntax error
1.1       bertrand 5147: _ACEOF
1.15      bertrand 5148: if ac_fn_c_try_cpp "$LINENO"; then :
                   5149: 
1.1       bertrand 5150: else
1.15      bertrand 5151:   # Broken: fails on valid input.
                   5152: continue
1.1       bertrand 5153: fi
1.36      bertrand 5154: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5155: 
1.15      bertrand 5156:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5157:   # can be detected and how.
                   5158:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5159: /* end confdefs.h.  */
                   5160: #include <ac_nonexistent.h>
                   5161: _ACEOF
                   5162: if ac_fn_c_try_cpp "$LINENO"; then :
                   5163:   # Broken: success on invalid input.
                   5164: continue
                   5165: else
                   5166:   # Passes both tests.
                   5167: ac_preproc_ok=:
                   5168: break
1.1       bertrand 5169: fi
1.36      bertrand 5170: rm -f conftest.err conftest.i conftest.$ac_ext
1.14      bertrand 5171: 
1.15      bertrand 5172: done
                   5173: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5174: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5175: if $ac_preproc_ok; then :
                   5176:   break
1.1       bertrand 5177: fi
                   5178: 
1.15      bertrand 5179:     done
                   5180:     ac_cv_prog_CPP=$CPP
1.14      bertrand 5181: 
1.15      bertrand 5182: fi
                   5183:   CPP=$ac_cv_prog_CPP
1.1       bertrand 5184: else
1.15      bertrand 5185:   ac_cv_prog_CPP=$CPP
                   5186: fi
                   5187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   5188: $as_echo "$CPP" >&6; }
                   5189: ac_preproc_ok=false
                   5190: for ac_c_preproc_warn_flag in '' yes
1.14      bertrand 5191: do
1.15      bertrand 5192:   # Use a header file that comes with gcc, so configuring glibc
                   5193:   # with a fresh cross-compiler works.
                   5194:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5195:   # <limits.h> exists even on freestanding compilers.
                   5196:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5197:   # not just through cpp. "Syntax error" is here to catch this case.
                   5198:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5199: /* end confdefs.h.  */
                   5200: #ifdef __STDC__
                   5201: # include <limits.h>
                   5202: #else
                   5203: # include <assert.h>
                   5204: #endif
                   5205:             Syntax error
                   5206: _ACEOF
                   5207: if ac_fn_c_try_cpp "$LINENO"; then :
1.1       bertrand 5208: 
1.15      bertrand 5209: else
                   5210:   # Broken: fails on valid input.
                   5211: continue
                   5212: fi
1.36      bertrand 5213: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5214: 
1.15      bertrand 5215:   # OK, works on sane cases.  Now check whether nonexistent headers
                   5216:   # can be detected and how.
                   5217:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5218: /* end confdefs.h.  */
                   5219: #include <ac_nonexistent.h>
                   5220: _ACEOF
                   5221: if ac_fn_c_try_cpp "$LINENO"; then :
                   5222:   # Broken: success on invalid input.
                   5223: continue
                   5224: else
                   5225:   # Passes both tests.
                   5226: ac_preproc_ok=:
                   5227: break
                   5228: fi
1.36      bertrand 5229: rm -f conftest.err conftest.i conftest.$ac_ext
1.1       bertrand 5230: 
                   5231: done
1.15      bertrand 5232: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36      bertrand 5233: rm -f conftest.i conftest.err conftest.$ac_ext
1.15      bertrand 5234: if $ac_preproc_ok; then :
1.1       bertrand 5235: 
1.15      bertrand 5236: else
                   5237:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5238: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 5239: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.99      bertrand 5240: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 5241: fi
1.14      bertrand 5242: 
1.15      bertrand 5243: ac_ext=c
                   5244: ac_cpp='$CPP $CPPFLAGS'
                   5245: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5246: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5247: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14      bertrand 5248: 
                   5249: 
1.15      bertrand 5250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
                   5251: $as_echo_n "checking for X... " >&6; }
1.1       bertrand 5252: 
                   5253: 
1.15      bertrand 5254: # Check whether --with-x was given.
                   5255: if test "${with_x+set}" = set; then :
                   5256:   withval=$with_x;
1.1       bertrand 5257: fi
1.14      bertrand 5258: 
1.15      bertrand 5259: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   5260: if test "x$with_x" = xno; then
                   5261:   # The user explicitly disabled X.
                   5262:   have_x=disabled
1.1       bertrand 5263: else
1.15      bertrand 5264:   case $x_includes,$x_libraries in #(
1.99      bertrand 5265:     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
                   5266:     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
1.15      bertrand 5267:   $as_echo_n "(cached) " >&6
1.1       bertrand 5268: else
1.15      bertrand 5269:   # One or both of the vars are not set, and there is no cached value.
                   5270: ac_x_includes=no ac_x_libraries=no
                   5271: rm -f -r conftest.dir
                   5272: if mkdir conftest.dir; then
                   5273:   cd conftest.dir
                   5274:   cat >Imakefile <<'_ACEOF'
                   5275: incroot:
                   5276:    @echo incroot='${INCROOT}'
                   5277: usrlibdir:
                   5278:    @echo usrlibdir='${USRLIBDIR}'
                   5279: libdir:
                   5280:    @echo libdir='${LIBDIR}'
                   5281: _ACEOF
                   5282:   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36      bertrand 5283:     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 5284:     for ac_var in incroot usrlibdir libdir; do
                   5285:       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
                   5286:     done
                   5287:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   5288:     for ac_extension in a so sl dylib la dll; do
                   5289:       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
                   5290:     test -f "$ac_im_libdir/libX11.$ac_extension"; then
                   5291:    ac_im_usrlibdir=$ac_im_libdir; break
                   5292:       fi
                   5293:     done
                   5294:     # Screen out bogus values from the imake configuration.  They are
                   5295:     # bogus both because they are the default anyway, and because
                   5296:     # using them would break gcc on systems where it needs fixed includes.
                   5297:     case $ac_im_incroot in
                   5298:    /usr/include) ac_x_includes= ;;
                   5299:    *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
                   5300:     esac
                   5301:     case $ac_im_usrlibdir in
                   5302:    /usr/lib | /usr/lib64 | /lib | /lib64) ;;
                   5303:    *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
                   5304:     esac
                   5305:   fi
                   5306:   cd ..
                   5307:   rm -f -r conftest.dir
                   5308: fi
                   5309: 
                   5310: # Standard set of common directories for X headers.
                   5311: # Check X11 before X11Rn because it is often a symlink to the current release.
                   5312: ac_x_header_dirs='
                   5313: /usr/X11/include
                   5314: /usr/X11R7/include
                   5315: /usr/X11R6/include
                   5316: /usr/X11R5/include
                   5317: /usr/X11R4/include
1.1       bertrand 5318: 
1.15      bertrand 5319: /usr/include/X11
                   5320: /usr/include/X11R7
                   5321: /usr/include/X11R6
                   5322: /usr/include/X11R5
                   5323: /usr/include/X11R4
1.1       bertrand 5324: 
1.15      bertrand 5325: /usr/local/X11/include
                   5326: /usr/local/X11R7/include
                   5327: /usr/local/X11R6/include
                   5328: /usr/local/X11R5/include
                   5329: /usr/local/X11R4/include
1.1       bertrand 5330: 
1.15      bertrand 5331: /usr/local/include/X11
                   5332: /usr/local/include/X11R7
                   5333: /usr/local/include/X11R6
                   5334: /usr/local/include/X11R5
                   5335: /usr/local/include/X11R4
1.1       bertrand 5336: 
1.15      bertrand 5337: /usr/X386/include
                   5338: /usr/x386/include
                   5339: /usr/XFree86/include/X11
1.1       bertrand 5340: 
1.15      bertrand 5341: /usr/include
                   5342: /usr/local/include
                   5343: /usr/unsupported/include
                   5344: /usr/athena/include
                   5345: /usr/local/x11r5/include
                   5346: /usr/lpp/Xamples/include
1.1       bertrand 5347: 
1.15      bertrand 5348: /usr/openwin/include
                   5349: /usr/openwin/share/include'
1.1       bertrand 5350: 
1.15      bertrand 5351: if test "$ac_x_includes" = no; then
                   5352:   # Guess where to find include files, by looking for Xlib.h.
                   5353:   # First, try using that file with no special directory specified.
                   5354:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5355: /* end confdefs.h.  */
                   5356: #include <X11/Xlib.h>
                   5357: _ACEOF
                   5358: if ac_fn_c_try_cpp "$LINENO"; then :
                   5359:   # We can compile using X headers with no special include directory.
                   5360: ac_x_includes=
1.1       bertrand 5361: else
1.15      bertrand 5362:   for ac_dir in $ac_x_header_dirs; do
                   5363:   if test -r "$ac_dir/X11/Xlib.h"; then
                   5364:     ac_x_includes=$ac_dir
                   5365:     break
                   5366:   fi
                   5367: done
1.1       bertrand 5368: fi
1.36      bertrand 5369: rm -f conftest.err conftest.i conftest.$ac_ext
1.15      bertrand 5370: fi # $ac_x_includes = no
1.1       bertrand 5371: 
1.15      bertrand 5372: if test "$ac_x_libraries" = no; then
                   5373:   # Check for the libraries.
                   5374:   # See if we find them without any special options.
                   5375:   # Don't add to $LIBS permanently.
                   5376:   ac_save_LIBS=$LIBS
                   5377:   LIBS="-lX11 $LIBS"
                   5378:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5379: /* end confdefs.h.  */
1.15      bertrand 5380: #include <X11/Xlib.h>
1.14      bertrand 5381: int
                   5382: main ()
                   5383: {
1.15      bertrand 5384: XrmInitialize ()
1.14      bertrand 5385:   ;
                   5386:   return 0;
                   5387: }
1.1       bertrand 5388: _ACEOF
1.15      bertrand 5389: if ac_fn_c_try_link "$LINENO"; then :
                   5390:   LIBS=$ac_save_LIBS
                   5391: # We can link X programs with no special library path.
                   5392: ac_x_libraries=
1.1       bertrand 5393: else
1.15      bertrand 5394:   LIBS=$ac_save_LIBS
                   5395: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
                   5396: do
                   5397:   # Don't even attempt the hair of trying to link an X program!
                   5398:   for ac_extension in a so sl dylib la dll; do
                   5399:     if test -r "$ac_dir/libX11.$ac_extension"; then
                   5400:       ac_x_libraries=$ac_dir
                   5401:       break 2
                   5402:     fi
                   5403:   done
                   5404: done
                   5405: fi
                   5406: rm -f core conftest.err conftest.$ac_objext \
                   5407:     conftest$ac_exeext conftest.$ac_ext
                   5408: fi # $ac_x_libraries = no
1.1       bertrand 5409: 
1.15      bertrand 5410: case $ac_x_includes,$ac_x_libraries in #(
                   5411:   no,* | *,no | *\'*)
                   5412:     # Didn't find X, or a directory has "'" in its name.
                   5413:     ac_cv_have_x="have_x=no";; #(
                   5414:   *)
                   5415:     # Record where we found X for the cache.
                   5416:     ac_cv_have_x="have_x=yes\
                   5417:    ac_x_includes='$ac_x_includes'\
                   5418:    ac_x_libraries='$ac_x_libraries'"
                   5419: esac
1.1       bertrand 5420: fi
1.15      bertrand 5421: ;; #(
                   5422:     *) have_x=yes;;
                   5423:   esac
                   5424:   eval "$ac_cv_have_x"
                   5425: fi # $with_x != no
1.1       bertrand 5426: 
1.15      bertrand 5427: if test "$have_x" != yes; then
                   5428:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
                   5429: $as_echo "$have_x" >&6; }
                   5430:   no_x=yes
1.14      bertrand 5431: else
1.15      bertrand 5432:   # If each of the values was on the command line, it overrides each guess.
                   5433:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   5434:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   5435:   # Update the cache value to reflect the command line values.
                   5436:   ac_cv_have_x="have_x=yes\
                   5437:    ac_x_includes='$x_includes'\
                   5438:    ac_x_libraries='$x_libraries'"
                   5439:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
                   5440: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14      bertrand 5441: fi
1.1       bertrand 5442: 
1.15      bertrand 5443: if test "$no_x" = yes; then
                   5444:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1       bertrand 5445: 
1.15      bertrand 5446: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14      bertrand 5447: 
1.15      bertrand 5448:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       bertrand 5449: else
1.15      bertrand 5450:   if test -n "$x_includes"; then
                   5451:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   5452:   fi
                   5453: 
                   5454:   # It would also be nice to do this for all -L options, not just this one.
                   5455:   if test -n "$x_libraries"; then
                   5456:     X_LIBS="$X_LIBS -L$x_libraries"
                   5457:     # For Solaris; some versions of Sun CC require a space after -R and
                   5458:     # others require no space.  Words are not sufficient . . . .
                   5459:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
                   5460: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
                   5461:     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
                   5462:     ac_xsave_c_werror_flag=$ac_c_werror_flag
                   5463:     ac_c_werror_flag=yes
                   5464:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5465: /* end confdefs.h.  */
1.1       bertrand 5466: 
1.15      bertrand 5467: int
                   5468: main ()
                   5469: {
1.1       bertrand 5470: 
1.15      bertrand 5471:   ;
                   5472:   return 0;
                   5473: }
                   5474: _ACEOF
                   5475: if ac_fn_c_try_link "$LINENO"; then :
                   5476:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5477: $as_echo "no" >&6; }
                   5478:        X_LIBS="$X_LIBS -R$x_libraries"
1.1       bertrand 5479: else
1.15      bertrand 5480:   LIBS="$ac_xsave_LIBS -R $x_libraries"
                   5481:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5482: /* end confdefs.h.  */
1.1       bertrand 5483: 
1.14      bertrand 5484: int
                   5485: main ()
                   5486: {
1.15      bertrand 5487: 
                   5488:   ;
1.14      bertrand 5489:   return 0;
                   5490: }
                   5491: _ACEOF
1.15      bertrand 5492: if ac_fn_c_try_link "$LINENO"; then :
                   5493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5494: $as_echo "yes" >&6; }
                   5495:      X_LIBS="$X_LIBS -R $x_libraries"
1.14      bertrand 5496: else
1.15      bertrand 5497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
                   5498: $as_echo "neither works" >&6; }
1.14      bertrand 5499: fi
1.15      bertrand 5500: rm -f core conftest.err conftest.$ac_objext \
                   5501:     conftest$ac_exeext conftest.$ac_ext
1.14      bertrand 5502: fi
1.15      bertrand 5503: rm -f core conftest.err conftest.$ac_objext \
                   5504:     conftest$ac_exeext conftest.$ac_ext
                   5505:     ac_c_werror_flag=$ac_xsave_c_werror_flag
                   5506:     LIBS=$ac_xsave_LIBS
                   5507:   fi
1.1       bertrand 5508: 
1.15      bertrand 5509:   # Check for system-dependent libraries X programs must link with.
                   5510:   # Do this before checking for the system-independent R6 libraries
                   5511:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       bertrand 5512: 
1.15      bertrand 5513:   if test "$ISC" = yes; then
                   5514:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   5515:   else
                   5516:     # Martyn Johnson says this is needed for Ultrix, if the X
                   5517:     # libraries were built with DECnet support.  And Karl Berry says
                   5518:     # the Alpha needs dnet_stub (dnet does not exist).
                   5519:     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
                   5520:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5521: /* end confdefs.h.  */
1.1       bertrand 5522: 
1.15      bertrand 5523: /* Override any GCC internal prototype to avoid an error.
                   5524:    Use char because int might match the return type of a GCC
                   5525:    builtin and then its argument prototype would still apply.  */
                   5526: #ifdef __cplusplus
                   5527: extern "C"
                   5528: #endif
                   5529: char XOpenDisplay ();
                   5530: int
                   5531: main ()
                   5532: {
                   5533: return XOpenDisplay ();
                   5534:   ;
                   5535:   return 0;
                   5536: }
1.1       bertrand 5537: _ACEOF
1.15      bertrand 5538: if ac_fn_c_try_link "$LINENO"; then :
1.14      bertrand 5539: 
                   5540: else
1.15      bertrand 5541:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
                   5542: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.99      bertrand 5543: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
1.15      bertrand 5544:   $as_echo_n "(cached) " >&6
                   5545: else
                   5546:   ac_check_lib_save_LIBS=$LIBS
                   5547: LIBS="-ldnet  $LIBS"
                   5548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5549: /* end confdefs.h.  */
1.14      bertrand 5550: 
1.15      bertrand 5551: /* Override any GCC internal prototype to avoid an error.
                   5552:    Use char because int might match the return type of a GCC
                   5553:    builtin and then its argument prototype would still apply.  */
                   5554: #ifdef __cplusplus
                   5555: extern "C"
                   5556: #endif
                   5557: char dnet_ntoa ();
                   5558: int
                   5559: main ()
                   5560: {
                   5561: return dnet_ntoa ();
                   5562:   ;
                   5563:   return 0;
                   5564: }
1.1       bertrand 5565: _ACEOF
1.15      bertrand 5566: if ac_fn_c_try_link "$LINENO"; then :
                   5567:   ac_cv_lib_dnet_dnet_ntoa=yes
1.1       bertrand 5568: else
1.15      bertrand 5569:   ac_cv_lib_dnet_dnet_ntoa=no
1.14      bertrand 5570: fi
1.15      bertrand 5571: rm -f core conftest.err conftest.$ac_objext \
                   5572:     conftest$ac_exeext conftest.$ac_ext
                   5573: LIBS=$ac_check_lib_save_LIBS
1.14      bertrand 5574: fi
1.15      bertrand 5575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
                   5576: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.99      bertrand 5577: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
1.15      bertrand 5578:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14      bertrand 5579: fi
                   5580: 
1.15      bertrand 5581:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   5582:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
                   5583: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.99      bertrand 5584: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
1.15      bertrand 5585:   $as_echo_n "(cached) " >&6
1.14      bertrand 5586: else
1.15      bertrand 5587:   ac_check_lib_save_LIBS=$LIBS
                   5588: LIBS="-ldnet_stub  $LIBS"
                   5589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5590: /* end confdefs.h.  */
1.15      bertrand 5591: 
                   5592: /* Override any GCC internal prototype to avoid an error.
                   5593:    Use char because int might match the return type of a GCC
                   5594:    builtin and then its argument prototype would still apply.  */
                   5595: #ifdef __cplusplus
                   5596: extern "C"
                   5597: #endif
                   5598: char dnet_ntoa ();
1.1       bertrand 5599: int
                   5600: main ()
                   5601: {
1.15      bertrand 5602: return dnet_ntoa ();
1.1       bertrand 5603:   ;
                   5604:   return 0;
                   5605: }
                   5606: _ACEOF
1.15      bertrand 5607: if ac_fn_c_try_link "$LINENO"; then :
                   5608:   ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14      bertrand 5609: else
1.15      bertrand 5610:   ac_cv_lib_dnet_stub_dnet_ntoa=no
                   5611: fi
                   5612: rm -f core conftest.err conftest.$ac_objext \
                   5613:     conftest$ac_exeext conftest.$ac_ext
                   5614: LIBS=$ac_check_lib_save_LIBS
                   5615: fi
                   5616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
                   5617: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.99      bertrand 5618: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
1.15      bertrand 5619:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   5620: fi
1.14      bertrand 5621: 
1.15      bertrand 5622:     fi
1.1       bertrand 5623: fi
1.15      bertrand 5624: rm -f core conftest.err conftest.$ac_objext \
                   5625:     conftest$ac_exeext conftest.$ac_ext
                   5626:     LIBS="$ac_xsave_LIBS"
                   5627: 
                   5628:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   5629:     # to get the SysV transport functions.
                   5630:     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
                   5631:     # needs -lnsl.
                   5632:     # The nsl library prevents programs from opening the X display
                   5633:     # on Irix 5.2, according to T.E. Dickey.
                   5634:     # The functions gethostbyname, getservbyname, and inet_addr are
                   5635:     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
                   5636:     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.99      bertrand 5637: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1       bertrand 5638: 
                   5639: fi
                   5640: 
1.15      bertrand 5641:     if test $ac_cv_func_gethostbyname = no; then
                   5642:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
                   5643: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.99      bertrand 5644: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
1.15      bertrand 5645:   $as_echo_n "(cached) " >&6
1.1       bertrand 5646: else
1.15      bertrand 5647:   ac_check_lib_save_LIBS=$LIBS
                   5648: LIBS="-lnsl  $LIBS"
                   5649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5650: /* end confdefs.h.  */
1.15      bertrand 5651: 
                   5652: /* Override any GCC internal prototype to avoid an error.
                   5653:    Use char because int might match the return type of a GCC
                   5654:    builtin and then its argument prototype would still apply.  */
                   5655: #ifdef __cplusplus
                   5656: extern "C"
                   5657: #endif
                   5658: char gethostbyname ();
1.1       bertrand 5659: int
                   5660: main ()
                   5661: {
1.15      bertrand 5662: return gethostbyname ();
1.1       bertrand 5663:   ;
                   5664:   return 0;
                   5665: }
                   5666: _ACEOF
1.15      bertrand 5667: if ac_fn_c_try_link "$LINENO"; then :
                   5668:   ac_cv_lib_nsl_gethostbyname=yes
                   5669: else
                   5670:   ac_cv_lib_nsl_gethostbyname=no
                   5671: fi
                   5672: rm -f core conftest.err conftest.$ac_objext \
                   5673:     conftest$ac_exeext conftest.$ac_ext
                   5674: LIBS=$ac_check_lib_save_LIBS
                   5675: fi
                   5676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
                   5677: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.99      bertrand 5678: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
1.15      bertrand 5679:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   5680: fi
                   5681: 
                   5682:       if test $ac_cv_lib_nsl_gethostbyname = no; then
                   5683:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
                   5684: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.99      bertrand 5685: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
1.15      bertrand 5686:   $as_echo_n "(cached) " >&6
                   5687: else
                   5688:   ac_check_lib_save_LIBS=$LIBS
                   5689: LIBS="-lbsd  $LIBS"
                   5690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5691: /* end confdefs.h.  */
1.15      bertrand 5692: 
                   5693: /* Override any GCC internal prototype to avoid an error.
                   5694:    Use char because int might match the return type of a GCC
                   5695:    builtin and then its argument prototype would still apply.  */
                   5696: #ifdef __cplusplus
                   5697: extern "C"
                   5698: #endif
                   5699: char gethostbyname ();
1.1       bertrand 5700: int
                   5701: main ()
                   5702: {
1.15      bertrand 5703: return gethostbyname ();
1.1       bertrand 5704:   ;
                   5705:   return 0;
                   5706: }
                   5707: _ACEOF
1.15      bertrand 5708: if ac_fn_c_try_link "$LINENO"; then :
                   5709:   ac_cv_lib_bsd_gethostbyname=yes
1.1       bertrand 5710: else
1.15      bertrand 5711:   ac_cv_lib_bsd_gethostbyname=no
                   5712: fi
                   5713: rm -f core conftest.err conftest.$ac_objext \
                   5714:     conftest$ac_exeext conftest.$ac_ext
                   5715: LIBS=$ac_check_lib_save_LIBS
                   5716: fi
                   5717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
                   5718: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.99      bertrand 5719: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
1.15      bertrand 5720:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
                   5721: fi
                   5722: 
                   5723:       fi
                   5724:     fi
                   5725: 
                   5726:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   5727:     # socket/setsockopt and other routines are undefined under SCO ODT
                   5728:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   5729:     # on later versions), says Simon Leinen: it contains gethostby*
                   5730:     # variants that don't use the name server (or something).  -lsocket
                   5731:     # must be given before -lnsl if both are needed.  We assume that
                   5732:     # if connect needs -lnsl, so does gethostbyname.
                   5733:     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.99      bertrand 5734: if test "x$ac_cv_func_connect" = x""yes; then :
1.14      bertrand 5735: 
1.1       bertrand 5736: fi
                   5737: 
1.15      bertrand 5738:     if test $ac_cv_func_connect = no; then
                   5739:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   5740: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.99      bertrand 5741: if test "${ac_cv_lib_socket_connect+set}" = set; then :
1.15      bertrand 5742:   $as_echo_n "(cached) " >&6
1.14      bertrand 5743: else
1.15      bertrand 5744:   ac_check_lib_save_LIBS=$LIBS
                   5745: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   5746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5747: /* end confdefs.h.  */
1.1       bertrand 5748: 
1.15      bertrand 5749: /* Override any GCC internal prototype to avoid an error.
                   5750:    Use char because int might match the return type of a GCC
                   5751:    builtin and then its argument prototype would still apply.  */
                   5752: #ifdef __cplusplus
                   5753: extern "C"
                   5754: #endif
                   5755: char connect ();
1.14      bertrand 5756: int
                   5757: main ()
                   5758: {
1.15      bertrand 5759: return connect ();
1.14      bertrand 5760:   ;
                   5761:   return 0;
                   5762: }
                   5763: _ACEOF
1.15      bertrand 5764: if ac_fn_c_try_link "$LINENO"; then :
                   5765:   ac_cv_lib_socket_connect=yes
                   5766: else
                   5767:   ac_cv_lib_socket_connect=no
                   5768: fi
                   5769: rm -f core conftest.err conftest.$ac_objext \
                   5770:     conftest$ac_exeext conftest.$ac_ext
                   5771: LIBS=$ac_check_lib_save_LIBS
                   5772: fi
                   5773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   5774: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.99      bertrand 5775: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
1.15      bertrand 5776:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   5777: fi
                   5778: 
                   5779:     fi
                   5780: 
                   5781:     # Guillermo Gomez says -lposix is necessary on A/UX.
                   5782:     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.99      bertrand 5783: if test "x$ac_cv_func_remove" = x""yes; then :
1.15      bertrand 5784: 
                   5785: fi
                   5786: 
                   5787:     if test $ac_cv_func_remove = no; then
                   5788:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
                   5789: $as_echo_n "checking for remove in -lposix... " >&6; }
1.99      bertrand 5790: if test "${ac_cv_lib_posix_remove+set}" = set; then :
1.15      bertrand 5791:   $as_echo_n "(cached) " >&6
                   5792: else
                   5793:   ac_check_lib_save_LIBS=$LIBS
                   5794: LIBS="-lposix  $LIBS"
                   5795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 5796: /* end confdefs.h.  */
1.15      bertrand 5797: 
                   5798: /* Override any GCC internal prototype to avoid an error.
                   5799:    Use char because int might match the return type of a GCC
                   5800:    builtin and then its argument prototype would still apply.  */
                   5801: #ifdef __cplusplus
                   5802: extern "C"
                   5803: #endif
                   5804: char remove ();
1.1       bertrand 5805: int
                   5806: main ()
                   5807: {
1.15      bertrand 5808: return remove ();
1.1       bertrand 5809:   ;
                   5810:   return 0;
                   5811: }
                   5812: _ACEOF
1.15      bertrand 5813: if ac_fn_c_try_link "$LINENO"; then :
                   5814:   ac_cv_lib_posix_remove=yes
1.14      bertrand 5815: else
1.15      bertrand 5816:   ac_cv_lib_posix_remove=no
                   5817: fi
                   5818: rm -f core conftest.err conftest.$ac_objext \
                   5819:     conftest$ac_exeext conftest.$ac_ext
                   5820: LIBS=$ac_check_lib_save_LIBS
                   5821: fi
                   5822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
                   5823: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.99      bertrand 5824: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
1.15      bertrand 5825:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14      bertrand 5826: fi
1.1       bertrand 5827: 
1.15      bertrand 5828:     fi
1.14      bertrand 5829: 
1.15      bertrand 5830:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   5831:     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.99      bertrand 5832: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14      bertrand 5833: 
                   5834: fi
                   5835: 
1.15      bertrand 5836:     if test $ac_cv_func_shmat = no; then
                   5837:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
                   5838: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.99      bertrand 5839: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
1.15      bertrand 5840:   $as_echo_n "(cached) " >&6
                   5841: else
                   5842:   ac_check_lib_save_LIBS=$LIBS
                   5843: LIBS="-lipc  $LIBS"
                   5844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5845: /* end confdefs.h.  */
1.15      bertrand 5846: 
                   5847: /* Override any GCC internal prototype to avoid an error.
                   5848:    Use char because int might match the return type of a GCC
                   5849:    builtin and then its argument prototype would still apply.  */
                   5850: #ifdef __cplusplus
                   5851: extern "C"
                   5852: #endif
                   5853: char shmat ();
1.1       bertrand 5854: int
                   5855: main ()
                   5856: {
1.15      bertrand 5857: return shmat ();
1.1       bertrand 5858:   ;
                   5859:   return 0;
                   5860: }
                   5861: _ACEOF
1.15      bertrand 5862: if ac_fn_c_try_link "$LINENO"; then :
                   5863:   ac_cv_lib_ipc_shmat=yes
1.1       bertrand 5864: else
1.15      bertrand 5865:   ac_cv_lib_ipc_shmat=no
                   5866: fi
                   5867: rm -f core conftest.err conftest.$ac_objext \
                   5868:     conftest$ac_exeext conftest.$ac_ext
                   5869: LIBS=$ac_check_lib_save_LIBS
                   5870: fi
                   5871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
                   5872: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.99      bertrand 5873: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
1.15      bertrand 5874:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   5875: fi
1.14      bertrand 5876: 
1.15      bertrand 5877:     fi
                   5878:   fi
1.1       bertrand 5879: 
1.15      bertrand 5880:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   5881:   ac_save_LDFLAGS=$LDFLAGS
                   5882:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   5883:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   5884:   # check for ICE first), but we must link in the order -lSM -lICE or
                   5885:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   5886:   # These have to be linked with before -lX11, unlike the other
                   5887:   # libraries we check for below, so use a different variable.
                   5888:   # John Interrante, Karl Berry
                   5889:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
                   5890: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.99      bertrand 5891: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
1.15      bertrand 5892:   $as_echo_n "(cached) " >&6
1.1       bertrand 5893: else
1.15      bertrand 5894:   ac_check_lib_save_LIBS=$LIBS
                   5895: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   5896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 5897: /* end confdefs.h.  */
1.15      bertrand 5898: 
                   5899: /* Override any GCC internal prototype to avoid an error.
                   5900:    Use char because int might match the return type of a GCC
                   5901:    builtin and then its argument prototype would still apply.  */
                   5902: #ifdef __cplusplus
                   5903: extern "C"
                   5904: #endif
                   5905: char IceConnectionNumber ();
1.1       bertrand 5906: int
                   5907: main ()
                   5908: {
1.15      bertrand 5909: return IceConnectionNumber ();
1.1       bertrand 5910:   ;
                   5911:   return 0;
                   5912: }
                   5913: _ACEOF
1.15      bertrand 5914: if ac_fn_c_try_link "$LINENO"; then :
                   5915:   ac_cv_lib_ICE_IceConnectionNumber=yes
1.1       bertrand 5916: else
1.15      bertrand 5917:   ac_cv_lib_ICE_IceConnectionNumber=no
                   5918: fi
                   5919: rm -f core conftest.err conftest.$ac_objext \
                   5920:     conftest$ac_exeext conftest.$ac_ext
                   5921: LIBS=$ac_check_lib_save_LIBS
                   5922: fi
                   5923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
                   5924: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.99      bertrand 5925: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
1.15      bertrand 5926:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   5927: fi
                   5928: 
                   5929:   LDFLAGS=$ac_save_LDFLAGS
                   5930: 
                   5931: fi
                   5932: 
1.14      bertrand 5933: 
1.15      bertrand 5934: if test "$ac_x_includes" != "no"; then
                   5935:    if test x"$ac_x_includes" != x; then
                   5936:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                   5937:        includeX="-I$ac_x_includes"
                   5938:    fi
1.1       bertrand 5939: fi
1.15      bertrand 5940: if test "$ac_x_libraries" != "no"; then
                   5941:    if test x"$ac_x_libraries" != x; then
                   5942:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                   5943:    fi
1.1       bertrand 5944: fi
1.15      bertrand 5945: 
1.64      bertrand 5946: 
1.69      bertrand 5947: # Check whether --with-32bits-abi was given.
                   5948: if test "${with_32bits_abi+set}" = set; then :
                   5949:   withval=$with_32bits_abi;
1.64      bertrand 5950: if test "$with-32bits-abi" = "no"; then
1.66      bertrand 5951:    ABI=
1.64      bertrand 5952: else
1.65      bertrand 5953:    ABI=-m32
                   5954: fi
1.64      bertrand 5955: else
                   5956: 
1.68      bertrand 5957:    ABI=
1.64      bertrand 5958: 
                   5959: 
                   5960: fi
                   5961: 
                   5962: 
1.68      bertrand 5963: if test x$ABI = x; then
1.66      bertrand 5964: 
1.69      bertrand 5965: # Check whether --with-64bits-abi was given.
                   5966: if test "${with_64bits_abi+set}" = set; then :
                   5967:   withval=$with_64bits_abi;
1.67      bertrand 5968: if test "$with-64bits-abi" = "no"; then
                   5969:    ABI=
                   5970: else
                   5971:    ABI=-m64
                   5972: fi
                   5973: else
                   5974: 
1.68      bertrand 5975:    ABI=
1.67      bertrand 5976: 
                   5977: 
                   5978: fi
                   5979: 
1.68      bertrand 5980: fi
1.67      bertrand 5981: 
1.69      bertrand 5982: LDFLAGS="$LDFLAGS $ABI"
                   5983: 
1.91      bertrand 5984: # Check whether --enable-recursive was given.
                   5985: if test "${enable_recursive+set}" = set; then :
                   5986:   enableval=$enable_recursive;
                   5987: if test "$enableval" = "yes"; then
                   5988:    RECURSIVE=yes
                   5989: else
                   5990:    RECURSIVE=no
                   5991: fi
                   5992: else
                   5993: 
                   5994:    RECURSIVE=yes
                   5995: 
                   5996: 
                   5997: fi
                   5998: 
                   5999: 
1.67      bertrand 6000: 
1.88      bertrand 6001: # Check whether --with-rpltools was given.
                   6002: if test "${with_rpltools+set}" = set; then :
                   6003:   withval=$with_rpltools;
                   6004: if test "$with_rpltools" = "no" -o "$with_rpltools" = yes; then
                   6005:    as_fn_error $? "You have to specify rpltools path !" "$LINENO" 5
                   6006: else
                   6007:    RPLTOOLS=$with_rpltools
                   6008: fi
                   6009: else
                   6010: 
                   6011:    RPLTOOLS=\$\(top_builddir\)
                   6012: 
                   6013: 
                   6014: fi
                   6015: 
                   6016: 
                   6017: 
                   6018: 
                   6019: # Check whether --enable-rplcas was given.
                   6020: if test "${enable_rplcas+set}" = set; then :
                   6021:   enableval=$enable_rplcas;
                   6022: if test "$enableval" = "no"; then
1.67      bertrand 6023:    RPLCAS=-URPLCAS
                   6024:    LIBRPLCAS=
                   6025: else
                   6026:    RPLCAS=-DRPLCAS
                   6027:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                   6028: fi
                   6029: else
                   6030: 
                   6031:    RPLCAS=-URPLCAS
                   6032:    LIBRPLCAS=
                   6033: 
                   6034: 
                   6035: fi
                   6036: 
                   6037: 
                   6038: 
                   6039: 
                   6040: 
1.65      bertrand 6041: 
1.15      bertrand 6042: # Check whether --enable-optimization was given.
                   6043: if test "${enable_optimization+set}" = set; then :
                   6044:   enableval=$enable_optimization;
                   6045: if test "$enableval" = "no"; then
1.69      bertrand 6046:    CFLAGS=$ABI
                   6047:    FFLAGS=$ABI
                   6048:    CXXFLAGS=$ABI
                   6049:    FCFLAGS=$ABI
                   6050: else
                   6051:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                   6052:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                   6053:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                   6054:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand 6055: fi
1.15      bertrand 6056: else
1.14      bertrand 6057: 
1.69      bertrand 6058:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                   6059:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                   6060:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                   6061:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand 6062: 
                   6063: 
1.15      bertrand 6064: fi
1.1       bertrand 6065: 
                   6066: 
1.91      bertrand 6067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable shared memory" >&5
                   6068: $as_echo_n "checking for usable shared memory... " >&6; }
                   6069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6070: /* end confdefs.h.  */
                   6071: #include <sys/shm.h>
                   6072: 
                   6073: int
                   6074: main ()
                   6075: {
                   6076:  return(0);
                   6077:   ;
                   6078:   return 0;
                   6079: }
                   6080: _ACEOF
                   6081: if ac_fn_c_try_compile "$LINENO"; then :
                   6082:   SHARED_MEMORY=-DSHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6083: $as_echo "yes" >&6; }
                   6084: else
                   6085:   SHARED_MEMORY=-USHARED_MEMORY; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6086: $as_echo "no" >&6; }
                   6087: 
                   6088: fi
                   6089: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6090: 
                   6091: 
                   6092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
                   6093: $as_echo_n "checking for pselect... " >&6; }
1.92      bertrand 6094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.91      bertrand 6095: /* end confdefs.h.  */
                   6096: #include <sys/select.h>
                   6097:     #include <unistd.h>
                   6098:     #include <sys/time.h>
                   6099:     #include <sys/types.h>
                   6100: 
                   6101: int
                   6102: main ()
                   6103: {
                   6104: 
                   6105:     struct timespec tv;
                   6106:     fd_set s1, s2, s3;
                   6107:     tv.tv_sec=1;
                   6108:     tv.tv_nsec=0;
                   6109:     FD_SET(1, &s1); FD_SET(2, &s2); FD_SET(3, &s3);
                   6110:     pselect(5, &s1, &s2, &s3, &tv, NULL);
                   6111:     return(0);
                   6112: 
                   6113:   ;
                   6114:   return 0;
                   6115: }
                   6116: _ACEOF
1.92      bertrand 6117: if ac_fn_c_try_compile "$LINENO"; then :
1.91      bertrand 6118:   PSELECT=-DPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6119: $as_echo "yes" >&6; }
                   6120: else
                   6121:   PSELECT=-UPSELECT; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6122: $as_echo "no" >&6; }
                   6123: 
                   6124: fi
1.92      bertrand 6125: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.91      bertrand 6126: 
                   6127: 
1.87      bertrand 6128: # Check whether --enable-sysv-ipcs was given.
                   6129: if test "${enable_sysv_ipcs+set}" = set; then :
                   6130:   enableval=$enable_sysv_ipcs;
1.36      bertrand 6131: if test "$enableval" = "no"; then
1.88      bertrand 6132:    IPCS_SYSV=-UIPCS_SYSV
                   6133:    POSIX_IPCS=no
1.36      bertrand 6134: else
1.88      bertrand 6135:    IPCS_SYSV=-DIPCS_SYSV
                   6136:    POSIX_IPCS=yes
1.36      bertrand 6137: fi
                   6138: else
1.85      bertrand 6139:   REG=$LDFLAGS
1.88      bertrand 6140: POSIX_IPCS=guessed
1.85      bertrand 6141: LDFLAGS=-lrt
                   6142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
                   6143: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
                   6144: if test "$cross_compiling" = yes; then :
                   6145:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6146: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6147: as_fn_error $? "cannot run test program while cross compiling
1.99      bertrand 6148: See \`config.log' for more details" "$LINENO" 5 ; }
1.85      bertrand 6149: else
                   6150:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81      bertrand 6151: /* end confdefs.h.  */
                   6152: #include <sys/mman.h>
                   6153: #include <sys/stat.h>
                   6154: #include <fcntl.h>
1.82      bertrand 6155: 
1.81      bertrand 6156: int
                   6157: main ()
                   6158: {
1.85      bertrand 6159:  int fd; char *sem = "/test";
1.81      bertrand 6160: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
                   6161:   close(fd);
                   6162:   shm_unlink(sem);
1.85      bertrand 6163:   fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
                   6164:   close(fd);
                   6165:   sem_unlink(sem);
1.81      bertrand 6166:   return(0);
                   6167: 
                   6168:   ;
                   6169:   return 0;
                   6170: }
                   6171: _ACEOF
1.85      bertrand 6172: if ac_fn_c_try_run "$LINENO"; then :
1.81      bertrand 6173:   IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6174: $as_echo "yes" >&6; }
                   6175: else
                   6176:   IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6177: $as_echo "no" >&6; }
                   6178: 
                   6179: fi
1.85      bertrand 6180: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6181:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6182: fi
                   6183: 
                   6184: LDFLAGS=$REG
1.81      bertrand 6185: 
1.36      bertrand 6186: fi
                   6187: 
                   6188: 
1.88      bertrand 6189: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.81      bertrand 6190: REG=$LDFLAGS
                   6191: LDFLAGS=-pthread
1.83      bertrand 6192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
                   6193: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
                   6194: if test "$cross_compiling" = yes; then :
                   6195:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6196: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6197: as_fn_error $? "cannot run test program while cross compiling
1.99      bertrand 6198: See \`config.log' for more details" "$LINENO" 5 ; }
1.83      bertrand 6199: else
                   6200:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6201: /* end confdefs.h.  */
                   6202: #include <semaphore.h>
                   6203: 
                   6204: int
                   6205: main ()
                   6206: {
                   6207:  sem_t sem;
1.81      bertrand 6208:  if (sem_init(&sem, 1, 0) != 0) return(1);
                   6209:  sem_destroy(&sem);
                   6210:   return(0);
1.83      bertrand 6211: 
                   6212:   ;
                   6213:   return 0;
                   6214: }
                   6215: _ACEOF
                   6216: if ac_fn_c_try_run "$LINENO"; then :
                   6217:   SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6218: $as_echo "yes" >&6; }
                   6219: else
                   6220:   SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6221: $as_echo "no" >&6; }
                   6222: 
                   6223: fi
                   6224: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6225:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6226: fi
                   6227: 
1.81      bertrand 6228: LDFLAGS=$REG
                   6229: REG=""
                   6230: else
                   6231:    SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   6232: fi
                   6233: 
1.30      bertrand 6234: # Check whether --enable-full-static was given.
                   6235: if test "${enable_full_static+set}" = set; then :
                   6236:   enableval=$enable_full_static;
                   6237: if test "$enableval" = "no"; then
                   6238:    STATIC=no
                   6239: else
                   6240:    STATIC=yes
                   6241: fi
                   6242: else
                   6243:   STATIC=no
                   6244: fi
                   6245: 
                   6246: 
1.15      bertrand 6247: # Check whether --enable-final-encoding was given.
                   6248: if test "${enable_final_encoding+set}" = set; then :
                   6249:   enableval=$enable_final_encoding;
                   6250: if test "$enableval" = "no"; then
                   6251:    FINAL_ENCODING="\$(shell locale charmap | \
                   6252:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35      bertrand 6253:    FORCED_FINAL_ENCODING=0
1.1       bertrand 6254: else
1.15      bertrand 6255:    FINAL_ENCODING="$enable_final_encoding"
1.35      bertrand 6256:    FORCED_FINAL_ENCODING=1
1.15      bertrand 6257: fi
1.1       bertrand 6258: else
1.35      bertrand 6259: 
                   6260: FORCED_FINAL_ENCODING=0
                   6261: FINAL_ENCODING="\$(shell locale charmap | \
1.15      bertrand 6262:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
                   6263: fi
                   6264: 
1.14      bertrand 6265: 
1.15      bertrand 6266: # Check whether --enable-tex was given.
                   6267: if test "${enable_tex+set}" = set; then :
                   6268:   enableval=$enable_tex;
                   6269: if test "$enableval" = "no"; then
                   6270:    TEX_SUPPORT=no
                   6271: else
                   6272:    TEX_SUPPORT=yes
1.1       bertrand 6273: fi
1.15      bertrand 6274: else
                   6275:   TEX_SUPPORT=guessed
                   6276: fi
                   6277: 
1.14      bertrand 6278: 
1.15      bertrand 6279: # Check whether --enable-vim was given.
                   6280: if test "${enable_vim+set}" = set; then :
                   6281:   enableval=$enable_vim;
                   6282: if test "$enableval" = "no"; then
                   6283:    VIM_SUPPORT=no
1.102   ! bertrand 6284:    DEBVIM=
1.15      bertrand 6285: else
                   6286:    VIM_SUPPORT=yes
1.102   ! bertrand 6287:    DEBVIM=vim
1.15      bertrand 6288: fi
                   6289: else
                   6290:   VIM_SUPPORT=guessed
1.1       bertrand 6291: fi
                   6292: 
1.15      bertrand 6293: 
                   6294: # Check whether --enable-embedded-gnuplot was given.
                   6295: if test "${enable_embedded_gnuplot+set}" = set; then :
                   6296:   enableval=$enable_embedded_gnuplot;
                   6297: if test "$enableval" = "no"; then
                   6298:    MYGNUPLOT=no
                   6299: else
                   6300:    MYGNUPLOT=yes
                   6301: fi
1.1       bertrand 6302: else
                   6303: 
1.15      bertrand 6304: MYGNUPLOT=yes
                   6305: fi
                   6306: 
1.14      bertrand 6307: 
1.15      bertrand 6308: # Check whether --enable-gnuplot was given.
                   6309: if test "${enable_gnuplot+set}" = set; then :
                   6310:   enableval=$enable_gnuplot;
                   6311: if test "$enableval" = "no"; then
                   6312:    GNUPLOT_SUPPORT=no
                   6313:    MYGNUPLOT=no
                   6314:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6315: else
                   6316:    GNUPLOT_SUPPORT=yes
                   6317:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6318: fi
1.1       bertrand 6319: else
                   6320: 
1.15      bertrand 6321: if test "$MYGNUPLOT" = "yes"; then
                   6322:    GNUPLOT_SUPPORT=yes
                   6323:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                   6324: else
                   6325:    GNUPLOT_SUPPORT=guessed
                   6326:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                   6327: fi
1.1       bertrand 6328: fi
                   6329: 
1.15      bertrand 6330: 
1.80      bertrand 6331: libX=""
                   6332: LIBMOTIF=""
                   6333: INCMOTIF=""
                   6334: BUILD_OPENMOTIF=""
                   6335: 
1.15      bertrand 6336: # Check whether --enable-motif was given.
                   6337: if test "${enable_motif+set}" = set; then :
                   6338:   enableval=$enable_motif;
                   6339: if test "$enableval" = "no"; then
                   6340:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                   6341: else
1.80      bertrand 6342:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
                   6343: fi
1.1       bertrand 6344: else
1.80      bertrand 6345:   if test "$have_x" == "yes"; then
                   6346:    MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15      bertrand 6347: else
1.80      bertrand 6348:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15      bertrand 6349: fi
                   6350: fi
1.14      bertrand 6351: 
1.80      bertrand 6352: 
                   6353: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                   6354:    libX="$X_LIBS -lXt -lX11"
                   6355:    LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
                   6356:            \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
                   6357:    INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
                   6358:            -I\$(top_builddir)/tools/$OPENMOTIF/lib \
1.92      bertrand 6359:            -I\$(top_srcdir)/tools/$LIBXPM/include"
1.80      bertrand 6360:    BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
                   6361: 
1.91      bertrand 6362:    if test $RECURSIVE = yes; then
                   6363: 
1.80      bertrand 6364: 
                   6365: subdirs="$subdirs tools/$LIBXPM"
                   6366: 
1.91      bertrand 6367:        subdirs="$subdirs tools/$OPENMOTIF"
1.80      bertrand 6368: 
1.91      bertrand 6369:    fi;
1.1       bertrand 6370: fi
                   6371: 
1.15      bertrand 6372: # Check whether --enable-experimental was given.
                   6373: if test "${enable_experimental+set}" = set; then :
                   6374:   enableval=$enable_experimental;
                   6375: if test "$enableval" = "no"; then
                   6376:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6377: else
                   6378:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                   6379: fi
1.14      bertrand 6380: else
1.15      bertrand 6381:   EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                   6382: fi
                   6383: 
1.1       bertrand 6384: 
1.15      bertrand 6385: # Check whether --enable-debug was given.
                   6386: if test "${enable_debug+set}" = set; then :
                   6387:   enableval=$enable_debug;
                   6388: if test "$enableval" = "no"; then
1.24      bertrand 6389:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6390: else
1.24      bertrand 6391:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15      bertrand 6392: fi
                   6393: else
1.24      bertrand 6394:   DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14      bertrand 6395: fi
1.1       bertrand 6396: 
1.15      bertrand 6397: 
                   6398: # Check whether --enable-profile was given.
                   6399: if test "${enable_profile+set}" = set; then :
                   6400:   enableval=$enable_profile;
                   6401: if test "$enableval" = "no"; then
                   6402:    PROFILAGE=""
                   6403: else
                   6404:    PROFILAGE="-pg"
                   6405: fi
                   6406: else
                   6407:   PROFILAGE=""
1.1       bertrand 6408: fi
                   6409: 
1.14      bertrand 6410: 
                   6411: 
1.15      bertrand 6412: 
                   6413: if test ! -d tools; then
                   6414:    mkdir tools
                   6415: fi
                   6416: if test ! -d "$srcdir"/tools/$NCURSES; then
                   6417:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                   6418:            (cd "$srcdir/tools" && tar -xf -)
1.51      bertrand 6419:    (cd "$srcdir/tools/"$NCURSES && \
1.99      bertrand 6420:            for i in ../$NCURSES*.sh.gz;
1.101     bertrand 6421:            do TMP=$i; gunzip -c $i > ${TMP%.*};
1.99      bertrand 6422:            done;
                   6423:            for i in ../$NCURSES*.sh;
                   6424:            do chmod 775 $i && ./$i;
                   6425:            done;
1.51      bertrand 6426:            for i in ../$NCURSES*.patch.gz;
                   6427:            do gunzip -c $i | patch -p1;
1.100     bertrand 6428:            done);
1.15      bertrand 6429: fi
                   6430: if test ! -d "$srcdir"/tools/$READLINE; then
                   6431:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                   6432:            (cd "$srcdir/tools" && tar -xf -)
                   6433: fi
                   6434: if test ! -d "$srcdir"/tools/$UNITS; then
                   6435:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                   6436:            (cd "$srcdir/tools" && tar -xf -)
                   6437: fi
                   6438: if test ! -d "$srcdir"/tools/$GSL; then
                   6439:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                   6440:            (cd "$srcdir/tools" && tar -xf -)
1.33      bertrand 6441:    if test $(uname) = "OS/2"; then
                   6442:        (cd "$srcdir"/tools/$GSL; \
                   6443:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                   6444:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                   6445:                \mv -f $TMP ltmain.sh)
                   6446:    fi
1.15      bertrand 6447: fi
                   6448: if test ! -d "$srcdir"/tools/$GPP; then
                   6449:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                   6450:            (cd "$srcdir/tools" && tar -xf -)
                   6451: fi
                   6452: if test ! -d "$srcdir"/tools/$FILE; then
                   6453:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
                   6454:            (cd "$srcdir/tools" && tar -xf - )
                   6455:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
                   6456: fi
                   6457: if test ! -d "$srcdir"/tools/$ICONV; then
                   6458:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                   6459:            (cd "$srcdir/tools" && tar -xf -)
                   6460: fi
                   6461: if test ! -d "$srcdir"/tools/$SQLITE; then
                   6462:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                   6463:            (cd "$srcdir/tools" && tar -xf -)
                   6464: fi
1.76      bertrand 6465: if test ! -d "$srcdir"/tools/$SIGSEGV; then
                   6466:    gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
                   6467:            (cd "$srcdir/tools" && tar -xf -)
                   6468: fi
1.80      bertrand 6469: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
                   6470:    gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
                   6471:            (cd "$srcdir/tools" && tar -xf -)
                   6472: fi
                   6473: if test ! -d "$srcdir"/tools/$LIBXPM; then
                   6474:    gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
                   6475:            (cd "$srcdir/tools" && tar -xf -)
                   6476: fi
1.15      bertrand 6477: if test ! -d tools/$OPENSSL; then
                   6478:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
                   6479:            (cd tools && tar -xf -)
1.1       bertrand 6480: fi
1.55      bertrand 6481: if test ! -d rplcas; then
                   6482:    mkdir rplcas
                   6483: fi
                   6484: if test ! -d "$srcdir"/rplcas/$GMP; then
                   6485:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                   6486:            (cd "$srcdir/rplcas" && tar -xf -)
                   6487: fi
                   6488: if test ! -d "$srcdir"/rplcas/$MPFR; then
                   6489:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                   6490:            (cd "$srcdir/rplcas" && tar -xf -)
                   6491: fi
1.56      bertrand 6492: if test ! -d rplcas/$NTL; then
                   6493:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                   6494:            (cd rplcas && tar -xf -)
                   6495: fi
                   6496: if test ! -d rplcas/$COCOA; then
                   6497:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                   6498:            (cd rplcas && tar -xf -)
                   6499: fi
                   6500: if test ! -d rplcas/$PARI; then
                   6501:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                   6502:            (cd rplcas && tar -xf -)
                   6503: fi
                   6504: if test ! -d "$srcdir"/rplcas/$GIAC; then
                   6505:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                   6506:            (cd "$srcdir/rplcas" && tar -xf -)
                   6507: fi
1.1       bertrand 6508: 
1.84      bertrand 6509: touch tools/openmotif.lib
                   6510: 
1.1       bertrand 6511: 
                   6512: 
1.15      bertrand 6513: # Check whether --enable-final-run-path was given.
                   6514: if test "${enable_final_run_path+set}" = set; then :
                   6515:   enableval=$enable_final_run_path;
                   6516:    if test "x$enable_final_run_path" = "x"; then
                   6517:        { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
                   6518: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36      bertrand 6519:        as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15      bertrand 6520:    else
                   6521:        RUNPATH="$enable_final_run_path"
                   6522:    fi
1.1       bertrand 6523: 
                   6524: else
1.15      bertrand 6525:   RUNPATH="\${prefix}"
1.1       bertrand 6526: 
                   6527: fi
                   6528: 
1.15      bertrand 6529: 
                   6530: 
                   6531: 
                   6532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
                   6533: $as_echo_n "checking whether ln -s works... " >&6; }
                   6534: LN_S=$as_ln_s
                   6535: if test "$LN_S" = "ln -s"; then
                   6536:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6537: $as_echo "yes" >&6; }
                   6538: else
                   6539:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
                   6540: $as_echo "no, using $LN_S" >&6; }
1.1       bertrand 6541: fi
                   6542: 
1.15      bertrand 6543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   6544: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
                   6545: set x ${MAKE-make}
                   6546: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.99      bertrand 6547: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15      bertrand 6548:   $as_echo_n "(cached) " >&6
1.1       bertrand 6549: else
1.15      bertrand 6550:   cat >conftest.make <<\_ACEOF
                   6551: SHELL = /bin/sh
                   6552: all:
                   6553:    @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14      bertrand 6554: _ACEOF
1.36      bertrand 6555: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15      bertrand 6556: case `${MAKE-make} -f conftest.make 2>/dev/null` in
                   6557:   *@@@%%%=?*=@@@%%%*)
                   6558:     eval ac_cv_prog_make_${ac_make}_set=yes;;
                   6559:   *)
                   6560:     eval ac_cv_prog_make_${ac_make}_set=no;;
1.14      bertrand 6561: esac
1.15      bertrand 6562: rm -f conftest.make
                   6563: fi
                   6564: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
                   6565:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   6566: $as_echo "yes" >&6; }
                   6567:   SET_MAKE=
                   6568: else
                   6569:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6570: $as_echo "no" >&6; }
                   6571:   SET_MAKE="MAKE=${MAKE-make}"
                   6572: fi
1.1       bertrand 6573: 
1.15      bertrand 6574: if test -n "$ac_tool_prefix"; then
                   6575:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   6576: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   6577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6578: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6579: if test "${ac_cv_prog_RANLIB+set}" = set; then :
1.15      bertrand 6580:   $as_echo_n "(cached) " >&6
                   6581: else
                   6582:   if test -n "$RANLIB"; then
                   6583:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1       bertrand 6584: else
1.15      bertrand 6585: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6586: for as_dir in $PATH
                   6587: do
                   6588:   IFS=$as_save_IFS
                   6589:   test -z "$as_dir" && as_dir=.
                   6590:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6591:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6592:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   6593:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6594:     break 2
                   6595:   fi
                   6596: done
                   6597:   done
                   6598: IFS=$as_save_IFS
1.1       bertrand 6599: 
                   6600: fi
1.15      bertrand 6601: fi
                   6602: RANLIB=$ac_cv_prog_RANLIB
                   6603: if test -n "$RANLIB"; then
                   6604:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
                   6605: $as_echo "$RANLIB" >&6; }
                   6606: else
                   6607:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6608: $as_echo "no" >&6; }
                   6609: fi
                   6610: 
1.1       bertrand 6611: 
1.15      bertrand 6612: fi
                   6613: if test -z "$ac_cv_prog_RANLIB"; then
                   6614:   ac_ct_RANLIB=$RANLIB
                   6615:   # Extract the first word of "ranlib", so it can be a program name with args.
                   6616: set dummy ranlib; ac_word=$2
                   6617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6618: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6619: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
1.15      bertrand 6620:   $as_echo_n "(cached) " >&6
                   6621: else
                   6622:   if test -n "$ac_ct_RANLIB"; then
                   6623:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   6624: else
                   6625: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6626: for as_dir in $PATH
                   6627: do
                   6628:   IFS=$as_save_IFS
                   6629:   test -z "$as_dir" && as_dir=.
                   6630:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6631:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6632:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   6633:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6634:     break 2
                   6635:   fi
                   6636: done
1.14      bertrand 6637:   done
1.15      bertrand 6638: IFS=$as_save_IFS
                   6639: 
                   6640: fi
                   6641: fi
                   6642: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   6643: if test -n "$ac_ct_RANLIB"; then
                   6644:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
                   6645: $as_echo "$ac_ct_RANLIB" >&6; }
                   6646: else
                   6647:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6648: $as_echo "no" >&6; }
                   6649: fi
                   6650: 
                   6651:   if test "x$ac_ct_RANLIB" = x; then
                   6652:     RANLIB=":"
                   6653:   else
                   6654:     case $cross_compiling:$ac_tool_warned in
                   6655: yes:)
                   6656: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   6657: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   6658: ac_tool_warned=yes ;;
                   6659: esac
                   6660:     RANLIB=$ac_ct_RANLIB
                   6661:   fi
1.14      bertrand 6662: else
1.15      bertrand 6663:   RANLIB="$ac_cv_prog_RANLIB"
                   6664: fi
1.1       bertrand 6665: 
                   6666: 
1.15      bertrand 6667: # Extract the first word of "nawk", so it can be a program name with args.
                   6668: set dummy nawk; ac_word=$2
                   6669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6670: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6671: if test "${ac_cv_prog_AWK+set}" = set; then :
1.15      bertrand 6672:   $as_echo_n "(cached) " >&6
                   6673: else
                   6674:   if test -n "$AWK"; then
                   6675:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6676: else
                   6677: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6678: for as_dir in $PATH
                   6679: do
                   6680:   IFS=$as_save_IFS
                   6681:   test -z "$as_dir" && as_dir=.
                   6682:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6683:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6684:     ac_cv_prog_AWK="yes"
                   6685:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6686:     break 2
                   6687:   fi
                   6688: done
                   6689:   done
                   6690: IFS=$as_save_IFS
1.1       bertrand 6691: 
1.15      bertrand 6692:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6693: fi
                   6694: fi
                   6695: AWK=$ac_cv_prog_AWK
                   6696: if test -n "$AWK"; then
                   6697:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6698: $as_echo "$AWK" >&6; }
1.1       bertrand 6699: else
1.15      bertrand 6700:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6701: $as_echo "no" >&6; }
                   6702: fi
                   6703: 
1.1       bertrand 6704: 
1.15      bertrand 6705: if test "$AWK" = no; then
1.39      bertrand 6706:    # Extract the first word of "gawk", so it can be a program name with args.
                   6707: set dummy gawk; ac_word=$2
                   6708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6709: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6710: if test "${ac_cv_prog_AWK+set}" = set; then :
1.39      bertrand 6711:   $as_echo_n "(cached) " >&6
                   6712: else
                   6713:   if test -n "$AWK"; then
                   6714:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   6715: else
                   6716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6717: for as_dir in $PATH
                   6718: do
                   6719:   IFS=$as_save_IFS
                   6720:   test -z "$as_dir" && as_dir=.
                   6721:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6722:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6723:     ac_cv_prog_AWK="yes"
                   6724:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6725:     break 2
                   6726:   fi
                   6727: done
                   6728:   done
                   6729: IFS=$as_save_IFS
                   6730: 
                   6731:   test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
                   6732: fi
                   6733: fi
                   6734: AWK=$ac_cv_prog_AWK
                   6735: if test -n "$AWK"; then
                   6736:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
                   6737: $as_echo "$AWK" >&6; }
                   6738: else
                   6739:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6740: $as_echo "no" >&6; }
                   6741: fi
                   6742: 
                   6743: 
                   6744:    if test "$AWK" = no; then
                   6745:        as_fn_error $? "Can not find nawk !" "$LINENO" 5
                   6746:    fi
1.1       bertrand 6747: fi
                   6748: 
1.15      bertrand 6749: # Extract the first word of "sed", so it can be a program name with args.
                   6750: set dummy sed; ac_word=$2
                   6751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6752: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6753: if test "${ac_cv_prog_SED+set}" = set; then :
1.15      bertrand 6754:   $as_echo_n "(cached) " >&6
                   6755: else
                   6756:   if test -n "$SED"; then
                   6757:   ac_cv_prog_SED="$SED" # Let the user override the test.
                   6758: else
                   6759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6760: for as_dir in $PATH
                   6761: do
                   6762:   IFS=$as_save_IFS
                   6763:   test -z "$as_dir" && as_dir=.
                   6764:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6765:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6766:     ac_cv_prog_SED="yes"
                   6767:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6768:     break 2
                   6769:   fi
                   6770: done
1.14      bertrand 6771:   done
1.15      bertrand 6772: IFS=$as_save_IFS
1.1       bertrand 6773: 
1.15      bertrand 6774:   test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14      bertrand 6775: fi
1.15      bertrand 6776: fi
                   6777: SED=$ac_cv_prog_SED
                   6778: if test -n "$SED"; then
                   6779:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
                   6780: $as_echo "$SED" >&6; }
                   6781: else
                   6782:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6783: $as_echo "no" >&6; }
1.14      bertrand 6784: fi
1.1       bertrand 6785: 
                   6786: 
1.15      bertrand 6787: if test "$SED" = no; then
1.36      bertrand 6788:    as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15      bertrand 6789: fi
1.14      bertrand 6790: 
1.15      bertrand 6791: if test "$TEX_SUPPORT" = guessed; then
                   6792:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1       bertrand 6793: 
1.15      bertrand 6794:    # Extract the first word of "tex", so it can be a program name with args.
                   6795: set dummy tex; ac_word=$2
                   6796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6797: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6798: if test "${ac_cv_prog_TEX+set}" = set; then :
1.15      bertrand 6799:   $as_echo_n "(cached) " >&6
1.1       bertrand 6800: else
1.15      bertrand 6801:   if test -n "$TEX"; then
                   6802:   ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1       bertrand 6803: else
1.15      bertrand 6804: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6805: for as_dir in $PATH
                   6806: do
                   6807:   IFS=$as_save_IFS
                   6808:   test -z "$as_dir" && as_dir=.
                   6809:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6810:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6811:     ac_cv_prog_TEX="yes"
                   6812:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6813:     break 2
                   6814:   fi
                   6815: done
                   6816:   done
                   6817: IFS=$as_save_IFS
1.1       bertrand 6818: 
1.15      bertrand 6819:   test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1       bertrand 6820: fi
                   6821: fi
1.15      bertrand 6822: TEX=$ac_cv_prog_TEX
                   6823: if test -n "$TEX"; then
                   6824:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
                   6825: $as_echo "$TEX" >&6; }
                   6826: else
                   6827:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6828: $as_echo "no" >&6; }
1.1       bertrand 6829: fi
1.14      bertrand 6830: 
                   6831: 
1.15      bertrand 6832:    if test "$TEX" = no; then
                   6833:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
                   6834: Download at http://tex.loria.fr/
                   6835: " >&5
                   6836: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
                   6837: Download at http://tex.loria.fr/
                   6838: " >&2;}
                   6839:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6840:    fi
1.14      bertrand 6841: 
1.15      bertrand 6842:    # Extract the first word of "latex", so it can be a program name with args.
                   6843: set dummy latex; ac_word=$2
                   6844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6845: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6846: if test "${ac_cv_prog_LATEX+set}" = set; then :
1.15      bertrand 6847:   $as_echo_n "(cached) " >&6
1.1       bertrand 6848: else
1.15      bertrand 6849:   if test -n "$LATEX"; then
                   6850:   ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1       bertrand 6851: else
1.15      bertrand 6852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6853: for as_dir in $PATH
                   6854: do
                   6855:   IFS=$as_save_IFS
                   6856:   test -z "$as_dir" && as_dir=.
                   6857:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6858:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6859:     ac_cv_prog_LATEX="yes"
                   6860:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6861:     break 2
                   6862:   fi
                   6863: done
                   6864:   done
                   6865: IFS=$as_save_IFS
1.1       bertrand 6866: 
1.15      bertrand 6867:   test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1       bertrand 6868: fi
                   6869: fi
1.15      bertrand 6870: LATEX=$ac_cv_prog_LATEX
                   6871: if test -n "$LATEX"; then
                   6872:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
                   6873: $as_echo "$LATEX" >&6; }
                   6874: else
                   6875:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6876: $as_echo "no" >&6; }
                   6877: fi
1.14      bertrand 6878: 
1.1       bertrand 6879: 
1.15      bertrand 6880:    if test "$LATEX" = no; then
                   6881:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
                   6882: Download at http://tex.loria.fr/
                   6883: " >&5
                   6884: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
                   6885: Download at http://tex.loria.fr/
                   6886: " >&2;}
                   6887:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6888:    fi
1.1       bertrand 6889: 
1.15      bertrand 6890:    # Extract the first word of "dvips", so it can be a program name with args.
                   6891: set dummy dvips; ac_word=$2
                   6892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6893: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6894: if test "${ac_cv_prog_DVIPS+set}" = set; then :
1.15      bertrand 6895:   $as_echo_n "(cached) " >&6
                   6896: else
                   6897:   if test -n "$DVIPS"; then
                   6898:   ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
                   6899: else
                   6900: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6901: for as_dir in $PATH
                   6902: do
                   6903:   IFS=$as_save_IFS
                   6904:   test -z "$as_dir" && as_dir=.
                   6905:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6906:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6907:     ac_cv_prog_DVIPS="yes"
                   6908:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6909:     break 2
                   6910:   fi
                   6911: done
                   6912:   done
                   6913: IFS=$as_save_IFS
1.1       bertrand 6914: 
1.15      bertrand 6915:   test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
                   6916: fi
1.1       bertrand 6917: fi
1.15      bertrand 6918: DVIPS=$ac_cv_prog_DVIPS
                   6919: if test -n "$DVIPS"; then
                   6920:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
                   6921: $as_echo "$DVIPS" >&6; }
1.1       bertrand 6922: else
1.15      bertrand 6923:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6924: $as_echo "no" >&6; }
                   6925: fi
1.1       bertrand 6926: 
                   6927: 
1.15      bertrand 6928:    if test "$DVIPS" = no; then
                   6929:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
                   6930: Download at http://tex.loria.fr/
                   6931: " >&5
                   6932: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
                   6933: Download at http://tex.loria.fr/
                   6934: " >&2;}
                   6935:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6936:    fi
1.1       bertrand 6937: 
1.15      bertrand 6938:    # Extract the first word of "gs", so it can be a program name with args.
                   6939: set dummy gs; ac_word=$2
                   6940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6941: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6942: if test "${ac_cv_prog_GS+set}" = set; then :
1.15      bertrand 6943:   $as_echo_n "(cached) " >&6
                   6944: else
                   6945:   if test -n "$GS"; then
                   6946:   ac_cv_prog_GS="$GS" # Let the user override the test.
1.1       bertrand 6947: else
1.15      bertrand 6948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6949: for as_dir in $PATH
                   6950: do
                   6951:   IFS=$as_save_IFS
                   6952:   test -z "$as_dir" && as_dir=.
                   6953:     for ac_exec_ext in '' $ac_executable_extensions; do
                   6954:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   6955:     ac_cv_prog_GS="yes"
                   6956:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   6957:     break 2
                   6958:   fi
                   6959: done
                   6960:   done
                   6961: IFS=$as_save_IFS
1.1       bertrand 6962: 
1.15      bertrand 6963:   test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
                   6964: fi
                   6965: fi
                   6966: GS=$ac_cv_prog_GS
                   6967: if test -n "$GS"; then
                   6968:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
                   6969: $as_echo "$GS" >&6; }
                   6970: else
                   6971:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   6972: $as_echo "no" >&6; }
1.1       bertrand 6973: fi
                   6974: 
1.15      bertrand 6975: 
                   6976:    if test "$GS" = no; then
                   6977:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
                   6978: Download at http://ftp.lip6.fr/
                   6979: " >&5
                   6980: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
                   6981: Download at http://ftp.lip6.fr/
                   6982: " >&2;}
                   6983:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   6984:    fi
                   6985: 
                   6986:    # Extract the first word of "gv", so it can be a program name with args.
                   6987: set dummy gv; ac_word=$2
                   6988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   6989: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 6990: if test "${ac_cv_prog_GV+set}" = set; then :
1.15      bertrand 6991:   $as_echo_n "(cached) " >&6
                   6992: else
                   6993:   if test -n "$GV"; then
                   6994:   ac_cv_prog_GV="$GV" # Let the user override the test.
                   6995: else
                   6996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   6997: for as_dir in $PATH
                   6998: do
                   6999:   IFS=$as_save_IFS
                   7000:   test -z "$as_dir" && as_dir=.
                   7001:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7002:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7003:     ac_cv_prog_GV="yes"
                   7004:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7005:     break 2
                   7006:   fi
                   7007: done
1.14      bertrand 7008:   done
1.15      bertrand 7009: IFS=$as_save_IFS
1.1       bertrand 7010: 
1.15      bertrand 7011:   test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
                   7012: fi
1.1       bertrand 7013: fi
1.15      bertrand 7014: GV=$ac_cv_prog_GV
                   7015: if test -n "$GV"; then
                   7016:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
                   7017: $as_echo "$GV" >&6; }
                   7018: else
                   7019:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7020: $as_echo "no" >&6; }
1.1       bertrand 7021: fi
1.14      bertrand 7022: 
                   7023: 
1.15      bertrand 7024:    if test "$GV" = no; then
                   7025:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
                   7026: Download at http://ftp.lip6.fr/
                   7027: " >&5
                   7028: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
                   7029: Download at http://ftp.lip6.fr/
                   7030: " >&2;}
                   7031:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   7032:    fi
1.1       bertrand 7033: else
1.15      bertrand 7034:    if test "$TEX_SUPPORT" = no; then
                   7035:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                   7036:    else
                   7037:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                   7038:    fi
1.1       bertrand 7039: fi
                   7040: 
1.15      bertrand 7041: if test "$GNUPLOT_SUPPORT" = guessed; then
                   7042:    # Extract the first word of "gnuplot", so it can be a program name with args.
                   7043: set dummy gnuplot; ac_word=$2
                   7044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7045: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 7046: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
1.15      bertrand 7047:   $as_echo_n "(cached) " >&6
1.14      bertrand 7048: else
1.15      bertrand 7049:   if test -n "$GNUPLOT_P"; then
                   7050:   ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1       bertrand 7051: else
1.15      bertrand 7052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7053: for as_dir in $PATH
                   7054: do
                   7055:   IFS=$as_save_IFS
                   7056:   test -z "$as_dir" && as_dir=.
                   7057:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7058:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7059:     ac_cv_prog_GNUPLOT_P="yes"
                   7060:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7061:     break 2
                   7062:   fi
                   7063: done
                   7064:   done
                   7065: IFS=$as_save_IFS
1.1       bertrand 7066: 
1.15      bertrand 7067:   test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1       bertrand 7068: fi
                   7069: fi
1.15      bertrand 7070: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
                   7071: if test -n "$GNUPLOT_P"; then
                   7072:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
                   7073: $as_echo "$GNUPLOT_P" >&6; }
                   7074: else
                   7075:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7076: $as_echo "no" >&6; }
1.1       bertrand 7077: fi
                   7078: 
                   7079: 
1.15      bertrand 7080:    if test "$GNUPLOT_P" = no; then
                   7081:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
                   7082: Download at http://www.gnuplot.vt.edu/
                   7083: " >&5
                   7084: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
                   7085: Download at http://www.gnuplot.vt.edu/
                   7086: " >&2;}
                   7087:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   7088:    else
                   7089:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   7090:    fi
                   7091: else
                   7092:    if test "$GNUPLOT_SUPPORT" = no; then
                   7093:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                   7094:    else
                   7095:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                   7096:    fi
                   7097: fi
1.1       bertrand 7098: 
1.15      bertrand 7099: if test "$VIM_SUPPORT" = guessed; then
                   7100:    # Extract the first word of "vim", so it can be a program name with args.
                   7101: set dummy vim; ac_word=$2
                   7102: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   7103: $as_echo_n "checking for $ac_word... " >&6; }
1.99      bertrand 7104: if test "${ac_cv_prog_VIM+set}" = set; then :
1.15      bertrand 7105:   $as_echo_n "(cached) " >&6
1.1       bertrand 7106: else
1.15      bertrand 7107:   if test -n "$VIM"; then
                   7108:   ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1       bertrand 7109: else
1.15      bertrand 7110: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7111: for as_dir in $PATH
                   7112: do
                   7113:   IFS=$as_save_IFS
                   7114:   test -z "$as_dir" && as_dir=.
                   7115:     for ac_exec_ext in '' $ac_executable_extensions; do
                   7116:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7117:     ac_cv_prog_VIM="yes"
                   7118:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7119:     break 2
                   7120:   fi
                   7121: done
                   7122:   done
                   7123: IFS=$as_save_IFS
1.1       bertrand 7124: 
1.15      bertrand 7125:   test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1       bertrand 7126: fi
                   7127: fi
1.15      bertrand 7128: VIM=$ac_cv_prog_VIM
                   7129: if test -n "$VIM"; then
                   7130:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
                   7131: $as_echo "$VIM" >&6; }
1.1       bertrand 7132: else
1.15      bertrand 7133:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7134: $as_echo "no" >&6; }
                   7135: fi
1.1       bertrand 7136: 
                   7137: 
1.15      bertrand 7138:    if test "$VIM" = no; then
                   7139:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
                   7140: Download at http://www.vim.org/
                   7141: " >&5
                   7142: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
                   7143: Download at http://www.vim.org/
                   7144: " >&2;}
                   7145:        VIM_SUPPORT="-UVIM_SUPPORT"
1.102   ! bertrand 7146:        DEBVIM=
1.15      bertrand 7147:    else
                   7148:        VIM_SUPPORT="-DVIM_SUPPORT"
1.102   ! bertrand 7149:        DEBVIM=vim
1.15      bertrand 7150:    fi
1.1       bertrand 7151: else
1.15      bertrand 7152:    if test "$VIM_SUPPORT" = no; then
                   7153:        VIM_SUPPORT="-UVIM_SUPPORT"
1.102   ! bertrand 7154:        DEBVIM=
1.15      bertrand 7155:    else
                   7156:        VIM_SUPPORT="-DVIM_SUPPORT"
1.102   ! bertrand 7157:        DEBVIM=vim
1.15      bertrand 7158:    fi
1.1       bertrand 7159: fi
                   7160: 
1.14      bertrand 7161: 
                   7162: 
1.1       bertrand 7163: 
                   7164: 
1.15      bertrand 7165: 
                   7166: 
                   7167: 
                   7168: 
                   7169: 
                   7170: 
                   7171: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                   7172: 
                   7173: 
                   7174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
                   7175: $as_echo_n "checking for main in -lm... " >&6; }
1.99      bertrand 7176: if test "${ac_cv_lib_m_main+set}" = set; then :
1.15      bertrand 7177:   $as_echo_n "(cached) " >&6
1.1       bertrand 7178: else
1.15      bertrand 7179:   ac_check_lib_save_LIBS=$LIBS
                   7180: LIBS="-lm  $LIBS"
                   7181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7182: /* end confdefs.h.  */
1.15      bertrand 7183: 
                   7184: 
1.1       bertrand 7185: int
                   7186: main ()
                   7187: {
1.15      bertrand 7188: return main ();
1.1       bertrand 7189:   ;
                   7190:   return 0;
                   7191: }
                   7192: _ACEOF
1.15      bertrand 7193: if ac_fn_c_try_link "$LINENO"; then :
                   7194:   ac_cv_lib_m_main=yes
1.1       bertrand 7195: else
1.15      bertrand 7196:   ac_cv_lib_m_main=no
                   7197: fi
                   7198: rm -f core conftest.err conftest.$ac_objext \
                   7199:     conftest$ac_exeext conftest.$ac_ext
                   7200: LIBS=$ac_check_lib_save_LIBS
                   7201: fi
                   7202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
                   7203: $as_echo "$ac_cv_lib_m_main" >&6; }
1.99      bertrand 7204: if test "x$ac_cv_lib_m_main" = x""yes; then :
1.15      bertrand 7205:   cat >>confdefs.h <<_ACEOF
                   7206: #define HAVE_LIBM 1
                   7207: _ACEOF
1.14      bertrand 7208: 
1.15      bertrand 7209:   LIBS="-lm $LIBS"
1.1       bertrand 7210: 
1.15      bertrand 7211: else
1.36      bertrand 7212:   as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1       bertrand 7213: fi
                   7214: 
1.87      bertrand 7215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
                   7216: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
1.99      bertrand 7217: if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then :
1.87      bertrand 7218:   $as_echo_n "(cached) " >&6
                   7219: else
                   7220:   ac_check_lib_save_LIBS=$LIBS
                   7221: LIBS="-lc  $LIBS"
                   7222: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7223: /* end confdefs.h.  */
                   7224: 
                   7225: /* Override any GCC internal prototype to avoid an error.
                   7226:    Use char because int might match the return type of a GCC
                   7227:    builtin and then its argument prototype would still apply.  */
                   7228: #ifdef __cplusplus
                   7229: extern "C"
                   7230: #endif
                   7231: char pthread_mutex_init ();
                   7232: int
                   7233: main ()
                   7234: {
                   7235: return pthread_mutex_init ();
                   7236:   ;
                   7237:   return 0;
                   7238: }
                   7239: _ACEOF
                   7240: if ac_fn_c_try_link "$LINENO"; then :
                   7241:   ac_cv_lib_c_pthread_mutex_init=yes
                   7242: else
                   7243:   ac_cv_lib_c_pthread_mutex_init=no
                   7244: fi
                   7245: rm -f core conftest.err conftest.$ac_objext \
                   7246:     conftest$ac_exeext conftest.$ac_ext
                   7247: LIBS=$ac_check_lib_save_LIBS
                   7248: fi
                   7249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
                   7250: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
1.99      bertrand 7251: if test "x$ac_cv_lib_c_pthread_mutex_init" = x""yes; then :
1.87      bertrand 7252:   cat >>confdefs.h <<_ACEOF
                   7253: #define HAVE_LIBC 1
                   7254: _ACEOF
                   7255: 
                   7256:   LIBS="-lc $LIBS"
                   7257: 
                   7258: else
                   7259:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15      bertrand 7260: $as_echo_n "checking for main in -lpthread... " >&6; }
1.99      bertrand 7261: if test "${ac_cv_lib_pthread_main+set}" = set; then :
1.15      bertrand 7262:   $as_echo_n "(cached) " >&6
1.1       bertrand 7263: else
1.15      bertrand 7264:   ac_check_lib_save_LIBS=$LIBS
                   7265: LIBS="-lpthread  $LIBS"
                   7266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7267: /* end confdefs.h.  */
1.15      bertrand 7268: 
                   7269: 
1.14      bertrand 7270: int
                   7271: main ()
                   7272: {
1.15      bertrand 7273: return main ();
1.14      bertrand 7274:   ;
                   7275:   return 0;
                   7276: }
                   7277: _ACEOF
1.15      bertrand 7278: if ac_fn_c_try_link "$LINENO"; then :
                   7279:   ac_cv_lib_pthread_main=yes
                   7280: else
                   7281:   ac_cv_lib_pthread_main=no
                   7282: fi
                   7283: rm -f core conftest.err conftest.$ac_objext \
                   7284:     conftest$ac_exeext conftest.$ac_ext
                   7285: LIBS=$ac_check_lib_save_LIBS
                   7286: fi
                   7287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
                   7288: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.99      bertrand 7289: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
1.15      bertrand 7290:   cat >>confdefs.h <<_ACEOF
                   7291: #define HAVE_LIBPTHREAD 1
1.14      bertrand 7292: _ACEOF
                   7293: 
1.15      bertrand 7294:   LIBS="-lpthread $LIBS"
                   7295: 
1.1       bertrand 7296: else
1.36      bertrand 7297:   as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15      bertrand 7298: fi
1.14      bertrand 7299: 
1.87      bertrand 7300: fi
                   7301: 
1.1       bertrand 7302: 
1.33      bertrand 7303: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
                   7304: #include <sys/sem.h>
                   7305: 
                   7306: "
1.99      bertrand 7307: if test "x$ac_cv_type_union_semun" = x""yes; then :
1.33      bertrand 7308:   SEMUN=-DUNION_SEMUN
                   7309: else
                   7310:   SEMUN=-UUNION_SEMUN
                   7311: fi
                   7312: 
                   7313: 
1.34      bertrand 7314: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35      bertrand 7315: #include <sys/types.h>
1.34      bertrand 7316: #include <netinet/in.h>
                   7317: 
                   7318: "
1.99      bertrand 7319: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
1.34      bertrand 7320:   IPV6=-DIPV6
                   7321: else
                   7322:   IPV6=-UIPV6
                   7323: fi
                   7324: 
                   7325: 
1.15      bertrand 7326: if test "$CYGWIN" != yes; then
                   7327:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
                   7328: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.99      bertrand 7329: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
1.15      bertrand 7330:   $as_echo_n "(cached) " >&6
1.1       bertrand 7331: else
1.15      bertrand 7332:   ac_check_lib_save_LIBS=$LIBS
                   7333: LIBS="-ldl  $LIBS"
                   7334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7335: /* end confdefs.h.  */
                   7336: 
1.15      bertrand 7337: /* Override any GCC internal prototype to avoid an error.
                   7338:    Use char because int might match the return type of a GCC
                   7339:    builtin and then its argument prototype would still apply.  */
                   7340: #ifdef __cplusplus
                   7341: extern "C"
                   7342: #endif
                   7343: char dlopen ();
1.1       bertrand 7344: int
                   7345: main ()
                   7346: {
1.15      bertrand 7347: return dlopen ();
1.1       bertrand 7348:   ;
                   7349:   return 0;
                   7350: }
                   7351: _ACEOF
1.15      bertrand 7352: if ac_fn_c_try_link "$LINENO"; then :
                   7353:   ac_cv_lib_dl_dlopen=yes
1.1       bertrand 7354: else
1.15      bertrand 7355:   ac_cv_lib_dl_dlopen=no
                   7356: fi
                   7357: rm -f core conftest.err conftest.$ac_objext \
                   7358:     conftest$ac_exeext conftest.$ac_ext
                   7359: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7360: fi
1.15      bertrand 7361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
                   7362: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.99      bertrand 7363: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1.15      bertrand 7364:   LIBS="$LIBS -ldl"
1.14      bertrand 7365: else
1.15      bertrand 7366:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
                   7367: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7368: fi
                   7369: 
1.14      bertrand 7370: fi
1.1       bertrand 7371: 
1.15      bertrand 7372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
                   7373: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.99      bertrand 7374: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
1.15      bertrand 7375:   $as_echo_n "(cached) " >&6
                   7376: else
                   7377:   ac_check_lib_save_LIBS=$LIBS
                   7378: LIBS="-lrt  $LIBS"
                   7379: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7380: /* end confdefs.h.  */
1.15      bertrand 7381: 
                   7382: /* Override any GCC internal prototype to avoid an error.
                   7383:    Use char because int might match the return type of a GCC
                   7384:    builtin and then its argument prototype would still apply.  */
                   7385: #ifdef __cplusplus
                   7386: extern "C"
                   7387: #endif
                   7388: char nanosleep ();
1.1       bertrand 7389: int
                   7390: main ()
                   7391: {
1.15      bertrand 7392: return nanosleep ();
1.1       bertrand 7393:   ;
                   7394:   return 0;
                   7395: }
                   7396: _ACEOF
1.15      bertrand 7397: if ac_fn_c_try_link "$LINENO"; then :
                   7398:   ac_cv_lib_rt_nanosleep=yes
                   7399: else
                   7400:   ac_cv_lib_rt_nanosleep=no
                   7401: fi
                   7402: rm -f core conftest.err conftest.$ac_objext \
                   7403:     conftest$ac_exeext conftest.$ac_ext
                   7404: LIBS=$ac_check_lib_save_LIBS
                   7405: fi
                   7406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
                   7407: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.99      bertrand 7408: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
1.15      bertrand 7409:   LIBS="$LIBS -lrt"
1.1       bertrand 7410: else
1.15      bertrand 7411:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
                   7412: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
                   7413: fi
1.1       bertrand 7414: 
                   7415: 
1.15      bertrand 7416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
                   7417: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.99      bertrand 7418: if test "${ac_cv_lib_socket_bind+set}" = set; then :
1.15      bertrand 7419:   $as_echo_n "(cached) " >&6
1.1       bertrand 7420: else
1.15      bertrand 7421:   ac_check_lib_save_LIBS=$LIBS
                   7422: LIBS="-lsocket  $LIBS"
                   7423: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7424: /* end confdefs.h.  */
1.15      bertrand 7425: 
                   7426: /* Override any GCC internal prototype to avoid an error.
                   7427:    Use char because int might match the return type of a GCC
                   7428:    builtin and then its argument prototype would still apply.  */
                   7429: #ifdef __cplusplus
                   7430: extern "C"
                   7431: #endif
                   7432: char bind ();
1.1       bertrand 7433: int
                   7434: main ()
                   7435: {
1.15      bertrand 7436: return bind ();
1.1       bertrand 7437:   ;
                   7438:   return 0;
                   7439: }
                   7440: _ACEOF
1.15      bertrand 7441: if ac_fn_c_try_link "$LINENO"; then :
                   7442:   ac_cv_lib_socket_bind=yes
1.1       bertrand 7443: else
1.15      bertrand 7444:   ac_cv_lib_socket_bind=no
1.1       bertrand 7445: fi
1.15      bertrand 7446: rm -f core conftest.err conftest.$ac_objext \
                   7447:     conftest$ac_exeext conftest.$ac_ext
                   7448: LIBS=$ac_check_lib_save_LIBS
1.1       bertrand 7449: fi
1.15      bertrand 7450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
                   7451: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.99      bertrand 7452: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
1.15      bertrand 7453:   LIBS="$LIBS -lsocket"
                   7454: else
                   7455:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
                   7456: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1       bertrand 7457: fi
                   7458: 
                   7459: 
1.15      bertrand 7460: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7461: 
                   7462: # Check whether --with-mysql was given.
                   7463: if test "${with_mysql+set}" = set; then :
                   7464:   withval=$with_mysql;
                   7465: else
                   7466:   with_mysql=check
                   7467: fi
1.14      bertrand 7468: 
                   7469: 
1.15      bertrand 7470: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                   7471:    libMySQLinc="-I/usr/include"
1.30      bertrand 7472:    libMySQLlib="/usr/lib"
1.14      bertrand 7473: 
1.15      bertrand 7474:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
                   7475: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
                   7476:    saved_CFLAGS="$CFLAGS"
1.30      bertrand 7477:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15      bertrand 7478:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7479: /* end confdefs.h.  */
1.15      bertrand 7480: #include "mysql.h"
1.1       bertrand 7481: int
                   7482: main ()
                   7483: {
1.15      bertrand 7484: 
1.1       bertrand 7485:   ;
                   7486:   return 0;
                   7487: }
                   7488: _ACEOF
1.15      bertrand 7489: if ac_fn_c_try_compile "$LINENO"; then :
                   7490:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7491: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7492:                    libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7493: else
1.15      bertrand 7494:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7495: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7496: fi
1.14      bertrand 7497: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7498:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7499: 
1.15      bertrand 7500:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7501:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
                   7502: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
                   7503:        saved_CFLAGS="$CFLAGS"
                   7504:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7505:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7506: /* end confdefs.h.  */
1.15      bertrand 7507: #include "mysql.h"
1.1       bertrand 7508: int
                   7509: main ()
                   7510: {
                   7511: 
                   7512:   ;
                   7513:   return 0;
                   7514: }
                   7515: _ACEOF
1.15      bertrand 7516: if ac_fn_c_try_compile "$LINENO"; then :
                   7517:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7518: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7519:                        libMySQLinc=$libMySQLinc
                   7520: else
                   7521:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7522: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7523: fi
                   7524: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7525:        CFLAGS=$saved_CFLAGS
                   7526:        libMySQLinc=$libMySQLinc/mysql
                   7527:    fi
                   7528: 
                   7529:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7530:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
                   7531: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
                   7532:        saved_CFLAGS="$CFLAGS"
                   7533:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                   7534:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7535: /* end confdefs.h.  */
1.15      bertrand 7536: #include "mysql.h"
1.1       bertrand 7537: int
                   7538: main ()
                   7539: {
                   7540: 
                   7541:   ;
                   7542:   return 0;
                   7543: }
                   7544: _ACEOF
1.15      bertrand 7545: if ac_fn_c_try_compile "$LINENO"; then :
                   7546:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7547: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7548:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7549: else
1.15      bertrand 7550:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7551: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1       bertrand 7552: fi
                   7553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7554:        CFLAGS=$saved_CFLAGS
                   7555:        libMySQLinc=$libMySQLinc/../local/include
                   7556:        libMySQLlib=$libMySQLlib/../local/lib
                   7557:    fi
1.1       bertrand 7558: 
1.15      bertrand 7559:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7560:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
                   7561: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
                   7562:        saved_CFLAGS="$CFLAGS"
                   7563:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                   7564:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7565: /* end confdefs.h.  */
1.15      bertrand 7566: #include "mysql.h"
1.1       bertrand 7567: int
                   7568: main ()
                   7569: {
                   7570: 
                   7571:   ;
                   7572:   return 0;
                   7573: }
                   7574: _ACEOF
1.15      bertrand 7575: if ac_fn_c_try_compile "$LINENO"; then :
                   7576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7577: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7578:                        libMySQLinc=$libMySQLinc/mysql
                   7579: else
                   7580:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7581: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7582: fi
                   7583: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7584:        CFLAGS=$saved_CFLAGS
                   7585:        libMySQLinc=$libMySQLinc/../local/include/mysql
                   7586:        libMySQLlib=$libMySQLlib/../local/lib
                   7587:    fi
                   7588: else
                   7589:    if test "x$with_mysql" != xno; then
                   7590:        libMySQLinc="-I$with_mysql/include"
1.30      bertrand 7591:        libMySQLlib="$with_mysql/lib"
1.15      bertrand 7592: 
                   7593:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
                   7594: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
                   7595:        saved_CFLAGS="$CFLAGS"
                   7596:        CFLAGS="$CFLAGS $libMySQLinc"
                   7597:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7598: /* end confdefs.h.  */
1.15      bertrand 7599: #include "mysql.h"
1.1       bertrand 7600: int
                   7601: main ()
                   7602: {
                   7603: 
                   7604:   ;
                   7605:   return 0;
                   7606: }
                   7607: _ACEOF
1.15      bertrand 7608: if ac_fn_c_try_compile "$LINENO"; then :
                   7609:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7610: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7611:                        libMySQLinc=$libMySQLinc/mysql
1.1       bertrand 7612: else
1.15      bertrand 7613:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7614: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14      bertrand 7615: fi
                   7616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7617:        CFLAGS=$saved_CFLAGS
1.1       bertrand 7618: 
1.15      bertrand 7619:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                   7620:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
                   7621: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
                   7622:            saved_CFLAGS="$CFLAGS"
                   7623:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                   7624:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7625: /* end confdefs.h.  */
1.15      bertrand 7626: #include "mysql.h"
1.1       bertrand 7627: int
                   7628: main ()
                   7629: {
                   7630: 
                   7631:   ;
                   7632:   return 0;
                   7633: }
                   7634: _ACEOF
1.15      bertrand 7635: if ac_fn_c_try_compile "$LINENO"; then :
                   7636:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7637: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                   7638:                            libMySQLinc=$libMySQLinc
1.1       bertrand 7639: else
1.15      bertrand 7640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7641: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7642: fi
                   7643: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7644:            CFLAGS=$saved_CFLAGS
                   7645:            libMySQLinc=$libMySQLinc/mysql
                   7646:        fi
                   7647:    else
                   7648:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7649:    fi
                   7650: fi
1.14      bertrand 7651: 
1.15      bertrand 7652: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                   7653:    MYSQL_LIB=no
1.14      bertrand 7654: 
1.102   ! bertrand 7655: 
1.15      bertrand 7656:    if test $MYSQL_LIB = no; then
                   7657:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
                   7658: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
                   7659:        saved_LIBS="$LIBS"
1.30      bertrand 7660:        if test $STATIC = no; then
                   7661:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                   7662:        else
                   7663:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                   7664:        fi
1.15      bertrand 7665:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7666: /* end confdefs.h.  */
1.15      bertrand 7667: #include "mysql.h"
1.1       bertrand 7668: int
                   7669: main ()
                   7670: {
1.15      bertrand 7671: MYSQL mysql; mysql_init(&mysql);
1.1       bertrand 7672:   ;
                   7673:   return 0;
                   7674: }
                   7675: _ACEOF
1.15      bertrand 7676: if ac_fn_c_try_link "$LINENO"; then :
                   7677:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7678: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1       bertrand 7679: else
1.15      bertrand 7680:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7681: $as_echo "no" >&6; }; MYSQL_LIB="no"
                   7682: fi
                   7683: rm -f core conftest.err conftest.$ac_objext \
                   7684:     conftest$ac_exeext conftest.$ac_ext
                   7685:        LIBS=$saved_LIBS;
1.30      bertrand 7686:        if test $STATIC = no; then
                   7687:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                   7688:        else
                   7689:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                   7690:            EXT_SQL="$EXT_SQL $libMySQLlib"
                   7691:        fi
1.15      bertrand 7692:    fi
1.14      bertrand 7693: 
1.15      bertrand 7694:    if test $MYSQL_LIB = no; then
                   7695:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                   7696:    fi
1.14      bertrand 7697: fi
1.15      bertrand 7698: 
1.102   ! bertrand 7699: DEBMYSQL=
        !          7700: 
1.15      bertrand 7701: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                   7702:    libMySQLinc=
                   7703:    libMySQLlib=
1.102   ! bertrand 7704: else
        !          7705:    DEBMYSQL=libmysqlclient18
1.1       bertrand 7706: fi
1.14      bertrand 7707: 
                   7708: 
                   7709: 
1.1       bertrand 7710: 
                   7711: 
1.15      bertrand 7712: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                   7713: 
                   7714: # Check whether --with-postgresql was given.
                   7715: if test "${with_postgresql+set}" = set; then :
                   7716:   withval=$with_postgresql;
1.14      bertrand 7717: else
1.15      bertrand 7718:   with_postgresql=check
                   7719: fi
                   7720: 
                   7721: 
                   7722: # with_postgresql : check [pas défini], yes [uniquement --with],
                   7723: # no [--without], valeur [--with=valeur].
                   7724: 
                   7725: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                   7726:    libPgSQLinc="-I/usr/include"
1.30      bertrand 7727:    libPgSQLlib="/usr/lib"
1.15      bertrand 7728: 
                   7729:    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
                   7730: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
                   7731:    saved_CFLAGS="$CFLAGS"
                   7732:    CFLAGS="$CFLAGS $libPgSQLinc"
                   7733:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7734: /* end confdefs.h.  */
1.15      bertrand 7735: #include "libpq-fe.h"
1.1       bertrand 7736: int
                   7737: main ()
                   7738: {
1.15      bertrand 7739: 
1.1       bertrand 7740:   ;
                   7741:   return 0;
                   7742: }
                   7743: _ACEOF
1.15      bertrand 7744: if ac_fn_c_try_compile "$LINENO"; then :
                   7745:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7746: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7747: else
1.15      bertrand 7748:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7749: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7750: fi
1.14      bertrand 7751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7752:    CFLAGS=$saved_CFLAGS
1.1       bertrand 7753: 
1.15      bertrand 7754:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7755:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
                   7756: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
                   7757:        saved_CFLAGS="$CFLAGS"
                   7758:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7759:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7760: /* end confdefs.h.  */
1.15      bertrand 7761: #include "libpq-fe.h"
1.1       bertrand 7762: int
                   7763: main ()
                   7764: {
                   7765: 
                   7766:   ;
                   7767:   return 0;
                   7768: }
                   7769: _ACEOF
1.15      bertrand 7770: if ac_fn_c_try_compile "$LINENO"; then :
                   7771:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7772: $as_echo "yes" >&6; };
                   7773:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7774: else
                   7775:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7776: $as_echo "no" >&6; };
                   7777:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7778: fi
                   7779: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7780:        CFLAGS=$saved_CFLAGS
                   7781:        libPgSQLinc=$libPgSQLinc/postgresql
                   7782:    fi
                   7783: 
                   7784:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7785:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
                   7786: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
                   7787:        saved_CFLAGS="$CFLAGS"
                   7788:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7789:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7790: /* end confdefs.h.  */
1.15      bertrand 7791: #include "libpq-fe.h"
1.1       bertrand 7792: int
                   7793: main ()
                   7794: {
                   7795: 
                   7796:   ;
                   7797:   return 0;
                   7798: }
                   7799: _ACEOF
1.15      bertrand 7800: if ac_fn_c_try_compile "$LINENO"; then :
                   7801:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7802: $as_echo "yes" >&6; };
                   7803:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7804: else
1.15      bertrand 7805:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7806: $as_echo "no" >&6; };
                   7807:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7808: fi
                   7809: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7810:        CFLAGS=$saved_CFLAGS
                   7811:        libPgSQLinc=$libPgSQLinc/pgsql
                   7812:    fi
1.1       bertrand 7813: 
1.15      bertrand 7814:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7815:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
                   7816: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
                   7817:        saved_CFLAGS="$CFLAGS"
                   7818:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                   7819:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7820: /* end confdefs.h.  */
1.15      bertrand 7821: #include "libpq-fe.h"
1.1       bertrand 7822: int
                   7823: main ()
                   7824: {
                   7825: 
                   7826:   ;
                   7827:   return 0;
                   7828: }
                   7829: _ACEOF
1.15      bertrand 7830: if ac_fn_c_try_compile "$LINENO"; then :
                   7831:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7832: $as_echo "yes" >&6; };
                   7833:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
                   7834: else
                   7835:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7836: $as_echo "no" >&6; };
                   7837:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7838: fi
                   7839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7840:        CFLAGS=$saved_CFLAGS
                   7841:        libPgSQLinc=$libPgSQLinc/../local/include
                   7842:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7843:    fi
                   7844: 
                   7845:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7846:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
                   7847: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
                   7848:        saved_CFLAGS="$CFLAGS"
                   7849:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                   7850:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7851: /* end confdefs.h.  */
1.15      bertrand 7852: #include "libpq-fe.h"
1.1       bertrand 7853: int
                   7854: main ()
                   7855: {
                   7856: 
                   7857:   ;
                   7858:   return 0;
                   7859: }
                   7860: _ACEOF
1.15      bertrand 7861: if ac_fn_c_try_compile "$LINENO"; then :
                   7862:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7863: $as_echo "yes" >&6; };
                   7864:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14      bertrand 7865: else
1.15      bertrand 7866:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7867: $as_echo "no" >&6; };
                   7868:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7869: fi
                   7870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7871:        CFLAGS=$saved_CFLAGS
                   7872:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                   7873:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7874:    fi
1.14      bertrand 7875: 
1.15      bertrand 7876:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7877:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
                   7878: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
                   7879:        saved_CFLAGS="$CFLAGS"
                   7880:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                   7881:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7882: /* end confdefs.h.  */
1.15      bertrand 7883: #include "libpq-fe.h"
1.1       bertrand 7884: int
                   7885: main ()
                   7886: {
                   7887: 
                   7888:   ;
                   7889:   return 0;
                   7890: }
                   7891: _ACEOF
1.15      bertrand 7892: if ac_fn_c_try_compile "$LINENO"; then :
                   7893:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7894: $as_echo "yes" >&6; };
                   7895:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7896: else
1.15      bertrand 7897:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7898: $as_echo "no" >&6; };
                   7899:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7900: fi
                   7901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7902:        CFLAGS=$saved_CFLAGS
                   7903:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                   7904:        libPgSQLlib=$libPgSQLlib/../local/lib
                   7905:    fi
1.14      bertrand 7906: else
1.15      bertrand 7907:    if test "x$with_postgresql" != xno; then
                   7908:        libPgSQLinc="-I$with_postgresql/include"
1.30      bertrand 7909:        libPgSQLlib="$with_postgresql/lib"
1.15      bertrand 7910: 
                   7911:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
                   7912: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
                   7913:        saved_CFLAGS="$CFLAGS"
                   7914:        CFLAGS="$CFLAGS $libPgSQLinc"
                   7915:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7916: /* end confdefs.h.  */
1.15      bertrand 7917: #include "libpq-fe.h"
1.1       bertrand 7918: int
                   7919: main ()
                   7920: {
                   7921: 
                   7922:   ;
                   7923:   return 0;
                   7924: }
                   7925: _ACEOF
1.15      bertrand 7926: if ac_fn_c_try_compile "$LINENO"; then :
                   7927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7928: $as_echo "yes" >&6; };
                   7929:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7930: else
1.15      bertrand 7931:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7932: $as_echo "no" >&6; };
                   7933:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14      bertrand 7934: fi
1.15      bertrand 7935: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7936:        CFLAGS=$saved_CFLAGS
1.14      bertrand 7937: 
1.15      bertrand 7938:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7939:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
                   7940: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
                   7941:            saved_CFLAGS="$CFLAGS"
                   7942:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                   7943:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 7944: /* end confdefs.h.  */
1.15      bertrand 7945: #include "libpq-fe.h"
1.1       bertrand 7946: int
                   7947: main ()
                   7948: {
1.15      bertrand 7949: 
1.1       bertrand 7950:   ;
                   7951:   return 0;
                   7952: }
                   7953: _ACEOF
1.15      bertrand 7954: if ac_fn_c_try_compile "$LINENO"; then :
                   7955:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7956: $as_echo "yes" >&6; };
                   7957:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7958: else
1.15      bertrand 7959:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7960: $as_echo "no" >&6; };
                   7961:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7962: fi
                   7963: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15      bertrand 7964:            CFLAGS=$saved_CFLAGS
                   7965:            libPgSQLinc=$libPgSQLinc/postgresql
                   7966:        fi
1.14      bertrand 7967: 
1.15      bertrand 7968:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                   7969:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
                   7970: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
                   7971:            saved_CFLAGS="$CFLAGS"
                   7972:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                   7973:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 7974: /* end confdefs.h.  */
1.15      bertrand 7975: #include "libpq-fe.h"
1.1       bertrand 7976: int
                   7977: main ()
                   7978: {
1.15      bertrand 7979: 
1.1       bertrand 7980:   ;
                   7981:   return 0;
                   7982: }
                   7983: _ACEOF
1.15      bertrand 7984: if ac_fn_c_try_compile "$LINENO"; then :
                   7985:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7986: $as_echo "yes" >&6; };
                   7987:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1       bertrand 7988: else
1.15      bertrand 7989:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7990: $as_echo "no" >&6; };
                   7991:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1       bertrand 7992: fi
1.15      bertrand 7993: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7994:            CFLAGS=$saved_CFLAGS
                   7995:            libPgSQLinc=$libPgSQLinc/pgsql
                   7996:        fi
                   7997:    else
                   7998:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                   7999:    fi
1.1       bertrand 8000: fi
                   8001: 
1.15      bertrand 8002: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                   8003:    POSTGRESQL_LIB=no
1.1       bertrand 8004: 
1.15      bertrand 8005:    if test $POSTGRESQL_LIB = no; then
                   8006:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
                   8007: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
                   8008:        saved_LIBS="$LIBS"
1.30      bertrand 8009:        if test $STATIC = no; then
                   8010:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                   8011:        else
                   8012:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                   8013:        fi
1.15      bertrand 8014:        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8015: /* end confdefs.h.  */
1.15      bertrand 8016: #include "libpq-fe.h"
1.1       bertrand 8017: int
                   8018: main ()
                   8019: {
1.15      bertrand 8020: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                   8021:             PQconnectdb(conninfo);
1.1       bertrand 8022:   ;
                   8023:   return 0;
                   8024: }
                   8025: _ACEOF
1.15      bertrand 8026: if ac_fn_c_try_link "$LINENO"; then :
                   8027:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   8028: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1       bertrand 8029: else
1.15      bertrand 8030:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8031: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
                   8032: fi
                   8033: rm -f core conftest.err conftest.$ac_objext \
                   8034:     conftest$ac_exeext conftest.$ac_ext
                   8035:        LIBS=$saved_LIBS;
1.30      bertrand 8036:        if test $STATIC = no; then
                   8037:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                   8038:        else
                   8039:            libPgSQLlib="$libPgSQLlib/libpq.a"
                   8040:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                   8041:        fi
1.15      bertrand 8042:    fi
                   8043: fi
                   8044: 
1.102   ! bertrand 8045: DEBPQ=
        !          8046: 
1.15      bertrand 8047: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                   8048:    libPgSQLinc=
                   8049:    libPgSQLlib=
1.102   ! bertrand 8050: else
        !          8051:    DEBPQ=libpq5
1.15      bertrand 8052: fi
                   8053: 
                   8054: 
                   8055: 
                   8056: 
1.14      bertrand 8057: 
1.40      bertrand 8058: # with_postgresql : check [pas défini], yes [uniquement --with],
                   8059: # no [--without], valeur [--with=valeur].
                   8060: 
                   8061: # Check whether --with-bourne_shell was given.
                   8062: if test "${with_bourne_shell+set}" = set; then :
                   8063:   withval=$with_bourne_shell;
                   8064: else
                   8065:   with_bourne_shell=no
                   8066: fi
                   8067: 
                   8068: 
                   8069: if test "x$with_bourne_shell" = xyes; then
                   8070:    as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
                   8071: fi
                   8072: 
                   8073: if test "x$with_bourne_shell" = xno; then
                   8074:    if test $(uname) = "OS/2"; then
1.86      bertrand 8075:        as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
                   8076: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40      bertrand 8077:    fi
                   8078: 
                   8079:    BSH_PATH=
                   8080: else
                   8081:    if test ! -x $with_bourne_shell; then
                   8082:        as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
                   8083:    fi
                   8084: 
                   8085:    if test $(uname) = "OS/2"; then
1.41      bertrand 8086:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                   8087:                sed -e '1,$s/\//\\\\\\\\/g')
                   8088:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40      bertrand 8089:    else
                   8090:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
                   8091: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
                   8092:        BSH_PATH=
                   8093:    fi
                   8094: fi
                   8095: 
1.15      bertrand 8096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   8097: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.99      bertrand 8098: if test "${ac_cv_path_GREP+set}" = set; then :
1.15      bertrand 8099:   $as_echo_n "(cached) " >&6
                   8100: else
                   8101:   if test -z "$GREP"; then
                   8102:   ac_path_GREP_found=false
                   8103:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8104:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8105: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8106: do
                   8107:   IFS=$as_save_IFS
                   8108:   test -z "$as_dir" && as_dir=.
                   8109:     for ac_prog in grep ggrep; do
                   8110:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8111:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   8112:       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   8113: # Check for GNU ac_path_GREP and select it if it is found.
                   8114:   # Check for GNU $ac_path_GREP
                   8115: case `"$ac_path_GREP" --version 2>&1` in
                   8116: *GNU*)
                   8117:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   8118: *)
                   8119:   ac_count=0
                   8120:   $as_echo_n 0123456789 >"conftest.in"
                   8121:   while :
                   8122:   do
                   8123:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8124:     mv "conftest.tmp" "conftest.in"
                   8125:     cp "conftest.in" "conftest.nl"
                   8126:     $as_echo 'GREP' >> "conftest.nl"
                   8127:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8128:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8129:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8130:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   8131:       # Best one so far, save it but keep looking for a better one
                   8132:       ac_cv_path_GREP="$ac_path_GREP"
                   8133:       ac_path_GREP_max=$ac_count
                   8134:     fi
                   8135:     # 10*(2^10) chars as input seems more than enough
                   8136:     test $ac_count -gt 10 && break
                   8137:   done
                   8138:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8139: esac
1.14      bertrand 8140: 
1.15      bertrand 8141:       $ac_path_GREP_found && break 3
                   8142:     done
                   8143:   done
                   8144:   done
                   8145: IFS=$as_save_IFS
                   8146:   if test -z "$ac_cv_path_GREP"; then
1.36      bertrand 8147:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8148:   fi
                   8149: else
                   8150:   ac_cv_path_GREP=$GREP
1.1       bertrand 8151: fi
                   8152: 
                   8153: fi
1.15      bertrand 8154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   8155: $as_echo "$ac_cv_path_GREP" >&6; }
                   8156:  GREP="$ac_cv_path_GREP"
                   8157: 
                   8158: 
                   8159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   8160: $as_echo_n "checking for egrep... " >&6; }
1.99      bertrand 8161: if test "${ac_cv_path_EGREP+set}" = set; then :
1.15      bertrand 8162:   $as_echo_n "(cached) " >&6
                   8163: else
                   8164:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   8165:    then ac_cv_path_EGREP="$GREP -E"
                   8166:    else
                   8167:      if test -z "$EGREP"; then
                   8168:   ac_path_EGREP_found=false
                   8169:   # Loop through the user's path and test for each of PROGNAME-LIST
                   8170:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8171: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   8172: do
                   8173:   IFS=$as_save_IFS
                   8174:   test -z "$as_dir" && as_dir=.
                   8175:     for ac_prog in egrep; do
                   8176:     for ac_exec_ext in '' $ac_executable_extensions; do
                   8177:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   8178:       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   8179: # Check for GNU ac_path_EGREP and select it if it is found.
                   8180:   # Check for GNU $ac_path_EGREP
                   8181: case `"$ac_path_EGREP" --version 2>&1` in
                   8182: *GNU*)
                   8183:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   8184: *)
                   8185:   ac_count=0
                   8186:   $as_echo_n 0123456789 >"conftest.in"
                   8187:   while :
                   8188:   do
                   8189:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   8190:     mv "conftest.tmp" "conftest.in"
                   8191:     cp "conftest.in" "conftest.nl"
                   8192:     $as_echo 'EGREP' >> "conftest.nl"
                   8193:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   8194:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   8195:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   8196:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   8197:       # Best one so far, save it but keep looking for a better one
                   8198:       ac_cv_path_EGREP="$ac_path_EGREP"
                   8199:       ac_path_EGREP_max=$ac_count
                   8200:     fi
                   8201:     # 10*(2^10) chars as input seems more than enough
                   8202:     test $ac_count -gt 10 && break
                   8203:   done
                   8204:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   8205: esac
                   8206: 
                   8207:       $ac_path_EGREP_found && break 3
                   8208:     done
                   8209:   done
                   8210:   done
                   8211: IFS=$as_save_IFS
                   8212:   if test -z "$ac_cv_path_EGREP"; then
1.36      bertrand 8213:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15      bertrand 8214:   fi
1.1       bertrand 8215: else
1.15      bertrand 8216:   ac_cv_path_EGREP=$EGREP
1.1       bertrand 8217: fi
                   8218: 
1.15      bertrand 8219:    fi
1.1       bertrand 8220: fi
1.15      bertrand 8221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   8222: $as_echo "$ac_cv_path_EGREP" >&6; }
                   8223:  EGREP="$ac_cv_path_EGREP"
1.1       bertrand 8224: 
                   8225: 
1.15      bertrand 8226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8227: $as_echo_n "checking for ANSI C header files... " >&6; }
1.99      bertrand 8228: if test "${ac_cv_header_stdc+set}" = set; then :
1.15      bertrand 8229:   $as_echo_n "(cached) " >&6
1.1       bertrand 8230: else
1.15      bertrand 8231:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8232: /* end confdefs.h.  */
                   8233: #include <stdlib.h>
                   8234: #include <stdarg.h>
                   8235: #include <string.h>
                   8236: #include <float.h>
                   8237: 
                   8238: int
                   8239: main ()
                   8240: {
                   8241: 
                   8242:   ;
                   8243:   return 0;
                   8244: }
                   8245: _ACEOF
1.15      bertrand 8246: if ac_fn_c_try_compile "$LINENO"; then :
1.1       bertrand 8247:   ac_cv_header_stdc=yes
                   8248: else
1.15      bertrand 8249:   ac_cv_header_stdc=no
1.1       bertrand 8250: fi
                   8251: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8252: 
                   8253: if test $ac_cv_header_stdc = yes; then
                   8254:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15      bertrand 8255:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8256: /* end confdefs.h.  */
                   8257: #include <string.h>
                   8258: 
                   8259: _ACEOF
                   8260: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8261:   $EGREP "memchr" >/dev/null 2>&1; then :
                   8262: 
1.1       bertrand 8263: else
                   8264:   ac_cv_header_stdc=no
                   8265: fi
                   8266: rm -f conftest*
                   8267: 
                   8268: fi
                   8269: 
                   8270: if test $ac_cv_header_stdc = yes; then
                   8271:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15      bertrand 8272:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8273: /* end confdefs.h.  */
                   8274: #include <stdlib.h>
                   8275: 
                   8276: _ACEOF
                   8277: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15      bertrand 8278:   $EGREP "free" >/dev/null 2>&1; then :
                   8279: 
1.1       bertrand 8280: else
                   8281:   ac_cv_header_stdc=no
                   8282: fi
                   8283: rm -f conftest*
                   8284: 
                   8285: fi
                   8286: 
                   8287: if test $ac_cv_header_stdc = yes; then
                   8288:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15      bertrand 8289:   if test "$cross_compiling" = yes; then :
1.1       bertrand 8290:   :
                   8291: else
1.15      bertrand 8292:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8293: /* end confdefs.h.  */
                   8294: #include <ctype.h>
                   8295: #include <stdlib.h>
                   8296: #if ((' ' & 0x0FF) == 0x020)
                   8297: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8298: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8299: #else
                   8300: # define ISLOWER(c) \
                   8301:           (('a' <= (c) && (c) <= 'i') \
                   8302:             || ('j' <= (c) && (c) <= 'r') \
                   8303:             || ('s' <= (c) && (c) <= 'z'))
                   8304: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8305: #endif
                   8306: 
                   8307: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   8308: int
                   8309: main ()
                   8310: {
                   8311:   int i;
                   8312:   for (i = 0; i < 256; i++)
                   8313:     if (XOR (islower (i), ISLOWER (i))
                   8314:    || toupper (i) != TOUPPER (i))
                   8315:       return 2;
                   8316:   return 0;
                   8317: }
                   8318: _ACEOF
1.15      bertrand 8319: if ac_fn_c_try_run "$LINENO"; then :
                   8320: 
1.14      bertrand 8321: else
1.15      bertrand 8322:   ac_cv_header_stdc=no
                   8323: fi
                   8324: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8325:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8326: fi
1.1       bertrand 8327: 
                   8328: fi
                   8329: fi
1.15      bertrand 8330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8331: $as_echo "$ac_cv_header_stdc" >&6; }
                   8332: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8333: 
1.15      bertrand 8334: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14      bertrand 8335: 
1.1       bertrand 8336: fi
                   8337: 
1.15      bertrand 8338: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   8339: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   8340:          inttypes.h stdint.h unistd.h
                   8341: do :
                   8342:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8343: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   8344: "
1.36      bertrand 8345: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8346:   cat >>confdefs.h <<_ACEOF
                   8347: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14      bertrand 8348: _ACEOF
1.1       bertrand 8349: 
                   8350: fi
                   8351: 
1.15      bertrand 8352: done
                   8353: 
                   8354: 
                   8355: # The cast to long int works around a bug in the HP C Compiler
                   8356: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8357: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8358: # This bug is HP SR number 8606223364.
                   8359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
                   8360: $as_echo_n "checking size of void *... " >&6; }
1.99      bertrand 8361: if test "${ac_cv_sizeof_void_p+set}" = set; then :
1.15      bertrand 8362:   $as_echo_n "(cached) " >&6
                   8363: else
                   8364:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
1.14      bertrand 8365: 
                   8366: else
1.15      bertrand 8367:   if test "$ac_cv_type_void_p" = yes; then
                   8368:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8369: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8370: as_fn_error 77 "cannot compute sizeof (void *)
1.99      bertrand 8371: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8372:    else
                   8373:      ac_cv_sizeof_void_p=0
                   8374:    fi
                   8375: fi
1.1       bertrand 8376: 
                   8377: fi
1.15      bertrand 8378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
                   8379: $as_echo "$ac_cv_sizeof_void_p" >&6; }
                   8380: 
1.1       bertrand 8381: 
                   8382: 
1.15      bertrand 8383: cat >>confdefs.h <<_ACEOF
                   8384: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14      bertrand 8385: _ACEOF
1.1       bertrand 8386: 
1.15      bertrand 8387: 
                   8388: # The cast to long int works around a bug in the HP C Compiler
                   8389: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8390: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8391: # This bug is HP SR number 8606223364.
                   8392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
                   8393: $as_echo_n "checking size of char... " >&6; }
1.99      bertrand 8394: if test "${ac_cv_sizeof_char+set}" = set; then :
1.15      bertrand 8395:   $as_echo_n "(cached) " >&6
                   8396: else
                   8397:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
                   8398: 
                   8399: else
                   8400:   if test "$ac_cv_type_char" = yes; then
                   8401:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8402: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8403: as_fn_error 77 "cannot compute sizeof (char)
1.99      bertrand 8404: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8405:    else
                   8406:      ac_cv_sizeof_char=0
                   8407:    fi
                   8408: fi
                   8409: 
1.1       bertrand 8410: fi
1.15      bertrand 8411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
                   8412: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1       bertrand 8413: 
                   8414: 
                   8415: 
1.15      bertrand 8416: cat >>confdefs.h <<_ACEOF
                   8417: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   8418: _ACEOF
1.1       bertrand 8419: 
                   8420: 
1.15      bertrand 8421: # The cast to long int works around a bug in the HP C Compiler
                   8422: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8423: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8424: # This bug is HP SR number 8606223364.
                   8425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
                   8426: $as_echo_n "checking size of short int... " >&6; }
1.99      bertrand 8427: if test "${ac_cv_sizeof_short_int+set}" = set; then :
1.15      bertrand 8428:   $as_echo_n "(cached) " >&6
                   8429: else
                   8430:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
1.1       bertrand 8431: 
1.15      bertrand 8432: else
                   8433:   if test "$ac_cv_type_short_int" = yes; then
                   8434:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8435: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8436: as_fn_error 77 "cannot compute sizeof (short int)
1.99      bertrand 8437: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8438:    else
                   8439:      ac_cv_sizeof_short_int=0
                   8440:    fi
                   8441: fi
1.1       bertrand 8442: 
1.15      bertrand 8443: fi
                   8444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
                   8445: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1       bertrand 8446: 
                   8447: 
                   8448: 
1.15      bertrand 8449: cat >>confdefs.h <<_ACEOF
                   8450: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
                   8451: _ACEOF
1.1       bertrand 8452: 
                   8453: 
1.15      bertrand 8454: # The cast to long int works around a bug in the HP C Compiler
                   8455: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8456: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8457: # This bug is HP SR number 8606223364.
                   8458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   8459: $as_echo_n "checking size of int... " >&6; }
1.99      bertrand 8460: if test "${ac_cv_sizeof_int+set}" = set; then :
1.15      bertrand 8461:   $as_echo_n "(cached) " >&6
                   8462: else
                   8463:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
1.1       bertrand 8464: 
1.15      bertrand 8465: else
                   8466:   if test "$ac_cv_type_int" = yes; then
                   8467:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8468: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8469: as_fn_error 77 "cannot compute sizeof (int)
1.99      bertrand 8470: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8471:    else
                   8472:      ac_cv_sizeof_int=0
                   8473:    fi
                   8474: fi
1.1       bertrand 8475: 
1.15      bertrand 8476: fi
                   8477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   8478: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1       bertrand 8479: 
                   8480: 
                   8481: 
1.15      bertrand 8482: cat >>confdefs.h <<_ACEOF
                   8483: #define SIZEOF_INT $ac_cv_sizeof_int
                   8484: _ACEOF
1.1       bertrand 8485: 
                   8486: 
1.15      bertrand 8487: # The cast to long int works around a bug in the HP C Compiler
                   8488: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8489: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8490: # This bug is HP SR number 8606223364.
                   8491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
                   8492: $as_echo_n "checking size of long int... " >&6; }
1.99      bertrand 8493: if test "${ac_cv_sizeof_long_int+set}" = set; then :
1.15      bertrand 8494:   $as_echo_n "(cached) " >&6
                   8495: else
                   8496:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
1.1       bertrand 8497: 
1.14      bertrand 8498: else
1.15      bertrand 8499:   if test "$ac_cv_type_long_int" = yes; then
                   8500:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8501: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8502: as_fn_error 77 "cannot compute sizeof (long int)
1.99      bertrand 8503: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8504:    else
                   8505:      ac_cv_sizeof_long_int=0
                   8506:    fi
                   8507: fi
1.1       bertrand 8508: 
                   8509: fi
1.15      bertrand 8510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
                   8511: $as_echo "$ac_cv_sizeof_long_int" >&6; }
                   8512: 
1.1       bertrand 8513: 
                   8514: 
1.15      bertrand 8515: cat >>confdefs.h <<_ACEOF
                   8516: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14      bertrand 8517: _ACEOF
1.15      bertrand 8518: 
                   8519: 
                   8520: # The cast to long int works around a bug in the HP C Compiler
                   8521: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8522: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8523: # This bug is HP SR number 8606223364.
                   8524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
                   8525: $as_echo_n "checking size of long long int... " >&6; }
1.99      bertrand 8526: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
1.15      bertrand 8527:   $as_echo_n "(cached) " >&6
                   8528: else
                   8529:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
                   8530: 
1.14      bertrand 8531: else
1.15      bertrand 8532:   if test "$ac_cv_type_long_long_int" = yes; then
                   8533:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8534: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8535: as_fn_error 77 "cannot compute sizeof (long long int)
1.99      bertrand 8536: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8537:    else
                   8538:      ac_cv_sizeof_long_long_int=0
                   8539:    fi
                   8540: fi
1.1       bertrand 8541: 
1.14      bertrand 8542: fi
1.15      bertrand 8543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
                   8544: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
                   8545: 
                   8546: 
                   8547: 
                   8548: cat >>confdefs.h <<_ACEOF
                   8549: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
                   8550: _ACEOF
1.1       bertrand 8551: 
                   8552: 
1.15      bertrand 8553: # The cast to long int works around a bug in the HP C Compiler
                   8554: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8555: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8556: # This bug is HP SR number 8606223364.
                   8557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
                   8558: $as_echo_n "checking size of float... " >&6; }
1.99      bertrand 8559: if test "${ac_cv_sizeof_float+set}" = set; then :
1.15      bertrand 8560:   $as_echo_n "(cached) " >&6
                   8561: else
                   8562:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
1.1       bertrand 8563: 
                   8564: else
1.15      bertrand 8565:   if test "$ac_cv_type_float" = yes; then
                   8566:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8567: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8568: as_fn_error 77 "cannot compute sizeof (float)
1.99      bertrand 8569: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8570:    else
                   8571:      ac_cv_sizeof_float=0
                   8572:    fi
1.14      bertrand 8573: fi
                   8574: 
1.1       bertrand 8575: fi
1.15      bertrand 8576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
                   8577: $as_echo "$ac_cv_sizeof_float" >&6; }
                   8578: 
                   8579: 
                   8580: 
                   8581: cat >>confdefs.h <<_ACEOF
                   8582: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14      bertrand 8583: _ACEOF
1.1       bertrand 8584: 
                   8585: 
1.15      bertrand 8586: # The cast to long int works around a bug in the HP C Compiler
                   8587: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8588: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8589: # This bug is HP SR number 8606223364.
                   8590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
                   8591: $as_echo_n "checking size of double... " >&6; }
1.99      bertrand 8592: if test "${ac_cv_sizeof_double+set}" = set; then :
1.15      bertrand 8593:   $as_echo_n "(cached) " >&6
                   8594: else
                   8595:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
1.1       bertrand 8596: 
1.15      bertrand 8597: else
                   8598:   if test "$ac_cv_type_double" = yes; then
                   8599:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8600: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8601: as_fn_error 77 "cannot compute sizeof (double)
1.99      bertrand 8602: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8603:    else
                   8604:      ac_cv_sizeof_double=0
                   8605:    fi
                   8606: fi
1.1       bertrand 8607: 
1.15      bertrand 8608: fi
                   8609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
                   8610: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14      bertrand 8611: 
1.1       bertrand 8612: 
                   8613: 
1.15      bertrand 8614: cat >>confdefs.h <<_ACEOF
                   8615: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14      bertrand 8616: _ACEOF
1.15      bertrand 8617: 
                   8618: 
                   8619: # The cast to long int works around a bug in the HP C Compiler
                   8620: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   8621: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   8622: # This bug is HP SR number 8606223364.
                   8623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
                   8624: $as_echo_n "checking size of long double... " >&6; }
1.99      bertrand 8625: if test "${ac_cv_sizeof_long_double+set}" = set; then :
1.15      bertrand 8626:   $as_echo_n "(cached) " >&6
                   8627: else
                   8628:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
                   8629: 
1.14      bertrand 8630: else
1.15      bertrand 8631:   if test "$ac_cv_type_long_double" = yes; then
                   8632:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   8633: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36      bertrand 8634: as_fn_error 77 "cannot compute sizeof (long double)
1.99      bertrand 8635: See \`config.log' for more details" "$LINENO" 5 ; }
1.15      bertrand 8636:    else
                   8637:      ac_cv_sizeof_long_double=0
                   8638:    fi
                   8639: fi
1.1       bertrand 8640: 
                   8641: fi
1.15      bertrand 8642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
                   8643: $as_echo "$ac_cv_sizeof_long_double" >&6; }
                   8644: 
1.1       bertrand 8645: 
                   8646: 
1.15      bertrand 8647: cat >>confdefs.h <<_ACEOF
                   8648: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1       bertrand 8649: _ACEOF
                   8650: 
                   8651: 
1.15      bertrand 8652: 
                   8653: ac_header_dirent=no
                   8654: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   8655:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   8656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   8657: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.99      bertrand 8658: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15      bertrand 8659:   $as_echo_n "(cached) " >&6
1.1       bertrand 8660: else
1.15      bertrand 8661:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 8662: /* end confdefs.h.  */
                   8663: #include <sys/types.h>
1.15      bertrand 8664: #include <$ac_hdr>
1.1       bertrand 8665: 
1.15      bertrand 8666: int
                   8667: main ()
                   8668: {
                   8669: if ((DIR *) 0)
                   8670: return 0;
                   8671:   ;
                   8672:   return 0;
                   8673: }
1.1       bertrand 8674: _ACEOF
1.15      bertrand 8675: if ac_fn_c_try_compile "$LINENO"; then :
                   8676:   eval "$as_ac_Header=yes"
1.1       bertrand 8677: else
1.15      bertrand 8678:   eval "$as_ac_Header=no"
                   8679: fi
                   8680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 8681: fi
1.15      bertrand 8682: eval ac_res=\$$as_ac_Header
                   8683:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   8684: $as_echo "$ac_res" >&6; }
1.36      bertrand 8685: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8686:   cat >>confdefs.h <<_ACEOF
                   8687: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   8688: _ACEOF
1.1       bertrand 8689: 
1.15      bertrand 8690: ac_header_dirent=$ac_hdr; break
1.1       bertrand 8691: fi
                   8692: 
1.15      bertrand 8693: done
                   8694: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   8695: if test $ac_header_dirent = dirent.h; then
                   8696:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8697: $as_echo_n "checking for library containing opendir... " >&6; }
1.99      bertrand 8698: if test "${ac_cv_search_opendir+set}" = set; then :
1.15      bertrand 8699:   $as_echo_n "(cached) " >&6
                   8700: else
                   8701:   ac_func_search_save_LIBS=$LIBS
                   8702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8703: /* end confdefs.h.  */
                   8704: 
                   8705: /* Override any GCC internal prototype to avoid an error.
                   8706:    Use char because int might match the return type of a GCC
                   8707:    builtin and then its argument prototype would still apply.  */
                   8708: #ifdef __cplusplus
                   8709: extern "C"
                   8710: #endif
                   8711: char opendir ();
                   8712: int
                   8713: main ()
                   8714: {
                   8715: return opendir ();
                   8716:   ;
                   8717:   return 0;
                   8718: }
1.14      bertrand 8719: _ACEOF
1.15      bertrand 8720: for ac_lib in '' dir; do
                   8721:   if test -z "$ac_lib"; then
                   8722:     ac_res="none required"
                   8723:   else
                   8724:     ac_res=-l$ac_lib
                   8725:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8726:   fi
                   8727:   if ac_fn_c_try_link "$LINENO"; then :
                   8728:   ac_cv_search_opendir=$ac_res
                   8729: fi
                   8730: rm -f core conftest.err conftest.$ac_objext \
                   8731:     conftest$ac_exeext
1.99      bertrand 8732:   if test "${ac_cv_search_opendir+set}" = set; then :
1.15      bertrand 8733:   break
                   8734: fi
                   8735: done
1.99      bertrand 8736: if test "${ac_cv_search_opendir+set}" = set; then :
1.1       bertrand 8737: 
1.15      bertrand 8738: else
                   8739:   ac_cv_search_opendir=no
                   8740: fi
                   8741: rm conftest.$ac_ext
                   8742: LIBS=$ac_func_search_save_LIBS
                   8743: fi
                   8744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8745: $as_echo "$ac_cv_search_opendir" >&6; }
                   8746: ac_res=$ac_cv_search_opendir
                   8747: if test "$ac_res" != no; then :
                   8748:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       bertrand 8749: 
1.14      bertrand 8750: fi
1.1       bertrand 8751: 
                   8752: else
1.15      bertrand 8753:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   8754: $as_echo_n "checking for library containing opendir... " >&6; }
1.99      bertrand 8755: if test "${ac_cv_search_opendir+set}" = set; then :
1.15      bertrand 8756:   $as_echo_n "(cached) " >&6
                   8757: else
                   8758:   ac_func_search_save_LIBS=$LIBS
                   8759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8760: /* end confdefs.h.  */
1.15      bertrand 8761: 
                   8762: /* Override any GCC internal prototype to avoid an error.
                   8763:    Use char because int might match the return type of a GCC
                   8764:    builtin and then its argument prototype would still apply.  */
                   8765: #ifdef __cplusplus
                   8766: extern "C"
                   8767: #endif
                   8768: char opendir ();
1.1       bertrand 8769: int
                   8770: main ()
                   8771: {
1.15      bertrand 8772: return opendir ();
1.1       bertrand 8773:   ;
                   8774:   return 0;
                   8775: }
                   8776: _ACEOF
1.15      bertrand 8777: for ac_lib in '' x; do
                   8778:   if test -z "$ac_lib"; then
                   8779:     ac_res="none required"
                   8780:   else
                   8781:     ac_res=-l$ac_lib
                   8782:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   8783:   fi
                   8784:   if ac_fn_c_try_link "$LINENO"; then :
                   8785:   ac_cv_search_opendir=$ac_res
                   8786: fi
                   8787: rm -f core conftest.err conftest.$ac_objext \
                   8788:     conftest$ac_exeext
1.99      bertrand 8789:   if test "${ac_cv_search_opendir+set}" = set; then :
1.15      bertrand 8790:   break
                   8791: fi
                   8792: done
1.99      bertrand 8793: if test "${ac_cv_search_opendir+set}" = set; then :
1.15      bertrand 8794: 
1.1       bertrand 8795: else
1.15      bertrand 8796:   ac_cv_search_opendir=no
                   8797: fi
                   8798: rm conftest.$ac_ext
                   8799: LIBS=$ac_func_search_save_LIBS
1.1       bertrand 8800: fi
1.15      bertrand 8801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   8802: $as_echo "$ac_cv_search_opendir" >&6; }
                   8803: ac_res=$ac_cv_search_opendir
                   8804: if test "$ac_res" != no; then :
                   8805:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14      bertrand 8806: 
1.1       bertrand 8807: fi
                   8808: 
                   8809: fi
                   8810: 
1.15      bertrand 8811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   8812: $as_echo_n "checking for ANSI C header files... " >&6; }
1.99      bertrand 8813: if test "${ac_cv_header_stdc+set}" = set; then :
1.15      bertrand 8814:   $as_echo_n "(cached) " >&6
1.1       bertrand 8815: else
1.15      bertrand 8816:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8817: /* end confdefs.h.  */
1.15      bertrand 8818: #include <stdlib.h>
                   8819: #include <stdarg.h>
                   8820: #include <string.h>
                   8821: #include <float.h>
                   8822: 
1.1       bertrand 8823: int
                   8824: main ()
                   8825: {
1.15      bertrand 8826: 
1.1       bertrand 8827:   ;
                   8828:   return 0;
                   8829: }
                   8830: _ACEOF
1.15      bertrand 8831: if ac_fn_c_try_compile "$LINENO"; then :
                   8832:   ac_cv_header_stdc=yes
1.14      bertrand 8833: else
1.15      bertrand 8834:   ac_cv_header_stdc=no
                   8835: fi
                   8836: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8837: 
                   8838: if test $ac_cv_header_stdc = yes; then
                   8839:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   8840:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8841: /* end confdefs.h.  */
                   8842: #include <string.h>
                   8843: 
                   8844: _ACEOF
                   8845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8846:   $EGREP "memchr" >/dev/null 2>&1; then :
1.14      bertrand 8847: 
1.15      bertrand 8848: else
                   8849:   ac_cv_header_stdc=no
1.1       bertrand 8850: fi
1.15      bertrand 8851: rm -f conftest*
1.14      bertrand 8852: 
1.1       bertrand 8853: fi
                   8854: 
1.15      bertrand 8855: if test $ac_cv_header_stdc = yes; then
                   8856:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   8857:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8858: /* end confdefs.h.  */
                   8859: #include <stdlib.h>
                   8860: 
1.14      bertrand 8861: _ACEOF
1.15      bertrand 8862: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   8863:   $EGREP "free" >/dev/null 2>&1; then :
                   8864: 
                   8865: else
                   8866:   ac_cv_header_stdc=no
                   8867: fi
                   8868: rm -f conftest*
1.1       bertrand 8869: 
                   8870: fi
                   8871: 
1.15      bertrand 8872: if test $ac_cv_header_stdc = yes; then
                   8873:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   8874:   if test "$cross_compiling" = yes; then :
                   8875:   :
1.1       bertrand 8876: else
1.15      bertrand 8877:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8878: /* end confdefs.h.  */
1.15      bertrand 8879: #include <ctype.h>
                   8880: #include <stdlib.h>
                   8881: #if ((' ' & 0x0FF) == 0x020)
                   8882: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   8883: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   8884: #else
                   8885: # define ISLOWER(c) \
                   8886:           (('a' <= (c) && (c) <= 'i') \
                   8887:             || ('j' <= (c) && (c) <= 'r') \
                   8888:             || ('s' <= (c) && (c) <= 'z'))
                   8889: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   8890: #endif
1.1       bertrand 8891: 
1.15      bertrand 8892: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1       bertrand 8893: int
                   8894: main ()
                   8895: {
1.15      bertrand 8896:   int i;
                   8897:   for (i = 0; i < 256; i++)
                   8898:     if (XOR (islower (i), ISLOWER (i))
                   8899:    || toupper (i) != TOUPPER (i))
                   8900:       return 2;
1.1       bertrand 8901:   return 0;
                   8902: }
                   8903: _ACEOF
1.15      bertrand 8904: if ac_fn_c_try_run "$LINENO"; then :
                   8905: 
1.14      bertrand 8906: else
1.15      bertrand 8907:   ac_cv_header_stdc=no
                   8908: fi
                   8909: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8910:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8911: fi
1.14      bertrand 8912: 
1.1       bertrand 8913: fi
                   8914: fi
1.15      bertrand 8915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   8916: $as_echo "$ac_cv_header_stdc" >&6; }
                   8917: if test $ac_cv_header_stdc = yes; then
1.1       bertrand 8918: 
1.15      bertrand 8919: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1       bertrand 8920: 
                   8921: fi
                   8922: 
1.15      bertrand 8923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   8924: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.99      bertrand 8925: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
1.15      bertrand 8926:   $as_echo_n "(cached) " >&6
1.1       bertrand 8927: else
1.15      bertrand 8928:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8929: /* end confdefs.h.  */
1.14      bertrand 8930: #include <sys/types.h>
1.15      bertrand 8931: #include <sys/wait.h>
                   8932: #ifndef WEXITSTATUS
                   8933: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   8934: #endif
                   8935: #ifndef WIFEXITED
                   8936: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   8937: #endif
1.1       bertrand 8938: 
                   8939: int
                   8940: main ()
                   8941: {
1.15      bertrand 8942:   int s;
                   8943:   wait (&s);
                   8944:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1       bertrand 8945:   ;
                   8946:   return 0;
                   8947: }
                   8948: _ACEOF
1.15      bertrand 8949: if ac_fn_c_try_compile "$LINENO"; then :
                   8950:   ac_cv_header_sys_wait_h=yes
1.1       bertrand 8951: else
1.15      bertrand 8952:   ac_cv_header_sys_wait_h=no
                   8953: fi
                   8954: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8955: fi
                   8956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   8957: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   8958: if test $ac_cv_header_sys_wait_h = yes; then
1.1       bertrand 8959: 
1.15      bertrand 8960: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1       bertrand 8961: 
                   8962: fi
                   8963: 
1.15      bertrand 8964: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                   8965:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                   8966:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
                   8967: do :
                   8968:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   8969: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36      bertrand 8970: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15      bertrand 8971:   cat >>confdefs.h <<_ACEOF
                   8972: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       bertrand 8973: _ACEOF
                   8974: 
                   8975: fi
                   8976: 
1.15      bertrand 8977: done
                   8978: 
1.1       bertrand 8979: 
1.15      bertrand 8980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
                   8981: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.99      bertrand 8982: if test "${ac_cv_c_const+set}" = set; then :
1.15      bertrand 8983:   $as_echo_n "(cached) " >&6
1.1       bertrand 8984: else
1.15      bertrand 8985:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 8986: /* end confdefs.h.  */
                   8987: 
                   8988: int
                   8989: main ()
                   8990: {
1.15      bertrand 8991: /* FIXME: Include the comments suggested by Paul. */
                   8992: #ifndef __cplusplus
                   8993:   /* Ultrix mips cc rejects this.  */
                   8994:   typedef int charset[2];
                   8995:   const charset cs;
                   8996:   /* SunOS 4.1.1 cc rejects this.  */
                   8997:   char const *const *pcpcc;
                   8998:   char **ppc;
                   8999:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   9000:   struct point {int x, y;};
                   9001:   static struct point const zero = {0,0};
                   9002:   /* AIX XL C 1.02.0.0 rejects this.
                   9003:      It does not let you subtract one const X* pointer from another in
                   9004:      an arm of an if-expression whose if-part is not a constant
                   9005:      expression */
                   9006:   const char *g = "string";
                   9007:   pcpcc = &g + (g ? g-g : 0);
                   9008:   /* HPUX 7.0 cc rejects these. */
                   9009:   ++pcpcc;
                   9010:   ppc = (char**) pcpcc;
                   9011:   pcpcc = (char const *const *) ppc;
                   9012:   { /* SCO 3.2v4 cc rejects this.  */
                   9013:     char *t;
                   9014:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   9015: 
                   9016:     *t++ = 0;
                   9017:     if (s) return 0;
                   9018:   }
                   9019:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   9020:     int x[] = {25, 17};
                   9021:     const int *foo = &x[0];
                   9022:     ++foo;
                   9023:   }
                   9024:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   9025:     typedef const int *iptr;
                   9026:     iptr p = 0;
                   9027:     ++p;
                   9028:   }
                   9029:   { /* AIX XL C 1.02.0.0 rejects this saying
                   9030:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   9031:     struct s { int j; const int *ap[3]; };
                   9032:     struct s *b; b->j = 5;
                   9033:   }
                   9034:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   9035:     const int foo = 10;
                   9036:     if (!foo) return 0;
                   9037:   }
                   9038:   return !cs[0] && !zero.x;
                   9039: #endif
                   9040: 
1.14      bertrand 9041:   ;
1.1       bertrand 9042:   return 0;
                   9043: }
                   9044: _ACEOF
1.15      bertrand 9045: if ac_fn_c_try_compile "$LINENO"; then :
                   9046:   ac_cv_c_const=yes
1.14      bertrand 9047: else
1.15      bertrand 9048:   ac_cv_c_const=no
1.1       bertrand 9049: fi
1.14      bertrand 9050: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9051: fi
1.15      bertrand 9052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
                   9053: $as_echo "$ac_cv_c_const" >&6; }
                   9054: if test $ac_cv_c_const = no; then
1.1       bertrand 9055: 
1.15      bertrand 9056: $as_echo "#define const /**/" >>confdefs.h
1.1       bertrand 9057: 
1.15      bertrand 9058: fi
1.1       bertrand 9059: 
1.15      bertrand 9060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   9061: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.99      bertrand 9062: if test "${ac_cv_type_uid_t+set}" = set; then :
1.15      bertrand 9063:   $as_echo_n "(cached) " >&6
1.1       bertrand 9064: else
1.15      bertrand 9065:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9066: /* end confdefs.h.  */
1.15      bertrand 9067: #include <sys/types.h>
                   9068: 
1.1       bertrand 9069: _ACEOF
1.15      bertrand 9070: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   9071:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   9072:   ac_cv_type_uid_t=yes
1.1       bertrand 9073: else
1.15      bertrand 9074:   ac_cv_type_uid_t=no
                   9075: fi
                   9076: rm -f conftest*
1.14      bertrand 9077: 
1.1       bertrand 9078: fi
1.15      bertrand 9079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   9080: $as_echo "$ac_cv_type_uid_t" >&6; }
                   9081: if test $ac_cv_type_uid_t = no; then
1.1       bertrand 9082: 
1.15      bertrand 9083: $as_echo "#define uid_t int" >>confdefs.h
1.1       bertrand 9084: 
                   9085: 
1.15      bertrand 9086: $as_echo "#define gid_t int" >>confdefs.h
1.1       bertrand 9087: 
                   9088: fi
                   9089: 
1.15      bertrand 9090: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.99      bertrand 9091: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1       bertrand 9092: 
                   9093: else
1.15      bertrand 9094: 
                   9095: cat >>confdefs.h <<_ACEOF
                   9096: #define pid_t int
1.14      bertrand 9097: _ACEOF
                   9098: 
1.15      bertrand 9099: fi
1.14      bertrand 9100: 
1.15      bertrand 9101: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.99      bertrand 9102: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14      bertrand 9103: 
1.15      bertrand 9104: else
1.1       bertrand 9105: 
1.15      bertrand 9106: cat >>confdefs.h <<_ACEOF
                   9107: #define size_t unsigned int
1.1       bertrand 9108: _ACEOF
1.14      bertrand 9109: 
1.1       bertrand 9110: fi
                   9111: 
1.15      bertrand 9112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   9113: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.99      bertrand 9114: if test "${ac_cv_header_time+set}" = set; then :
1.15      bertrand 9115:   $as_echo_n "(cached) " >&6
1.1       bertrand 9116: else
1.15      bertrand 9117:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9118: /* end confdefs.h.  */
1.15      bertrand 9119: #include <sys/types.h>
                   9120: #include <sys/time.h>
                   9121: #include <time.h>
1.1       bertrand 9122: 
1.14      bertrand 9123: int
                   9124: main ()
                   9125: {
1.15      bertrand 9126: if ((struct tm *) 0)
                   9127: return 0;
1.14      bertrand 9128:   ;
                   9129:   return 0;
                   9130: }
1.1       bertrand 9131: _ACEOF
1.15      bertrand 9132: if ac_fn_c_try_compile "$LINENO"; then :
                   9133:   ac_cv_header_time=yes
1.1       bertrand 9134: else
1.15      bertrand 9135:   ac_cv_header_time=no
1.1       bertrand 9136: fi
1.15      bertrand 9137: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9138: fi
1.15      bertrand 9139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   9140: $as_echo "$ac_cv_header_time" >&6; }
                   9141: if test $ac_cv_header_time = yes; then
1.1       bertrand 9142: 
1.15      bertrand 9143: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1       bertrand 9144: 
                   9145: fi
                   9146: 
1.15      bertrand 9147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
                   9148: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.99      bertrand 9149: if test "${ac_cv_struct_tm+set}" = set; then :
1.15      bertrand 9150:   $as_echo_n "(cached) " >&6
1.1       bertrand 9151: else
1.15      bertrand 9152:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14      bertrand 9153: /* end confdefs.h.  */
1.15      bertrand 9154: #include <sys/types.h>
                   9155: #include <time.h>
1.1       bertrand 9156: 
                   9157: int
                   9158: main ()
                   9159: {
1.15      bertrand 9160: struct tm tm;
                   9161:                     int *p = &tm.tm_sec;
                   9162:                     return !p;
1.1       bertrand 9163:   ;
                   9164:   return 0;
                   9165: }
                   9166: _ACEOF
1.15      bertrand 9167: if ac_fn_c_try_compile "$LINENO"; then :
                   9168:   ac_cv_struct_tm=time.h
1.1       bertrand 9169: else
1.15      bertrand 9170:   ac_cv_struct_tm=sys/time.h
                   9171: fi
                   9172: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9173: fi
                   9174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
                   9175: $as_echo "$ac_cv_struct_tm" >&6; }
                   9176: if test $ac_cv_struct_tm = sys/time.h; then
                   9177: 
                   9178: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14      bertrand 9179: 
1.1       bertrand 9180: fi
                   9181: 
                   9182: 
1.15      bertrand 9183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
                   9184: $as_echo_n "checking return type of signal handlers... " >&6; }
1.99      bertrand 9185: if test "${ac_cv_type_signal+set}" = set; then :
1.15      bertrand 9186:   $as_echo_n "(cached) " >&6
1.1       bertrand 9187: else
1.15      bertrand 9188:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9189: /* end confdefs.h.  */
1.15      bertrand 9190: #include <sys/types.h>
                   9191: #include <signal.h>
1.1       bertrand 9192: 
                   9193: int
                   9194: main ()
                   9195: {
1.15      bertrand 9196: return *(signal (0, 0)) (0) == 1;
1.1       bertrand 9197:   ;
                   9198:   return 0;
                   9199: }
                   9200: _ACEOF
1.15      bertrand 9201: if ac_fn_c_try_compile "$LINENO"; then :
                   9202:   ac_cv_type_signal=int
1.1       bertrand 9203: else
1.15      bertrand 9204:   ac_cv_type_signal=void
1.1       bertrand 9205: fi
1.15      bertrand 9206: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       bertrand 9207: fi
1.15      bertrand 9208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
                   9209: $as_echo "$ac_cv_type_signal" >&6; }
1.14      bertrand 9210: 
1.15      bertrand 9211: cat >>confdefs.h <<_ACEOF
                   9212: #define RETSIGTYPE $ac_cv_type_signal
1.14      bertrand 9213: _ACEOF
1.1       bertrand 9214: 
1.15      bertrand 9215: 
                   9216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
                   9217: $as_echo_n "checking for working strcoll... " >&6; }
1.99      bertrand 9218: if test "${ac_cv_func_strcoll_works+set}" = set; then :
1.15      bertrand 9219:   $as_echo_n "(cached) " >&6
                   9220: else
                   9221:   if test "$cross_compiling" = yes; then :
                   9222:   ac_cv_func_strcoll_works=no
                   9223: else
                   9224:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9225: /* end confdefs.h.  */
                   9226: $ac_includes_default
                   9227: int
                   9228: main ()
                   9229: {
                   9230: return (strcoll ("abc", "def") >= 0 ||
                   9231:     strcoll ("ABC", "DEF") >= 0 ||
                   9232:     strcoll ("123", "456") >= 0)
                   9233:   ;
                   9234:   return 0;
                   9235: }
                   9236: _ACEOF
                   9237: if ac_fn_c_try_run "$LINENO"; then :
                   9238:   ac_cv_func_strcoll_works=yes
                   9239: else
                   9240:   ac_cv_func_strcoll_works=no
                   9241: fi
                   9242: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   9243:   conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14      bertrand 9244: fi
1.1       bertrand 9245: 
                   9246: fi
1.15      bertrand 9247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
                   9248: $as_echo "$ac_cv_func_strcoll_works" >&6; }
                   9249: if test $ac_cv_func_strcoll_works = yes; then
1.14      bertrand 9250: 
1.15      bertrand 9251: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1       bertrand 9252: 
1.15      bertrand 9253: fi
1.1       bertrand 9254: 
1.15      bertrand 9255: for ac_func in strftime
                   9256: do :
                   9257:   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.99      bertrand 9258: if test "x$ac_cv_func_strftime" = x""yes; then :
1.15      bertrand 9259:   cat >>confdefs.h <<_ACEOF
                   9260: #define HAVE_STRFTIME 1
                   9261: _ACEOF
1.1       bertrand 9262: 
                   9263: else
1.15      bertrand 9264:   # strftime is in -lintl on SCO UNIX.
                   9265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
                   9266: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.99      bertrand 9267: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
1.15      bertrand 9268:   $as_echo_n "(cached) " >&6
                   9269: else
                   9270:   ac_check_lib_save_LIBS=$LIBS
                   9271: LIBS="-lintl  $LIBS"
                   9272: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1       bertrand 9273: /* end confdefs.h.  */
                   9274: 
                   9275: /* Override any GCC internal prototype to avoid an error.
                   9276:    Use char because int might match the return type of a GCC
                   9277:    builtin and then its argument prototype would still apply.  */
                   9278: #ifdef __cplusplus
                   9279: extern "C"
                   9280: #endif
1.15      bertrand 9281: char strftime ();
1.1       bertrand 9282: int
                   9283: main ()
                   9284: {
1.15      bertrand 9285: return strftime ();
1.1       bertrand 9286:   ;
                   9287:   return 0;
                   9288: }
                   9289: _ACEOF
1.15      bertrand 9290: if ac_fn_c_try_link "$LINENO"; then :
                   9291:   ac_cv_lib_intl_strftime=yes
1.1       bertrand 9292: else
1.15      bertrand 9293:   ac_cv_lib_intl_strftime=no
                   9294: fi
                   9295: rm -f core conftest.err conftest.$ac_objext \
                   9296:     conftest$ac_exeext conftest.$ac_ext
                   9297: LIBS=$ac_check_lib_save_LIBS
                   9298: fi
                   9299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
                   9300: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.99      bertrand 9301: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
1.15      bertrand 9302:   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
                   9303: 
                   9304: LIBS="-lintl $LIBS"
                   9305: fi
                   9306: 
                   9307: fi
                   9308: done
                   9309: 
                   9310: for ac_func in vprintf
                   9311: do :
                   9312:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.99      bertrand 9313: if test "x$ac_cv_func_vprintf" = x""yes; then :
1.15      bertrand 9314:   cat >>confdefs.h <<_ACEOF
                   9315: #define HAVE_VPRINTF 1
                   9316: _ACEOF
                   9317: 
                   9318: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.99      bertrand 9319: if test "x$ac_cv_func__doprnt" = x""yes; then :
1.15      bertrand 9320: 
                   9321: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1       bertrand 9322: 
                   9323: fi
                   9324: 
                   9325: fi
1.15      bertrand 9326: done
                   9327: 
                   9328: 
                   9329: for ac_func in ftime getcwd putenv select strcspn strdup \
                   9330:        strerror strspn strstr strtod
                   9331: do :
                   9332:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   9333: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36      bertrand 9334: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1       bertrand 9335:   cat >>confdefs.h <<_ACEOF
1.15      bertrand 9336: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       bertrand 9337: _ACEOF
                   9338: 
                   9339: fi
                   9340: done
                   9341: 
                   9342: 
1.15      bertrand 9343: 
                   9344: # Check whether --with-openssl_arch was given.
                   9345: if test "${with_openssl_arch+set}" = set; then :
                   9346:   withval=$with_openssl_arch;
                   9347: else
                   9348:   with_openssl_arch=none
                   9349: fi
                   9350: 
                   9351: 
1.31      bertrand 9352: if test $(uname) = "OS/2"; then
1.34      bertrand 9353:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15      bertrand 9354: else
1.31      bertrand 9355:    if test "x$with_openssl_arch" = xnone; then
1.67      bertrand 9356:        (cd tools/$OPENSSL && ./config no-asm)
1.31      bertrand 9357:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                   9358:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9359:        as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31      bertrand 9360:    elif test "x$with_openssl_arch" = xlist; then
                   9361:        (cd tools/$OPENSSL && ./Configure)
1.36      bertrand 9362:        as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31      bertrand 9363:    else
1.67      bertrand 9364:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31      bertrand 9365:    fi
1.15      bertrand 9366: fi
1.1       bertrand 9367: 
                   9368: if test "$MYGNUPLOT" = "yes"; then
                   9369:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                   9370:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                   9371:                (cd "$srcdir/tools" && tar -xf -)
                   9372:    fi
1.91      bertrand 9373: 
                   9374:    if test $RECURSIVE = yes; then
                   9375:        subdirs="$subdirs tools/$GNUPLOT"
                   9376: 
                   9377:    fi
1.1       bertrand 9378: 
                   9379:    GNUPLOT_COMPILATION=$GNUPLOT
                   9380: else
                   9381:    GNUPLOT_COMPILATION=
                   9382: fi
                   9383: 
                   9384: 
                   9385: 
1.88      bertrand 9386: HOST=$target
1.69      bertrand 9387: 
                   9388: 
1.87      bertrand 9389: my_save_cflags="$CFLAGS"
                   9390: FPCFLAGS=""
                   9391: 
                   9392: CFLAGS=-malign-double
                   9393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
                   9394: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
                   9395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9396: /* end confdefs.h.  */
                   9397: 
                   9398: int
                   9399: main ()
                   9400: {
1.1       bertrand 9401: 
1.87      bertrand 9402:   ;
                   9403:   return 0;
                   9404: }
                   9405: _ACEOF
                   9406: if ac_fn_c_try_compile "$LINENO"; then :
                   9407:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9408: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
                   9409: else
                   9410:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9411: $as_echo "no" >&6; }
                   9412: fi
                   9413: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9414: CFLAGS=-mieee-fp
                   9415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
                   9416: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
                   9417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9418: /* end confdefs.h.  */
                   9419: 
                   9420: int
                   9421: main ()
                   9422: {
1.1       bertrand 9423: 
1.87      bertrand 9424:   ;
                   9425:   return 0;
                   9426: }
                   9427: _ACEOF
                   9428: if ac_fn_c_try_compile "$LINENO"; then :
                   9429:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9430: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
                   9431: else
                   9432:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9433: $as_echo "no" >&6; }
                   9434: fi
                   9435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9436: CFLAGS=-mieee
                   9437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
                   9438: $as_echo_n "checking whether CC supports -mieee... " >&6; }
                   9439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9440: /* end confdefs.h.  */
1.1       bertrand 9441: 
1.87      bertrand 9442: int
                   9443: main ()
                   9444: {
1.1       bertrand 9445: 
1.87      bertrand 9446:   ;
                   9447:   return 0;
                   9448: }
                   9449: _ACEOF
                   9450: if ac_fn_c_try_compile "$LINENO"; then :
                   9451:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   9452: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
                   9453: else
                   9454:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   9455: $as_echo "no" >&6; }
                   9456: fi
                   9457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   9458: CFLAGS=$my_save_cflags
1.1       bertrand 9459: 
1.87      bertrand 9460: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
                   9461: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9462: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
                   9463: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1       bertrand 9464: 
1.87      bertrand 9465: case $target_os in
1.8       bertrand 9466: 
                   9467:    cygwin*)
                   9468:        OS=Cygwin
                   9469:    break ;;
                   9470: 
                   9471:    interix*)
                   9472:        OS=Interix
                   9473:    break ;;
                   9474: 
                   9475:    *)
                   9476:        OS=$(uname)
                   9477:    break ;;
                   9478: 
                   9479: esac
                   9480: 
                   9481: 
                   9482: 
1.1       bertrand 9483: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   9484: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49      bertrand 9485: MALLOC=
1.1       bertrand 9486: 
1.22      bertrand 9487: case $OS in
1.17      bertrand 9488:     Darwin)
1.31      bertrand 9489:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17      bertrand 9490:        NESTED_FUNCTIONS=-fnested-functions
1.23      bertrand 9491:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31      bertrand 9492:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9493:                --disable-shared --enable-static --enable-threads \
                   9494:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9495:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9496:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9497:        C_STANDARD=-std=gnu99
1.75      bertrand 9498:        ELF=
1.17      bertrand 9499:    break ;;
                   9500: 
1.31      bertrand 9501:     Cygwin)
                   9502:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17      bertrand 9503:        NESTED_FUNCTIONS=
1.31      bertrand 9504:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9505:                --disable-shared --enable-static --enable-threads \
                   9506:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9507:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9508:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9509:        C_STANDARD=-std=gnu99
1.75      bertrand 9510:        ELF=
1.17      bertrand 9511:    break ;;
                   9512: 
1.34      bertrand 9513:    Interix)
                   9514:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   9515:        NESTED_FUNCTIONS=
                   9516:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9517:                --disable-shared --enable-static --enable-threads \
                   9518:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9519:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9520:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 9521:        C_STANDARD=-std=gnu99
1.75      bertrand 9522:        ELF=
1.34      bertrand 9523:    break;;
                   9524: 
1.31      bertrand 9525:     AIX)
                   9526:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 9527:        NESTED_FUNCTIONS=
1.31      bertrand 9528:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9529:                --disable-shared --enable-static --enable-threads \
                   9530:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9531:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9532:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9533:        C_STANDARD=-std=gnu99
1.75      bertrand 9534:        ELF=
1.18      bertrand 9535:    break ;;
                   9536: 
1.31      bertrand 9537:     OS/2)
1.37      bertrand 9538:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9539:            FINAL_ENCODING=CP850; \
                   9540:        fi;
1.31      bertrand 9541:        OS=OS2
                   9542:        NESTED_FUNCTIONS=
                   9543:        EXPORT_DYNAMIC=-Zmap
                   9544:        ac_configure_args="$ac_configure_args --without-readline \
1.49      bertrand 9545:                --without-cairo --disable-shared --enable-static \
1.69      bertrand 9546:                --enable-threads \
                   9547:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9548:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9549:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9550:        C_STANDARD=
1.75      bertrand 9551:        ELF=
1.31      bertrand 9552:    break;;
                   9553: 
1.35      bertrand 9554:    OpenBSD)
1.37      bertrand 9555:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35      bertrand 9556:            FINAL_ENCODING=UTF-8; \
                   9557:        fi;
                   9558:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9559:        NESTED_FUNCTIONS=
                   9560:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9561:                --disable-shared --enable-static --enable-threads \
                   9562:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9563:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9564:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 9565:        C_STANDARD=-std=gnu99
1.75      bertrand 9566:        ELF=
1.35      bertrand 9567:    break;;
                   9568: 
1.49      bertrand 9569:     SunOS)
                   9570:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9571:        NESTED_FUNCTIONS=
                   9572: 
                   9573:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9574:                --disable-shared --enable-static --enable-threads \
                   9575:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9576:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9577:                LDFLAGS=\"$LDFLAGS\""
1.49      bertrand 9578:        C_STANDARD=-std=gnu99
                   9579:        MALLOC=-lumem
1.75      bertrand 9580:        ELF=
                   9581:    break ;;
                   9582: 
                   9583:     NetBSD)
                   9584:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   9585:        NESTED_FUNCTIONS=
                   9586: 
                   9587:        ac_configure_args="$ac_configure_args --with-readline=builtin \
                   9588:                --disable-shared --enable-static --enable-threads \
                   9589:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9590:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9591:                LDFLAGS=\"$LDFLAGS\""
                   9592:        C_STANDARD=-std=gnu99
                   9593:        GCCBIN=`which gcc`
                   9594:        GCCLIB=`dirname $GCCBIN`/../lib
                   9595:        ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49      bertrand 9596:    break ;;
                   9597: 
1.17      bertrand 9598:     *)
1.31      bertrand 9599:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17      bertrand 9600:        NESTED_FUNCTIONS=
1.36      bertrand 9601: 
1.31      bertrand 9602:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69      bertrand 9603:                --disable-shared --enable-static --enable-threads \
                   9604:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   9605:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   9606:                LDFLAGS=\"$LDFLAGS\""
1.33      bertrand 9607:        C_STANDARD=-std=gnu99
1.75      bertrand 9608:        ELF=
1.17      bertrand 9609:    break ;;
1.90      bertrand 9610: esac
                   9611: 
                   9612: case $OS in
                   9613:     OS2)
                   9614:        WHOLE_LIB1=""
                   9615:        WHOLE_LIB2=""
1.91      bertrand 9616:        LIB_PREFIX=""
1.90      bertrand 9617:    break ;;
1.17      bertrand 9618: 
1.90      bertrand 9619:    *)
                   9620:        WHOLE_LIB1="-Wl,-whole-archive"
                   9621:        WHOLE_LIB2="-Wl,-no-whole-archive"
1.91      bertrand 9622:        LIB_PREFIX="lib"
1.90      bertrand 9623:    break ;;
1.17      bertrand 9624: esac
                   9625: 
1.97      bertrand 9626: case $HOST in
                   9627:    x86_64-unknown-linux-gnu)
                   9628:        ARCH=amd64
                   9629:    break ;;
                   9630: 
                   9631:    i?86-unknown-linux-gnu)
                   9632:        ARCH=i386
                   9633:    break ;;
                   9634: 
                   9635:    *)
                   9636:        ARCH=unknown
                   9637:    break ;;
                   9638: esac
                   9639: 
                   9640: 
1.17      bertrand 9641: 
                   9642: 
                   9643: 
1.1       bertrand 9644: 
                   9645: 
                   9646: 
                   9647: 
                   9648: 
                   9649: 
                   9650: 
                   9651: 
                   9652: 
                   9653: 
                   9654: 
                   9655: 
                   9656: 
                   9657: 
                   9658: 
                   9659: 
                   9660: 
                   9661: 
                   9662: 
1.9       bertrand 9663: 
1.24      bertrand 9664: 
1.30      bertrand 9665: 
1.33      bertrand 9666: 
                   9667: 
                   9668: 
1.34      bertrand 9669: 
1.35      bertrand 9670: 
1.49      bertrand 9671: 
1.55      bertrand 9672: 
                   9673: 
1.56      bertrand 9674: 
                   9675: 
                   9676: 
                   9677: 
1.69      bertrand 9678: 
1.75      bertrand 9679: 
1.78      bertrand 9680: 
1.80      bertrand 9681: 
                   9682: 
                   9683: 
1.82      bertrand 9684: 
1.90      bertrand 9685: 
                   9686: 
                   9687: 
1.69      bertrand 9688: 
1.102   ! bertrand 9689: 
        !          9690: 
        !          9691: 
        !          9692: 
1.91      bertrand 9693: if test $RECURSIVE = yes; then
                   9694:    subdirs="$subdirs tools/$NCURSES"
1.69      bertrand 9695: 
1.91      bertrand 9696:    subdirs="$subdirs tools/$READLINE"
1.69      bertrand 9697: 
1.91      bertrand 9698:    subdirs="$subdirs tools/$GSL"
1.69      bertrand 9699: 
1.91      bertrand 9700:    subdirs="$subdirs tools/$GPP"
1.69      bertrand 9701: 
1.91      bertrand 9702:    subdirs="$subdirs tools/$FILE"
1.69      bertrand 9703: 
1.91      bertrand 9704:    subdirs="$subdirs tools/$ICONV"
1.69      bertrand 9705: 
1.91      bertrand 9706:    subdirs="$subdirs tools/$SQLITE"
1.69      bertrand 9707: 
1.91      bertrand 9708:    subdirs="$subdirs tools/$UNITS"
1.76      bertrand 9709: 
1.91      bertrand 9710:    subdirs="$subdirs tools/$SIGSEGV"
                   9711: 
                   9712: fi
1.69      bertrand 9713: 
1.1       bertrand 9714: ac_config_files="$ac_config_files Makefile"
                   9715: 
                   9716: ac_config_files="$ac_config_files COPYING"
                   9717: 
                   9718: ac_config_files="$ac_config_files tools/Makefile"
                   9719: 
                   9720: ac_config_files="$ac_config_files src/Makefile"
                   9721: 
                   9722: ac_config_files="$ac_config_files man/Makefile"
                   9723: 
                   9724: ac_config_files="$ac_config_files man/fr_FR/Makefile"
                   9725: 
                   9726: ac_config_files="$ac_config_files doc/Makefile"
                   9727: 
                   9728: ac_config_files="$ac_config_files scripts/Makefile"
                   9729: 
                   9730: ac_config_files="$ac_config_files scripts/mkrplso"
                   9731: 
                   9732: ac_config_files="$ac_config_files scripts/rplcc"
                   9733: 
                   9734: ac_config_files="$ac_config_files scripts/rpllink"
                   9735: 
                   9736: ac_config_files="$ac_config_files rpltags/Makefile"
                   9737: 
                   9738: ac_config_files="$ac_config_files rpliconv/Makefile"
                   9739: 
1.9       bertrand 9740: ac_config_files="$ac_config_files rplsums/Makefile"
                   9741: 
1.55      bertrand 9742: ac_config_files="$ac_config_files rplcas/Makefile"
                   9743: 
1.39      bertrand 9744: ac_config_files="$ac_config_files rplawk/Makefile"
                   9745: 
1.1       bertrand 9746: ac_config_files="$ac_config_files lapack/lapack/Makefile"
                   9747: 
                   9748: ac_config_files="$ac_config_files lapack/blas/Makefile"
                   9749: 
                   9750: 
                   9751: ac_config_files="$ac_config_files man/rpl.1"
                   9752: 
                   9753: ac_config_files="$ac_config_files man/rplcc.1"
                   9754: 
                   9755: ac_config_files="$ac_config_files man/rpllink.1"
                   9756: 
                   9757: ac_config_files="$ac_config_files man/rpltags.1"
                   9758: 
                   9759: ac_config_files="$ac_config_files man/mkrplso.1"
                   9760: 
                   9761: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
                   9762: 
                   9763: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
                   9764: 
                   9765: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
                   9766: 
                   9767: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
                   9768: 
                   9769: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
                   9770: 
                   9771: 
1.97      bertrand 9772: ac_config_files="$ac_config_files DEBIAN/control"
                   9773: 
                   9774: 
1.1       bertrand 9775: cat >confcache <<\_ACEOF
                   9776: # This file is a shell script that caches the results of configure
                   9777: # tests run on this system so they can be shared between configure
                   9778: # scripts and configure runs, see configure's option --config-cache.
                   9779: # It is not useful on other systems.  If it contains results you don't
                   9780: # want to keep, you may remove or edit it.
                   9781: #
                   9782: # config.status only pays attention to the cache file if you give it
                   9783: # the --recheck option to rerun configure.
                   9784: #
                   9785: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9786: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9787: # following values.
                   9788: 
                   9789: _ACEOF
                   9790: 
                   9791: # The following way of writing the cache mishandles newlines in values,
                   9792: # but we know of no workaround that is simple, portable, and efficient.
                   9793: # So, we kill variables containing newlines.
                   9794: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9795: # and sets the high bit in the cache file unless we assign to the vars.
                   9796: (
                   9797:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9798:     eval ac_val=\$$ac_var
                   9799:     case $ac_val in #(
                   9800:     *${as_nl}*)
                   9801:       case $ac_var in #(
1.15      bertrand 9802:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9803: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1       bertrand 9804:       esac
                   9805:       case $ac_var in #(
                   9806:       _ | IFS | as_nl) ;; #(
1.15      bertrand 9807:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9808:       *) { eval $ac_var=; unset $ac_var;} ;;
1.1       bertrand 9809:       esac ;;
                   9810:     esac
                   9811:   done
                   9812: 
                   9813:   (set) 2>&1 |
                   9814:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9815:     *${as_nl}ac_space=\ *)
1.15      bertrand 9816:       # `set' does not quote correctly, so add quotes: double-quote
                   9817:       # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1       bertrand 9818:       sed -n \
                   9819:    "s/'/'\\\\''/g;
                   9820:      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9821:       ;; #(
                   9822:     *)
                   9823:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9824:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9825:       ;;
                   9826:     esac |
                   9827:     sort
                   9828: ) |
                   9829:   sed '
                   9830:      /^ac_cv_env_/b end
                   9831:      t clear
                   9832:      :clear
                   9833:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9834:      t end
                   9835:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9836:      :end' >>confcache
                   9837: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9838:   if test -w "$cache_file"; then
1.99      bertrand 9839:     test "x$cache_file" != "x/dev/null" &&
1.15      bertrand 9840:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9841: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.99      bertrand 9842:     cat confcache >$cache_file
1.1       bertrand 9843:   else
1.15      bertrand 9844:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9845: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1       bertrand 9846:   fi
                   9847: fi
                   9848: rm -f confcache
                   9849: 
                   9850: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9851: # Let make expand exec_prefix.
                   9852: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9853: 
                   9854: DEFS=-DHAVE_CONFIG_H
                   9855: 
                   9856: ac_libobjs=
                   9857: ac_ltlibobjs=
1.36      bertrand 9858: U=
1.1       bertrand 9859: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9860:   # 1. Remove the extension, and $U if already installed.
                   9861:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15      bertrand 9862:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1       bertrand 9863:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9864:   #    will be set to the directory where LIBOBJS objects are built.
1.15      bertrand 9865:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9866:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1       bertrand 9867: done
                   9868: LIBOBJS=$ac_libobjs
                   9869: 
                   9870: LTLIBOBJS=$ac_ltlibobjs
                   9871: 
                   9872: 
1.15      bertrand 9873:  if test -n "$EXEEXT"; then
                   9874:   am__EXEEXT_TRUE=
                   9875:   am__EXEEXT_FALSE='#'
                   9876: else
                   9877:   am__EXEEXT_TRUE='#'
                   9878:   am__EXEEXT_FALSE=
                   9879: fi
                   9880: 
1.1       bertrand 9881: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36      bertrand 9882:   as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15      bertrand 9883: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9884: fi
                   9885: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36      bertrand 9886:   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15      bertrand 9887: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9888: fi
                   9889: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36      bertrand 9890:   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15      bertrand 9891: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1       bertrand 9892: fi
                   9893: 
1.99      bertrand 9894: : ${CONFIG_STATUS=./config.status}
1.15      bertrand 9895: ac_write_fail=0
1.1       bertrand 9896: ac_clean_files_save=$ac_clean_files
                   9897: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15      bertrand 9898: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9899: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9900: as_write_fail=0
                   9901: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1       bertrand 9902: #! $SHELL
                   9903: # Generated by $as_me.
                   9904: # Run this file to recreate the current configuration.
                   9905: # Compiler output produced by configure, useful for debugging
                   9906: # configure, is in config.log if it exists.
                   9907: 
                   9908: debug=false
                   9909: ac_cs_recheck=false
                   9910: ac_cs_silent=false
1.15      bertrand 9911: 
1.14      bertrand 9912: SHELL=\${CONFIG_SHELL-$SHELL}
1.15      bertrand 9913: export SHELL
                   9914: _ASEOF
                   9915: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9916: ## -------------------- ##
                   9917: ## M4sh Initialization. ##
                   9918: ## -------------------- ##
1.1       bertrand 9919: 
                   9920: # Be more Bourne compatible
                   9921: DUALCASE=1; export DUALCASE # for MKS sh
1.15      bertrand 9922: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1       bertrand 9923:   emulate sh
                   9924:   NULLCMD=:
1.15      bertrand 9925:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1       bertrand 9926:   # is contrary to our usage.  Disable this feature.
                   9927:   alias -g '${1+"$@"}'='"$@"'
                   9928:   setopt NO_GLOB_SUBST
                   9929: else
1.15      bertrand 9930:   case `(set -o) 2>/dev/null` in #(
                   9931:   *posix*) :
                   9932:     set -o posix ;; #(
                   9933:   *) :
                   9934:      ;;
1.1       bertrand 9935: esac
                   9936: fi
                   9937: 
                   9938: 
1.15      bertrand 9939: as_nl='
                   9940: '
                   9941: export as_nl
                   9942: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9943: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9944: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9945: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9946: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9947: # but without wasting forks for bash or zsh.
                   9948: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9949:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9950:   as_echo='print -r --'
                   9951:   as_echo_n='print -rn --'
                   9952: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9953:   as_echo='printf %s\n'
                   9954:   as_echo_n='printf %s'
                   9955: else
                   9956:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9957:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9958:     as_echo_n='/usr/ucb/echo -n'
                   9959:   else
                   9960:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9961:     as_echo_n_body='eval
                   9962:       arg=$1;
                   9963:       case $arg in #(
                   9964:       *"$as_nl"*)
                   9965:    expr "X$arg" : "X\\(.*\\)$as_nl";
                   9966:    arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9967:       esac;
                   9968:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9969:     '
                   9970:     export as_echo_n_body
                   9971:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9972:   fi
                   9973:   export as_echo_body
                   9974:   as_echo='sh -c $as_echo_body as_echo'
                   9975: fi
1.14      bertrand 9976: 
                   9977: # The user is always right.
                   9978: if test "${PATH_SEPARATOR+set}" != set; then
1.15      bertrand 9979:   PATH_SEPARATOR=:
                   9980:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9981:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9982:       PATH_SEPARATOR=';'
                   9983:   }
1.1       bertrand 9984: fi
                   9985: 
                   9986: 
                   9987: # IFS
                   9988: # We need space, tab and new line, in precisely that order.  Quoting is
                   9989: # there to prevent editors from complaining about space-tab.
                   9990: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9991: # splitting by setting IFS to empty value.)
                   9992: IFS=" ""   $as_nl"
                   9993: 
                   9994: # Find who we are.  Look in the path if we contain no directory separator.
1.15      bertrand 9995: case $0 in #((
1.1       bertrand 9996:   *[\\/]* ) as_myself=$0 ;;
                   9997:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9998: for as_dir in $PATH
                   9999: do
                   10000:   IFS=$as_save_IFS
                   10001:   test -z "$as_dir" && as_dir=.
1.15      bertrand 10002:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   10003:   done
1.1       bertrand 10004: IFS=$as_save_IFS
                   10005: 
                   10006:      ;;
                   10007: esac
                   10008: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   10009: # in which case we are not to be found in the path.
                   10010: if test "x$as_myself" = x; then
                   10011:   as_myself=$0
                   10012: fi
                   10013: if test ! -f "$as_myself"; then
1.15      bertrand 10014:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   10015:   exit 1
1.1       bertrand 10016: fi
                   10017: 
1.15      bertrand 10018: # Unset variables that we do not need and which cause bugs (e.g. in
                   10019: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   10020: # suppresses any "Segmentation fault" message there.  '((' could
                   10021: # trigger a bug in pdksh 5.2.14.
                   10022: for as_var in BASH_ENV ENV MAIL MAILPATH
                   10023: do eval test x\${$as_var+set} = xset \
                   10024:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1       bertrand 10025: done
                   10026: PS1='$ '
                   10027: PS2='> '
                   10028: PS4='+ '
                   10029: 
                   10030: # NLS nuisances.
1.15      bertrand 10031: LC_ALL=C
                   10032: export LC_ALL
                   10033: LANGUAGE=C
                   10034: export LANGUAGE
                   10035: 
                   10036: # CDPATH.
                   10037: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   10038: 
                   10039: 
1.36      bertrand 10040: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   10041: # ----------------------------------------
1.15      bertrand 10042: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   10043: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36      bertrand 10044: # script with STATUS, using 1 if that was 0.
1.15      bertrand 10045: as_fn_error ()
                   10046: {
1.36      bertrand 10047:   as_status=$1; test $as_status -eq 0 && as_status=1
                   10048:   if test "$4"; then
                   10049:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   10050:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15      bertrand 10051:   fi
1.36      bertrand 10052:   $as_echo "$as_me: error: $2" >&2
1.15      bertrand 10053:   as_fn_exit $as_status
                   10054: } # as_fn_error
                   10055: 
                   10056: 
                   10057: # as_fn_set_status STATUS
                   10058: # -----------------------
                   10059: # Set $? to STATUS, without forking.
                   10060: as_fn_set_status ()
                   10061: {
                   10062:   return $1
                   10063: } # as_fn_set_status
                   10064: 
                   10065: # as_fn_exit STATUS
                   10066: # -----------------
                   10067: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   10068: as_fn_exit ()
                   10069: {
                   10070:   set +e
                   10071:   as_fn_set_status $1
                   10072:   exit $1
                   10073: } # as_fn_exit
                   10074: 
                   10075: # as_fn_unset VAR
                   10076: # ---------------
                   10077: # Portably unset VAR.
                   10078: as_fn_unset ()
                   10079: {
                   10080:   { eval $1=; unset $1;}
                   10081: }
                   10082: as_unset=as_fn_unset
                   10083: # as_fn_append VAR VALUE
                   10084: # ----------------------
                   10085: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   10086: # advantage of any shell optimizations that allow amortized linear growth over
                   10087: # repeated appends, instead of the typical quadratic growth present in naive
                   10088: # implementations.
                   10089: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   10090:   eval 'as_fn_append ()
                   10091:   {
                   10092:     eval $1+=\$2
                   10093:   }'
                   10094: else
                   10095:   as_fn_append ()
                   10096:   {
                   10097:     eval $1=\$$1\$2
                   10098:   }
                   10099: fi # as_fn_append
                   10100: 
                   10101: # as_fn_arith ARG...
                   10102: # ------------------
                   10103: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   10104: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   10105: # must be portable across $(()) and expr.
                   10106: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   10107:   eval 'as_fn_arith ()
                   10108:   {
                   10109:     as_val=$(( $* ))
                   10110:   }'
                   10111: else
                   10112:   as_fn_arith ()
                   10113:   {
                   10114:     as_val=`expr "$@" || test $? -eq 1`
                   10115:   }
                   10116: fi # as_fn_arith
                   10117: 
1.1       bertrand 10118: 
                   10119: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   10120:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   10121:   as_expr=expr
                   10122: else
                   10123:   as_expr=false
                   10124: fi
                   10125: 
                   10126: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   10127:   as_basename=basename
                   10128: else
                   10129:   as_basename=false
                   10130: fi
                   10131: 
1.15      bertrand 10132: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   10133:   as_dirname=dirname
                   10134: else
                   10135:   as_dirname=false
                   10136: fi
1.1       bertrand 10137: 
                   10138: as_me=`$as_basename -- "$0" ||
                   10139: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   10140:     X"$0" : 'X\(//\)$' \| \
                   10141:     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10142: $as_echo X/"$0" |
1.1       bertrand 10143:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   10144:        s//\1/
                   10145:        q
                   10146:      }
                   10147:      /^X\/\(\/\/\)$/{
                   10148:        s//\1/
                   10149:        q
                   10150:      }
                   10151:      /^X\/\(\/\).*/{
                   10152:        s//\1/
                   10153:        q
                   10154:      }
1.14      bertrand 10155:      s/.*/./; q'`
                   10156: 
1.15      bertrand 10157: # Avoid depending upon Character Ranges.
                   10158: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   10159: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   10160: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   10161: as_cr_digits='0123456789'
                   10162: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       bertrand 10163: 
                   10164: ECHO_C= ECHO_N= ECHO_T=
1.15      bertrand 10165: case `echo -n x` in #(((((
1.1       bertrand 10166: -n*)
1.15      bertrand 10167:   case `echo 'xy\c'` in
1.1       bertrand 10168:   *c*) ECHO_T='    ';; # ECHO_T is single tab character.
1.15      bertrand 10169:   xy)  ECHO_C='\c';;
                   10170:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   10171:        ECHO_T='    ';;
1.1       bertrand 10172:   esac;;
                   10173: *)
                   10174:   ECHO_N='-n';;
                   10175: esac
                   10176: 
                   10177: rm -f conf$$ conf$$.exe conf$$.file
                   10178: if test -d conf$$.dir; then
                   10179:   rm -f conf$$.dir/conf$$.file
                   10180: else
                   10181:   rm -f conf$$.dir
1.15      bertrand 10182:   mkdir conf$$.dir 2>/dev/null
1.1       bertrand 10183: fi
1.15      bertrand 10184: if (echo >conf$$.file) 2>/dev/null; then
                   10185:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10186:     as_ln_s='ln -s'
                   10187:     # ... but there are two gotchas:
                   10188:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   10189:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   10190:     # In both cases, we have to default to `cp -p'.
                   10191:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   10192:       as_ln_s='cp -p'
                   10193:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   10194:     as_ln_s=ln
                   10195:   else
1.1       bertrand 10196:     as_ln_s='cp -p'
1.15      bertrand 10197:   fi
1.1       bertrand 10198: else
                   10199:   as_ln_s='cp -p'
                   10200: fi
                   10201: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   10202: rmdir conf$$.dir 2>/dev/null
                   10203: 
1.15      bertrand 10204: 
                   10205: # as_fn_mkdir_p
                   10206: # -------------
                   10207: # Create "$as_dir" as a directory, including parents if necessary.
                   10208: as_fn_mkdir_p ()
                   10209: {
                   10210: 
                   10211:   case $as_dir in #(
                   10212:   -*) as_dir=./$as_dir;;
                   10213:   esac
                   10214:   test -d "$as_dir" || eval $as_mkdir_p || {
                   10215:     as_dirs=
                   10216:     while :; do
                   10217:       case $as_dir in #(
                   10218:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   10219:       *) as_qdir=$as_dir;;
                   10220:       esac
                   10221:       as_dirs="'$as_qdir' $as_dirs"
                   10222:       as_dir=`$as_dirname -- "$as_dir" ||
                   10223: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10224:     X"$as_dir" : 'X\(//\)[^/]' \| \
                   10225:     X"$as_dir" : 'X\(//\)$' \| \
                   10226:     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   10227: $as_echo X"$as_dir" |
                   10228:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10229:        s//\1/
                   10230:        q
                   10231:      }
                   10232:      /^X\(\/\/\)[^/].*/{
                   10233:        s//\1/
                   10234:        q
                   10235:      }
                   10236:      /^X\(\/\/\)$/{
                   10237:        s//\1/
                   10238:        q
                   10239:      }
                   10240:      /^X\(\/\).*/{
                   10241:        s//\1/
                   10242:        q
                   10243:      }
                   10244:      s/.*/./; q'`
                   10245:       test -d "$as_dir" && break
                   10246:     done
                   10247:     test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36      bertrand 10248:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15      bertrand 10249: 
                   10250: 
                   10251: } # as_fn_mkdir_p
1.1       bertrand 10252: if mkdir -p . 2>/dev/null; then
1.15      bertrand 10253:   as_mkdir_p='mkdir -p "$as_dir"'
1.1       bertrand 10254: else
                   10255:   test -d ./-p && rmdir ./-p
                   10256:   as_mkdir_p=false
                   10257: fi
                   10258: 
                   10259: if test -x / >/dev/null 2>&1; then
                   10260:   as_test_x='test -x'
                   10261: else
                   10262:   if ls -dL / >/dev/null 2>&1; then
                   10263:     as_ls_L_option=L
                   10264:   else
                   10265:     as_ls_L_option=
                   10266:   fi
                   10267:   as_test_x='
                   10268:     eval sh -c '\''
                   10269:       if test -d "$1"; then
1.15      bertrand 10270:    test -d "$1/.";
1.1       bertrand 10271:       else
1.15      bertrand 10272:    case $1 in #(
                   10273:    -*)set "./$1";;
1.1       bertrand 10274:    esac;
1.15      bertrand 10275:    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1       bertrand 10276:    ???[sx]*):;;*)false;;esac;fi
                   10277:     '\'' sh
                   10278:   '
                   10279: fi
                   10280: as_executable_p=$as_test_x
                   10281: 
                   10282: # Sed expression to map a string onto a valid CPP name.
                   10283: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   10284: 
                   10285: # Sed expression to map a string onto a valid variable name.
                   10286: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   10287: 
                   10288: 
                   10289: exec 6>&1
1.15      bertrand 10290: ## ----------------------------------- ##
                   10291: ## Main body of $CONFIG_STATUS script. ##
                   10292: ## ----------------------------------- ##
                   10293: _ASEOF
                   10294: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1       bertrand 10295: 
1.15      bertrand 10296: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10297: # Save the log message, to keep $0 and so on meaningful, and to
1.1       bertrand 10298: # report actual input values of CONFIG_FILES etc. instead of their
                   10299: # values after options handling.
                   10300: ac_log="
1.100     bertrand 10301: This file was extended by rpl $as_me 4.1.6, which was
1.99      bertrand 10302: generated by GNU Autoconf 2.67.  Invocation command line was
1.1       bertrand 10303: 
                   10304:   CONFIG_FILES    = $CONFIG_FILES
                   10305:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10306:   CONFIG_LINKS    = $CONFIG_LINKS
                   10307:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10308:   $ $0 $@
                   10309: 
                   10310: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10311: "
                   10312: 
                   10313: _ACEOF
                   10314: 
1.15      bertrand 10315: case $ac_config_files in *"
                   10316: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   10317: esac
                   10318: 
                   10319: case $ac_config_headers in *"
                   10320: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   10321: esac
                   10322: 
                   10323: 
                   10324: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10325: # Files that config.status was made for.
                   10326: config_files="$ac_config_files"
                   10327: config_headers="$ac_config_headers"
                   10328: config_commands="$ac_config_commands"
                   10329: 
                   10330: _ACEOF
                   10331: 
1.15      bertrand 10332: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10333: ac_cs_usage="\
1.15      bertrand 10334: \`$as_me' instantiates files and other configuration actions
                   10335: from templates according to the current configuration.  Unless the files
                   10336: and actions are specified as TAGs, all are instantiated by default.
1.1       bertrand 10337: 
1.15      bertrand 10338: Usage: $0 [OPTION]... [TAG]...
1.1       bertrand 10339: 
                   10340:   -h, --help       print this help, then exit
                   10341:   -V, --version    print version number and configuration settings, then exit
1.15      bertrand 10342:       --config     print configuration, then exit
                   10343:   -q, --quiet, --silent
                   10344:                    do not print progress messages
1.1       bertrand 10345:   -d, --debug      don't remove temporary files
                   10346:       --recheck    update $as_me by reconfiguring in the same conditions
1.15      bertrand 10347:       --file=FILE[:TEMPLATE]
                   10348:                    instantiate the configuration file FILE
                   10349:       --header=FILE[:TEMPLATE]
                   10350:                    instantiate the configuration header FILE
1.1       bertrand 10351: 
                   10352: Configuration files:
                   10353: $config_files
                   10354: 
                   10355: Configuration headers:
                   10356: $config_headers
                   10357: 
                   10358: Configuration commands:
                   10359: $config_commands
                   10360: 
1.15      bertrand 10361: Report bugs to the package provider."
1.1       bertrand 10362: 
                   10363: _ACEOF
1.15      bertrand 10364: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10365: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1       bertrand 10366: ac_cs_version="\\
1.100     bertrand 10367: rpl config.status 4.1.6
1.99      bertrand 10368: configured by $0, generated by GNU Autoconf 2.67,
1.15      bertrand 10369:   with options \\"\$ac_cs_config\\"
1.1       bertrand 10370: 
1.36      bertrand 10371: Copyright (C) 2010 Free Software Foundation, Inc.
1.1       bertrand 10372: This config.status script is free software; the Free Software Foundation
                   10373: gives unlimited permission to copy, distribute and modify it."
                   10374: 
                   10375: ac_pwd='$ac_pwd'
                   10376: srcdir='$srcdir'
                   10377: INSTALL='$INSTALL'
                   10378: MKDIR_P='$MKDIR_P'
1.15      bertrand 10379: AWK='$AWK'
                   10380: test -n "\$AWK" || AWK=awk
1.1       bertrand 10381: _ACEOF
                   10382: 
1.15      bertrand 10383: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10384: # The default lists apply if the user does not specify any file.
1.1       bertrand 10385: ac_need_defaults=:
                   10386: while test $# != 0
                   10387: do
                   10388:   case $1 in
1.36      bertrand 10389:   --*=?*)
1.1       bertrand 10390:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10391:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   10392:     ac_shift=:
                   10393:     ;;
1.36      bertrand 10394:   --*=)
                   10395:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   10396:     ac_optarg=
                   10397:     ac_shift=:
                   10398:     ;;
1.1       bertrand 10399:   *)
                   10400:     ac_option=$1
                   10401:     ac_optarg=$2
                   10402:     ac_shift=shift
                   10403:     ;;
                   10404:   esac
                   10405: 
                   10406:   case $ac_option in
                   10407:   # Handling of the options.
                   10408:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   10409:     ac_cs_recheck=: ;;
                   10410:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15      bertrand 10411:     $as_echo "$ac_cs_version"; exit ;;
                   10412:   --config | --confi | --conf | --con | --co | --c )
                   10413:     $as_echo "$ac_cs_config"; exit ;;
1.1       bertrand 10414:   --debug | --debu | --deb | --de | --d | -d )
                   10415:     debug=: ;;
                   10416:   --file | --fil | --fi | --f )
                   10417:     $ac_shift
1.15      bertrand 10418:     case $ac_optarg in
                   10419:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36      bertrand 10420:     '') as_fn_error $? "missing file argument" ;;
1.15      bertrand 10421:     esac
                   10422:     as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1       bertrand 10423:     ac_need_defaults=false;;
                   10424:   --header | --heade | --head | --hea )
                   10425:     $ac_shift
1.15      bertrand 10426:     case $ac_optarg in
                   10427:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   10428:     esac
                   10429:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1       bertrand 10430:     ac_need_defaults=false;;
                   10431:   --he | --h)
                   10432:     # Conflict between --help and --header
1.36      bertrand 10433:     as_fn_error $? "ambiguous option: \`$1'
1.15      bertrand 10434: Try \`$0 --help' for more information.";;
1.1       bertrand 10435:   --help | --hel | -h )
1.15      bertrand 10436:     $as_echo "$ac_cs_usage"; exit ;;
1.1       bertrand 10437:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   10438:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   10439:     ac_cs_silent=: ;;
                   10440: 
                   10441:   # This is an error.
1.36      bertrand 10442:   -*) as_fn_error $? "unrecognized option: \`$1'
1.15      bertrand 10443: Try \`$0 --help' for more information." ;;
1.1       bertrand 10444: 
1.15      bertrand 10445:   *) as_fn_append ac_config_targets " $1"
1.1       bertrand 10446:      ac_need_defaults=false ;;
                   10447: 
                   10448:   esac
                   10449:   shift
                   10450: done
                   10451: 
                   10452: ac_configure_extra_args=
                   10453: 
                   10454: if $ac_cs_silent; then
                   10455:   exec 6>/dev/null
                   10456:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   10457: fi
                   10458: 
                   10459: _ACEOF
1.15      bertrand 10460: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10461: if \$ac_cs_recheck; then
1.15      bertrand 10462:   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   10463:   shift
                   10464:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   10465:   CONFIG_SHELL='$SHELL'
1.1       bertrand 10466:   export CONFIG_SHELL
1.15      bertrand 10467:   exec "\$@"
1.1       bertrand 10468: fi
                   10469: 
                   10470: _ACEOF
1.15      bertrand 10471: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10472: exec 5>>config.log
                   10473: {
                   10474:   echo
                   10475:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   10476: ## Running $as_me. ##
                   10477: _ASBOX
1.15      bertrand 10478:   $as_echo "$ac_log"
1.1       bertrand 10479: } >&5
                   10480: 
                   10481: _ACEOF
1.15      bertrand 10482: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 10483: #
                   10484: # INIT-COMMANDS
                   10485: #
                   10486: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
                   10487: 
                   10488: _ACEOF
                   10489: 
1.15      bertrand 10490: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10491: 
                   10492: # Handling of arguments.
                   10493: for ac_config_target in $ac_config_targets
                   10494: do
                   10495:   case $ac_config_target in
                   10496:     "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
                   10497:     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
                   10498:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10499:     "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
                   10500:     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
                   10501:     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
                   10502:     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
                   10503:     "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
                   10504:     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
                   10505:     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
                   10506:     "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
                   10507:     "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
                   10508:     "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
                   10509:     "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
                   10510:     "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9       bertrand 10511:     "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55      bertrand 10512:     "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39      bertrand 10513:     "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1       bertrand 10514:     "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
                   10515:     "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
                   10516:     "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
                   10517:     "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
                   10518:     "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
                   10519:     "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
                   10520:     "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
                   10521:     "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
                   10522:     "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
                   10523:     "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
                   10524:     "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
                   10525:     "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
1.97      bertrand 10526:     "DEBIAN/control") CONFIG_FILES="$CONFIG_FILES DEBIAN/control" ;;
1.1       bertrand 10527: 
1.99      bertrand 10528:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1       bertrand 10529:   esac
                   10530: done
                   10531: 
                   10532: 
                   10533: # If the user did not use the arguments to specify the items to instantiate,
                   10534: # then the envvar interface is used.  Set only those that are not.
                   10535: # We use the long form for the default assignment because of an extremely
                   10536: # bizarre bug on SunOS 4.1.3.
                   10537: if $ac_need_defaults; then
                   10538:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10539:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10540:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
                   10541: fi
                   10542: 
                   10543: # Have a temporary directory for convenience.  Make it in the build tree
                   10544: # simply because there is no reason against having it here, and in addition,
                   10545: # creating and moving files from /tmp can sometimes cause problems.
                   10546: # Hook for its removal unless debugging.
                   10547: # Note that there is a small window in which the directory will not be cleaned:
                   10548: # after its creation but before its name has been assigned to `$tmp'.
                   10549: $debug ||
                   10550: {
1.99      bertrand 10551:   tmp=
1.1       bertrand 10552:   trap 'exit_status=$?
1.99      bertrand 10553:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1.1       bertrand 10554: ' 0
1.15      bertrand 10555:   trap 'as_fn_exit 1' 1 2 13 15
1.1       bertrand 10556: }
                   10557: # Create a (secure) tmp directory for tmp files.
                   10558: 
                   10559: {
                   10560:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.99      bertrand 10561:   test -n "$tmp" && test -d "$tmp"
1.1       bertrand 10562: }  ||
                   10563: {
                   10564:   tmp=./conf$$-$RANDOM
                   10565:   (umask 077 && mkdir "$tmp")
1.36      bertrand 10566: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15      bertrand 10567: 
                   10568: # Set up the scripts for CONFIG_FILES section.
                   10569: # No need to generate them if there are no CONFIG_FILES.
                   10570: # This happens for instance with `./config.status config.h'.
                   10571: if test -n "$CONFIG_FILES"; then
1.14      bertrand 10572: 
1.1       bertrand 10573: 
1.15      bertrand 10574: ac_cr=`echo X | tr X '\015'`
                   10575: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   10576: # But we know of no other shell where ac_cr would be empty at this
                   10577: # point, so we can use a bashism as a fallback.
                   10578: if test "x$ac_cr" = x; then
                   10579:   eval ac_cr=\$\'\\r\'
                   10580: fi
                   10581: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   10582: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36      bertrand 10583:   ac_cs_awk_cr='\\r'
1.15      bertrand 10584: else
                   10585:   ac_cs_awk_cr=$ac_cr
                   10586: fi
1.1       bertrand 10587: 
1.99      bertrand 10588: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14      bertrand 10589: _ACEOF
                   10590: 
                   10591: 
1.15      bertrand 10592: {
                   10593:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   10594:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   10595:   echo "_ACEOF"
                   10596: } >conf$$subs.sh ||
1.36      bertrand 10597:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   10598: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14      bertrand 10599: ac_delim='%!_!# '
                   10600: for ac_last_try in false false false false false :; do
1.15      bertrand 10601:   . ./conf$$subs.sh ||
1.36      bertrand 10602:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10603: 
1.15      bertrand 10604:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   10605:   if test $ac_delim_n = $ac_delim_num; then
1.14      bertrand 10606:     break
                   10607:   elif $ac_last_try; then
1.36      bertrand 10608:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14      bertrand 10609:   else
                   10610:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10611:   fi
                   10612: done
1.15      bertrand 10613: rm -f conf$$subs.sh
1.1       bertrand 10614: 
1.15      bertrand 10615: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.99      bertrand 10616: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
1.15      bertrand 10617: _ACEOF
                   10618: sed -n '
                   10619: h
                   10620: s/^/S["/; s/!.*/"]=/
                   10621: p
                   10622: g
                   10623: s/^[^!]*!//
                   10624: :repl
                   10625: t repl
                   10626: s/'"$ac_delim"'$//
                   10627: t delim
                   10628: :nl
                   10629: h
                   10630: s/\(.\{148\}\)..*/\1/
                   10631: t more1
                   10632: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   10633: p
                   10634: n
                   10635: b repl
                   10636: :more1
                   10637: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10638: p
                   10639: g
                   10640: s/.\{148\}//
                   10641: t nl
                   10642: :delim
                   10643: h
                   10644: s/\(.\{148\}\)..*/\1/
                   10645: t more2
                   10646: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   10647: p
                   10648: b
                   10649: :more2
                   10650: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   10651: p
                   10652: g
                   10653: s/.\{148\}//
                   10654: t delim
                   10655: ' <conf$$subs.awk | sed '
                   10656: /^[^""]/{
                   10657:   N
                   10658:   s/\n//
                   10659: }
                   10660: ' >>$CONFIG_STATUS || ac_write_fail=1
                   10661: rm -f conf$$subs.awk
                   10662: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10663: _ACAWK
1.99      bertrand 10664: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
1.15      bertrand 10665:   for (key in S) S_is_set[key] = 1
                   10666:   FS = ""
1.1       bertrand 10667: 
1.15      bertrand 10668: }
                   10669: {
                   10670:   line = $ 0
                   10671:   nfields = split(line, field, "@")
                   10672:   substed = 0
                   10673:   len = length(field[1])
                   10674:   for (i = 2; i < nfields; i++) {
                   10675:     key = field[i]
                   10676:     keylen = length(key)
                   10677:     if (S_is_set[key]) {
                   10678:       value = S[key]
                   10679:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   10680:       len += length(value) + length(field[++i])
                   10681:       substed = 1
                   10682:     } else
                   10683:       len += 1 + keylen
                   10684:   }
1.1       bertrand 10685: 
1.15      bertrand 10686:   print line
                   10687: }
1.1       bertrand 10688: 
1.15      bertrand 10689: _ACAWK
1.14      bertrand 10690: _ACEOF
1.15      bertrand 10691: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10692: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   10693:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   10694: else
                   10695:   cat
1.99      bertrand 10696: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36      bertrand 10697:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1       bertrand 10698: _ACEOF
                   10699: 
1.36      bertrand 10700: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   10701: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1       bertrand 10702: # trailing colons and then remove the whole line if VPATH becomes empty
                   10703: # (actually we leave an empty line to preserve line numbers).
                   10704: if test "x$srcdir" = x.; then
1.36      bertrand 10705:   ac_vpsub='/^[     ]*VPATH[    ]*=[    ]*/{
                   10706: h
                   10707: s///
                   10708: s/^/:/
                   10709: s/[     ]*$/:/
                   10710: s/:\$(srcdir):/:/g
                   10711: s/:\${srcdir}:/:/g
                   10712: s/:@srcdir@:/:/g
                   10713: s/^:*//
1.1       bertrand 10714: s/:*$//
1.36      bertrand 10715: x
                   10716: s/\(=[  ]*\).*/\1/
                   10717: G
                   10718: s/\n//
1.1       bertrand 10719: s/^[^=]*=[  ]*$//
                   10720: }'
                   10721: fi
                   10722: 
1.15      bertrand 10723: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10724: fi # test -n "$CONFIG_FILES"
                   10725: 
1.15      bertrand 10726: # Set up the scripts for CONFIG_HEADERS section.
                   10727: # No need to generate them if there are no CONFIG_HEADERS.
                   10728: # This happens for instance with `./config.status Makefile'.
                   10729: if test -n "$CONFIG_HEADERS"; then
1.99      bertrand 10730: cat >"$tmp/defines.awk" <<\_ACAWK ||
1.15      bertrand 10731: BEGIN {
                   10732: _ACEOF
                   10733: 
                   10734: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   10735: # here-document in config.status, that substitutes the proper values into
                   10736: # config.h.in to produce config.h.
                   10737: 
                   10738: # Create a delimiter string that does not exist in confdefs.h, to ease
                   10739: # handling of long lines.
                   10740: ac_delim='%!_!# '
                   10741: for ac_last_try in false false :; do
1.99      bertrand 10742:   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
                   10743:   if test -z "$ac_t"; then
1.15      bertrand 10744:     break
                   10745:   elif $ac_last_try; then
1.36      bertrand 10746:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15      bertrand 10747:   else
                   10748:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   10749:   fi
                   10750: done
                   10751: 
                   10752: # For the awk script, D is an array of macro values keyed by name,
                   10753: # likewise P contains macro parameters if any.  Preserve backslash
                   10754: # newline sequences.
                   10755: 
                   10756: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   10757: sed -n '
                   10758: s/.\{148\}/&'"$ac_delim"'/g
                   10759: t rset
                   10760: :rset
                   10761: s/^[    ]*#[    ]*define[   ][  ]*/ /
                   10762: t def
                   10763: d
                   10764: :def
                   10765: s/\\$//
                   10766: t bsnl
                   10767: s/["\\]/\\&/g
                   10768: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10769: D["\1"]=" \3"/p
                   10770: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2"/p
                   10771: d
                   10772: :bsnl
                   10773: s/["\\]/\\&/g
                   10774: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   10775: D["\1"]=" \3\\\\\\n"\\/p
                   10776: t cont
                   10777: s/^ \('"$ac_word_re"'\)[    ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   10778: t cont
                   10779: d
                   10780: :cont
                   10781: n
                   10782: s/.\{148\}/&'"$ac_delim"'/g
                   10783: t clear
                   10784: :clear
                   10785: s/\\$//
                   10786: t bsnlc
                   10787: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10788: d
                   10789: :bsnlc
                   10790: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10791: b cont
                   10792: ' <confdefs.h | sed '
                   10793: s/'"$ac_delim"'/"\\\
                   10794: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10795: 
                   10796: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10797:   for (key in D) D_is_set[key] = 1
                   10798:   FS = ""
                   10799: }
                   10800: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10801:   line = \$ 0
                   10802:   split(line, arg, " ")
                   10803:   if (arg[1] == "#") {
                   10804:     defundef = arg[2]
                   10805:     mac1 = arg[3]
                   10806:   } else {
                   10807:     defundef = substr(arg[1], 2)
                   10808:     mac1 = arg[2]
                   10809:   }
                   10810:   split(mac1, mac2, "(") #)
                   10811:   macro = mac2[1]
                   10812:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10813:   if (D_is_set[macro]) {
                   10814:     # Preserve the white space surrounding the "#".
                   10815:     print prefix "define", macro P[macro] D[macro]
                   10816:     next
                   10817:   } else {
                   10818:     # Replace #undef with comments.  This is necessary, for example,
                   10819:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10820:     # on some systems where configure will not decide to define it.
                   10821:     if (defundef == "undef") {
                   10822:       print "/*", prefix defundef, macro, "*/"
                   10823:       next
                   10824:     }
                   10825:   }
                   10826: }
                   10827: { print }
                   10828: _ACAWK
                   10829: _ACEOF
                   10830: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36      bertrand 10831:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15      bertrand 10832: fi # test -n "$CONFIG_HEADERS"
                   10833: 
1.1       bertrand 10834: 
1.15      bertrand 10835: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
                   10836: shift
                   10837: for ac_tag
1.1       bertrand 10838: do
                   10839:   case $ac_tag in
                   10840:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10841:   esac
                   10842:   case $ac_mode$ac_tag in
                   10843:   :[FHL]*:*);;
1.99      bertrand 10844:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1       bertrand 10845:   :[FH]-) ac_tag=-:-;;
                   10846:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10847:   esac
                   10848:   ac_save_IFS=$IFS
                   10849:   IFS=:
                   10850:   set x $ac_tag
                   10851:   IFS=$ac_save_IFS
                   10852:   shift
                   10853:   ac_file=$1
                   10854:   shift
                   10855: 
                   10856:   case $ac_mode in
                   10857:   :L) ac_source=$1;;
                   10858:   :[FH])
                   10859:     ac_file_inputs=
                   10860:     for ac_f
                   10861:     do
                   10862:       case $ac_f in
1.99      bertrand 10863:       -) ac_f="$tmp/stdin";;
1.1       bertrand 10864:       *) # Look for the file first in the build tree, then in the source tree
                   10865:     # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10866:     # because $ac_f cannot contain `:'.
                   10867:     test -f "$ac_f" ||
                   10868:       case $ac_f in
                   10869:       [\\/$]*) false;;
                   10870:       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10871:       esac ||
1.99      bertrand 10872:       as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1       bertrand 10873:       esac
1.15      bertrand 10874:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10875:       as_fn_append ac_file_inputs " '$ac_f'"
1.1       bertrand 10876:     done
                   10877: 
                   10878:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10879:     # use $as_me), people would be surprised to read:
                   10880:     #    /* config.h.  Generated by config.status.  */
1.15      bertrand 10881:     configure_input='Generated from '`
                   10882:      $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10883:    `' by configure.'
1.1       bertrand 10884:     if test x"$ac_file" != x-; then
                   10885:       configure_input="$ac_file.  $configure_input"
1.15      bertrand 10886:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10887: $as_echo "$as_me: creating $ac_file" >&6;}
1.1       bertrand 10888:     fi
1.15      bertrand 10889:     # Neutralize special characters interpreted by sed in replacement strings.
                   10890:     case $configure_input in #(
                   10891:     *\&* | *\|* | *\\* )
                   10892:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10893:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10894:     *) ac_sed_conf_input=$configure_input;;
                   10895:     esac
1.1       bertrand 10896: 
                   10897:     case $ac_tag in
1.99      bertrand 10898:     *:-:* | *:-) cat >"$tmp/stdin" \
                   10899:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
1.1       bertrand 10900:     esac
                   10901:     ;;
                   10902:   esac
                   10903: 
                   10904:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10905: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10906:     X"$ac_file" : 'X\(//\)[^/]' \| \
                   10907:     X"$ac_file" : 'X\(//\)$' \| \
                   10908:     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 10909: $as_echo X"$ac_file" |
1.1       bertrand 10910:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10911:        s//\1/
                   10912:        q
                   10913:      }
                   10914:      /^X\(\/\/\)[^/].*/{
                   10915:        s//\1/
                   10916:        q
                   10917:      }
                   10918:      /^X\(\/\/\)$/{
                   10919:        s//\1/
                   10920:        q
                   10921:      }
                   10922:      /^X\(\/\).*/{
                   10923:        s//\1/
                   10924:        q
                   10925:      }
                   10926:      s/.*/./; q'`
1.15      bertrand 10927:   as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 10928:   ac_builddir=.
                   10929: 
                   10930: case "$ac_dir" in
                   10931: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10932: *)
1.15      bertrand 10933:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 10934:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 10935:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 10936:   case $ac_top_builddir_sub in
                   10937:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10938:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10939:   esac ;;
                   10940: esac
                   10941: ac_abs_top_builddir=$ac_pwd
                   10942: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10943: # for backward compatibility:
                   10944: ac_top_builddir=$ac_top_build_prefix
                   10945: 
                   10946: case $srcdir in
                   10947:   .)  # We are building in place.
                   10948:     ac_srcdir=.
                   10949:     ac_top_srcdir=$ac_top_builddir_sub
                   10950:     ac_abs_top_srcdir=$ac_pwd ;;
                   10951:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10952:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10953:     ac_top_srcdir=$srcdir
                   10954:     ac_abs_top_srcdir=$srcdir ;;
                   10955:   *) # Relative name.
                   10956:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10957:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10958:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10959: esac
                   10960: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10961: 
                   10962: 
                   10963:   case $ac_mode in
                   10964:   :F)
                   10965:   #
                   10966:   # CONFIG_FILE
                   10967:   #
                   10968: 
                   10969:   case $INSTALL in
                   10970:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10971:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10972:   esac
                   10973:   ac_MKDIR_P=$MKDIR_P
                   10974:   case $MKDIR_P in
                   10975:   [\\/$]* | ?:[\\/]* ) ;;
                   10976:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10977:   esac
                   10978: _ACEOF
                   10979: 
1.15      bertrand 10980: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 10981: # If the template does not know about datarootdir, expand it.
                   10982: # FIXME: This hack should be removed a few years after 2.60.
                   10983: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15      bertrand 10984: ac_sed_dataroot='
                   10985: /datarootdir/ {
1.1       bertrand 10986:   p
                   10987:   q
                   10988: }
                   10989: /@datadir@/p
                   10990: /@docdir@/p
                   10991: /@infodir@/p
                   10992: /@localedir@/p
1.15      bertrand 10993: /@mandir@/p'
                   10994: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1       bertrand 10995: *datarootdir*) ac_datarootdir_seen=yes;;
                   10996: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15      bertrand 10997:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10998: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1       bertrand 10999: _ACEOF
1.15      bertrand 11000: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1       bertrand 11001:   ac_datarootdir_hack='
                   11002:   s&@datadir@&$datadir&g
                   11003:   s&@docdir@&$docdir&g
                   11004:   s&@infodir@&$infodir&g
                   11005:   s&@localedir@&$localedir&g
                   11006:   s&@mandir@&$mandir&g
1.15      bertrand 11007:   s&\\\${datarootdir}&$datarootdir&g' ;;
1.1       bertrand 11008: esac
                   11009: _ACEOF
                   11010: 
                   11011: # Neutralize VPATH when `$srcdir' = `.'.
                   11012: # Shell code in configure.ac might set extrasub.
                   11013: # FIXME: do we really want to maintain this feature?
1.15      bertrand 11014: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   11015: ac_sed_extra="$ac_vpsub
1.1       bertrand 11016: $extrasub
                   11017: _ACEOF
1.15      bertrand 11018: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1       bertrand 11019: :t
                   11020: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15      bertrand 11021: s|@configure_input@|$ac_sed_conf_input|;t t
1.1       bertrand 11022: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15      bertrand 11023: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1       bertrand 11024: s&@srcdir@&$ac_srcdir&;t t
                   11025: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   11026: s&@top_srcdir@&$ac_top_srcdir&;t t
                   11027: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   11028: s&@builddir@&$ac_builddir&;t t
                   11029: s&@abs_builddir@&$ac_abs_builddir&;t t
                   11030: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   11031: s&@INSTALL@&$ac_INSTALL&;t t
                   11032: s&@MKDIR_P@&$ac_MKDIR_P&;t t
                   11033: $ac_datarootdir_hack
1.15      bertrand 11034: "
1.99      bertrand 11035: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
                   11036:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11037: 
                   11038: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.99      bertrand 11039:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   11040:   { ac_out=`sed -n '/^[     ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15      bertrand 11041:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 11042: which seems to be undefined.  Please make sure it is defined" >&5
1.15      bertrand 11043: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36      bertrand 11044: which seems to be undefined.  Please make sure it is defined" >&2;}
1.1       bertrand 11045: 
1.99      bertrand 11046:   rm -f "$tmp/stdin"
1.1       bertrand 11047:   case $ac_file in
1.99      bertrand 11048:   -) cat "$tmp/out" && rm -f "$tmp/out";;
                   11049:   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1.15      bertrand 11050:   esac \
1.36      bertrand 11051:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11052:  ;;
                   11053:   :H)
                   11054:   #
                   11055:   # CONFIG_HEADER
                   11056:   #
                   11057:   if test x"$ac_file" != x-; then
1.15      bertrand 11058:     {
                   11059:       $as_echo "/* $configure_input  */" \
1.99      bertrand 11060:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
                   11061:     } >"$tmp/config.h" \
1.36      bertrand 11062:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.99      bertrand 11063:     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1.15      bertrand 11064:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   11065: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1       bertrand 11066:     else
1.15      bertrand 11067:       rm -f "$ac_file"
1.99      bertrand 11068:       mv "$tmp/config.h" "$ac_file" \
1.36      bertrand 11069:    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1       bertrand 11070:     fi
                   11071:   else
1.15      bertrand 11072:     $as_echo "/* $configure_input  */" \
1.99      bertrand 11073:       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36      bertrand 11074:       || as_fn_error $? "could not create -" "$LINENO" 5
1.1       bertrand 11075:   fi
1.15      bertrand 11076: # Compute "$ac_file"'s index in $config_headers.
                   11077: _am_arg="$ac_file"
1.1       bertrand 11078: _am_stamp_count=1
                   11079: for _am_header in $config_headers :; do
                   11080:   case $_am_header in
                   11081:     $_am_arg | $_am_arg:* )
                   11082:       break ;;
                   11083:     * )
                   11084:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   11085:   esac
                   11086: done
                   11087: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   11088: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11089:     X"$_am_arg" : 'X\(//\)[^/]' \| \
                   11090:     X"$_am_arg" : 'X\(//\)$' \| \
                   11091:     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11092: $as_echo X"$_am_arg" |
1.1       bertrand 11093:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11094:        s//\1/
                   11095:        q
                   11096:      }
                   11097:      /^X\(\/\/\)[^/].*/{
                   11098:        s//\1/
                   11099:        q
                   11100:      }
                   11101:      /^X\(\/\/\)$/{
                   11102:        s//\1/
                   11103:        q
                   11104:      }
                   11105:      /^X\(\/\).*/{
                   11106:        s//\1/
                   11107:        q
                   11108:      }
                   11109:      s/.*/./; q'`/stamp-h$_am_stamp_count
                   11110:  ;;
                   11111: 
1.15      bertrand 11112:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
                   11113: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1       bertrand 11114:  ;;
                   11115:   esac
                   11116: 
                   11117: 
                   11118:   case $ac_file$ac_mode in
1.15      bertrand 11119:     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
                   11120:   # Autoconf 2.62 quotes --file arguments for eval, but not when files
                   11121:   # are listed without --file.  Let's play safe and only enable the eval
                   11122:   # if we detect the quoting.
                   11123:   case $CONFIG_FILES in
                   11124:   *\'*) eval set x "$CONFIG_FILES" ;;
                   11125:   *)   set x $CONFIG_FILES ;;
                   11126:   esac
                   11127:   shift
                   11128:   for mf
                   11129:   do
                   11130:     # Strip MF so we end up with the name of the file.
                   11131:     mf=`echo "$mf" | sed -e 's/:.*$//'`
                   11132:     # Check whether this is an Automake generated Makefile or not.
                   11133:     # We used to match only the files named `Makefile.in', but
                   11134:     # some people rename them; so instead we look at the file content.
                   11135:     # Grep'ing the first line is not enough: some people post-process
                   11136:     # each Makefile.in and add a new line on top of each file to say so.
                   11137:     # Grep'ing the whole file is not good either: AIX grep has a line
                   11138:     # limit of 2048, but all sed's we know have understand at least 4000.
                   11139:     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
                   11140:       dirpart=`$as_dirname -- "$mf" ||
1.1       bertrand 11141: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11142:     X"$mf" : 'X\(//\)[^/]' \| \
                   11143:     X"$mf" : 'X\(//\)$' \| \
                   11144:     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11145: $as_echo X"$mf" |
1.1       bertrand 11146:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11147:        s//\1/
                   11148:        q
                   11149:      }
                   11150:      /^X\(\/\/\)[^/].*/{
                   11151:        s//\1/
                   11152:        q
                   11153:      }
                   11154:      /^X\(\/\/\)$/{
                   11155:        s//\1/
                   11156:        q
                   11157:      }
                   11158:      /^X\(\/\).*/{
                   11159:        s//\1/
                   11160:        q
                   11161:      }
                   11162:      s/.*/./; q'`
1.15      bertrand 11163:     else
                   11164:       continue
                   11165:     fi
                   11166:     # Extract the definition of DEPDIR, am__include, and am__quote
                   11167:     # from the Makefile without running `make'.
                   11168:     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
                   11169:     test -z "$DEPDIR" && continue
                   11170:     am__include=`sed -n 's/^am__include = //p' < "$mf"`
                   11171:     test -z "am__include" && continue
                   11172:     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
                   11173:     # When using ansi2knr, U may be empty or an underscore; expand it
                   11174:     U=`sed -n 's/^U = //p' < "$mf"`
                   11175:     # Find all dependency output files, they are included files with
                   11176:     # $(DEPDIR) in their names.  We invoke sed twice because it is the
                   11177:     # simplest approach to changing $(DEPDIR) to its actual value in the
                   11178:     # expansion.
                   11179:     for file in `sed -n "
                   11180:       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
                   11181:     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
                   11182:       # Make sure the directory exists.
                   11183:       test -f "$dirpart/$file" && continue
                   11184:       fdir=`$as_dirname -- "$file" ||
1.1       bertrand 11185: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11186:     X"$file" : 'X\(//\)[^/]' \| \
                   11187:     X"$file" : 'X\(//\)$' \| \
                   11188:     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15      bertrand 11189: $as_echo X"$file" |
1.1       bertrand 11190:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   11191:        s//\1/
                   11192:        q
                   11193:      }
                   11194:      /^X\(\/\/\)[^/].*/{
                   11195:        s//\1/
                   11196:        q
                   11197:      }
                   11198:      /^X\(\/\/\)$/{
                   11199:        s//\1/
                   11200:        q
                   11201:      }
                   11202:      /^X\(\/\).*/{
                   11203:        s//\1/
                   11204:        q
                   11205:      }
                   11206:      s/.*/./; q'`
1.15      bertrand 11207:       as_dir=$dirpart/$fdir; as_fn_mkdir_p
                   11208:       # echo "creating $dirpart/$file"
                   11209:       echo '# dummy' > "$dirpart/$file"
1.1       bertrand 11210:     done
                   11211:   done
1.15      bertrand 11212: }
1.1       bertrand 11213:  ;;
                   11214: 
                   11215:   esac
                   11216: done # for ac_tag
                   11217: 
                   11218: 
1.15      bertrand 11219: as_fn_exit 0
1.1       bertrand 11220: _ACEOF
                   11221: ac_clean_files=$ac_clean_files_save
                   11222: 
1.15      bertrand 11223: test $ac_write_fail = 0 ||
1.36      bertrand 11224:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15      bertrand 11225: 
1.1       bertrand 11226: 
                   11227: # configure is writing to config.log, and then calls config.status.
                   11228: # config.status does its own redirection, appending to config.log.
                   11229: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11230: # by configure, so config.status won't be able to write to it; its
                   11231: # output is simply discarded.  So we exec the FD to /dev/null,
                   11232: # effectively closing config.log, so it can be properly (re)opened and
                   11233: # appended to by config.status.  When coming back to configure, we
                   11234: # need to make the FD available again.
                   11235: if test "$no_create" != yes; then
                   11236:   ac_cs_success=:
                   11237:   ac_config_status_args=
                   11238:   test "$silent" = yes &&
                   11239:     ac_config_status_args="$ac_config_status_args --quiet"
                   11240:   exec 5>/dev/null
                   11241:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   11242:   exec 5>>config.log
                   11243:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11244:   # would make configure fail if this is the last instruction.
1.36      bertrand 11245:   $ac_cs_success || as_fn_exit 1
1.1       bertrand 11246: fi
                   11247: 
                   11248: #
                   11249: # CONFIG_SUBDIRS section.
                   11250: #
                   11251: if test "$no_recursion" != yes; then
                   11252: 
1.15      bertrand 11253:   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
                   11254:   # so they do not pile up.
1.1       bertrand 11255:   ac_sub_configure_args=
                   11256:   ac_prev=
                   11257:   eval "set x $ac_configure_args"
                   11258:   shift
                   11259:   for ac_arg
                   11260:   do
                   11261:     if test -n "$ac_prev"; then
                   11262:       ac_prev=
                   11263:       continue
                   11264:     fi
                   11265:     case $ac_arg in
                   11266:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   11267:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   11268:       ac_prev=cache_file ;;
                   11269:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   11270:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
                   11271:     | --c=*)
                   11272:       ;;
                   11273:     --config-cache | -C)
                   11274:       ;;
                   11275:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   11276:       ac_prev=srcdir ;;
                   11277:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   11278:       ;;
                   11279:     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   11280:       ac_prev=prefix ;;
                   11281:     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                   11282:       ;;
1.15      bertrand 11283:     --disable-option-checking)
                   11284:       ;;
1.1       bertrand 11285:     *)
                   11286:       case $ac_arg in
1.15      bertrand 11287:       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11288:       esac
1.15      bertrand 11289:       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1       bertrand 11290:     esac
                   11291:   done
                   11292: 
                   11293:   # Always prepend --prefix to ensure using the same prefix
                   11294:   # in subdir configurations.
                   11295:   ac_arg="--prefix=$prefix"
                   11296:   case $ac_arg in
1.15      bertrand 11297:   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1       bertrand 11298:   esac
                   11299:   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
                   11300: 
                   11301:   # Pass --silent
                   11302:   if test "$silent" = yes; then
                   11303:     ac_sub_configure_args="--silent $ac_sub_configure_args"
                   11304:   fi
                   11305: 
1.15      bertrand 11306:   # Always prepend --disable-option-checking to silence warnings, since
                   11307:   # different subdirs can have different --enable and --with options.
                   11308:   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
                   11309: 
1.1       bertrand 11310:   ac_popdir=`pwd`
                   11311:   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
                   11312: 
                   11313:     # Do not complain, so a configure script can configure whichever
                   11314:     # parts of a large source tree are present.
                   11315:     test -d "$srcdir/$ac_dir" || continue
                   11316: 
                   11317:     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15      bertrand 11318:     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
                   11319:     $as_echo "$ac_msg" >&6
                   11320:     as_dir="$ac_dir"; as_fn_mkdir_p
1.1       bertrand 11321:     ac_builddir=.
                   11322: 
                   11323: case "$ac_dir" in
                   11324: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11325: *)
1.15      bertrand 11326:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1       bertrand 11327:   # A ".." for each directory in $ac_dir_suffix.
1.15      bertrand 11328:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1       bertrand 11329:   case $ac_top_builddir_sub in
                   11330:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   11331:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   11332:   esac ;;
                   11333: esac
                   11334: ac_abs_top_builddir=$ac_pwd
                   11335: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   11336: # for backward compatibility:
                   11337: ac_top_builddir=$ac_top_build_prefix
                   11338: 
                   11339: case $srcdir in
                   11340:   .)  # We are building in place.
                   11341:     ac_srcdir=.
                   11342:     ac_top_srcdir=$ac_top_builddir_sub
                   11343:     ac_abs_top_srcdir=$ac_pwd ;;
                   11344:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   11345:     ac_srcdir=$srcdir$ac_dir_suffix;
                   11346:     ac_top_srcdir=$srcdir
                   11347:     ac_abs_top_srcdir=$srcdir ;;
                   11348:   *) # Relative name.
                   11349:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   11350:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   11351:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   11352: esac
                   11353: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   11354: 
                   11355: 
                   11356:     cd "$ac_dir"
                   11357: 
                   11358:     # Check for guested configure; otherwise get Cygnus style configure.
                   11359:     if test -f "$ac_srcdir/configure.gnu"; then
                   11360:       ac_sub_configure=$ac_srcdir/configure.gnu
                   11361:     elif test -f "$ac_srcdir/configure"; then
                   11362:       ac_sub_configure=$ac_srcdir/configure
                   11363:     elif test -f "$ac_srcdir/configure.in"; then
                   11364:       # This should be Cygnus configure.
                   11365:       ac_sub_configure=$ac_aux_dir/configure
                   11366:     else
1.15      bertrand 11367:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
                   11368: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1       bertrand 11369:       ac_sub_configure=
                   11370:     fi
                   11371: 
                   11372:     # The recursion is here.
                   11373:     if test -n "$ac_sub_configure"; then
                   11374:       # Make the cache file name correct relative to the subdirectory.
                   11375:       case $cache_file in
                   11376:       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
                   11377:       *) # Relative name.
                   11378:    ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
                   11379:       esac
                   11380: 
1.15      bertrand 11381:       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
                   11382: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1       bertrand 11383:       # The eval makes quoting arguments work.
                   11384:       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
                   11385:       --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36      bertrand 11386:    as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1       bertrand 11387:     fi
                   11388: 
                   11389:     cd "$ac_popdir"
                   11390:   done
                   11391: fi
1.15      bertrand 11392: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   11393:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   11394: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   11395: fi
1.1       bertrand 11396: 

CVSweb interface <joel.bertrand@systella.fr>